@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
}

:root {
    --biz-primary: #0aa376;
    --biz-primary-dark: #07865f;
    --biz-primary-soft: #e8f8f3;
    --biz-bg: #f5f7f6;
    --biz-surface: #ffffff;
    --biz-surface-soft: #f8faf9;
    --biz-text: #14231f;
    --biz-muted: #6c7c76;
    --biz-border: #e2e9e6;
    --biz-border-strong: #c8d5d0;
    --biz-sidebar: #10251f;
    --biz-sidebar-muted: #91a59e;
    --biz-sidebar-width: 76px;
    --biz-sidebar-expanded: 268px;
    --biz-topbar-height: 74px;
    --biz-radius: 16px;
    --biz-shadow: 0 12px 34px rgba(23, 48, 40, 0.07);
    --biz-shadow-sm: 0 7px 20px rgba(23, 48, 40, 0.08);
}

html[data-bs-theme="dark"] {
    --biz-bg: #080808;
    --biz-surface: #111111;
    --biz-surface-soft: #191919;
    --biz-text: #f2f2f2;
    --biz-muted: #9a9a9a;
    --biz-border: #2b2b2b;
    --biz-border-strong: #3c3c3c;
    --biz-primary-soft: #1d1d1d;
    --biz-sidebar: #050505;
    --biz-sidebar-muted: #929292;
    --biz-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    --biz-shadow-sm: 0 7px 20px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--biz-bg);
    color: var(--bs-body-color);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--biz-primary);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

iconify-icon {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--biz-primary);
    --bs-btn-border-color: var(--biz-primary);
    --bs-btn-hover-bg: var(--biz-primary-dark);
    --bs-btn-hover-border-color: var(--biz-primary-dark);
    --bs-btn-active-bg: var(--biz-primary-dark);
    --bs-btn-active-border-color: var(--biz-primary-dark);
}

.btn-light {
    --bs-btn-bg: var(--biz-surface);
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-border-color: var(--biz-border);
    --bs-btn-hover-bg: var(--biz-surface-soft);
    --bs-btn-hover-color: var(--bs-body-color);
    --bs-btn-hover-border-color: var(--biz-border);
}

.form-control {
    min-height: 48px;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
}

.form-control:focus {
    border-color: var(--biz-primary);
    background: var(--biz-surface);
    color: var(--bs-body-color);
    box-shadow: 0 0 0 4px rgba(10, 163, 118, 0.12);
}


.app-layout {
    min-height: 100vh;
}

.app-column {
    display: flex;
    min-height: 100vh;
    margin-left: var(--biz-sidebar-width);
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.main-content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--biz-border);
    color: var(--biz-muted);
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    z-index: 1040;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--biz-sidebar-width);
    overflow: hidden;
    flex-direction: column;
    background: var(--biz-sidebar);
    color: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    transition: width 0.24s ease, transform 0.24s ease;
}

.sidebar:hover,
.sidebar:focus-within {
    width: var(--biz-sidebar-expanded);
}

.sidebar-brand {
    display: flex;
    min-height: var(--biz-topbar-height);
    padding: 0 17px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand a {
    display: block;
    width: 168px;
    min-width: 168px;
}

.sidebar-brand img {
    display: block;
    width: 168px;
    height: auto;
}

.sidebar:not(:hover):not(:focus-within) .sidebar-brand a {
    width: 80px;
    min-width: 40px;
    overflow: hidden;
}

.sidebar-close {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.sidebar-nav {
    padding: 0.75rem 0.65rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.sidebar-group + .sidebar-group {
    margin-top: 0.75rem;
}

.sidebar-demo-notice {
    display: grid;
    width: 100%;
    margin-top: .85rem;
    padding: .72rem .62rem;
    grid-template-columns: 24px minmax(0,1fr);
    gap: .55rem;
    align-items: start;
    border: 1px solid rgba(72, 224, 178, .18);
    border-radius: 12px;
    background: rgba(32, 191, 143, .08);
    color: #dff8ef;
    opacity: 0;
    transition: opacity .18s ease;
}
.sidebar:hover .sidebar-demo-notice,
.sidebar:focus-within .sidebar-demo-notice { opacity: 1; }
.sidebar-demo-notice iconify-icon { margin-top: .05rem; color: #58deb4; font-size: 1.12rem; }
.sidebar-demo-notice strong,
.sidebar-demo-notice small { display: block; }
.sidebar-demo-notice strong { font-size: .64rem; }
.sidebar-demo-notice small { margin-top: .16rem; color: #a9c6bd; font-size: .52rem; line-height: 1.45; }
.sidebar:not(:hover):not(:focus-within) .sidebar-demo-notice { height: 42px; padding: .55rem .48rem; grid-template-columns: 1fr; place-items: center; }
.sidebar:not(:hover):not(:focus-within) .sidebar-demo-notice span { display: none; }

.sidebar-heading {
    display: block;
    height: 26px;
    padding: 0 0.7rem;
    overflow: hidden;
    color: var(--biz-sidebar-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 26px;
    opacity: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.16s ease;
}

.sidebar:hover .sidebar-heading,
.sidebar:focus-within .sidebar-heading {
    opacity: 1;
}

.sidebar-link {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 45px;
    padding: 0 0.75rem;
    align-items: center;
    gap: 0.8rem;
    border-radius: 11px;
    color: #b7c8c2;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease;
}

.sidebar-link iconify-icon {
    width: 28px;
    min-width: 28px;
    justify-content: center;
    font-size: 1.4rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link.active {
    background: var(--biz-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(10, 163, 118, 0.2);
}

.sidebar-link-label {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.sidebar:hover .sidebar-link-label,
.sidebar:focus-within .sidebar-link-label {
    opacity: 1;
}

.sidebar-link small {
    margin-left: auto;
    padding: 0.15rem 0.38rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--biz-sidebar-muted);
    font-size: 0.58rem;
    font-weight: 800;
    opacity: 0;
}

.sidebar:hover .sidebar-link small,
.sidebar:focus-within .sidebar-link small {
    opacity: 1;
}

.sidebar-link.disabled-link {
    cursor: default;
    opacity: 0.66;
}

.sidebar-footer {
    display: flex;
    min-height: 58px;
    padding: 0 1.3rem;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--biz-sidebar-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.sidebar-company {
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.sidebar:hover .sidebar-company,
.sidebar:focus-within .sidebar-company {
    opacity: 1;
}

.sidebar-backdrop {
    display: none;
}

/* Topbar */
.topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    display: flex;
    min-height: var(--biz-topbar-height);
    padding: 0 1.5rem;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--biz-border);
    background: color-mix(in srgb, var(--biz-surface) 92%, transparent);
    backdrop-filter: blur(14px);
}

.icon-button.mobile-menu-button {
    display: none;
}

.topbar-search {
    display: flex;
    width: min(500px, 45vw);
    min-height: 42px;
    padding: 0 0.75rem;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
}

.topbar-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bs-body-color);
    flex: 1;
}

.topbar-search input::placeholder {
    color: var(--biz-muted);
}

.topbar-search kbd {
    padding: 0.18rem 0.42rem;
    border: 1px solid var(--biz-border);
    border-radius: 5px;
    background: var(--biz-surface);
    color: var(--biz-muted);
    font-family: inherit;
    font-size: 0.66rem;
    box-shadow: none;
}

.topbar-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0.5rem;
}

.icon-button {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.icon-button:hover {
    border-color: var(--biz-primary);
    color: var(--biz-primary);
    transform: translateY(-1px);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--biz-surface);
    border-radius: 50%;
    background: #ef5d67;
}

.theme-icon-dark {
    display: none;
}

html[data-bs-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-bs-theme="dark"] .theme-icon-dark {
    display: inline-flex;
}

.company-label {
    max-width: 260px;
    padding: 0 0.65rem;
    align-items: center;
    gap: 0.45rem;
    color: var(--biz-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.company-label iconify-icon {
    color: var(--biz-primary);
}

.profile-button {
    display: flex;
    min-height: 48px;
    padding: 0.25rem 0.3rem 0.25rem 0.45rem;
    align-items: center;
    gap: 0.6rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--bs-body-color);
    text-align: left;
}

.profile-button:hover {
    background: var(--biz-surface-soft);
}

.profile-avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 0.82rem;
    font-weight: 900;
}

.profile-copy {
    min-width: 0;
}

.profile-copy strong,
.profile-copy small {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    font-size: 0.78rem;
}

.profile-copy small {
    color: var(--biz-muted);
    font-size: 0.66rem;
}

.profile-menu {
    min-width: 230px;
    padding: 0.55rem;
    border: 1px solid var(--biz-border);
    border-radius: 13px;
    background: var(--biz-surface);
    box-shadow: var(--biz-shadow);
}

.profile-menu-company {
    padding: 0.55rem 0.7rem;
}

.profile-menu-company small,
.profile-menu-company strong {
    display: block;
}

.profile-menu-company small {
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.profile-menu-company strong {
    margin-top: 0.15rem;
    color: var(--bs-body-color);
    font-size: 0.82rem;
}

.profile-menu .dropdown-item {
    display: flex;
    min-height: 38px;
    padding: 0.5rem 0.65rem;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    color: var(--bs-body-color);
    font-size: 0.82rem;
}

.profile-menu .dropdown-item:hover {
    background: var(--biz-surface-soft);
}

/* Shared content */
.eyebrow,
.panel-kicker {
    color: var(--biz-primary);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-heading {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.page-heading h1 {
    margin: 0.25rem 0 0.3rem;
    color: var(--bs-body-color);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.page-heading p {
    margin: 0;
    color: var(--biz-muted);
}

.page-date {
    display: inline-flex;
    min-height: 40px;
    padding: 0 0.8rem;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    background: var(--biz-surface);
    color: var(--biz-muted);
    font-size: 0.78rem;
}

.page-heading-actions .btn {
    flex: 0 0 auto;
}

.panel-card,
.metric-card,
.summary-card {
    border: 1px solid var(--biz-border);
    border-radius: var(--biz-radius);
    background: var(--biz-surface);
    box-shadow: var(--biz-shadow);
}

.metric-grid {
    display: grid;
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    display: flex;
    min-width: 0;
    min-height: 138px;
    padding: 1.25rem;
    align-items: flex-start;
    gap: 1rem;
}

.metric-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

.metric-icon iconify-icon {
    font-size: 1.45rem;
}

.metric-icon-green {
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.metric-icon-blue {
    background: #eaf3ff;
    color: #3978db;
}

.metric-icon-amber {
    background: #fff3da;
    color: #d48a00;
}

.metric-icon-red {
    background: #fff0f1;
    color: #dc5b66;
}

html[data-bs-theme="dark"] .metric-icon-blue {
    background: #172e4f;
}

html[data-bs-theme="dark"] .metric-icon-amber {
    background: #3f3014;
}

html[data-bs-theme="dark"] .metric-icon-red {
    background: #432126;
}

.metric-copy {
    min-width: 0;
}

.metric-copy > span,
.metric-copy small {
    display: block;
    color: var(--biz-muted);
}

.metric-copy > span {
    margin-bottom: 0.38rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.metric-copy strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--bs-body-color);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.metric-copy small {
    font-size: 0.68rem;
}

.positive {
    color: var(--biz-primary) !important;
}

.positive iconify-icon {
    font-size: 0.86rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.panel-card {
    min-width: 0;
    padding: 1.25rem;
}

.panel-heading {
    display: flex;
    margin-bottom: 1.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-heading h2,
.totals-card h2 {
    margin: 0.18rem 0 0;
    color: var(--bs-body-color);
    font-size: 1rem;
    font-weight: 800;
}

.small-select {
    display: inline-flex;
    min-height: 34px;
    padding: 0 0.65rem;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--biz-border);
    border-radius: 8px;
    background: var(--biz-surface);
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.chart-summary {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
    gap: 0.65rem;
}

.chart-summary strong {
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.chart-summary span {
    display: inline-flex;
    padding: 0.25rem 0.42rem;
    align-items: center;
    border-radius: 6px;
    background: var(--biz-primary-soft);
    font-size: 0.68rem;
    font-weight: 800;
}

.bar-chart {
    display: grid;
    height: 200px;
    padding-top: 1rem;
    align-items: end;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(0.35rem, 2vw, 1rem);
    border-bottom: 1px solid var(--biz-border);
    background-image: linear-gradient(to bottom, var(--biz-border) 1px, transparent 1px);
    background-size: 100% 25%;
}

.bar-chart > div {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 0.6rem;
}

.bar-chart small {
    margin-bottom: -1.7rem;
    color: var(--biz-muted);
    font-size: 0.64rem;
}

.bar {
    display: block;
    width: min(32px, 75%);
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #20c997, var(--biz-primary));
}

.bar-1 { height: 43%; }
.bar-2 { height: 68%; }
.bar-3 { height: 55%; }
.bar-4 { height: 81%; }
.bar-5 { height: 72%; }
.bar-6 { height: 94%; }
.bar-7 { height: 61%; }
.bar-level-0 { height: 2px; background: var(--biz-border-strong); }
.bar-level-1 { height: 10%; }
.bar-level-2 { height: 20%; }
.bar-level-3 { height: 30%; }
.bar-level-4 { height: 40%; }
.bar-level-5 { height: 50%; }
.bar-level-6 { height: 60%; }
.bar-level-7 { height: 70%; }
.bar-level-8 { height: 80%; }
.bar-level-9 { height: 90%; }
.bar-level-10 { height: 100%; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.quick-actions a {
    display: flex;
    min-height: 90px;
    padding: 0.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    color: var(--bs-body-color);
    font-size: 0.72rem;
    font-weight: 750;
    text-align: center;
    flex-direction: column;
    transition: border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.quick-actions a:hover {
    border-color: var(--biz-primary);
    color: var(--biz-primary);
    transform: translateY(-2px);
}

.quick-actions a span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.activity-list {
    display: grid;
    gap: 0.8rem;
}

.activity-item {
    display: grid;
    min-width: 0;
    padding-bottom: 0.8rem;
    align-items: center;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 0.75rem;
    border-bottom: 1px solid var(--biz-border);
}

.activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.activity-icon-blue {
    background: #eaf3ff;
    color: #3978db;
}

.activity-icon-amber {
    background: #fff3da;
    color: #d48a00;
}

.activity-item strong,
.activity-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-item strong,
.activity-item b {
    font-size: 0.76rem;
}

.activity-item small {
    margin-top: 0.16rem;
    color: var(--biz-muted);
    font-size: 0.66rem;
}

.activity-item b {
    color: var(--bs-body-color);
}

.panel-link {
    font-size: 0.72rem;
    font-weight: 800;
}

.alert-count {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff0f1;
    color: #dc5b66;
    font-size: 0.68rem;
    font-weight: 900;
}

.compact-alert {
    display: grid;
    padding: 0.75rem;
    align-items: center;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.7rem;
    border-radius: 10px;
}

.compact-alert + .compact-alert {
    margin-top: 0.6rem;
}

.compact-alert > iconify-icon {
    font-size: 1.25rem;
}

.compact-alert strong,
.compact-alert small {
    display: block;
}

.compact-alert strong {
    font-size: 0.72rem;
}

.compact-alert small {
    margin-top: 0.12rem;
    color: var(--biz-muted);
    font-size: 0.64rem;
}

.compact-alert-red {
    background: #fff4f4;
    color: #c44d58;
}

.compact-alert-amber {
    background: #fff8e9;
    color: #bd7b00;
}

.compact-alert-blue {
    background: #eff6ff;
    color: #3978db;
}

html[data-bs-theme="dark"] .activity-icon-blue,
html[data-bs-theme="dark"] .compact-alert-blue {
    background: #172e4f;
}

html[data-bs-theme="dark"] .activity-icon-amber,
html[data-bs-theme="dark"] .compact-alert-amber {
    background: #3f3014;
}

html[data-bs-theme="dark"] .compact-alert-red,
html[data-bs-theme="dark"] .alert-count {
    background: #432126;
}

/* Ventas */
.metric-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card {
    position: relative;
    min-height: 108px;
    padding: 1.15rem;
    overflow: hidden;
}

.summary-card span,
.summary-card strong {
    position: relative;
    z-index: 1;
    display: block;
}

.summary-card span {
    color: var(--biz-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.summary-card strong {
    margin-top: 0.45rem;
    color: var(--bs-body-color);
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.summary-card > iconify-icon {
    position: absolute;
    right: 1rem;
    bottom: 0.6rem;
    color: var(--biz-primary);
    font-size: 2.8rem;
    opacity: 0.12;
}

.table-panel {
    padding: 0;
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    padding: 1rem;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--biz-border);
}

.table-search {
    display: flex;
    max-width: 450px;
    min-height: 40px;
    padding: 0 0.7rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--biz-border);
    border-radius: 9px;
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
    flex: 1;
}

.table-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bs-body-color);
    flex: 1;
}

.toolbar-button {
    min-height: 40px;
    font-size: 0.76rem;
}

.bizfera-table {
    min-width: 760px;
    margin: 0;
    color: var(--bs-body-color);
}

.bizfera-table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
    border-bottom-color: var(--biz-border);
    background: transparent;
    color: inherit;
}

.bizfera-table thead th {
    border-bottom-width: 1px;
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bizfera-table tbody td {
    font-size: 0.76rem;
}

.bizfera-table tbody tr:last-child td {
    border-bottom: 0;
}

.bizfera-table tbody tr:hover td {
    background: var(--biz-surface-soft);
}

.status {
    display: inline-flex;
    min-height: 25px;
    padding: 0.2rem 0.55rem;
    align-items: center;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
}

.status-confirmada {
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.status-pendiente {
    background: #fff3da;
    color: #b87900;
}

.status-borrador {
    background: #edf1f0;
    color: #60736c;
}

.status-anulada {
    background: #fff0f1;
    color: #c64f5a;
}

html[data-bs-theme="dark"] .status-pendiente {
    background: #3f3014;
}

html[data-bs-theme="dark"] .status-borrador {
    background: #2b2b2b;
    color: #bdbdbd;
}

html[data-bs-theme="dark"] .status-anulada {
    background: #432126;
}

.table-action {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--biz-border);
    border-radius: 8px;
    color: var(--biz-muted);
}

.table-action:hover {
    border-color: var(--biz-primary);
    color: var(--biz-primary);
}

.empty-table {
    display: flex;
    min-height: 240px;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    color: var(--biz-muted);
    text-align: center;
    flex-direction: column;
}

.empty-table iconify-icon {
    margin-bottom: 0.6rem;
    color: var(--biz-primary);
    font-size: 2.4rem;
}

.empty-table strong,
.empty-table span {
    display: block;
}

.empty-table strong {
    color: var(--bs-body-color);
}

.empty-table span {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.empty-filter {
    padding: 1rem;
    border-top: 1px solid var(--biz-border);
    color: var(--biz-muted);
    text-align: center;
}

.back-link {
    display: inline-flex;
    margin-bottom: 0.4rem;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.detail-actions {
    display: flex;
    gap: 0.6rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1rem;
}

.detail-main {
    padding: 0;
    overflow: hidden;
}

.detail-card-heading {
    display: flex;
    padding: 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--biz-border);
}

.detail-card-heading span,
.detail-card-heading strong,
.detail-card-heading small {
    display: block;
}

.detail-card-heading > div > span,
.detail-card-heading small {
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.detail-card-heading strong {
    margin: 0.18rem 0;
    font-size: 0.95rem;
}

.detail-table {
    min-width: 600px;
}

.detail-note {
    display: flex;
    margin: 0 1.25rem 1.25rem;
    padding: 0.85rem;
    gap: 0.7rem;
    border-radius: 10px;
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
}

.detail-note span {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-note p {
    margin: 0.15rem 0 0;
    color: var(--bs-body-color);
    font-size: 0.76rem;
}

.totals-card {
    align-self: start;
}

.totals-card dl {
    margin: 1rem 0;
}

.totals-card dl > div {
    display: flex;
    padding: 0.65rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--biz-border);
}

.totals-card dt {
    color: var(--biz-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.totals-card dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
}

.totals-card .total-row {
    padding: 0.9rem 0;
}

.totals-card .total-row dt,
.totals-card .total-row dd {
    color: var(--bs-body-color);
    font-size: 1rem;
}

.payment-state {
    display: flex;
    padding: 0.8rem;
    align-items: center;
    gap: 0.6rem;
    border-radius: 10px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.payment-state strong,
.payment-state span {
    display: block;
}

.payment-state strong {
    font-size: 0.72rem;
}

.payment-state span {
    margin-top: 0.1rem;
    color: var(--biz-muted);
    font-size: 0.62rem;
}

.not-found-card {
    display: flex;
    min-height: calc(100vh - 210px);
    padding: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.not-found-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.not-found-icon iconify-icon {
    font-size: 2.25rem;
}

.not-found-card h1 {
    margin: 0.4rem 0;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    letter-spacing: -0.035em;
}

.not-found-card p {
    max-width: 480px;
    margin: 0 0 1.25rem;
    color: var(--biz-muted);
}

/* Módulos */
.form-select {
    min-height: 44px;
    border-color: var(--biz-border);
    border-radius: 10px;
    background-color: var(--biz-surface);
    color: var(--bs-body-color);
}

.form-select:focus {
    border-color: var(--biz-primary);
    box-shadow: 0 0 0 4px rgba(10, 163, 118, 0.12);
}

.status-activa,
.status-abierta,
.status-autorizado,
.status-conectada,
.status-entregado,
.status-registrado,
.status-recibida,
.status-ganada,
.status-ganado,
.status-ingreso,
.status-venta,
.status-exito {
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.status-inactiva,
.status-cerrada,
.status-rechazado,
.status-desconectada,
.status-perdida,
.status-perdido,
.status-egreso,
.status-retiro,
.status-cancelada,
.status-error {
    background: #fff0f1;
    color: #c64f5a;
}

.status-emitido,
.status-preparacion,
.status-en_transito,
.status-negociacion,
.status-propuesta,
.status-interesado,
.status-advertencia {
    background: #fff3da;
    color: #b87900;
}

.status-neutro,
.status-prospecto,
.status-nuevo,
.status-contactado,
.status-calificado,
.status-apertura,
.status-ajuste,
.status-cierre {
    background: #edf1f0;
    color: #60736c;
}

html[data-bs-theme="dark"] .status-inactiva,
html[data-bs-theme="dark"] .status-cerrada,
html[data-bs-theme="dark"] .status-rechazado,
html[data-bs-theme="dark"] .status-desconectada,
html[data-bs-theme="dark"] .status-perdida,
html[data-bs-theme="dark"] .status-perdido,
html[data-bs-theme="dark"] .status-egreso,
html[data-bs-theme="dark"] .status-retiro,
html[data-bs-theme="dark"] .status-cancelada,
html[data-bs-theme="dark"] .status-error {
    background: #432126;
}

html[data-bs-theme="dark"] .status-emitido,
html[data-bs-theme="dark"] .status-preparacion,
html[data-bs-theme="dark"] .status-en_transito,
html[data-bs-theme="dark"] .status-negociacion,
html[data-bs-theme="dark"] .status-propuesta,
html[data-bs-theme="dark"] .status-interesado,
html[data-bs-theme="dark"] .status-advertencia {
    background: #3f3014;
}

html[data-bs-theme="dark"] .status-neutro,
html[data-bs-theme="dark"] .status-prospecto,
html[data-bs-theme="dark"] .status-nuevo,
html[data-bs-theme="dark"] .status-contactado,
html[data-bs-theme="dark"] .status-calificado,
html[data-bs-theme="dark"] .status-apertura,
html[data-bs-theme="dark"] .status-ajuste,
html[data-bs-theme="dark"] .status-cierre {
    background: #2b2b2b;
    color: #bdbdbd;
}

.product-cell,
.user-cell {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 0.7rem;
}

.product-cell img {
    width: 42px;
    height: 42px;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    background: #ffffff;
    object-fit: contain;
}

.user-cell > span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 0.7rem;
    font-weight: 900;
}

.table-subtext {
    display: block;
    margin-top: 0.15rem;
    color: var(--biz-muted);
}

.stock-pill,
.default-mark {
    display: inline-flex;
    padding: 0.22rem 0.48rem;
    border-radius: 7px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 0.66rem;
    font-weight: 800;
}

.stock-pill.stock-low {
    background: #fff0f1;
    color: #c64f5a;
}

.default-mark {
    margin-left: 0.35rem;
}

.entity-grid,
.report-grid,
.crm-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.entity-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
}

.entity-card-icon,
.integration-logo,
.settings-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.entity-card h2,
.integration-card h2,
.crm-card h2,
.settings-card h2 {
    margin: 0.25rem 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
}

.entity-card p,
.integration-card p,
.crm-card p,
.settings-card p {
    margin: 0;
    color: var(--biz-muted);
    font-size: 0.72rem;
}

.entity-card dl {
    display: grid;
    margin: 0;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--biz-border);
}

.entity-card dl > div {
    padding-top: 0.8rem;
}

.entity-card dt,
.entity-card dd {
    display: block;
    margin: 0;
}

.entity-card dt {
    color: var(--biz-muted);
    font-size: 0.62rem;
}

.entity-card dd {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.crm-card-top,
.crm-card footer,
.integration-card,
.integration-card footer,
.settings-heading,
.settings-list > div {
    display: flex;
    align-items: center;
}

.crm-card-top {
    justify-content: space-between;
}

.crm-card-top > strong {
    color: var(--biz-primary);
    font-size: 0.78rem;
}

.crm-amount {
    margin: 1rem 0;
    font-size: 1.25rem;
    font-weight: 850;
}

.crm-card footer {
    padding-top: 0.8rem;
    justify-content: space-between;
    gap: 0.7rem;
    border-top: 1px solid var(--biz-border);
    color: var(--biz-muted);
    font-size: 0.65rem;
}

.crm-card footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-card {
    display: flex;
    min-height: 125px;
    align-items: center;
    gap: 1rem;
}

.report-card > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.report-card small,
.report-card strong {
    display: block;
}

.report-card small {
    color: var(--biz-muted);
    font-weight: 700;
}

.report-card strong {
    margin-top: 0.35rem;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.integration-card {
    position: relative;
    min-height: 180px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.integration-copy {
    min-width: 0;
    flex: 1;
}

.integration-card > .status {
    margin-left: auto;
}

.integration-card footer {
    width: 100%;
    min-height: 40px;
    padding-top: 0.75rem;
    align-self: flex-end;
    border-top: 1px solid var(--biz-border);
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.settings-card {
    max-width: 920px;
}

.settings-heading {
    gap: 0.9rem;
}

.settings-list {
    margin-top: 1.25rem;
    border-top: 1px solid var(--biz-border);
}

.settings-list > div {
    min-height: 72px;
    padding: 0.8rem 0;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--biz-border);
}

.settings-list strong,
.settings-list small {
    display: block;
}

.settings-list strong {
    font-size: 0.78rem;
}

.settings-list small {
    margin-top: 0.18rem;
    color: var(--biz-muted);
    font-size: 0.65rem;
}

.settings-list > div > span {
    padding: 0.35rem 0.55rem;
    border-radius: 7px;
    background: var(--biz-surface-soft);
    color: var(--bs-body-color);
    font-size: 0.72rem;
    font-weight: 750;
}

/* Facturación POS */
.pos-heading {
    align-items: center;
}

.pos-session {
    display: flex;
    min-width: 190px;
    padding: 0.65rem 0.8rem;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--biz-primary);
    box-shadow: 0 0 0 5px var(--biz-primary-soft);
}

.pos-session strong,
.pos-session small {
    display: block;
}

.pos-session strong {
    font-size: 0.74rem;
}

.pos-session small {
    margin-top: 0.1rem;
    color: var(--biz-muted);
    font-size: 0.63rem;
}

.module-alert {
    display: flex;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #f1d496;
    border-radius: 12px;
    background: #fff8e9;
    color: #9a6600;
}

.module-alert > iconify-icon {
    font-size: 1.5rem;
}

.module-alert div {
    flex: 1;
}

.module-alert strong,
.module-alert span {
    display: block;
}

.module-alert-exito {
    border-color: color-mix(in srgb, var(--biz-primary) 35%, var(--biz-border));
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.module-alert-error {
    border-color: #f4b8bd;
    background: #fff0f1;
    color: #b4232d;
}

html[data-bs-theme="dark"] .module-alert-error {
    border-color: #74363b;
    background: #351b1e;
    color: #ff9aa2;
}

.module-alert span {
    margin-top: 0.1rem;
    color: var(--biz-muted);
    font-size: 0.7rem;
}

.pos-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(355px, 0.43fr);
    gap: 1rem;
}

.pos-scanner {
    display: grid;
    padding: 1rem;
    align-items: center;
    grid-template-columns: 46px minmax(180px, 0.72fr) minmax(240px, 1.3fr);
    gap: 0.85rem;
}

.scanner-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.pos-scanner label strong,
.pos-scanner label span {
    display: block;
}

.pos-scanner label strong {
    font-size: 0.76rem;
}

.pos-scanner label span {
    margin-top: 0.15rem;
    color: var(--biz-muted);
    font-size: 0.64rem;
}

.scanner-input {
    display: flex;
    min-height: 48px;
    padding: 0 0.65rem;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--biz-primary);
    border-radius: 11px;
    background: var(--biz-surface);
    box-shadow: 0 0 0 4px var(--biz-primary-soft);
}

.scanner-input input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bs-body-color);
    flex: 1;
}

.scanner-input kbd,
.ticket-submit kbd {
    padding: 0.2rem 0.4rem;
    border: 1px solid var(--biz-border);
    border-radius: 5px;
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
    font-family: inherit;
    font-size: 0.62rem;
    box-shadow: none;
}

.pos-catalog-heading {
    display: flex;
    min-height: 60px;
    padding: 0.85rem 0.15rem 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.pos-catalog-heading strong,
.pos-catalog-heading span {
    display: block;
}

.pos-catalog-heading strong {
    font-size: 0.84rem;
}

.pos-catalog-heading span {
    margin-top: 0.1rem;
    color: var(--biz-muted);
    font-size: 0.65rem;
}

.pos-clear-search {
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.66rem;
}

.pos-category-strip {
    display: flex;
    width: 100%;
    margin: -0.05rem 0 0.85rem;
    padding: 0.15rem 0.05rem 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    gap: 0.45rem;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pos-category-strip::-webkit-scrollbar { display: none; }

.pos-category-chip {
    display: inline-flex;
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid var(--biz-border);
    border-radius: 999px;
    outline: 0;
    background: var(--biz-surface);
    color: var(--biz-muted);
    font-size: 0.64rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.pos-category-chip iconify-icon { font-size: 0.9rem; }
.pos-category-chip:hover { border-color: color-mix(in srgb, var(--biz-primary) 45%, var(--biz-border)); color: var(--bs-body-color); }
.pos-category-chip.active {
    border-color: var(--biz-primary);
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--biz-primary) 12%, transparent);
}
.pos-category-chip:focus-visible { box-shadow: 0 0 0 3px var(--biz-primary-soft); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 225px;
    padding: 0.8rem;
    overflow: hidden;
    align-items: flex-start;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    text-align: left;
    box-shadow: var(--biz-shadow);
    flex-direction: column;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover,
.product-card:focus-visible {
    border-color: var(--biz-primary);
    outline: 0;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(10, 163, 118, 0.12);
}

.product-card-image {
    display: flex;
    width: 100%;
    height: 105px;
    margin-bottom: 0.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f7faf9;
}

.product-card-image img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.product-card-copy {
    display: block;
    min-width: 0;
    padding-right: 1.4rem;
}

.product-card-copy small,
.product-card-copy strong,
.product-card-copy em {
    display: block;
}

.product-card-copy small {
    color: var(--biz-primary);
    font-size: 0.58rem;
    font-weight: 800;
}

.product-card-copy strong {
    min-height: 36px;
    margin-top: 0.15rem;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.3;
}

.product-card-copy em {
    margin-top: 0.16rem;
    color: var(--biz-muted);
    font-size: 0.6rem;
    font-style: normal;
}

.product-card > b {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--bs-body-color);
    font-size: 0.92rem;
}

.product-add {
    position: absolute;
    right: 0.72rem;
    bottom: 0.65rem;
    color: var(--biz-primary);
}

.product-add iconify-icon {
    font-size: 1.45rem;
}

.pos-no-results {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    color: var(--biz-muted);
    text-align: center;
    flex-direction: column;
}

.pos-no-results iconify-icon {
    margin-bottom: 0.5rem;
    color: var(--biz-primary);
    font-size: 2rem;
}

.pos-no-results strong,
.pos-no-results span {
    display: block;
}

.pos-no-results span {
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

.pos-ticket {
    position: sticky;
    top: calc(var(--biz-topbar-height) + 1rem);
    padding: 0;
    overflow: hidden;
}

.ticket-heading {
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--biz-border);
}

.ticket-heading h2 {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    font-weight: 850;
}

.ticket-field {
    display: block;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--biz-border);
}

.ticket-field > span {
    display: block;
    margin-bottom: 0.38rem;
    color: var(--biz-muted);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ticket-items {
    min-height: 230px;
    max-height: calc(100vh - 500px);
    overflow-y: auto;
}

.ticket-empty {
    display: flex;
    min-height: 230px;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    color: var(--biz-muted);
    text-align: center;
    flex-direction: column;
}

.ticket-empty iconify-icon {
    margin-bottom: 0.5rem;
    color: var(--biz-primary);
    font-size: 2rem;
}

.ticket-empty strong,
.ticket-empty span {
    display: block;
}

.ticket-empty span {
    margin-top: 0.2rem;
    font-size: 0.68rem;
}

.ticket-item {
    position: relative;
    display: grid;
    min-height: 92px;
    padding: 0.75rem 2.1rem 0.75rem 0.85rem;
    align-items: center;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.65rem;
    border-bottom: 1px solid var(--biz-border);
}

.ticket-item > img {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: #f7faf9;
    object-fit: contain;
}

.ticket-item-copy > strong,
.ticket-item-copy > span {
    display: block;
}

.ticket-item-copy > strong {
    overflow: hidden;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-item-copy > span {
    margin-top: 0.1rem;
    color: var(--biz-muted);
    font-size: 0.6rem;
}

.quantity-control {
    display: inline-flex;
    margin-top: 0.35rem;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--biz-border);
    border-radius: 7px;
}

.quantity-control button {
    width: 26px;
    height: 24px;
    padding: 0;
    border: 0;
    background: var(--biz-surface-soft);
    color: var(--bs-body-color);
}

.quantity-control b {
    min-width: 28px;
    text-align: center;
    font-size: 0.65rem;
}

.ticket-line-total {
    font-size: 0.72rem;
    white-space: nowrap;
}

.ticket-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: var(--biz-muted);
}

.ticket-summary {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--biz-border);
    background: var(--biz-surface-soft);
}

.ticket-summary > div {
    display: flex;
    padding: 0.25rem 0;
    align-items: center;
    justify-content: space-between;
    color: var(--biz-muted);
    font-size: 0.7rem;
}

.ticket-summary .ticket-total {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--biz-border);
    color: var(--bs-body-color);
    font-size: 1rem;
}

.ticket-total strong {
    color: var(--biz-primary);
    font-size: 1.35rem;
}

.ticket-submit {
    width: calc(100% - 2rem);
    min-height: 50px;
    margin: 1rem 1rem 0.5rem;
}

.ticket-submit kbd {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ticket-submit.is-loading iconify-icon {
    animation: loading-pulse 0.8s ease-in-out infinite alternate;
}

.ticket-help {
    min-height: 34px;
    margin: 0;
    padding: 0 1rem 0.8rem;
    color: var(--biz-muted);
    font-size: 0.63rem;
    text-align: center;
}

.ticket-help.is-error {
    color: #c64f5a;
}

.pos-toast {
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    box-shadow: var(--biz-shadow);
}

.pos-toast .toast-body {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.pos-toast iconify-icon {
    color: var(--biz-primary);
    font-size: 1.7rem;
}

.pos-toast strong,
.pos-toast span {
    display: block;
}

.pos-toast span {
    margin-top: 0.1rem;
    color: var(--biz-muted);
    font-size: 0.7rem;
}

/* Login */
.login-page {
    min-height: 100vh;
    background: var(--biz-surface);
}

.login-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(380px, 44%) minmax(0, 1fr);
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    justify-content: center;
    background:
        radial-gradient(circle at 75% 20%, rgba(34, 210, 158, 0.25), transparent 32%),
        radial-gradient(circle at 15% 85%, rgba(34, 210, 158, 0.13), transparent 27%),
        #0c2d23;
    color: #ffffff;
    flex-direction: column;
}

.login-brand-panel::after {
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
    content: "";
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.login-logo {
    display: inline-block;
    margin-bottom: clamp(3rem, 9vh, 6rem);
}

.login-logo img {
    width: 168px;
}

.eyebrow-light {
    color: #83e6c8;
}

.login-brand-panel h1 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.login-brand-panel p {
    max-width: 500px;
    margin: 0;
    color: #b8cec7;
    font-size: clamp(0.95rem, 1.5vw, 1.12rem);
    line-height: 1.7;
}

.login-feature-list {
    display: grid;
    margin-top: 2rem;
    gap: 0.8rem;
}

.login-feature-list > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dbe9e4;
    font-size: 0.8rem;
}

.login-feature-list iconify-icon {
    color: #54d6af;
    font-size: 1.35rem;
}

.login-brand-version {
    position: absolute;
    z-index: 1;
    bottom: 2rem;
    left: clamp(2rem, 5vw, 5rem);
    color: #6f9689;
    font-size: 0.7rem;
}

.login-form-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    background: var(--biz-surface);
}

.login-form-wrap {
    width: min(100%, 410px);
}

.login-mobile-logo {
    display: none;
    margin-bottom: 2rem;
}

.login-mobile-logo img {
    width: 150px;
}

.login-form-wrap h2 {
    margin: 0.35rem 0 0.4rem;
    color: var(--bs-body-color);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.login-subtitle {
    margin: 0 0 1.8rem;
    color: var(--biz-muted);
}

.login-alert {
    display: flex;
    padding: 0.75rem 0.85rem;
    align-items: center;
    gap: 0.55rem;
    border-radius: 10px;
    font-size: 0.78rem;
}

.login-form {
    display: grid;
    gap: 1.15rem;
}

.form-field label {
    margin-bottom: 0.45rem;
    color: var(--bs-body-color);
    font-size: 0.74rem;
    font-weight: 800;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-row a {
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 750;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > iconify-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.9rem;
    color: var(--biz-muted);
    transform: translateY(-50%);
}

.input-with-icon .form-control {
    padding-left: 2.8rem;
}

.input-with-action .form-control {
    padding-right: 3rem;
}

.input-with-action button {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0.55rem;
    display: inline-flex;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--biz-muted);
    transform: translateY(-50%);
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 0.2rem;
}

.login-submit.is-loading iconify-icon {
    animation: loading-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes loading-pulse {
    from { opacity: 0.3; transform: translateX(-3px); }
    to { opacity: 1; transform: translateX(3px); }
}

.demo-access {
    display: flex;
    margin-top: 1.25rem;
    padding: 0.85rem;
    align-items: center;
    gap: 0.7rem;
    border: 1px dashed color-mix(in srgb, var(--biz-primary) 40%, var(--biz-border));
    border-radius: 11px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.demo-access strong,
.demo-access span {
    display: block;
}

.demo-access strong {
    font-size: 0.7rem;
}

.demo-access span {
    margin-top: 0.12rem;
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.login-help {
    position: absolute;
    bottom: 1.5rem;
    margin: 0;
    color: var(--biz-muted);
    font-size: 0.7rem;
}

/* Administración Bizfera */
.admin-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 1rem;
}

.admin-form-card {
    position: sticky;
    top: calc(var(--biz-topbar-height) + 1rem);
    padding: 1.15rem;
}

.admin-form {
    display: grid;
    gap: 0.85rem;
}

.admin-form label > span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--biz-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-form .form-control,
.admin-form .form-select {
    min-height: 46px;
}

.admin-form textarea.form-control {
    min-height: 86px;
    resize: vertical;
}

.admin-form input[type="file"] {
    padding: 0.65rem;
    font-size: 0.72rem;
}

.admin-check {
    display: flex;
    padding: 0.75rem;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface-soft);
}

.admin-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--biz-primary);
}

.admin-check > span,
.admin-check strong,
.admin-check small {
    display: block;
    margin: 0;
}

.admin-check small {
    margin-top: 0.15rem;
    color: var(--biz-muted);
    font-size: 0.65rem;
}

.admin-table-card {
    min-width: 0;
}

.admin-table-card table {
    min-width: 940px;
}

.secure-note {
    display: flex;
    padding: 0.75rem;
    align-items: flex-start;
    gap: 0.6rem;
    border-radius: 11px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 0.68rem;
    line-height: 1.55;
}

.secure-note iconify-icon {
    margin-top: 0.05rem;
}

.document-pair {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--biz-primary);
    font-size: 0.72rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .entity-grid,
    .crm-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-form-card {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .app-column {
        margin-left: 0;
    }

    .sidebar {
        width: min(292px, calc(100vw - 42px));
        transform: translateX(-105%);
    }

    .sidebar:hover,
    .sidebar:focus-within {
        width: min(292px, calc(100vw - 42px));
    }

    .sidebar-heading,
    .sidebar-link-label,
    .sidebar-link small,
    .sidebar-company {
        opacity: 1;
    }

    .sidebar-close {
        display: inline-flex;
        font-size: 1.25rem;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 1035;
        inset: 0;
        display: block;
        background: rgba(5, 15, 12, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .icon-button.mobile-menu-button {
        display: inline-flex;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pos-layout {
        grid-template-columns: 1fr;
    }

    .pos-ticket {
        position: static;
    }

    .ticket-items {
        max-height: 420px;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-mobile-logo {
        display: block;
    }
}

@media (max-width: 767.98px) {
    :root {
        --biz-topbar-height: 66px;
    }

    .topbar {
        padding: 0 0.8rem;
    }

    .topbar-search {
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .topbar-search input,
    .topbar-search kbd {
        display: none;
    }

    .topbar-search iconify-icon {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--biz-border);
        border-radius: 11px;
        background: var(--biz-surface);
        color: var(--bs-body-color);
    }

    .main-content {
        padding: 1.25rem 1rem;
    }

    .app-footer {
        padding: 0.8rem 1rem;
    }

    .app-footer span:last-child {
        display: none;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading-actions {
        flex-direction: row;
    }

    .page-heading-actions > div {
        min-width: 0;
    }

    .metric-grid,
    .metric-grid-compact {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 118px;
    }

    .table-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .table-search {
        max-width: none;
        flex-basis: 100%;
    }

    .toolbar-button {
        flex: 1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-scanner {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .scanner-input {
        grid-column: 1 / -1;
    }

    .totals-card {
        order: -1;
    }

    .login-form-panel {
        padding: 2rem 1.25rem 5rem;
        align-items: flex-start;
    }

    .login-form-wrap {
        margin-top: 5vh;
    }
}

/* v0.6 · Hojas inferiores, stock por sucursal y documentos */
.bottom-sheet-backdrop {
    position: fixed;
    z-index: 1085;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.bottom-sheet {
    position: fixed;
    z-index: 1090;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(1180px, calc(100% - 2rem));
    max-height: 92vh;
    margin: 0 auto;
    border: 1px solid var(--biz-border);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--biz-surface);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.22);
    transform: translateY(105%);
    transition: transform 0.28s ease;
    flex-direction: column;
}

.bottom-sheet.open,
.bottom-sheet.show { transform: translateY(0); }
.bottom-sheet-handle { width: 58px; height: 5px; margin: 0.65rem auto 0; border-radius: 99px; background: var(--biz-border-strong); cursor: pointer; }
.bottom-sheet-header { display: flex; padding: 0.75rem 1.3rem 1rem; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--biz-border); }
.bottom-sheet-header h2 { margin: 0.18rem 0 0; font-size: 1.2rem; }
.bottom-sheet-header p { margin: 0.2rem 0 0; color: var(--biz-muted); font-size: 0.68rem; }
.bottom-sheet-body { overflow-y: auto; max-width: none; padding: 1.2rem 1.3rem; }
.bottom-sheet-footer { position: sticky; bottom: -1.2rem; display: flex; margin: 0.5rem -1.3rem -1.2rem; padding: 0.9rem 1.3rem; justify-content: flex-end; gap: 0.55rem; border-top: 1px solid var(--biz-border); background: var(--biz-surface); }
.sheet-open,
.bottom-sheet-open { overflow: hidden; }

.form-section { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface-soft); }
.form-section-title { display: flex; margin-bottom: 0.9rem; align-items: center; gap: 0.7rem; }
.form-section-title > span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: var(--biz-primary); color: #fff; font-size: 0.7rem; font-weight: 800; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-size: 0.78rem; }
.form-section-title small { margin-top: 0.08rem; color: var(--biz-muted); font-size: 0.62rem; }
.module-access-fieldset { margin: 0; padding: 0.9rem; border: 1px solid var(--biz-border); border-radius: 12px; }
.module-access-fieldset legend { float: none; width: auto; margin: 0; padding: 0 0.3rem; font-size: 0.72rem; font-weight: 750; }
.module-access-fieldset p { color: var(--biz-muted); font-size: 0.62rem; }

.inventory-table-wrap { max-height: 68vh; }
.inventory-table { min-width: 820px; }
.inventory-table thead th { position: sticky; z-index: 3; top: 0; background: var(--biz-surface-soft); }
.inventory-table th small { display: block; margin-top: 0.1rem; color: var(--biz-muted); font-size: 0.55rem; }
.inventory-product-column { position: sticky; z-index: 2; left: 0; min-width: 250px; background: var(--biz-surface) !important; }
.inventory-table thead .inventory-product-column { z-index: 4; background: var(--biz-surface-soft) !important; }
.inventory-stock-input { width: 112px; margin-left: auto; text-align: right; }
.inventory-stock-input.is-saving { border-color: #d39c28; }
.inventory-stock-input.is-saved { border-color: var(--biz-primary); background: var(--biz-primary-soft); }
.inventory-stock-input.is-readonly { color: var(--biz-muted); background: var(--biz-surface-soft); opacity: 0.7; }
.inventory-save-status { color: var(--biz-muted); font-size: 0.62rem; }

.budget-sheet { width: min(1440px, calc(100% - 1rem)); max-height: 96vh; }
.budget-builder { display: grid; overflow: hidden; padding: 0; grid-template-columns: minmax(0, 1.25fr) minmax(410px, 0.75fr); }
.budget-catalog { overflow-y: auto; padding: 1rem; border-right: 1px solid var(--biz-border); }
.budget-product-grid { display: grid; margin-top: 0.8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.budget-product-card { display: grid; min-height: 92px; padding: 0.55rem; align-items: center; grid-template-columns: 58px 1fr auto; gap: 0.55rem; border: 1px solid var(--biz-border); border-radius: 12px; background: var(--biz-surface); color: var(--bs-body-color); text-align: left; }
.budget-product-card:hover { border-color: var(--biz-primary); box-shadow: var(--biz-shadow-sm); }
.budget-product-card img { width: 58px; height: 58px; border-radius: 9px; background: var(--biz-surface-soft); object-fit: contain; }
.budget-product-card small, .budget-product-card strong, .budget-product-card b { display: block; }
.budget-product-card small { color: var(--biz-muted); font-size: 0.54rem; }
.budget-product-card strong { margin: 0.1rem 0; font-size: 0.68rem; }
.budget-product-card b { color: var(--biz-primary); font-size: 0.7rem; }
.budget-product-card iconify-icon { color: var(--biz-primary); font-size: 1.25rem; }
.budget-cart { overflow-y: auto; padding: 1rem; }
.budget-cart-items { display: grid; max-height: 260px; overflow-y: auto; gap: 0.45rem; }
.budget-cart-row { display: grid; padding: 0.55rem; align-items: center; grid-template-columns: minmax(0, 1fr) auto 90px; gap: 0.55rem; border: 1px solid var(--biz-border); border-radius: 10px; }
.budget-cart-row strong, .budget-cart-row small { display: block; }
.budget-cart-row strong { font-size: 0.66rem; }
.budget-cart-row small { color: var(--biz-muted); font-size: 0.56rem; }
.budget-cart-row > b { text-align: right; font-size: 0.68rem; }
.budget-fields { margin-top: 0.8rem; }

.topbar-company-logo { width: auto; max-width: 150px; height: 32px; object-fit: contain; }
.company-table-name { display: flex; align-items: center; gap: 0.65rem; }
.company-table-name img { width: 42px; height: 42px; padding: 0.2rem; border: 1px solid var(--biz-border); border-radius: 10px; object-fit: contain; }
.account-balance-card { display: grid; margin-bottom: 1rem; padding: 1rem; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.account-balance-card > div { padding: 0.8rem; border-radius: 11px; background: var(--biz-surface-soft); }
.account-balance-card span, .account-balance-card strong { display: block; }
.account-balance-card span { color: var(--biz-muted); font-size: 0.62rem; }
.account-balance-card strong { margin-top: 0.18rem; font-size: 1.15rem; }
.sales-document-actions { display: grid; margin-top: 1rem; padding: 1rem; gap: 0.7rem; }
.inline-action-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; }
.document-related, .payment-line { display: flex; margin: 0; padding: 0.55rem 0; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--biz-border); }
.document-related span { color: var(--biz-muted); font-size: 0.62rem; }

.document-print { width: min(210mm, 100%); min-height: 280mm; margin: 0 auto; padding: 14mm; background: #fff; color: #171717; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12); }
.document-print-header, .document-company { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.document-print-header { padding-bottom: 1rem; border-bottom: 2px solid #171717; }
.document-print-header img { width: auto; max-width: 150px; height: 52px; object-fit: contain; object-position: left center; }
.document-print-header > div { text-align: right; }
.document-print-header span, .document-print-header strong { display: block; }
.document-print-header span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; }
.document-print-header strong { margin-top: 0.2rem; font-size: 1rem; }
.document-company { padding: 1rem 0; border-bottom: 1px solid #d9d9d9; }
.document-company h1, .document-company p { margin: 0; }
.document-company h1 { font-size: 1.15rem; }
.document-company p { margin-top: 0.2rem; color: #555; font-size: 0.68rem; }
.document-client { display: grid; margin: 1rem 0; padding: 0.8rem; border-radius: 9px; background: #f4f4f4; }
.document-client span, .document-client small { color: #666; font-size: 0.64rem; }
.document-table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 0.68rem; }
.document-table th, .document-table td { padding: 0.55rem; border-bottom: 1px solid #ddd; }
.document-table th { background: #f1f1f1; text-align: left; }
.document-totals, .cash-print-totals { display: grid; margin-left: auto; width: min(390px, 100%); gap: 0.35rem; }
.document-totals > div, .cash-print-totals > div { display: flex; padding: 0.35rem 0; justify-content: space-between; }
.document-grand-total, .cash-print-difference { padding-top: 0.7rem !important; border-top: 2px solid #171717; font-size: 1rem; }
.document-observation { margin-top: 1rem; padding: 0.7rem; border: 1px solid #ddd; border-radius: 8px; font-size: 0.68rem; }
.document-footer { display: flex; margin-top: 2rem; padding-top: 0.7rem; justify-content: space-between; border-top: 1px solid #ddd; color: #666; font-size: 0.58rem; }
.print-actions { display: flex; width: min(210mm, 100%); margin: 0 auto 1rem; justify-content: flex-end; gap: 0.5rem; }
.cash-print-meta { display: grid; margin: 1rem 0; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cash-print-meta > div { padding: 0.65rem; border-radius: 8px; background: #f4f4f4; }
.cash-print-meta span, .cash-print-meta strong { display: block; }
.cash-print-meta span { color: #666; font-size: 0.58rem; }
.cash-print-meta strong { margin-top: 0.12rem; font-size: 0.68rem; }

@media (max-width: 991.98px) {
    .budget-builder { grid-template-columns: 1fr; overflow-y: auto; }
    .budget-catalog, .budget-cart { overflow: visible; }
    .budget-catalog { border-right: 0; border-bottom: 1px solid var(--biz-border); }
    .budget-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .bottom-sheet { width: 100%; max-height: 96vh; border-radius: 18px 18px 0 0; }
    .bottom-sheet-body { padding: 0.85rem; }
    .bottom-sheet-footer { margin-right: -0.85rem; margin-bottom: -0.85rem; margin-left: -0.85rem; padding: 0.8rem; }
    .budget-product-grid { grid-template-columns: 1fr; }
    .budget-cart-row { grid-template-columns: 1fr auto; }
    .budget-cart-row > b { grid-column: 1 / -1; }
    .account-balance-card, .cash-print-meta { grid-template-columns: 1fr; }
    .inline-action-form { grid-template-columns: 1fr; }
}

@media print {
    .print-actions { display: none !important; }
    .document-print { width: 100%; min-height: 0; padding: 0; box-shadow: none; }
}

@media (max-width: 575.98px) {
    .topbar-actions {
        gap: 0.32rem;
    }

    .topbar-actions .icon-button:first-of-type {
        display: none;
    }

    .profile-button {
        padding-left: 0.2rem;
    }

    .page-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading-actions .btn {
        width: 100%;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .activity-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .activity-item b {
        display: none;
    }

    .detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .entity-grid,
    .report-grid,
    .crm-board {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        min-height: 205px;
    }

    .product-card-image {
        height: 90px;
    }

    .module-alert {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .module-alert .btn {
        width: 100%;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }
}

/* Comprobantes imprimibles */
.print-page {
    background: #ecefee;
    color: #111;
}

.print-layout {
    min-height: 100vh;
    padding: 1.5rem;
}

.print-toolbar {
    display: flex;
    max-width: 980px;
    margin: 0 auto 1rem;
    justify-content: space-between;
    gap: 0.7rem;
}

.print-document {
    width: min(100%, 980px);
    min-height: 297mm;
    margin: 0 auto;
    padding: 16mm;
    background: #fff;
    color: #111;
    box-shadow: 0 16px 55px rgba(0, 0, 0, 0.12);
}

.print-ticket {
    width: min(100%, 86mm);
    min-height: auto;
    padding: 7mm;
}

.print-document-header {
    display: flex;
    padding-bottom: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #111;
}

.print-document-header img {
    display: block;
    width: 120px;
    height: 34px;
    margin-bottom: 0.45rem;
    object-fit: contain;
    object-position: left center;
}

.print-document-header span,
.print-document-header strong,
.print-document-number b {
    display: block;
}

.print-document-header > div:first-child > strong { font-size: 0.78rem; }
.print-document-header span { margin-top: 0.16rem; color: #555; font-size: 0.62rem; }
.print-document-number { text-align: right; }
.print-document-number b { font-size: 1.25rem; text-transform: uppercase; }
.print-document-number strong { margin-top: 0.25rem; font-size: 0.82rem; }

.print-client {
    display: grid;
    margin: 1rem 0;
    padding: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    border: 1px solid #cfd5d2;
}

.print-client span,
.print-client strong { display: block; }
.print-client span { color: #666; font-size: 0.58rem; text-transform: uppercase; }
.print-client strong { margin-top: 0.18rem; font-size: 0.67rem; }

.print-table {
    width: 100%;
    border-collapse: collapse;
}

.print-table th,
.print-table td {
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid #dce1df;
    font-size: 0.64rem;
}

.print-table th {
    background: #f3f5f4;
    color: #555;
    font-size: 0.56rem;
    text-transform: uppercase;
}

.print-ticket-detail {
    margin-top: 0.15rem;
}

.print-ticket-detail > span {
    display: block;
    padding: 0.2rem 0 0.4rem;
    border-bottom: 1px solid #dce1df;
    color: #666;
    font-size: 0.58rem;
    text-transform: uppercase;
}

.print-ticket-line {
    padding: 0.55rem 0;
    border-bottom: 1px solid #dce1df;
}

.print-ticket-line-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.print-ticket-line-main strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.66rem;
}

.print-ticket-line-main b {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.68rem;
}

.print-ticket-line-meta {
    display: flex;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    gap: 0.15rem 0.55rem;
    color: #666;
    font-size: 0.56rem;
}

.print-ticket-line-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.print-bottom {
    display: grid;
    margin-top: 1rem;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1rem;
}

.print-payments > span { color: #666; font-size: 0.58rem; text-transform: uppercase; }
.print-payments p { display: flex; margin: 0.35rem 0 0; justify-content: space-between; gap: 0.7rem; font-size: 0.65rem; }
.print-payments p b { margin-left: auto; }
.print-payments small { display: block; margin-top: 0.4rem; color: #666; font-size: 0.58rem; }
.print-totals { margin: 0; }
.print-totals > div { display: flex; padding: 0.35rem 0; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #dce1df; }
.print-totals dt { color: #666; font-size: 0.62rem; font-weight: 500; }
.print-totals dd { margin: 0; font-size: 0.67rem; font-weight: 700; }
.print-totals .print-total { padding-top: 0.6rem; border-bottom: 0; }
.print-totals .print-total dt,
.print-totals .print-total dd { color: #111; font-size: 1rem; font-weight: 800; }

.print-tax-transparency {
    width: min(390px, 100%);
    margin-top: 1.1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #dce1df;
    border-bottom: 1px solid #dce1df;
}

.print-tax-transparency > strong {
    display: block;
    font-size: 0.62rem;
}

.print-tax-transparency p {
    display: flex;
    margin: 0.32rem 0 0;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.6rem;
}

.print-tax-transparency p span { color: #555; }
.print-tax-transparency p b { white-space: nowrap; }

.print-fiscal {
    display: grid;
    margin-top: 1.2rem;
    padding: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    border: 1px solid #111;
}

.print-fiscal span,
.print-fiscal strong { display: block; }
.print-fiscal span { color: #666; font-size: 0.56rem; text-transform: uppercase; }
.print-fiscal strong { margin-top: 0.18rem; font-size: 0.68rem; }
.print-fiscal p { margin: 0; grid-column: 1 / -1; font-size: 0.65rem; text-align: center; }
.print-operation { margin: 1rem 0 0; color: #777; font-size: 0.56rem; text-align: center; }

.print-ticket .print-document-header,
.print-ticket .print-bottom { display: block; }
.print-ticket .print-document-header > div { text-align: center; }
.print-ticket .print-document-header img { margin-right: auto; margin-left: auto; object-position: center; }
.print-ticket .print-document-number { margin-top: 0.7rem; }
.print-ticket .print-client { grid-template-columns: 1fr; }
.print-ticket .print-table th:first-child,
.print-ticket .print-table td:first-child,
.print-ticket .print-table th:nth-child(5),
.print-ticket .print-table td:nth-child(5) { display: none; }
.print-ticket .print-payments { margin-bottom: 1rem; }
.print-ticket .print-tax-transparency { width: 100%; }
.print-ticket .print-fiscal { grid-template-columns: 1fr; }

@media (max-width: 767.98px) {
    .print-layout { padding: 0.5rem; }
    .print-document { min-height: auto; padding: 7mm; }
    .print-client { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .print-bottom { grid-template-columns: 1fr; }
}

@media print {
    @page { margin: 5mm; }
    body.print-page { background: #fff; }
    .no-print { display: none !important; }
    .print-layout { min-height: 0; padding: 0; }
    .print-document { width: 100%; min-height: 0; padding: 0; box-shadow: none; }
    .print-ticket { width: 76mm; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Empresa */
.company-tabs {
    display: flex;
    margin-bottom: 1rem;
    padding: 0.35rem;
    overflow-x: auto;
    gap: 0.35rem;
    border: 1px solid var(--biz-border);
    border-radius: 13px;
    background: var(--biz-surface);
}

.company-tab {
    display: inline-flex;
    min-height: 42px;
    padding: 0 0.9rem;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--biz-muted);
    font-size: 0.74rem;
    font-weight: 750;
    white-space: nowrap;
}

.company-tab.active {
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.company-admin-layout {
    grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.55fr);
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.table-actions form {
    margin: 0;
}

.admin-form label > small,
.muted-copy {
    display: block;
    margin-top: 0.3rem;
    color: var(--biz-muted);
    font-size: 0.64rem;
}

.admin-form label.is-optional > span::after {
    content: " · no requerida";
    color: var(--biz-primary);
}

.input-group-text {
    border-color: var(--biz-border);
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
}

.dollar-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
}

.dollar-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dollar-values > div {
    padding: 1rem;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface-soft);
}

.dollar-values span,
.dollar-values strong {
    display: block;
}

.dollar-values span {
    color: var(--biz-muted);
    font-size: 0.66rem;
}

.dollar-values strong {
    margin-top: 0.3rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.dollar-quote > p {
    margin: 1rem 0 0;
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.bizfera-modal {
    border: 1px solid var(--biz-border);
    border-radius: 16px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
}

.bizfera-modal .modal-header,
.bizfera-modal .modal-footer {
    border-color: var(--biz-border);
}

.module-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.module-access-grid label {
    display: flex;
    min-height: 45px;
    padding: 0.55rem 0.7rem;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--biz-border);
    border-radius: 9px;
    background: var(--biz-surface-soft);
    font-size: 0.7rem;
    cursor: pointer;
}

/* Facturación F10 */
.module-alert-neutral {
    border-color: var(--biz-border);
    background: var(--biz-surface);
    color: var(--bs-body-color);
}

.module-alert code {
    color: inherit;
}

.product-card {
    isolation: isolate;
}

.product-discount {
    position: absolute;
    z-index: 2;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.24rem 0.48rem;
    border-radius: 7px;
    background: var(--biz-primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
}

.product-price {
    display: flex;
    margin-top: auto;
    padding-top: 0.45rem;
    align-items: baseline;
    gap: 0.35rem;
}

.product-price del {
    color: var(--biz-muted);
    font-size: 0.62rem;
}

.product-price b {
    color: var(--bs-body-color);
    font-size: 0.92rem;
}

.ticket-discount {
    color: var(--biz-primary) !important;
    font-weight: 700;
}

.checkout-backdrop {
    position: fixed;
    z-index: 1070;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.checkout-sheet {
    position: fixed;
    z-index: 1080;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(92vh, 920px);
    padding: 0 1.25rem 1.25rem;
    overflow-y: auto;
    border: 1px solid var(--biz-border);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: var(--biz-bg);
    color: var(--bs-body-color);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(105%);
    transition: transform 0.25s ease;
}

.checkout-sheet.open {
    transform: translateY(0);
}

body.checkout-open {
    overflow: hidden;
}

.checkout-handle {
    width: 54px;
    height: 5px;
    margin: 0.65rem auto 0.2rem;
    border-radius: 999px;
    background: var(--biz-border);
    cursor: pointer;
}

.checkout-header {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    padding: 0.8rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--biz-bg);
}

.checkout-header h2 {
    margin: 0.15rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.checkout-body {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.34fr);
    gap: 1rem;
}

.checkout-main {
    display: grid;
    gap: 0.8rem;
}

.checkout-section,
.checkout-summary {
    padding: 1rem;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
}

.checkout-section-title {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: center;
    gap: 0.65rem;
}

.checkout-section-title > span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.checkout-section-title strong,
.checkout-section-title small {
    display: block;
}

.checkout-section-title strong {
    font-size: 0.78rem;
}

.checkout-section-title small {
    margin-top: 0.08rem;
    color: var(--biz-muted);
    font-size: 0.62rem;
}

.segmented-options {
    display: flex;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}

.segmented-options label {
    flex: 1;
}

.segmented-options input {
    position: absolute;
    opacity: 0;
}

.segmented-options span {
    display: flex;
    min-height: 42px;
    padding: 0 0.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--biz-border);
    border-radius: 9px;
    color: var(--biz-muted);
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
}

.segmented-options input:checked + span {
    border-color: var(--biz-primary);
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.dollar-checkout {
    display: grid;
    margin-bottom: 0.6rem;
    padding: 0.7rem;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.7rem;
    border-radius: 10px;
    background: var(--biz-surface-soft);
}

.dollar-checkout span,
.dollar-checkout b {
    display: block;
}

.dollar-checkout span {
    color: var(--biz-muted);
    font-size: 0.64rem;
}

.dollar-checkout b {
    margin-top: 0.12rem;
    color: var(--bs-body-color);
}

.checkout-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.checkout-two-columns label > span,
.payment-options label > span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--biz-muted);
    font-size: 0.64rem;
    font-weight: 750;
}

.checkout-select-button {
    display: grid;
    min-height: 48px;
    padding: 0.45rem 0.65rem;
    align-items: center;
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    gap: 0.45rem;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    cursor: pointer;
}

.checkout-select-button strong,
.checkout-select-button small {
    display: block;
}

.checkout-select-button strong {
    font-size: 0.7rem;
}

.checkout-select-button small {
    margin-top: 0.08rem;
    color: var(--biz-muted);
    font-size: 0.6rem;
}

.client-picker-panel {
    margin-top: 0.65rem;
    padding: 0.65rem;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface-soft);
}

.client-picker-panel .table-search {
    max-width: none;
    background: var(--biz-surface);
}

.client-results {
    display: grid;
    max-height: 190px;
    margin-top: 0.55rem;
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.client-results button {
    display: flex;
    min-height: 52px;
    padding: 0.5rem 0.65rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid var(--biz-border);
    border-radius: 9px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    text-align: left;
}

.client-results strong,
.client-results small {
    display: block;
}

.client-results strong { font-size: 0.68rem; }
.client-results small { margin-top: 0.08rem; color: var(--biz-muted); font-size: 0.58rem; }
.client-results iconify-icon { color: var(--biz-primary); opacity: 0; }
.client-results button:hover { border-color: var(--biz-primary); }
.client-results button:hover iconify-icon { opacity: 1; }

.adjustment-controls {
    display: grid;
    grid-template-columns: 155px 155px minmax(120px, 1fr) auto;
    gap: 0.55rem;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    gap: 0.5rem;
}

.payment-method-grid button {
    display: flex;
    min-height: 78px;
    padding: 0.55rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    text-align: center;
    flex-direction: column;
}

.payment-method-grid button iconify-icon { font-size: 1.55rem; }
.payment-method-grid button span { font-size: 0.61rem; font-weight: 800; }
.payment-method-grid button:hover,
.payment-method-grid button.active { border-color: var(--biz-primary); background: var(--biz-primary-soft); color: var(--biz-primary); }

.payment-options,
.multiple-payments {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--biz-border);
}

.payment-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.payment-brand-grid button {
    min-height: 58px;
    padding: 0.5rem;
    border: 1px solid var(--biz-border);
    border-radius: 9px;
    background: var(--biz-surface-soft);
    color: var(--bs-body-color);
}

.payment-brand-grid button strong,
.payment-brand-grid button small { display: block; }
.payment-brand-grid button strong { font-size: 0.68rem; }
.payment-brand-grid button small { margin-top: 0.1rem; color: var(--biz-muted); font-size: 0.58rem; text-transform: uppercase; }
.payment-brand-grid button.active { border-color: var(--biz-primary); color: var(--biz-primary); }
.payment-options label { display: block; margin-top: 0.6rem; }

.multiple-payments {
    display: grid;
    gap: 0.5rem;
}

.multiple-payment-row {
    display: grid;
    align-items: center;
    grid-template-columns: 28px 1.1fr 1fr 1fr 0.7fr 1fr;
    gap: 0.45rem;
}

.multiple-payment-row > span {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 0.65rem;
    font-weight: 800;
}

.checkout-summary {
    position: sticky;
    top: 82px;
}

.checkout-summary h3 {
    margin: 0.2rem 0;
    font-size: 0.85rem;
}

.checkout-grand-total {
    display: block;
    margin: 0.6rem 0;
    color: var(--bs-body-color);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.checkout-summary dl { margin: 0.6rem 0; }
.checkout-summary dl > div { display: flex; padding: 0.42rem 0; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--biz-border); }
.checkout-summary dt { color: var(--biz-muted); font-size: 0.66rem; font-weight: 600; }
.checkout-summary dd { margin: 0; font-size: 0.68rem; font-weight: 750; }
.checkout-validation { min-height: 42px; margin: 0.75rem 0; padding: 0.6rem; border-radius: 9px; background: #fff3da; color: #916000; font-size: 0.64rem; }
.checkout-validation.ready { background: var(--biz-primary-soft); color: var(--biz-primary); }
html[data-bs-theme="dark"] .checkout-validation:not(.ready) { background: #2b2415; color: #edc56f; }
.checkout-action { display: flex; width: 100%; margin-top: 0.5rem; align-items: center; justify-content: center; gap: 0.5rem; }
.checkout-action span { min-width: 0; }
.checkout-action kbd { margin-left: auto; padding: 0.12rem 0.32rem; border: 1px solid var(--biz-border); border-radius: 5px; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: 0.55rem; }
.btn-primary.checkout-action kbd { border-color: rgba(255, 255, 255, 0.32); background: rgba(0, 0, 0, 0.12); color: #fff; }

html[data-bs-theme="dark"] .product-card-image { background: #181818; }
html[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(1); }

@media (max-width: 1199.98px) {
    .company-admin-layout,
    .checkout-body { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .payment-method-grid { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
    .multiple-payment-row { grid-template-columns: 28px 1fr 1fr; }
    .multiple-payment-row [data-multiple-amount],
    .multiple-payment-row [data-multiple-reference] { grid-column: span 1; }
}

@media (max-width: 767.98px) {
    .dollar-layout,
    .checkout-two-columns { grid-template-columns: 1fr; }
    .module-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payment-method-grid { grid-template-columns: repeat(3, minmax(85px, 1fr)); }
    .payment-brand-grid,
    .client-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adjustment-controls { grid-template-columns: 1fr 1fr; }
    .checkout-sheet { max-height: 96vh; padding-right: 0.75rem; padding-left: 0.75rem; border-radius: 16px 16px 0 0; }
}

@media (max-width: 575.98px) {
    .dollar-values { grid-template-columns: 1fr; }
    .module-access-grid { grid-template-columns: 1fr; }
    .payment-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .multiple-payment-row { grid-template-columns: 26px 1fr; }
    .multiple-payment-row > :not(span) { grid-column: 2; }
    .dollar-checkout { grid-template-columns: 1fr auto; }
    .dollar-checkout .btn { grid-column: 1 / -1; }
}

.cash-required {
    display: flex;
    min-height: 430px;
    padding: clamp(2rem, 6vw, 5rem);
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.cash-required-icon,
.welcome-panel-icon,
.cash-current-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 1.8rem;
}

.cash-required h2 {
    max-width: 620px;
    margin: 0.45rem 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: -0.035em;
}

.cash-required p {
    max-width: 590px;
    margin: 0 0 1.25rem;
    color: var(--biz-muted);
}

.cash-current {
    display: grid;
    margin-bottom: 1rem;
    padding: 1.25rem;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
}

.cash-current-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 15px;
    font-size: 1.45rem;
}

.cash-current h2,
.cash-current p {
    margin: 0;
}

.cash-current h2 {
    margin-top: 0.16rem;
    font-size: 1rem;
}

.cash-current p,
.cash-current-balance span {
    color: var(--biz-muted);
    font-size: 0.68rem;
}

.cash-current-balance {
    text-align: right;
}

.cash-current-balance span,
.cash-current-balance strong {
    display: block;
}

.cash-current-balance strong {
    margin-top: 0.2rem;
    color: var(--biz-primary);
    font-size: 1.3rem;
}

.product-form-panel {
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.product-form-panel .admin-form {
    max-width: none;
}

.is-disabled {
    opacity: 0.5;
}

.welcome-panel {
    display: grid;
    min-height: 260px;
    padding: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
}

.welcome-panel-icon {
    width: 76px;
    height: 76px;
    margin: 0;
    font-size: 2rem;
}

.welcome-panel h2 {
    margin: 0.3rem 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.welcome-panel p {
    max-width: 650px;
    margin: 0;
    color: var(--biz-muted);
}

.module-statistics {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .cash-current,
    .welcome-panel {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cash-current-balance {
        padding-top: 0.75rem;
        border-top: 1px solid var(--biz-border);
        text-align: left;
    }
}

/* v0.6.1 · ABM compactos, importes argentinos y cierre POS */
.page-heading h1 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
.page-heading-buttons { display: flex; align-items: center; gap: 0.65rem; }
.admin-layout,
.company-admin-layout { grid-template-columns: minmax(0, 1fr); }
.admin-layout > .admin-table-card,
.company-admin-layout > .admin-table-card,
.admin-table-full {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: none;
}
.config-create-button { align-self: center; white-space: nowrap; }
.config-sheet-backdrop { position: fixed; z-index: 1085; inset: 0; background: rgba(0, 0, 0, 0.58); backdrop-filter: blur(3px); }
.config-sheet {
    position: fixed;
    z-index: 1090;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(1080px, calc(100% - 2rem));
    max-height: 88vh;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: var(--biz-surface);
    box-shadow: 0 -26px 72px rgba(0, 0, 0, 0.28);
    transform: translateY(108%);
    transition: transform 0.25s ease;
    flex-direction: column;
}
.config-sheet::before { width: 58px; height: 5px; margin: 0.6rem auto 0; border-radius: 99px; background: var(--biz-border-strong); content: ""; }
.config-sheet.open { transform: translateY(0); }
.config-sheet[aria-hidden="true"] { pointer-events: none; }
.config-sheet .panel-heading { margin: 0; padding: 0.65rem 1rem 0.8rem; border-bottom: 1px solid var(--biz-border); }
.config-sheet .panel-heading h2 { margin: 0.1rem 0 0; font-size: 1.05rem; }
.config-sheet-close { margin-left: auto; }
.config-sheet .admin-form { overflow-y: auto; padding: 0.9rem 1rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 0.75rem; }
.config-sheet .admin-form > label,
.config-sheet .admin-form > fieldset,
.config-sheet .admin-form > .secure-note,
.config-sheet .admin-form > button[type="submit"] { grid-column: 1 / -1; }
.config-sheet .admin-form-row { gap: 0.75rem; }
.config-sheet .admin-form .form-control,
.config-sheet .admin-form .form-select { min-height: 40px; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.config-sheet .admin-form textarea.form-control { min-height: 70px; }
.config-sheet .admin-form > button[type="submit"] { position: sticky; bottom: -1rem; min-height: 44px; margin: 0.25rem -1rem -1rem; border-radius: 0; }
.config-sheet-open { overflow: hidden; }
.module-access-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bottom-sheet { max-height: 90vh; }
.bottom-sheet-body { padding: 0.8rem 1rem; }
.bottom-sheet-body .form-section { margin: 0; padding: 0.7rem 0.8rem; border: 0; border-radius: 0; background: transparent; }
.bottom-sheet-body .form-section + .form-section { border-top: 1px solid var(--biz-border); }
.bottom-sheet-body .form-section-title { margin-bottom: 0.55rem; }
.bottom-sheet-body .form-section-title > span { width: 25px; height: 25px; border-radius: 7px; }
.bottom-sheet-body .admin-form-row { gap: 0.6rem; }
.bottom-sheet-body .form-control,
.bottom-sheet-body .form-select { min-height: 40px; }
.bottom-sheet-body textarea.form-control { min-height: 64px; }
.product-sheet { width: min(1240px, calc(100% - 1rem)); }
.product-sheet .bottom-sheet-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.product-sheet .form-section + .form-section { border-top: 0; border-left: 1px solid var(--biz-border); }
.product-sheet .bottom-sheet-footer { grid-column: 1 / -1; }
.stock-movement-sheet { width: min(940px, calc(100% - 1rem)); }
.stock-movement-sheet .bottom-sheet-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stock-movement-sheet .form-section + .form-section { border-top: 0; border-left: 1px solid var(--biz-border); }
.stock-movement-sheet .bottom-sheet-footer { grid-column: 1 / -1; }

.checkout-sheet { max-height: min(88vh, 760px); padding: 0 1rem 1rem; background: var(--biz-bg); }
.checkout-quickbar { display: flex; margin-bottom: 0.7rem; padding: 0.55rem; align-items: center; gap: 0.55rem; border: 1px solid var(--biz-border); border-radius: 12px; background: var(--biz-surface); }
.compact-segments { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--biz-surface-soft); }
.compact-segments label { margin: 0; }
.compact-segments input { position: absolute; opacity: 0; pointer-events: none; }
.compact-segments span { display: flex; min-height: 32px; padding: 0 0.7rem; align-items: center; border: 1px solid transparent; border-radius: 7px; color: var(--biz-muted); font-size: 0.66rem; font-weight: 800; cursor: pointer; }
.compact-segments input:checked + span { border-color: var(--biz-primary); background: var(--biz-primary-soft); color: var(--biz-primary); }
.checkout-seller-compact { display: flex; margin-left: auto; align-items: center; gap: 0.5rem; }
.checkout-seller-compact > span { color: var(--biz-muted); font-size: 0.62rem; font-weight: 700; }
.checkout-seller-compact .form-select { width: 210px; min-height: 38px; font-size: 0.72rem; }
.compact-dollar { display: flex; margin: 0; padding: 0.25rem 0.35rem 0.25rem 0.55rem; align-items: center; gap: 0.45rem; }
.compact-dollar strong { font-size: 0.72rem; }
.checkout-body { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
.checkout-main { min-height: 360px; }
.checkout-workspace { min-height: 360px; padding: 0.9rem; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface); }
.checkout-workspace-heading { display: flex; margin-bottom: 0.75rem; align-items: center; justify-content: space-between; gap: 0.75rem; }
.checkout-workspace-heading strong,
.checkout-workspace-heading small { display: block; }
.checkout-workspace-heading strong { margin-top: 0.1rem; font-size: 0.88rem; }
.checkout-workspace-heading small { color: var(--biz-muted); font-size: 0.62rem; }
.payment-method-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 0.55rem; }
.payment-method-grid button { position: relative; min-height: 78px; padding: 0.6rem; }
.payment-method-grid button > kbd { position: absolute; top: 0.35rem; right: 0.4rem; min-width: 18px; padding: 0.1rem 0.25rem; border: 1px solid var(--biz-border); border-radius: 4px; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: 0.54rem; }
.payment-method-grid button iconify-icon { font-size: 1.35rem; }
.payment-options,
.multiple-payments { margin-top: 0.7rem; }
.client-current { display: flex; margin-bottom: 0.7rem; padding: 0.65rem; align-items: center; gap: 0.6rem; border-radius: 10px; background: var(--biz-primary-soft); }
.client-current iconify-icon { color: var(--biz-primary); font-size: 1.35rem; }
.client-current strong,
.client-current small { display: block; }
.client-current small { color: var(--biz-muted); font-size: 0.62rem; }
.client-picker-panel { padding: 0.65rem; }
.client-results { max-height: 220px; }
.checkout-summary { padding: 0.85rem; }
.checkout-summary h3 { margin: 0.1rem 0; font-size: 0.75rem; }
.checkout-grand-total { font-size: 1.7rem; }
.checkout-secondary-actions { display: grid; margin-top: 0.55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.checkout-secondary-actions .btn { display: grid; padding: 0.5rem; align-items: center; grid-template-columns: auto 1fr auto; gap: 0.4rem; text-align: left; }
.checkout-secondary-actions b,
.checkout-secondary-actions small { display: block; line-height: 1.2; }
.checkout-secondary-actions b { font-size: 0.64rem; }
.checkout-secondary-actions small { overflow: hidden; max-width: 86px; color: var(--biz-muted); font-size: 0.55rem; text-overflow: ellipsis; white-space: nowrap; }
.checkout-secondary-actions kbd { color: var(--biz-muted); font-size: 0.55rem; }
.adjustment-controls { align-items: center; }
.adjustment-controls .form-control,
.adjustment-controls .form-select { min-height: 42px; }
.cash-summary-table td { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.sales-document-actions { padding: 0.8rem 1rem; }
.sales-actions-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.sales-actions-heading strong { font-size: 0.85rem; }

@media (max-width: 991.98px) {
    .product-sheet .bottom-sheet-body,
    .stock-movement-sheet .bottom-sheet-body { display: block; }
    .product-sheet .form-section + .form-section,
    .stock-movement-sheet .form-section + .form-section { border-top: 1px solid var(--biz-border); border-left: 0; }
    .checkout-quickbar { flex-wrap: wrap; }
    .checkout-seller-compact { width: 100%; margin-left: 0; }
    .checkout-seller-compact .form-select { width: auto; flex: 1; }
    .payment-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .page-heading-buttons { width: 100%; align-items: stretch; flex-direction: column; }
    .config-create-button { width: 100%; }
    .config-sheet { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
    .config-sheet .admin-form { display: block; }
    .config-sheet .admin-form > * { margin-bottom: 0.65rem; }
    .module-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-sheet { max-height: 96vh; }
    .checkout-body { display: block; }
    .checkout-summary { margin-top: 0.65rem; }
    .checkout-main,
    .checkout-workspace { min-height: 0; }
}

/* v0.7 · sheets completos, formularios legibles y errores contextuales */
.config-sheet,
.bottom-sheet,
.checkout-sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.config-sheet { max-width: none; }
.config-sheet::before,
.bottom-sheet-handle,
.checkout-handle { flex: 0 0 auto; }

.config-sheet .panel-heading,
.bottom-sheet-header,
.checkout-header {
    min-height: 78px;
    padding: 1.15rem 2rem;
    align-items: center;
    background: var(--biz-surface);
}

.config-sheet .panel-heading h2,
.bottom-sheet-header h2,
.checkout-header h2 { font-size: 1.25rem; }

.config-sheet .admin-form {
    display: grid;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 2rem;
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.config-sheet .admin-form > label,
.config-sheet .admin-form > fieldset,
.config-sheet .admin-form > .admin-form-row,
.config-sheet .admin-form > .secure-note,
.config-sheet .admin-form > .sheet-form-feedback,
.config-sheet .admin-form > button[type="submit"] { grid-column: 1 / -1; }

.config-sheet .admin-form > button[type="submit"] {
    position: sticky;
    bottom: 0;
    min-height: 48px;
    margin: 1rem 0 0;
    border-radius: 10px;
}

.bottom-sheet-body {
    width: 100%;
    flex: 1 1 auto;
    padding: 2rem;
    overflow-y: auto;
}

.bottom-sheet-body .form-section {
    padding: 1.35rem;
    border: 1px solid var(--biz-border);
    border-radius: 16px;
    background: var(--biz-surface-soft);
}

.bottom-sheet-body .form-section + .form-section { border: 1px solid var(--biz-border); }

.bottom-sheet-footer {
    position: sticky;
    bottom: -2rem;
    margin: 0 -2rem -2rem;
    padding: 1rem 2rem;
}

.product-sheet .bottom-sheet-body {
    display: grid;
    width: min(100%, 1320px);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.product-sheet .form-section:last-of-type,
.product-sheet .bottom-sheet-footer,
.product-sheet .sheet-form-feedback { grid-column: 1 / -1; }

.product-sheet .form-section + .form-section,
.stock-movement-sheet .form-section + .form-section { border-left: 1px solid var(--biz-border); }

.product-price-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stock-movement-sheet .bottom-sheet-body {
    display: grid;
    width: min(100%, 1120px);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.stock-movement-sheet .bottom-sheet-footer,
.stock-movement-sheet .sheet-form-feedback { grid-column: 1 / -1; }

.budget-sheet {
    width: 100%;
    max-height: none;
}

.budget-builder {
    min-height: 0;
    flex: 1 1 auto;
}

.checkout-sheet {
    max-height: none;
    padding: 0 2rem 2rem;
}

.checkout-body {
    min-height: calc(100dvh - 180px);
    align-items: stretch;
}

.checkout-main,
.checkout-workspace,
.checkout-summary { min-height: 0; }

.sheet-form-feedback {
    display: flex;
    width: 100%;
    padding: 0.9rem 1rem;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid;
    border-radius: 12px;
    font-size: 0.72rem;
}

.sheet-form-feedback iconify-icon {
    flex: 0 0 auto;
    margin-top: 0.05rem;
    font-size: 1.25rem;
}

.sheet-form-feedback strong,
.sheet-form-feedback span { display: block; }
.sheet-form-feedback span { margin-top: 0.12rem; }

.sheet-form-feedback-error {
    border-color: rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.08);
    color: #bb2534;
}

.sheet-form-feedback-success {
    border-color: rgba(10, 163, 118, 0.35);
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.price-assignment-form .sheet-search { width: 100%; }
.price-assignment-list {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.75rem;
}

.price-assignment-row {
    display: grid;
    padding: 1rem;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
    gap: 1rem;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface-soft);
}

.price-assignment-row strong,
.price-assignment-row small { display: block; }
.price-assignment-row small { margin-top: 0.2rem; color: var(--biz-muted); }

@media (max-width: 991.98px) {
    .product-sheet .bottom-sheet-body,
    .stock-movement-sheet .bottom-sheet-body {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-sheet .form-section:last-of-type,
    .product-sheet .bottom-sheet-footer,
    .product-sheet .sheet-form-feedback,
    .stock-movement-sheet .bottom-sheet-footer,
    .stock-movement-sheet .sheet-form-feedback { grid-column: 1; }

    .product-price-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .config-sheet,
    .bottom-sheet,
    .checkout-sheet {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .config-sheet .panel-heading,
    .bottom-sheet-header,
    .checkout-header {
        min-height: 68px;
        padding: 0.9rem 1rem;
    }

    .config-sheet .admin-form,
    .bottom-sheet-body {
        display: block;
        padding: 1rem;
    }

    .config-sheet .admin-form > *,
    .bottom-sheet-body > * { margin-bottom: 0.85rem; }

    .bottom-sheet-footer {
        margin: 0 -1rem -1rem;
        padding: 0.85rem 1rem;
    }

    .product-price-fields,
    .price-assignment-row { grid-template-columns: 1fr; }

    .checkout-sheet { padding: 0 1rem 1rem; }
}

/* v0.7.1 · formularios de sheet simples, verticales y sin bloques */
.config-sheet .admin-form,
.bottom-sheet .bottom-sheet-body.admin-form {
    display: flex !important;
    width: min(100%, 880px);
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
}

.config-sheet .admin-form-row,
.bottom-sheet .admin-form-row,
.product-price-fields {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
}

.config-sheet .admin-form > *,
.bottom-sheet .bottom-sheet-body.admin-form > *,
.config-sheet .admin-form-row > *,
.bottom-sheet .admin-form-row > * {
    width: 100%;
    min-width: 0;
}

.bottom-sheet-body .form-section { display: contents; }
.bottom-sheet-body .form-section-title { display: none; }

.config-sheet .admin-form label,
.bottom-sheet .bottom-sheet-body.admin-form label,
.config-sheet .admin-form fieldset,
.bottom-sheet .bottom-sheet-body.admin-form fieldset { margin: 0; }

.config-sheet .admin-form fieldset,
.bottom-sheet .bottom-sheet-body.admin-form fieldset {
    padding: 0;
    border: 0;
}

.config-sheet .admin-form legend,
.bottom-sheet .bottom-sheet-body.admin-form legend {
    margin: 0 0 0.45rem;
    color: var(--biz-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.config-sheet .admin-check,
.bottom-sheet .admin-check {
    min-height: auto;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.config-sheet .module-access-grid,
.bottom-sheet .module-access-grid,
.price-assignment-list,
.price-assignment-row {
    display: flex;
    flex-direction: column;
}

.price-assignment-row {
    padding: 0.9rem 0;
    gap: 0.65rem;
    border: 0;
    border-bottom: 1px solid var(--biz-border);
    border-radius: 0;
    background: transparent;
}

.config-sheet .admin-form > button[type="submit"] {
    position: static;
    min-height: 46px;
    margin: 0.5rem 0 0;
    border-radius: 10px;
}

.bottom-sheet-footer {
    position: static;
    display: flex;
    width: 100% !important;
    min-height: 70px;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    border-top: 1px solid var(--biz-border);
    background: var(--biz-surface);
}

.bottom-sheet-footer .btn {
    width: auto;
    min-height: 44px;
    padding: 0.65rem 1rem;
}

.sheet-form-feedback { order: -1; }

@media (max-width: 575.98px) {
    .config-sheet .admin-form,
    .bottom-sheet .bottom-sheet-body.admin-form {
        padding: 1rem;
    }

    .bottom-sheet-footer {
        margin: 0.5rem 0 0;
        padding: 0.75rem 0 0;
    }

    .bottom-sheet-footer .btn { flex: 1 1 0; }
}


/* Formularios en sheets: densidad clara sin apilar controles cortos */
.sheet-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0.9rem 1rem;
}
.sheet-form-grid > .field-span-2 { grid-column: span 2; }
.sheet-form-grid > .field-span-all,
.sheet-form-grid > .bottom-sheet-footer,
.sheet-form-grid > [data-sheet-feedback] { grid-column: 1 / -1; }
.sheet-form-grid .admin-check { min-height: 74px; }
.sheet-form-grid .form-control,
.sheet-form-grid .form-select { width: 100%; }

.print-arca-qr {
    display: grid;
    margin-top: 1rem;
    padding-top: 0.9rem;
    justify-items: center;
    gap: 0.35rem;
    border-top: 1px solid #dce1df;
}
.print-arca-qr [data-arca-qr] { width: 180px; height: 180px; }
.print-arca-qr canvas,
.print-arca-qr img { display: block; width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.print-arca-qr small { max-width: 360px; color: #555; font-size: 0.56rem; text-align: center; }
.print-ticket .print-arca-qr [data-arca-qr] { width: 155px; height: 155px; }

@media (max-width: 991.98px) {
    .sheet-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
    .sheet-form-grid { grid-template-columns: 1fr; }
    .sheet-form-grid > .field-span-2 { grid-column: auto; }
}

.company-price-select { width: min(260px, 100%); }
.panel-form-footer { display: flex; padding: 1rem; justify-content: flex-end; gap: 0.65rem; border-top: 1px solid var(--biz-border); }
.toolbar-note { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--biz-muted); font-size: 0.68rem; }

.purchase-sheet { width: min(1440px, calc(100% - 1rem)); max-height: 96vh; }
.purchase-builder { display: grid; overflow: hidden; padding: 0; grid-template-columns: minmax(0, 1.1fr) minmax(470px, .9fr); }
.purchase-catalog { overflow-y: auto; padding: 1rem; border-right: 1px solid var(--biz-border); }
.purchase-cart { overflow-y: auto; padding: 1rem; }
.purchase-fields { margin-top: 1rem; }
.purchase-cart-row { display: grid; padding: .7rem 0; align-items: end; grid-template-columns: minmax(150px,1fr) 105px 135px auto 38px; gap: .55rem; border-bottom: 1px solid var(--biz-border); }
.purchase-cart-row label > span { display: block; margin-bottom: .25rem; color: var(--biz-muted); font-size: .58rem; }
.purchase-cart-row small { display: block; color: var(--biz-muted); font-size: .6rem; }
@media (max-width: 991.98px) { .purchase-builder { grid-template-columns: 1fr; } .purchase-catalog { max-height: 42vh; border-right: 0; border-bottom: 1px solid var(--biz-border); } }
@media (max-width: 640px) { .purchase-cart-row { grid-template-columns: 1fr 1fr; } .purchase-cart-row > div { grid-column: 1 / -1; } }

/* =========================================================
   Bizfera v0.8.0 · flujo comercial y tesorería
========================================================= */
.table-secondary-text,
.table-subtext { display: block; margin-top: 0.12rem; color: var(--biz-muted); font-size: 0.58rem; font-weight: 500; }
.table-row-actions { display: flex; align-items: center; gap: 0.3rem; }
.table-row-actions-end { justify-content: flex-end; }
.inline-table-form { display: inline-flex; margin: 0; }
.table-action-success { color: var(--biz-primary); }
.table-action-danger { color: #d84e5b; }
.table-action-success:hover { background: var(--biz-primary-soft); color: var(--biz-primary); }
.table-action-danger:hover { background: #fff0f1; color: #c43d4c; }
html[data-bs-theme="dark"] .table-action-danger:hover { background: #432126; }

.status-aceptado,
.status-convertido,
.status-confirmado { background: var(--biz-primary-soft); color: var(--biz-primary); }
.status-enviado,
.status-parcial { background: #eaf2ff; color: #3d6fab; }
.status-borrador { background: var(--biz-surface-soft); color: var(--biz-muted); }
.status-vencido { background: #fff0f1; color: #c64f5a; }
html[data-bs-theme="dark"] .status-enviado,
html[data-bs-theme="dark"] .status-parcial { background: #1d3048; color: #91bcf4; }
html[data-bs-theme="dark"] .status-vencido { background: #432126; }

.order-detail-sheet { width: min(980px, calc(100% - 1rem)); }
.order-summary-grid { display: grid; margin-bottom: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.order-summary-grid > div { padding: 0.85rem; border: 1px solid var(--biz-border); border-radius: 12px; background: var(--biz-surface-soft); }
.order-summary-grid span,
.order-summary-grid strong { display: block; }
.order-summary-grid span { color: var(--biz-muted); font-size: 0.58rem; }
.order-summary-grid strong { margin-top: 0.2rem; font-size: 0.76rem; }
.order-detail-footer { display: flex; margin-top: 1rem; justify-content: flex-end; }

.treasury-filters { display: grid; margin-bottom: 1rem; padding: 1rem; align-items: end; grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; gap: 0.7rem; }
.treasury-filters label { display: grid; gap: 0.3rem; }
.treasury-filters label > span { color: var(--biz-muted); font-size: 0.6rem; font-weight: 700; }
.treasury-filter-actions { display: flex; gap: 0.45rem; }
.treasury-metrics { margin-bottom: 1rem; }
.treasury-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: 1rem; }
.treasury-method-summary { position: sticky; top: 88px; padding: 1rem; }
.treasury-method-row { display: flex; padding: 0.7rem 0; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--biz-border); }
.treasury-method-row span,
.treasury-method-row small { display: block; }
.treasury-method-row span { font-size: 0.68rem; font-weight: 700; }
.treasury-method-row small { margin-top: 0.12rem; color: var(--biz-muted); font-size: 0.54rem; font-weight: 500; }
.treasury-method-row strong { font-size: 0.72rem; white-space: nowrap; }

.module-alert-success { border-color: rgba(10, 163, 118, 0.25); background: var(--biz-primary-soft); }
.module-alert-warning { border-color: rgba(206, 143, 24, 0.25); background: #fff7e7; }
html[data-bs-theme="dark"] .module-alert-warning { background: #342a17; }

@media (max-width: 1199.98px) {
    .treasury-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .treasury-filter-actions { grid-column: span 3; justify-content: flex-end; }
}

@media (max-width: 991.98px) {
    .treasury-layout { grid-template-columns: 1fr; }
    .treasury-method-summary { position: static; }
    .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .treasury-filters { grid-template-columns: 1fr 1fr; }
    .treasury-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .treasury-filters { grid-template-columns: 1fr; }
    .treasury-filter-actions { grid-column: auto; }
    .treasury-filter-actions .btn { flex: 1; }
    .order-summary-grid { grid-template-columns: 1fr; }
}

/* v0.8.0 · los formularios breves vuelven a aprovechar el ancho del sheet */
.config-sheet .admin-form.sheet-form-grid,
.bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid {
    display: grid !important;
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 0.9rem 1rem;
}

.config-sheet .admin-form.sheet-form-grid > *,
.bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid > * {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.config-sheet .admin-form.sheet-form-grid > .field-span-2,
.bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid > .field-span-2 {
    grid-column: span 2;
}

.config-sheet .admin-form.sheet-form-grid > .field-span-all,
.config-sheet .admin-form.sheet-form-grid > .bottom-sheet-footer,
.config-sheet .admin-form.sheet-form-grid > [data-sheet-feedback],
.bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid > .field-span-all,
.bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid > .bottom-sheet-footer,
.bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid > [data-sheet-feedback] {
    grid-column: 1 / -1;
}

.status-registrada,
.status-pagada,
.status-entregado {
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

@media (max-width: 991.98px) {
    .config-sheet .admin-form.sheet-form-grid,
    .bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639.98px) {
    .config-sheet .admin-form.sheet-form-grid,
    .bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid {
        display: grid !important;
        padding: 1rem;
        grid-template-columns: 1fr;
    }

    .config-sheet .admin-form.sheet-form-grid > .field-span-2,
    .bottom-sheet .bottom-sheet-body.admin-form.sheet-form-grid > .field-span-2 {
        grid-column: auto;
    }
}

/* Configuraciones: selects y campos cortos en dos columnas, textos largos a todo el ancho */
.config-sheet .admin-form:not(.sheet-form-grid) {
    display: grid !important;
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.9rem 1rem;
}

.config-sheet .admin-form:not(.sheet-form-grid) > label {
    width: 100%;
    min-width: 0;
    margin: 0;
    grid-column: auto;
}

.config-sheet .admin-form:not(.sheet-form-grid) > .admin-form-row,
.config-sheet .admin-form:not(.sheet-form-grid) > fieldset,
.config-sheet .admin-form:not(.sheet-form-grid) > .secure-note,
.config-sheet .admin-form:not(.sheet-form-grid) > .sheet-form-feedback,
.config-sheet .admin-form:not(.sheet-form-grid) > button[type="submit"],
.config-sheet .admin-form:not(.sheet-form-grid) > label.admin-check,
.config-sheet .admin-form:not(.sheet-form-grid) > label:has(textarea),
.config-sheet .admin-form:not(.sheet-form-grid) > label:has(input[type="file"]) {
    grid-column: 1 / -1;
}

.config-sheet .admin-form:not(.sheet-form-grid) > .admin-form-row {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.config-sheet .admin-form:not(.sheet-form-grid) > .admin-form-row > * {
    width: 100%;
    min-width: 0;
}

.stock-movement-sheet .bottom-sheet-body.admin-form {
    display: grid !important;
    width: min(100%, 920px);
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.9rem 1rem;
}

.stock-movement-sheet .bottom-sheet-body.admin-form > * {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.stock-movement-sheet .bottom-sheet-body.admin-form > label:has(textarea),
.stock-movement-sheet .bottom-sheet-body.admin-form > .bottom-sheet-footer,
.stock-movement-sheet .bottom-sheet-body.admin-form > [data-sheet-feedback] {
    grid-column: 1 / -1;
}

@media (max-width: 639.98px) {
    .config-sheet .admin-form:not(.sheet-form-grid),
    .stock-movement-sheet .bottom-sheet-body.admin-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .config-sheet .admin-form:not(.sheet-form-grid) > .admin-form-row {
        grid-template-columns: 1fr;
    }
}

.purchase-fields .admin-form-row {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.purchase-fields .admin-form-row > * { width: 100%; min-width: 0; }
@media (max-width: 639.98px) {
    .purchase-fields .admin-form-row { grid-template-columns: 1fr; }
}

/* v0.8.1 · CRM, reportes y etiquetas */
.crm-filters,
.report-filter-panel {
    display: grid;
    margin-bottom: 1rem;
    padding: 1rem;
    align-items: end;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

.crm-filters label,
.report-filter-panel label {
    min-width: 0;
}

.crm-filters label > span,
.report-filter-panel label > span {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--biz-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.crm-filters .field-span-2,
.report-filter-panel .report-search-field {
    grid-column: span 2;
}

.report-filter-panel .report-selector {
    grid-column: span 2;
}

.report-filter-panel .treasury-filter-actions,
.crm-filters .treasury-filter-actions {
    grid-column: 1 / -1;
}

.crm-workspace {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 1rem;
}

.crm-activity-panel {
    min-width: 0;
}

.crm-opportunities-panel {
    position: sticky;
    top: calc(var(--biz-topbar-height) + 1rem);
    min-width: 0;
}

.crm-opportunities-panel > .panel-heading {
    margin-bottom: 0.7rem;
}

.crm-opportunity-list {
    display: grid;
    max-height: calc(100vh - var(--biz-topbar-height) - 7rem);
    padding-right: 0.2rem;
    overflow-y: auto;
    gap: 0.75rem;
}

.crm-opportunity-list .crm-card {
    padding: 1rem;
}

.crm-card-actions {
    display: flex;
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--biz-border);
}

.crm-card-actions small {
    color: var(--biz-muted);
    font-size: 0.62rem;
}

.crm-activity-title {
    display: block;
    margin-top: 0.32rem;
}

.crm-row-overdue {
    background: color-mix(in srgb, var(--bs-danger) 6%, transparent);
}

.crm-sheet {
    z-index: 1085;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.table-actions form {
    margin: 0;
}

.report-results .table-responsive {
    max-height: 67vh;
}

.report-results thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--biz-surface-soft);
}

.label-selection-panel .label-check-column {
    width: 42px;
}

.label-copy-input {
    width: 78px;
    min-height: 38px !important;
    margin-left: auto;
    text-align: right;
}

.document-related {
    display: flex;
    padding: 0.75rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--biz-border);
}

.document-related > span {
    min-width: 0;
}

.document-related strong,
.document-related small {
    display: block;
}

.document-related small {
    margin-top: 0.18rem;
    color: var(--biz-muted);
}

@media (max-width: 1199.98px) {
    .crm-filters,
    .report-filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .crm-workspace {
        grid-template-columns: 1fr;
    }

    .crm-opportunities-panel {
        position: static;
    }

    .crm-opportunity-list {
        max-height: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .crm-filters,
    .report-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-filters .field-span-2,
    .report-filter-panel .report-selector,
    .report-filter-panel .report-search-field {
        grid-column: 1 / -1;
    }

    .crm-opportunity-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .crm-filters,
    .report-filter-panel {
        grid-template-columns: 1fr;
    }

    .crm-filters .field-span-2,
    .report-filter-panel .report-selector,
    .report-filter-panel .report-search-field {
        grid-column: auto;
    }

    .document-related {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Reporte de mapa de calor */
.report-heatmap-panel { overflow: hidden; }
.report-heatmap-scroll { overflow-x: auto; padding: 0 18px 20px; }
.report-heatmap {
    display: grid;
    grid-template-columns: 110px repeat(var(--heat-columns), minmax(34px, 1fr));
    min-width: 980px;
    gap: 4px;
    align-items: stretch;
}
.report-heatmap-corner,
.report-heatmap-hour,
.report-heatmap-day {
    display: flex;
    align-items: center;
    min-height: 30px;
    font-size: .72rem;
    font-weight: 800;
    color: var(--bs-secondary-color);
}
.report-heatmap-hour { justify-content: center; }
.report-heatmap-day { color: var(--bs-body-color); }
.report-heatmap-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
    font-size: .72rem;
    font-weight: 900;
}
.report-heatmap-cell.has-data {
    border-color: color-mix(in srgb, var(--bs-primary) 36%, var(--bs-border-color));
    background: color-mix(in srgb, var(--bs-primary) calc(var(--heat) * 82%), var(--bs-tertiary-bg));
    color: color-mix(in srgb, var(--bs-body-color) 25%, white);
}

/* Postventa: título respirado y sin textos pegados. */
.sales-actions-heading > div {
    display: grid;
    gap: 0.2rem;
}

.sales-actions-heading .panel-kicker,
.sales-actions-heading strong {
    display: block;
}

/* =========================================================
   BIZFERA 0.9.0 · DENSIDAD, ESTADÍSTICAS Y SAAS
========================================================= */

/* Jerarquía tipográfica más serena y consistente. */
.page-heading h1 {
    font-size: clamp(1.2rem, 1.65vw, 1.48rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
}
.page-heading p { max-width: 760px; font-size: .78rem !important; }
.panel-heading h2,
.panel-heading h3,
.crm-opportunities-panel .panel-heading h3,
.crm-card h2,
.subscription-page h2 {
    margin: 0;
    font-size: .96rem !important;
    line-height: 1.2;
    letter-spacing: -.012em;
}

.btn {
    min-height: 38px !important;
    padding: .46rem .78rem !important;
    border-radius: 10px !important;
    font-size: .78rem !important;
    line-height: 1.1 !important;
    font-weight: 760 !important;
    gap: .38rem !important;
}
.btn-sm { min-height: 32px !important; padding: .36rem .62rem !important; font-size: .72rem !important; }
.btn-lg { min-height: 44px !important; padding: .66rem 1rem !important; font-size: .86rem !important; }

/* Estadísticas rápidas: inmediatamente debajo del topbar, sin ocupar media pantalla. */
.module-statistics,
.metric-grid.treasury-metrics,
.metric-grid.report-metrics {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: .55rem !important;
    margin: 0 0 .85rem !important;
}
.module-statistics .summary-card,
.metric-grid.treasury-metrics .metric-card,
.metric-grid.report-metrics .metric-card {
    position: relative;
    display: grid !important;
    min-height: 66px !important;
    padding: .7rem .82rem !important;
    align-items: center !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: .08rem .65rem !important;
    overflow: hidden;
    border: 1px solid var(--biz-border) !important;
    border-radius: 13px !important;
    background: var(--biz-surface) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
}
.module-statistics .summary-card span,
.metric-grid.treasury-metrics .metric-card span,
.metric-grid.report-metrics .metric-card span {
    grid-column: 1;
    color: var(--biz-muted) !important;
    font-size: .64rem !important;
    font-weight: 760 !important;
    line-height: 1.15;
}
.module-statistics .summary-card strong,
.metric-grid.treasury-metrics .metric-card strong,
.metric-grid.report-metrics .metric-card strong {
    grid-column: 1;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.1 !important;
    letter-spacing: -.02em;
}
.module-statistics .summary-card iconify-icon {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 24px !important;
    opacity: .16 !important;
}
.metric-grid.treasury-metrics .metric-card small,
.metric-grid.report-metrics .metric-card small {
    grid-column: 2;
    grid-row: 1 / 3;
    max-width: 105px;
    color: var(--biz-muted) !important;
    font-size: .59rem !important;
    line-height: 1.2;
    text-align: right;
}

/* Los filtros grandes permanecen cerrados hasta que el usuario los necesite. */
.filter-accordion {
    margin: 0 0 .85rem;
    border: 1px solid var(--biz-border);
    border-radius: 13px;
    background: var(--biz-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
    overflow: clip;
}
.filter-accordion > summary {
    display: flex;
    min-height: 48px;
    padding: .68rem .85rem;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.filter-accordion > summary::-webkit-details-marker { display: none; }
.filter-accordion > summary > span { display: grid; grid-template-columns: auto auto; align-items: center; gap: .08rem .45rem; }
.filter-accordion > summary > span > iconify-icon { grid-row: 1 / 3; color: var(--bs-primary); font-size: 19px; }
.filter-accordion > summary b { font-size: .78rem; }
.filter-accordion > summary small { grid-column: 2; color: var(--biz-muted); font-size: .61rem; }
.filter-accordion-arrow { color: var(--biz-muted); transition: transform .2s ease; }
.filter-accordion[open] .filter-accordion-arrow { transform: rotate(180deg); }
.filter-accordion-body { padding: 0 .85rem .85rem; border-top: 1px solid var(--biz-border); }
.filter-accordion .treasury-filters,
.filter-accordion .report-filter-panel,
.filter-accordion .crm-filters {
    margin: 0 !important;
    padding: .85rem 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Cuenta regresiva de prueba/suscripción en topbar. */
.subscription-status-pill {
    display: inline-flex;
    min-height: 34px;
    padding: .35rem .62rem;
    align-items: center;
    gap: .35rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 30%, var(--biz-border));
    border-radius: 999px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 7%, var(--biz-surface));
    text-decoration: none;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}
.subscription-status-pill iconify-icon { font-size: 17px; }
.subscription-status-pill.is-free{border-color:color-mix(in srgb,var(--bs-success) 28%,var(--biz-border));color:var(--bs-success);background:color-mix(in srgb,var(--bs-success) 6%,var(--biz-surface));}
.subscription-status-pill.is-pending,.subscription-status-pill.is-attention{border-color:color-mix(in srgb,var(--bs-warning) 35%,var(--biz-border));color:var(--bs-warning-text-emphasis);background:color-mix(in srgb,var(--bs-warning) 8%,var(--biz-surface));}
.subscription-status-pill-expired,
.subscription-status-pill-expired:hover { border-color: color-mix(in srgb, var(--bs-danger) 35%, var(--biz-border)); color: var(--bs-danger); background: color-mix(in srgb, var(--bs-danger) 7%, var(--biz-surface)); }

/* Landing pública */
.public-page { min-height: 100vh; background: #f6f8f7; color: #10211b; }
.public-layout { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.public-topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1rem; }
.public-brand img,
.registration-brand img { width: 132px; height: auto; }
.public-topbar nav { display: flex; align-items: center; gap: .65rem; }
.public-topbar nav > a:not(.btn) { padding: .5rem; color: inherit; font-size: .8rem; font-weight: 750; text-decoration: none; }
.landing-hero { display: grid; min-height: 610px; padding: 54px 0 76px; align-items: center; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: clamp(40px, 7vw, 96px); }
.landing-copy { max-width: 650px; }
.landing-kicker { display: inline-flex; margin-bottom: 1rem; padding: .38rem .65rem; border-radius: 999px; color: #087a5b; background: #e2f6ef; font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.landing-copy h1 { margin: 0; max-width: 700px; font-size: clamp(2.45rem, 5vw, 4.75rem); line-height: .96; letter-spacing: -.065em; }
.landing-copy > p { margin: 1.4rem 0 0; max-width: 630px; color: #52645d; font-size: 1.02rem; line-height: 1.65; }
.landing-actions { display: flex; margin-top: 1.7rem; flex-wrap: wrap; gap: .65rem; }
.landing-copy > small { display: block; margin-top: .8rem; color: #6a7a74; font-size: .7rem; }
.landing-product-card { padding: 18px; border: 1px solid #dce5e1; border-radius: 25px; background: #fff; box-shadow: 0 30px 80px rgba(20, 57, 45, .13); transform: rotate(1deg); }
.landing-product-top { display: flex; height: 48px; padding: 0 12px; align-items: center; gap: 7px; border-bottom: 1px solid #eef1f0; }
.landing-product-top span { width: 8px; height: 8px; border-radius: 50%; background: #d6dedb; }
.landing-product-top b { margin-left: auto; color: #0aa376; font-size: .86rem; }
.landing-product-grid { display: grid; padding: 18px 0 0; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.landing-product-grid article { display: grid; min-height: 155px; padding: 20px; align-content: end; border: 1px solid #e8eeeb; border-radius: 18px; background: #f9fbfa; }
.landing-product-grid iconify-icon { margin-bottom: auto; color: #0aa376; font-size: 34px; }
.landing-product-grid span { color: #66766f; font-size: .68rem; font-weight: 750; }
.landing-product-grid strong { margin-top: 3px; font-size: .9rem; }
.landing-features { display: grid; padding: 0 0 70px; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.landing-features article { padding: 24px; border: 1px solid #dfe7e3; border-radius: 18px; background: #fff; }
.landing-features iconify-icon { color: #0aa376; font-size: 31px; }
.landing-features h2 { margin: 16px 0 7px; font-size: 1.02rem; }
.landing-features p { margin: 0; color: #64756e; font-size: .78rem; line-height: 1.6; }
.landing-final { display: flex; margin-bottom: 60px; padding: 34px; align-items: center; justify-content: space-between; gap: 2rem; border-radius: 22px; color: #fff; background: #0e2a21; }
.landing-final span { color: #62d7b5; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.landing-final h2 { margin: .35rem 0 0; font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.035em; }

/* Registro guiado */
.public-page-registro { background: radial-gradient(circle at 20% 10%, rgba(10,163,118,.1), transparent 35%), #f5f7f6; }
.registration-shell { display: grid; min-height: 100vh; padding: 32px 20px 60px; justify-items: center; align-content: start; }
.registration-brand { margin-bottom: 25px; }
.registration-card { width: min(720px, 100%); border: 1px solid #dfe7e3; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(21, 55, 44, .1); overflow: hidden; }
.registration-card > header { padding: 28px 30px 22px; border-bottom: 1px solid #e9eeec; }
.registration-card h1 { margin: .35rem 0 .5rem; font-size: 1.55rem; letter-spacing: -.035em; }
.registration-card header p { margin: 0; color: #65766f; font-size: .78rem; }
.registration-progress { display: grid; margin-top: 22px; align-items: center; grid-template-columns: auto 1fr auto; gap: 12px; }
.registration-progress span { display: flex; width: 31px; height: 31px; align-items: center; justify-content: center; border: 1px solid #d5dfdb; border-radius: 50%; color: #83908b; font-size: .72rem; font-weight: 850; }
.registration-progress span b { position: absolute; margin-top: 52px; width: 100px; color: #687770; font-size: .62rem; text-align: center; }
.registration-progress span.active { border-color: #0aa376; color: #fff; background: #0aa376; }
.registration-progress i { height: 1px; background: #dce5e1; }
.registration-card form > section { padding: 30px; }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.registration-grid label > span { display: block; margin-bottom: .38rem; color: #576a62; font-size: .66rem; font-weight: 800; }
.registration-grid label small { color: #93a09b; font-weight: 600; }
.registration-wide { grid-column: 1 / -1; }
.registration-card footer { display: flex; margin-top: 24px; align-items: center; justify-content: space-between; gap: 12px; }
.registration-card footer > a { color: #52645d; font-size: .72rem; font-weight: 750; }
.registration-auto { display: flex; margin-top: 20px; padding: 14px; gap: 12px; border: 1px solid #cfe8df; border-radius: 13px; background: #f2fbf7; }
.registration-auto iconify-icon { flex: 0 0 auto; color: #0aa376; font-size: 27px; }
.registration-auto strong,
.registration-auto span { display: block; }
.registration-auto strong { font-size: .76rem; }
.registration-auto span { margin-top: 2px; color: #61736b; font-size: .66rem; line-height: 1.45; }
.form-inline-feedback { margin-top: 15px; padding: 10px 12px; border-radius: 10px; font-size: .7rem; font-weight: 730; }
.form-inline-feedback.is-error { color: #9f1f32; background: #fff0f2; }
.form-inline-feedback.is-success { color: #087354; background: #ebfaf4; }

/* Suscripción */
.subscription-overview { display: grid; margin-bottom: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 1rem; }
.subscription-main-card { padding: 1.35rem; }
.subscription-main-card > h2 { margin-top: .4rem; font-size: 1.25rem !important; }
.subscription-main-card > p { max-width: 680px; color: var(--biz-muted); font-size: .76rem; }
.subscription-price { display: flex; margin-top: 1.2rem; align-items: end; gap: .45rem; }
.subscription-price strong { font-size: 2rem; line-height: 1; letter-spacing: -.045em; }
.subscription-price span { color: var(--biz-muted); font-size: .7rem; }
.subscription-calculation { display: flex; margin-top: .7rem; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--biz-muted); font-size: .68rem; }
.subscription-actions { display: flex; margin-top: 1.2rem; flex-wrap: wrap; gap: .55rem; }
.subscription-details { padding: 1.1rem; }
.subscription-details dl { margin: .8rem 0 1rem; }
.subscription-details dl > div { display: flex; padding: .62rem 0; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--biz-border); }
.subscription-details dt { color: var(--biz-muted); font-size: .65rem; font-weight: 700; }
.subscription-details dd { margin: 0; font-size: .68rem; font-weight: 800; text-align: right; }

@media (max-width: 991.98px) {
    .landing-hero { min-height: auto; grid-template-columns: 1fr; }
    .landing-product-card { transform: none; }
    .landing-features { grid-template-columns: 1fr; }
    .subscription-overview { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .public-layout { width: min(100% - 24px, 1240px); }
    .public-topbar { min-height: 66px; }
    .public-topbar nav > a:not(.btn) { display: none; }
    .landing-hero { padding: 34px 0 54px; }
    .landing-copy h1 { font-size: 2.55rem; }
    .landing-product-grid { grid-template-columns: 1fr; }
    .landing-final { align-items: stretch; flex-direction: column; }
    .registration-card > header,
    .registration-card form > section { padding: 22px 18px; }
    .registration-grid { grid-template-columns: 1fr; }
    .registration-wide { grid-column: auto; }
    .module-statistics,
    .metric-grid.treasury-metrics,
    .metric-grid.report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .subscription-status-pill span { display: none; }
}
@media (max-width: 460px) {
    .module-statistics,
    .metric-grid.treasury-metrics,
    .metric-grid.report-metrics { grid-template-columns: 1fr !important; }
}

/* v0.9.0 · Estadísticas realmente compactas en todos los módulos */
.main-content > .metric-grid,
.metric-grid.metric-grid-compact {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: .55rem !important;
    margin: 0 0 .8rem !important;
}
.main-content > .metric-grid > .metric-card,
.metric-grid.metric-grid-compact > .summary-card {
    min-height: 66px !important;
    padding: .68rem .78rem !important;
    border-radius: 13px !important;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .04) !important;
}
.main-content > .metric-grid > .metric-card {
    display: flex !important;
    align-items: center !important;
    gap: .65rem !important;
}
.main-content > .metric-grid > .metric-card .metric-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
}
.main-content > .metric-grid > .metric-card .metric-icon iconify-icon { font-size: 19px !important; }
.main-content > .metric-grid > .metric-card .metric-copy { min-width: 0; }
.main-content > .metric-grid > .metric-card span,
.main-content > .metric-grid > .metric-card .metric-copy > span,
.metric-grid.metric-grid-compact > .summary-card span {
    font-size: .63rem !important;
    line-height: 1.15 !important;
}
.main-content > .metric-grid > .metric-card strong,
.main-content > .metric-grid > .metric-card .metric-copy > strong,
.metric-grid.metric-grid-compact > .summary-card strong {
    margin: .08rem 0 0 !important;
    font-size: .98rem !important;
    line-height: 1.08 !important;
}
.main-content > .metric-grid > .metric-card small,
.main-content > .metric-grid > .metric-card .metric-copy > small {
    display: block;
    margin-top: .08rem !important;
    font-size: .58rem !important;
    line-height: 1.2 !important;
}

/* Mi empresa: alta de usuarios y puntos sin sheets gigantes. */
.company-management-grid {
    display: grid;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
    gap: .85rem;
    align-items: start;
}
.company-management-grid-points { grid-template-columns: minmax(330px, .62fr) minmax(0, 1.38fr); }
.company-form-panel { padding: 1rem; }
.company-users-panel { min-width: 0; }
.company-user-form { gap: .72rem !important; }
.company-permission-fieldset {
    margin: .1rem 0;
    padding: .75rem;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
}
.company-permission-fieldset legend { float: none; width: auto; margin: 0; padding: 0 .25rem; font-size: .67rem; font-weight: 850; }
.company-permission-fieldset > p { margin: 0 0 .6rem; color: var(--biz-muted); font-size: .6rem; }
.company-permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem .55rem; }
.company-permission-grid label { display: flex; min-width: 0; align-items: center; gap: .38rem; font-size: .62rem; cursor: pointer; }
.company-permission-grid input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--bs-primary); }
.company-permission-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-alert { margin: 0 !important; padding: .65rem !important; border-radius: 10px !important; }
.company-subscription-panel { display: flex; padding: 1rem 1.1rem; align-items: center; justify-content: space-between; gap: 1rem; }
.company-subscription-panel h2 { margin: .15rem 0 .2rem; font-size: .96rem; }
.company-subscription-panel p { margin: 0; color: var(--biz-muted); font-size: .68rem; }
.company-subscription-total { display: grid; min-width: 180px; padding: .65rem .8rem; border: 1px solid var(--biz-border); border-radius: 11px; }
.company-subscription-total span { color: var(--biz-muted); font-size: .59rem; font-weight: 750; }
.company-subscription-total strong { margin-top: .1rem; font-size: .9rem; }

@media (max-width: 1100px) {
    .company-management-grid,
    .company-management-grid-points { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .main-content > .metric-grid,
    .metric-grid.metric-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .company-permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-subscription-panel { align-items: stretch; flex-direction: column; }
}
@media (max-width: 460px) {
    .main-content > .metric-grid,
    .metric-grid.metric-grid-compact { grid-template-columns: 1fr !important; }
    .company-permission-grid { grid-template-columns: 1fr; }
}
.login-register-cta { display: grid; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--biz-border); gap: .2rem; text-align: center; }
.login-register-cta span { color: var(--biz-muted); font-size: .65rem; }
.login-register-cta a { color: var(--bs-primary); font-size: .72rem; font-weight: 820; text-decoration: none; }

/* v0.9.0 · Corrección final de métricas, títulos y acciones compactas. */
.main-content > .metric-grid,
.metric-grid.treasury-metrics,
.metric-grid.report-metrics,
.module-statistics {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important;
    gap: .5rem !important;
    margin: 0 0 .72rem !important;
}
.main-content > .metric-grid > .metric-card,
.metric-grid.treasury-metrics > .metric-card,
.metric-grid.report-metrics > .metric-card,
.module-statistics > .summary-card {
    display: grid !important;
    min-height: 58px !important;
    padding: .58rem .7rem !important;
    align-content: center !important;
    align-items: center !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: .06rem .65rem !important;
    border-radius: 12px !important;
}
.main-content > .metric-grid > .metric-card > span,
.metric-grid.treasury-metrics > .metric-card > span,
.metric-grid.report-metrics > .metric-card > span,
.module-statistics > .summary-card > span {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    font-size: .61rem !important;
    line-height: 1.15 !important;
}
.main-content > .metric-grid > .metric-card > strong,
.metric-grid.treasury-metrics > .metric-card > strong,
.metric-grid.report-metrics > .metric-card > strong,
.module-statistics > .summary-card > strong {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    text-align: right;
}
.main-content > .metric-grid > .metric-card > small,
.metric-grid.treasury-metrics > .metric-card > small,
.metric-grid.report-metrics > .metric-card > small,
.module-statistics > .summary-card > small {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    color: var(--biz-muted) !important;
    font-size: .54rem !important;
    line-height: 1.15 !important;
}
.crm-opportunities-panel > .panel-heading h3,
.crm-opportunities-panel .panel-heading h3,
.table-toolbar strong,
.panel-heading h2,
.panel-heading h3 {
    font-size: .88rem !important;
    line-height: 1.15 !important;
}
.page-heading-actions .detail-actions { gap: .45rem !important; }
.page-heading-actions .detail-actions .btn { min-height: 35px !important; font-size: .72rem !important; }

@media (max-width: 767.98px) {
    .main-content > .metric-grid,
    .metric-grid.treasury-metrics,
    .metric-grid.report-metrics,
    .module-statistics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 460px) {
    .main-content > .metric-grid,
    .metric-grid.treasury-metrics,
    .metric-grid.report-metrics,
    .module-statistics { grid-template-columns: 1fr !important; }
}

/* Las estadísticas globales conservan su ícono a la derecha y el valor debajo del rótulo. */
.module-statistics > .summary-card > span,
.metric-grid.metric-grid-compact > .summary-card > span {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
.module-statistics > .summary-card > strong,
.metric-grid.metric-grid-compact > .summary-card > strong {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: left !important;
}
.module-statistics > .summary-card > iconify-icon,
.metric-grid.metric-grid-compact > .summary-card > iconify-icon {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: end;
    font-size: 22px !important;
    opacity: .16 !important;
}
.subscription-locked-note {
    display: block;
    padding: .7rem .75rem;
    border: 1px dashed var(--biz-border);
    border-radius: 11px;
    color: var(--biz-muted);
    font-size: .66rem;
    line-height: 1.45;
    text-align: center;
}
.subscription-overview-single {
    grid-template-columns: minmax(0, 720px) !important;
    justify-content: center;
}
.subscription-owner-note {
    margin-top: 1rem;
}

/* =========================================================
   Bizfera v0.9.1 · Densidad visual, barra de indicadores y autogestión
========================================================= */

/* Controles más bajos y tipografía proporcionada en toda la aplicación. */
.app-page .form-control,
.app-page .form-select,
.app-page .input-group-text {
    min-height: 34px !important;
    padding: .34rem .6rem !important;
    border-radius: 8px !important;
    font-size: .71rem !important;
    line-height: 1.2 !important;
}
.app-page textarea.form-control {
    min-height: 66px !important;
    padding-top: .5rem !important;
}
.app-page .form-control[type="file"] { padding: .23rem .4rem !important; }
.app-page .btn {
    min-height: 33px !important;
    padding: .35rem .68rem !important;
    border-radius: 8px !important;
    gap: .34rem !important;
    font-size: .68rem !important;
    line-height: 1.15 !important;
}
.app-page .btn-sm { min-height: 29px !important; padding: .27rem .54rem !important; font-size: .63rem !important; }
.app-page .btn iconify-icon { font-size: 16px !important; }
.app-page label > span,
.app-page .admin-form label > span { margin-bottom: .28rem !important; font-size: .63rem !important; }
.app-page .admin-form { gap: .68rem !important; }
.app-page .admin-form-row { gap: .68rem !important; }
.admin-form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .68rem; }

/* El encabezado interno nunca queda pegado al borde de una card de tabla. */
.table-panel > .panel-heading,
.company-editor-card > .panel-heading,
.company-form-panel > .panel-heading {
    padding: .9rem 1rem .72rem !important;
    margin: 0 !important;
}
.company-form-panel > .admin-form,
.company-editor-card > .admin-form { padding: 0 1rem 1rem; }
.panel-description { margin: .2rem 0 0 !important; color: var(--biz-muted); font-size: .63rem !important; line-height: 1.45; }
.panel-form-footer { padding-top: .75rem !important; }

/* Barra full-width de estadísticas: no son cards y queda pegada debajo del topbar. */
.module-stats-bar {
    width: 100%;
    flex: 0 0 auto;
    overflow: hidden;
    border-bottom: 1px solid var(--biz-border);
    background: color-mix(in srgb, var(--biz-surface) 94%, var(--biz-primary) 6%);
}
.module-stats-bar-inner {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 clamp(.75rem, 2.2vw, 1.4rem);
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: thin;
}
.module-stat-item {
    display: flex;
    min-width: 170px;
    padding: .48rem clamp(.7rem, 1.6vw, 1.15rem);
    align-items: center;
    gap: .52rem;
    border-right: 1px solid var(--biz-border);
}
.module-stat-item:first-child { padding-left: 0; }
.module-stat-item:last-child { border-right: 0; }
.module-stat-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 8px;
    background: rgba(10, 163, 118, .09);
    color: var(--biz-primary);
}
.module-stat-icon iconify-icon { font-size: 16px; }
.module-stat-copy { display: grid; min-width: 0; gap: .05rem; }
.module-stat-copy small { color: var(--biz-muted); font-size: .57rem; font-weight: 720; line-height: 1.05; white-space: nowrap; }
.module-stat-copy strong { font-size: .78rem; font-weight: 850; line-height: 1.1; white-space: nowrap; }

/* Las estadísticas antiguas de los módulos quedan reemplazadas por la barra superior. */
.app-page:not(.module-inicio) .main-content > .metric-grid,
.app-page:not(.module-inicio) .main-content .treasury-metrics,
.app-page:not(.module-inicio) .main-content .report-metrics,
.app-page:not(.module-inicio) .main-content .crm-metrics,
.app-page:not(.module-inicio) .main-content .module-statistics {
    display: none !important;
}

/* Inicio conserva las cards originales, porque allí sí funcionan como tablero. */
.module-inicio .main-content > .metric-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 0 1.35rem !important;
}
.module-inicio .main-content > .metric-grid > .metric-card {
    display: flex !important;
    min-height: 132px !important;
    padding: 1.15rem 1.2rem !important;
    align-items: center !important;
    gap: .95rem !important;
    border-radius: 18px !important;
    box-shadow: var(--biz-shadow) !important;
}
.module-inicio .metric-card .metric-icon {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 14px !important;
}
.module-inicio .metric-card .metric-icon iconify-icon { font-size: 25px !important; }
.module-inicio .metric-card .metric-copy { display: grid; gap: .12rem; min-width: 0; }
.module-inicio .metric-card .metric-copy > span { font-size: .68rem !important; font-weight: 760 !important; }
.module-inicio .metric-card .metric-copy > strong { margin: .08rem 0 !important; font-size: 1.28rem !important; line-height: 1.1 !important; }
.module-inicio .metric-card .metric-copy > small { font-size: .61rem !important; line-height: 1.35 !important; }

/* Acordeones de filtros más bajos y cerrados por defecto desde el HTML. */
.filter-accordion > summary { min-height: 45px !important; padding: .62rem .82rem !important; }
.filter-accordion-body { padding: .62rem .75rem .75rem !important; }
.filter-accordion .treasury-filters,
.filter-accordion .report-filter-panel,
.filter-accordion .crm-filters { padding: 0 !important; }

/* Mi empresa */
.company-panel[hidden] { display: none !important; }
.company-tabs { margin-bottom: .85rem; overflow-x: auto; }
.company-tab { min-height: 37px; padding: .45rem .68rem; font-size: .67rem; white-space: nowrap; }
.company-editor-card { max-width: 1060px; }
.company-billing-notice { align-items: center; }
.company-toggle { display: inline-flex !important; width: fit-content; align-items: center; gap: .45rem; }
.company-toggle input { width: 15px; height: 15px; accent-color: var(--biz-primary); }
.company-toggle span { margin: 0 !important; }
.company-form-locked { opacity: .72; }
.subscription-policy-compact {
    display: grid;
    padding: .68rem .75rem;
    gap: .12rem;
    border: 1px dashed rgba(10, 163, 118, .42);
    border-radius: 10px;
    background: rgba(10, 163, 118, .045);
}
.subscription-policy-compact strong { font-size: .67rem; }
.subscription-policy-compact span { color: var(--biz-muted); font-size: .6rem; line-height: 1.4; }
.company-subscription-total small { color: var(--biz-muted); font-size: .58rem; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; }
.table-actions form { margin: 0; }

/* Exportación de listas de precios. */
.price-export-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.price-export-controls { display: grid; grid-template-columns: minmax(145px, .8fr) minmax(180px, 1fr) auto; align-items: end; gap: .55rem; }
.price-export-controls label { margin: 0; }
.selection-column { width: 42px; text-align: center; }
.selection-column input { width: 15px; height: 15px; accent-color: var(--biz-primary); }

.subscription-policy,
.subscription-reference { padding: .85rem 1rem; }

@media (max-width: 1250px) {
    .module-inicio .main-content > .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .price-export-heading { align-items: stretch; flex-direction: column; }
}
@media (max-width: 900px) {
    .admin-form-row-3 { grid-template-columns: 1fr; }
    .price-export-controls { grid-template-columns: 1fr 1fr; }
    .price-export-controls .btn { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .module-stat-item { min-width: 150px; }
    .module-inicio .main-content > .metric-grid { grid-template-columns: 1fr !important; }
    .module-inicio .main-content > .metric-grid > .metric-card { min-height: 104px !important; }
    .price-export-controls { grid-template-columns: 1fr; }
    .price-export-controls .btn { grid-column: auto; }
    .company-billing-notice { align-items: stretch; flex-direction: column; }
}

.status-pill-muted {
    border-color: var(--biz-border) !important;
    background: color-mix(in srgb, var(--biz-surface) 88%, var(--biz-muted) 12%) !important;
    color: var(--biz-muted) !important;
}

/* =========================================================
   Bizfera v0.9.2 · tablas, inicio, notificaciones e integraciones
========================================================= */

/* Tablas internas: estructura real, separación y legibilidad en ambos temas. */
.data-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    color: var(--bs-body-color);
}
.data-table th,
.data-table td {
    padding: .78rem .9rem;
    border-bottom: 1px solid var(--biz-border);
    vertical-align: middle;
    text-align: left;
    line-height: 1.35;
}
.data-table thead th {
    background: var(--biz-surface-soft);
    color: var(--biz-muted);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.data-table tbody td {
    background: var(--biz-surface);
    font-size: .7rem;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--biz-surface-soft) 88%, var(--biz-primary) 12%); }
.data-table td > strong,
.data-table td > small { display: block; }
.data-table td > strong { color: var(--bs-body-color); font-size: .72rem; font-weight: 800; }
.data-table td > small { margin-top: .12rem; color: var(--biz-muted); font-size: .58rem; font-weight: 500; }
.data-table th:last-child,
.data-table td:last-child { width: 54px; text-align: right; }
.table-responsive { width: 100%; overflow-x: auto; }
.company-users-panel .table-toolbar { padding: .75rem .9rem; }
.company-users-panel .input-with-icon { width: min(360px, 100%); }

/* Inicio: tablero principal con presencia visual; no hereda la densidad de módulos operativos. */
.module-inicio .main-content > .metric-grid {
    gap: 1.05rem !important;
    margin-bottom: 1.45rem !important;
}
.module-inicio .main-content > .metric-grid > .metric-card {
    min-height: 154px !important;
    padding: 1.35rem 1.4rem !important;
    gap: 1.1rem !important;
    border-radius: 20px !important;
}
.module-inicio .metric-card .metric-icon {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
    border-radius: 16px !important;
}
.module-inicio .metric-card .metric-icon iconify-icon { font-size: 28px !important; }
.module-inicio .metric-card .metric-copy > span { font-size: .72rem !important; }
.module-inicio .metric-card .metric-copy > strong { font-size: 1.48rem !important; }
.module-inicio .metric-card .metric-copy > small { font-size: .64rem !important; }

/* Campana y panel de notificaciones. */
.notification-button { position: relative; }
.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid var(--biz-surface);
    border-radius: 99px;
    background: #e75263;
    color: #fff;
    font-size: .52rem;
    font-weight: 900;
}
.notification-menu {
    width: min(390px, calc(100vw - 24px));
    max-height: 520px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
    box-shadow: var(--biz-shadow);
}
.notification-menu-header {
    display: flex;
    padding: .8rem .9rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--biz-border);
}
.notification-menu-header strong { font-size: .78rem; }
.notification-menu-header button { border: 0; background: transparent; color: var(--biz-primary); font-size: .61rem; font-weight: 800; }
.notification-list { max-height: 410px; overflow-y: auto; }
.notification-item {
    display: grid;
    padding: .78rem .9rem;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: .65rem;
    border-bottom: 1px solid var(--biz-border);
    color: var(--bs-body-color);
}
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--biz-surface-soft); }
.notification-item.is-unread { background: color-mix(in srgb, var(--biz-primary) 5%, var(--biz-surface)); }
.notification-item-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}
.notification-item-icon iconify-icon { font-size: 18px; }
.notification-item-copy { min-width: 0; }
.notification-item-copy strong,
.notification-item-copy span,
.notification-item-copy small { display: block; }
.notification-item-copy strong { font-size: .67rem; }
.notification-item-copy span { margin-top: .13rem; color: var(--biz-muted); font-size: .59rem; line-height: 1.38; }
.notification-item-copy small { margin-top: .24rem; color: var(--biz-muted); font-size: .52rem; }
.notification-empty { padding: 1.25rem; color: var(--biz-muted); font-size: .65rem; text-align: center; }

/* Automatizaciones e integraciones. */
.automation-grid,
.integration-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}
.automation-card,
.integration-card-v2 { padding: 1rem; }
.automation-card-header,
.integration-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}
.automation-card-icon,
.integration-card-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}
.automation-card-icon iconify-icon,
.integration-card-logo iconify-icon { font-size: 23px; }
.automation-card-copy,
.integration-card-copy-v2 { min-width: 0; flex: 1; }
.automation-card-copy h2,
.integration-card-copy-v2 h2 { margin: .15rem 0 .22rem; font-size: .9rem; }
.automation-card-copy p,
.integration-card-copy-v2 p { margin: 0; color: var(--biz-muted); font-size: .62rem; line-height: 1.5; }
.automation-card-form { display: grid; margin-top: .85rem; padding-top: .8rem; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .65rem; border-top: 1px solid var(--biz-border); }
.automation-card-form label > span { display: block; margin-bottom: .25rem; color: var(--biz-muted); font-size: .58rem; font-weight: 750; }
.automation-card-meta,
.integration-card-meta { display: flex; margin-top: .7rem; flex-wrap: wrap; gap: .4rem .8rem; color: var(--biz-muted); font-size: .56rem; }
.integration-card-actions { display: flex; margin-top: .85rem; gap: .45rem; }
.integration-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .68rem; }
.integration-config-grid .field-span-all { grid-column: 1 / -1; }
.secret-field { position: relative; }
.secret-field .form-control { padding-right: 42px !important; }
.secret-field button { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); border: 0; background: transparent; color: var(--biz-muted); }

@media (max-width: 991.98px) {
    .automation-grid,
    .integration-grid-v2 { grid-template-columns: 1fr; }
    .module-inicio .main-content > .metric-grid > .metric-card { min-height: 128px !important; }
}
@media (max-width: 640px) {
    .automation-card-form,
    .integration-config-grid { grid-template-columns: 1fr; }
    .integration-config-grid .field-span-all { grid-column: auto; }
    .module-inicio .main-content > .metric-grid > .metric-card { min-height: 112px !important; padding: 1rem !important; }
}

/* v0.9.2 · Corrección final solicitada: tablas legibles y estadísticas de Inicio grandes. */
.table-panel .table-responsive {
    border-top: 1px solid var(--biz-border);
}
.table-panel .table-toolbar + .table-responsive {
    border-top: 0;
}
.data-table,
.bizfera-table {
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
}
.data-table > thead > tr > th,
.data-table > tbody > tr > td,
.bizfera-table > :not(caption) > * > * {
    padding: .82rem .95rem !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--biz-border) !important;
    background: var(--biz-surface) !important;
    color: var(--biz-text) !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}
.data-table > thead > tr > th,
.bizfera-table > thead > tr > th {
    background: var(--biz-surface-soft) !important;
    color: var(--biz-muted) !important;
    font-size: .62rem !important;
    font-weight: 850 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}
.data-table > tbody > tr > td,
.bizfera-table > tbody > tr > td {
    font-size: .71rem !important;
}
.data-table > tbody > tr:last-child > td,
.bizfera-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}
.data-table > tbody > tr:hover > td,
.bizfera-table > tbody > tr:hover > td {
    background: color-mix(in srgb, var(--biz-surface-soft) 90%, var(--biz-primary) 10%) !important;
}
.data-table td strong,
.bizfera-table td strong {
    display: block;
    color: var(--bs-body-color);
    font-size: .73rem;
    font-weight: 820;
}
.data-table td small,
.bizfera-table td small,
.bizfera-table .table-subtext {
    display: block;
    margin-top: .14rem;
    color: var(--biz-muted) !important;
    font-size: .59rem !important;
    font-weight: 540;
    line-height: 1.35;
}
.data-table th:last-child,
.data-table td:last-child,
.bizfera-table th:last-child,
.bizfera-table td:last-child {
    width: 58px;
    text-align: right !important;
    white-space: nowrap;
}

/* Los selectores compactos anteriores tenían mayor especificidad y seguían achicando Inicio. */
.module-inicio .main-content > .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 0 1.5rem !important;
}
.module-inicio .main-content > .metric-grid > .metric-card {
    display: flex !important;
    min-height: 142px !important;
    padding: 1.3rem !important;
    align-items: flex-start !important;
    align-content: initial !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 1rem !important;
    border-radius: var(--biz-radius) !important;
    box-shadow: var(--biz-shadow) !important;
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-icon {
    display: inline-flex !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 14px !important;
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-icon iconify-icon {
    font-size: 1.5rem !important;
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-copy {
    display: block !important;
    min-width: 0 !important;
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-copy > span {
    display: block !important;
    margin: 0 0 .38rem !important;
    font-size: .74rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-copy > strong {
    display: block !important;
    margin: 0 0 .4rem !important;
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
    line-height: 1.15 !important;
    text-align: left !important;
    grid-column: auto !important;
    grid-row: auto !important;
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-copy > small {
    display: block !important;
    margin: 0 !important;
    font-size: .68rem !important;
    line-height: 1.4 !important;
    grid-column: auto !important;
    grid-row: auto !important;
}

@media (max-width: 1250px) {
    .module-inicio .main-content > .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px) {
    .module-inicio .main-content > .metric-grid { grid-template-columns: 1fr !important; }
    .module-inicio .main-content > .metric-grid > .metric-card { min-height: 116px !important; }
    .data-table,
    .bizfera-table { min-width: 680px; }
}
.module-inicio .main-content > .metric-grid > .metric-card .metric-copy > strong span {
    display: inline !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* v0.9.3 · Constructor de automatizaciones y conexión simple de integraciones. */
.automation-flow-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
}
.automation-flow-help > div { display: grid; grid-template-columns: 32px 1fr; gap: .08rem .65rem; align-items: center; min-width: 0; }
.automation-flow-help > div > span { display: grid; width: 32px; height: 32px; grid-row: 1 / 3; place-items: center; border-radius: 10px; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: .72rem; font-weight: 900; }
.automation-flow-help strong { font-size: .76rem; }
.automation-flow-help small { color: var(--biz-muted); font-size: .61rem; line-height: 1.35; }
.automation-flow-help > iconify-icon { color: var(--biz-muted); font-size: 18px; }
.automation-logic-line { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; margin-top: .8rem; padding: .65rem .72rem; border: 1px solid var(--biz-border); border-radius: 11px; background: var(--biz-surface-soft); font-size: .61rem; }
.automation-logic-line > span { color: var(--biz-primary); font-size: .55rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.automation-logic-line > strong { font-size: .64rem; font-weight: 750; }
.automation-custom-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--biz-border); }
.automation-custom-actions form { margin: 0; }
.automation-builder-sheet { width: min(980px, 100%); }
.automation-builder-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.automation-builder-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .7rem; min-height: 180px; padding: .9rem; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface-soft); }
.automation-builder-step > div:last-child { min-width: 0; }
.automation-builder-step label { display: block; margin-top: .52rem; }
.automation-builder-step label > span,
.automation-builder-schedule label > span,
.automation-condition-field > span { display: block; margin-bottom: .28rem; color: var(--biz-muted); font-size: .59rem; font-weight: 760; }
.automation-step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--biz-primary); color: #fff; font-size: .72rem; font-weight: 900; }
.automation-builder-placeholder { margin: .65rem 0 0; color: var(--biz-muted); font-size: .65rem; line-height: 1.45; }
.automation-condition-info { display: flex; align-items: flex-start; gap: .48rem; margin-top: .7rem; padding: .7rem; border-radius: 10px; background: color-mix(in srgb, var(--biz-primary-soft) 72%, transparent); color: var(--biz-muted); font-size: .63rem; line-height: 1.45; }
.automation-condition-info iconify-icon { flex: 0 0 auto; margin-top: .05rem; color: var(--biz-primary); font-size: 17px; }
.automation-condition-field { margin-top: .65rem !important; }
.automation-condition-field small { display: block; margin-top: .32rem; color: var(--biz-muted); font-size: .56rem; line-height: 1.4; }
.automation-value-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--biz-border); border-radius: 10px; background: var(--biz-surface); }
.automation-value-input .form-control { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.automation-value-input > span { padding: 0 .65rem; color: var(--biz-muted); font-size: .62rem; font-weight: 800; white-space: nowrap; }
.automation-builder-schedule { padding: .85rem .95rem; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface); }
.automation-builder-schedule .company-toggle { margin-top: .7rem; }
.integration-connect-simple,
.integration-connected-account { display: flex; align-items: center; justify-content: space-between; gap: .9rem; margin-top: .9rem; padding: .85rem .9rem; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface-soft); }
.integration-connect-simple strong,
.integration-connected-account strong { display: block; font-size: .72rem; }
.integration-connect-simple p,
.integration-connected-account small { display: block; margin: .18rem 0 0; color: var(--biz-muted); font-size: .6rem; line-height: 1.45; }
.integration-connected-account { justify-content: flex-start; }
.integration-connected-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.integration-connected-icon iconify-icon { font-size: 20px; }
.integration-publish-note small { display: block; margin-top: .28rem; word-break: break-word; }
.integration-steps { margin-bottom: .85rem; padding: .78rem .85rem; border: 1px solid var(--biz-border); border-radius: 12px; background: var(--biz-surface-soft); }
.integration-steps strong { display: block; margin-bottom: .35rem; font-size: .67rem; }
.integration-steps ol { margin: .2rem 0 .55rem; padding-left: 1.15rem; color: var(--biz-muted); font-size: .6rem; line-height: 1.55; }
.integration-steps p { margin: 0; color: var(--biz-muted); font-size: .58rem; line-height: 1.45; }
.integration-steps code { font-size: .56rem; word-break: break-all; }

@media (max-width: 900px) {
    .automation-flow-help { grid-template-columns: 1fr; }
    .automation-flow-help > iconify-icon { display: none; }
    .automation-builder-form { grid-template-columns: 1fr; }
    .automation-builder-step { min-height: 0; }
}
@media (max-width: 620px) {
    .integration-connect-simple { align-items: stretch; flex-direction: column; }
    .integration-connect-simple .btn { width: 100%; }
}


/* =========================================================
   Bizfera v0.9.4 · ajustes de formularios, buscadores y módulos
========================================================= */
.table-search > iconify-icon,
.input-with-icon > iconify-icon,
.topbar-search > iconify-icon { display: none !important; }
.table-search { gap: 0 !important; }
.input-with-icon .form-control { padding-left: .68rem !important; }
.topbar-search { padding-left: .72rem !important; }

.product-sheet-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: .72rem;
    align-items: start;
    width: min(1120px, 100%);
    margin: 0 auto;
}
.product-sheet-grid > label,
.product-sheet-grid > div { min-width: 0; }
.product-col-3 { grid-column: span 3; }
.product-col-4 { grid-column: span 4; }
.product-col-5 { grid-column: span 5; }
.product-col-6 { grid-column: span 6; }
.product-col-12 { grid-column: 1 / -1; }
.product-sheet-grid textarea.form-control { min-height: 74px; resize: vertical; }
.product-sheet-grid .admin-check { min-height: 60px; margin: 0; padding: .65rem .72rem; }
.product-stock-note { display: flex; align-items: center; gap: .5rem; align-self: end; min-height: 38px; padding: .55rem .7rem; border-radius: 10px; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: .68rem; }
.product-stock-note iconify-icon { font-size: 1rem; color: var(--biz-primary); }

.automation-builder-sheet { width: min(900px, 100%) !important; }
.automation-builder-form { display: grid !important; grid-template-columns: 1fr !important; gap: .58rem !important; }
.automation-rule-name { max-width: 100%; }
.automation-builder-step { min-height: 0 !important; padding: .68rem .72rem !important; border-radius: 12px !important; grid-template-columns: 30px minmax(0,1fr) !important; gap: .58rem !important; }
.automation-builder-step label { margin-top: .38rem !important; }
.automation-builder-step .admin-form-row { gap: .55rem !important; }
.automation-builder-schedule { padding: .68rem .75rem !important; border-radius: 12px !important; }
.automation-builder-placeholder { margin: .38rem 0 0 !important; }
.automation-condition-info { margin-top: .38rem !important; padding: .58rem .65rem !important; }
.automation-email-option { display: flex !important; align-items: flex-start; gap: .55rem; margin-top: .58rem !important; padding: .62rem .68rem; border: 1px solid var(--biz-border); border-radius: 10px; background: var(--biz-surface); }
.automation-email-option input { margin-top: .15rem; }
.automation-email-option span { display: grid; gap: .08rem; }
.automation-email-option small { color: var(--biz-muted); font-size: .63rem; }
.automation-email-option.is-disabled { opacity: .72; }
.automation-empty-state { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; }
.automation-empty-state > div { flex: 1; }
.automation-empty-state h2 { margin: 0 0 .18rem; font-size: 1rem; }
.automation-empty-state p { margin: 0; color: var(--biz-muted); font-size: .72rem; }

.price-checker-page { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 1rem; }
.price-checker-shell { width: min(920px, 100%); }
.price-checker-panel { position: relative; overflow: hidden; padding: clamp(1rem, 2.5vw, 2rem); }
.price-checker-toolbar { display: flex; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.price-checker-toolbar label { width: min(330px, 100%); }
.price-checker-input-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; align-items: stretch; }
.price-checker-input { min-height: 64px !important; font-size: clamp(1rem, 2vw, 1.45rem) !important; font-weight: 800; text-align: center; letter-spacing: .02em; }
.price-checker-submit { min-width: 150px; }
.price-checker-result { min-height: 280px; display: grid; place-items: center; margin-top: 1rem; border: 1px dashed var(--biz-border); border-radius: 18px; background: var(--biz-surface-soft); }
.price-checker-welcome { display: grid; justify-items: center; gap: .5rem; padding: 2rem; text-align: center; color: var(--biz-muted); }
.price-checker-welcome iconify-icon { font-size: 3rem; color: var(--biz-primary); }
.price-checker-product { width: 100%; display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 1.25rem; align-items: center; padding: 1.25rem; }
.price-checker-product img { width: 180px; height: 180px; object-fit: contain; border-radius: 16px; background: var(--biz-surface); border: 1px solid var(--biz-border); }
.price-checker-product h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.price-checker-product .price-checker-price { margin-top: .45rem; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; font-weight: 950; color: var(--biz-primary); }
.price-checker-product small { color: var(--biz-muted); }
.price-checker-error { padding: 2rem; text-align: center; color: var(--biz-danger); }
body.price-checker-fullscreen .app-sidebar,
body.price-checker-fullscreen .topbar { display: none !important; }
body.price-checker-fullscreen .app-main { margin: 0 !important; }
body.price-checker-fullscreen .page-content { padding: 0 !important; }

@media (max-width: 900px) {
    .product-col-3, .product-col-4, .product-col-5, .product-col-6 { grid-column: span 6; }
    .automation-builder-step .admin-form-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
    .product-col-3, .product-col-4, .product-col-5, .product-col-6 { grid-column: 1 / -1; }
    .product-sheet-grid { gap: .58rem; }
    .price-checker-toolbar { align-items: stretch; flex-direction: column; }
    .price-checker-input-wrap { grid-template-columns: 1fr; }
    .price-checker-submit { min-width: 0; }
    .price-checker-product { grid-template-columns: 1fr; text-align: center; }
    .price-checker-product img { margin: auto; }
    .automation-empty-state { align-items: flex-start; flex-wrap: wrap; }
}

/* Verificador de precios */
.price-checker-shell { width: min(980px, 100%); margin: 0 auto; padding: 0; overflow: hidden; }
.price-checker-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--biz-border); }
.price-checker-toolbar > label { width: min(300px, 100%); margin: 0; }
.price-checker-brand { display: flex; align-items: center; gap: .65rem; font-weight: 900; }
.price-checker-brand img { width: 32px; height: 32px; object-fit: contain; }
.price-checker-stage { padding: clamp(1rem, 3vw, 2rem); }
.price-checker-scan { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: .8rem; align-items: center; }
.price-checker-scan-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.55rem; }
.price-checker-scan label { display: block; margin-bottom: .2rem; font-weight: 900; }
.price-checker-scan input { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--biz-border); border-radius: 11px; background: var(--biz-surface); color: var(--bs-body-color); font-size: 1rem; font-weight: 750; outline: 0; }
.price-checker-scan input:focus { border-color: var(--biz-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--biz-primary) 16%, transparent); }
.price-checker-scan small { display: block; margin-top: .25rem; color: var(--biz-muted); font-size: .65rem; }
.price-checker-idle, .price-checker-message { min-height: 270px; display: grid; place-items: center; align-content: center; gap: .4rem; margin-top: 1rem; padding: 2rem; text-align: center; border: 1px dashed var(--biz-border); border-radius: 16px; background: var(--biz-surface-soft); }
.price-checker-idle > span { font-size: 3rem; color: var(--biz-primary); }
.price-checker-idle p { margin: 0; color: var(--biz-muted); }
.price-checker-result { min-height: 270px; display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 1.1rem; align-items: center; margin-top: 1rem; padding: 1.2rem; border: 1px solid var(--biz-border); border-radius: 16px; background: var(--biz-surface-soft); }
.price-checker-product-image img { width: 150px; height: 150px; object-fit: contain; border-radius: 14px; border: 1px solid var(--biz-border); background: var(--biz-surface); }
.price-checker-product-copy h2 { margin: .2rem 0 .35rem; font-size: clamp(1.25rem, 2.6vw, 1.9rem); }
.price-checker-product-copy p { margin: 0 0 .5rem; color: var(--biz-muted); }
.price-checker-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .68rem; color: var(--biz-muted); }
.price-checker-price { min-width: 190px; text-align: right; }
.price-checker-price small, .price-checker-price span { display: block; color: var(--biz-muted); }
.price-checker-price strong { display: block; margin: .2rem 0; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1; color: var(--biz-primary); }
.price-checker-message.is-error { color: var(--biz-danger); }
.price-checker-shell:fullscreen { width: 100%; max-width: none; height: 100%; border: 0; border-radius: 0; background: var(--biz-bg); display: grid; align-content: center; }
.price-checker-shell:fullscreen .price-checker-stage { width: min(1100px, 100%); margin: auto; }
.price-checker-shell:fullscreen .price-checker-toolbar { position: absolute; inset: 0 0 auto; }
@media (max-width: 720px) {
  .price-checker-toolbar { align-items: stretch; flex-direction: column; }
  .price-checker-scan { grid-template-columns: 1fr; }
  .price-checker-scan-icon { display: none; }
  .price-checker-result { grid-template-columns: 1fr; text-align: center; }
  .price-checker-product-image img { margin: auto; }
  .price-checker-price { min-width: 0; text-align: center; }
}

/* Prioridad sobre la disposición histórica de formularios en sheets */
.bottom-sheet .bottom-sheet-body.admin-form.product-sheet-grid {
    display: grid !important;
    width: min(1120px, 100%) !important;
    max-width: 1120px !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: .72rem !important;
    align-content: start;
}
.bottom-sheet .bottom-sheet-body.admin-form.automation-builder-form {
    display: grid !important;
    width: min(860px, 100%) !important;
    max-width: 860px !important;
    grid-template-columns: 1fr !important;
    gap: .58rem !important;
    padding: 1rem clamp(.8rem, 2vw, 1.25rem) !important;
}
@media (max-width: 900px) {
    .bottom-sheet .bottom-sheet-body.admin-form.product-sheet-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
    .bottom-sheet .bottom-sheet-body.admin-form.product-sheet-grid { grid-template-columns: 1fr !important; }
    .bottom-sheet .bottom-sheet-body.admin-form.product-sheet-grid > * { grid-column: 1 / -1 !important; }
}

/* =========================================================
   BizAI
========================================================= */
.topbar-bizai-trigger {
    border: 1px solid var(--biz-border);
    cursor: text;
    text-align: left;
    color: var(--biz-muted);
}
.topbar-bizai-trigger:hover { border-color: color-mix(in srgb, var(--biz-primary) 35%, var(--biz-border)); background: var(--biz-surface-soft); }
.topbar-bizai-icon { display: grid; place-items: center; color: var(--biz-primary); font-size: 1.05rem; }
.topbar-bizai-placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bizai-panel { position: fixed; inset: 0; z-index: 1095; visibility: hidden; pointer-events: none; }
.bizai-panel.is-open { visibility: visible; pointer-events: auto; }
.bizai-backdrop { position: absolute; inset: 0; background: rgba(4, 13, 17, .34); opacity: 0; transition: opacity .2s ease; }
.bizai-panel.is-open .bizai-backdrop { opacity: 1; }
.bizai-drawer { position: absolute; top: 0; right: 0; width: min(480px, 100%); height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto auto; background: var(--biz-surface); border-left: 1px solid var(--biz-border); box-shadow: -24px 0 70px rgba(0,0,0,.16); transform: translateX(102%); transition: transform .22s ease; }
.bizai-panel.is-open .bizai-drawer { transform: translateX(0); }
.bizai-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--biz-border); }
.bizai-title { display: flex; align-items: center; gap: .72rem; min-width: 0; }
.bizai-title > div { display: grid; min-width: 0; }
.bizai-title strong { font-size: 1rem; }
.bizai-title small { color: var(--biz-muted); font-size: .68rem; }
.bizai-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--biz-primary), #43c7a5); color: #fff; font-size: 1.15rem; box-shadow: 0 9px 25px color-mix(in srgb, var(--biz-primary) 25%, transparent); }
.bizai-context { padding: .58rem 1.1rem; color: var(--biz-muted); font-size: .68rem; border-bottom: 1px solid var(--biz-border); background: var(--biz-surface-soft); }
.bizai-messages { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .78rem; padding: 1rem 1.1rem; }
.bizai-message { display: flex; align-items: flex-start; gap: .55rem; max-width: 92%; }
.bizai-message.is-user { align-self: flex-end; }
.bizai-message > div { padding: .72rem .82rem; border-radius: 15px; background: var(--biz-surface-soft); border: 1px solid var(--biz-border); }
.bizai-message.is-user > div { background: var(--biz-primary); border-color: var(--biz-primary); color: #fff; border-bottom-right-radius: 5px; }
.bizai-message.is-assistant > div { border-bottom-left-radius: 5px; }
.bizai-message p { margin: 0; font-size: .78rem; line-height: 1.55; }
.bizai-message-avatar { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; background: var(--biz-primary-soft); color: var(--biz-primary); }
.bizai-message.is-loading > div { animation: bizaiPulse 1s ease-in-out infinite alternate; }
@keyframes bizaiPulse { to { opacity: .55; } }
.bizai-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.bizai-links a, .bizai-draft a { display: inline-flex; padding: .34rem .58rem; border-radius: 8px; background: var(--biz-surface); color: var(--biz-primary); border: 1px solid var(--biz-border); text-decoration: none; font-size: .67rem; font-weight: 800; }
.bizai-draft { display: grid; gap: .38rem; margin-top: .7rem; padding: .72rem; border: 1px solid color-mix(in srgb, var(--biz-primary) 28%, var(--biz-border)); border-radius: 12px; background: color-mix(in srgb, var(--biz-primary) 5%, var(--biz-surface)); }
.bizai-draft > span { color: var(--biz-primary); font-size: .6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.bizai-draft > p { color: var(--biz-muted); font-size: .68rem; }
.bizai-draft > div { display: flex; justify-content: flex-end; gap: .4rem; }
.bizai-draft.is-loading { opacity: .55; pointer-events: none; }
.bizai-suggestions { display: flex; gap: .4rem; padding: .15rem 1.1rem .65rem; overflow-x: auto; }
.bizai-suggestions button { flex: 0 0 auto; border: 1px solid var(--biz-border); background: var(--biz-surface); color: var(--bs-body-color); border-radius: 999px; padding: .38rem .62rem; font-size: .63rem; font-weight: 750; }
.bizai-composer { display: grid; grid-template-columns: minmax(0,1fr) 38px; gap: .45rem; margin: 0 1.1rem; padding: .45rem; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface-soft); }
.bizai-composer:focus-within { border-color: var(--biz-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--biz-primary) 12%, transparent); }
.bizai-composer textarea { width: 100%; max-height: 130px; resize: none; border: 0; outline: 0; background: transparent; color: var(--bs-body-color); padding: .43rem .48rem; font: inherit; font-size: .76rem; }
.bizai-send { width: 38px; height: 38px; align-self: end; border: 0; border-radius: 11px; display: grid; place-items: center; background: var(--biz-primary); color: #fff; }
.bizai-note { margin: .42rem 1.1rem .75rem; text-align: center; color: var(--biz-muted); font-size: .58rem; }
.bizai-module-bar { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; align-items: center; gap: .35rem; margin: -.25rem 0 1rem; padding: .35rem .42rem; border: 1px solid var(--biz-border); border-radius: 12px; background: var(--biz-surface); box-shadow: 0 8px 24px rgba(11,25,31,.045); }
.bizai-module-bar > span { display: grid; place-items: center; color: var(--biz-primary); }
.bizai-module-bar input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--bs-body-color); font-size: .74rem; padding: .4rem .2rem; }
.bizai-module-bar button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--biz-primary-soft); color: var(--biz-primary); }
@media (max-width: 720px) {
    .bizai-drawer { width: 100%; }
    .topbar-bizai-placeholder { display: none; }
    .topbar-bizai-trigger {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        flex: 0 0 44px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 12px !important;
        cursor: pointer;
    }
    .topbar-bizai-trigger .topbar-bizai-icon { width: auto !important; height: auto !important; margin: 0 !important; font-size: 1.12rem; }
    .topbar-bizai-trigger .topbar-bizai-icon iconify-icon { width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--biz-primary) !important; }
    .topbar-bizai-trigger kbd { display: none; }
}

/* Verificador de precios v0.10 */
.price-checker-setup { width: min(920px,100%); margin: 0 auto; padding: 1rem 1.1rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.price-checker-setup-copy { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.price-checker-setup-copy strong { display: block; font-size: .9rem; }
.price-checker-setup-copy p { margin: .15rem 0 0; color: var(--biz-muted); font-size: .7rem; }
.price-checker-setup-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.3rem; }
.price-checker-setup-actions { display: flex; align-items: end; gap: .6rem; }
.price-checker-setup-actions label { width: 210px; margin: 0; }
.price-checker-setup-actions label > span { display: block; margin-bottom: .25rem; color: var(--biz-muted); font-size: .62rem; font-weight: 800; }
.price-checker-screen { display: none; }
.price-checker-setup:fullscreen { width: 100%; max-width: none; height: 100%; padding: 0; border: 0; border-radius: 0; background: #fff; color: #07171c; overflow: hidden; }
[data-bs-theme="dark"] .price-checker-setup:fullscreen { background: #080c0e; color: #fff; }
.price-checker-setup:fullscreen > .price-checker-setup-copy,
.price-checker-setup:fullscreen > .price-checker-setup-actions { display: none !important; }
.price-checker-setup:fullscreen .price-checker-screen { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.price-checker-hidden-input { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -100px; top: -100px; }
.price-checker-display { width: min(1000px, 92vw); height: min(760px, 90vh); display: grid; grid-template-rows: minmax(0,1fr) auto auto; justify-items: center; align-items: center; gap: clamp(.7rem,2vh,1.3rem); text-align: center; animation: priceReveal .2s ease-out; }
.price-checker-display[hidden], .price-checker-display-message[hidden] { display: none !important; }
.price-checker-display img { width: min(42vw, 380px); height: min(42vh, 380px); object-fit: contain; border: 0; background: transparent; }
.price-checker-display h2 { margin: 0; max-width: 940px; font-size: clamp(2rem, 5vw, 5rem); line-height: 1.03; font-weight: 950; letter-spacing: -.045em; }
.price-checker-display strong { display: block; font-size: clamp(5rem, 15vw, 13rem); line-height: .86; color: #08aa7a; font-weight: 950; letter-spacing: -.07em; }
.price-checker-display-message { padding: 1.2rem; font-size: clamp(1.4rem,3vw,2.6rem); font-weight: 900; text-align: center; color: #e84d67; }
@keyframes priceReveal { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 720px) { .price-checker-setup { align-items: stretch; flex-direction: column; } .price-checker-setup-actions { align-items: stretch; flex-direction: column; } .price-checker-setup-actions label { width: 100%; } }

/* Landing v0.10 */
.public-page-landing { background: #f7faf8; color: #10251e; }
.public-page-landing .public-layout { width: min(1240px, calc(100% - 44px)); }
.landing-nav { position: sticky; top: 0; z-index: 50; margin-top: 12px; padding: .68rem .8rem; border: 1px solid rgba(19,72,54,.1); border-radius: 16px; background: rgba(255,255,255,.84); backdrop-filter: blur(18px); box-shadow: 0 10px 34px rgba(26,72,57,.065); }
.landing-nav-links { display: flex; gap: 1.25rem; margin-left: auto; margin-right: 1.2rem; }
.landing-nav-links a { color: #536961; text-decoration: none; font-size: .72rem; font-weight: 750; }
.landing-nav-actions { display: flex; align-items: center; gap: .7rem; }
.landing-nav-actions > a:not(.btn) { color: #1a392f; text-decoration: none; font-size: .72rem; font-weight: 800; }
.landing-hero-v2 { min-height: 690px; padding-top: 68px; padding-bottom: 88px; }
.landing-hero-v2 .landing-kicker { gap: .35rem; }
.landing-hero-v2 .landing-copy h1 { font-size: clamp(3rem, 5.8vw, 5.7rem); }
.landing-hero-v2 .landing-copy h1 em { color: #0aa376; font-style: normal; }
.landing-trust { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1rem; color: #60746c; font-size: .68rem; }
.landing-trust span { display: inline-flex; align-items: center; gap: .28rem; }
.landing-trust iconify-icon { color: #0aa376; }
.landing-app-preview { overflow: hidden; border: 1px solid #d8e5df; border-radius: 25px; background: #fff; box-shadow: 0 34px 100px rgba(15,70,51,.16); transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.landing-preview-bar { height: 56px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #edf2ef; }
.landing-preview-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #d5dfdb; }
.landing-preview-bar b { margin-left: 8px; color: #102b22; font-size: .85rem; }
.landing-preview-bar i { margin-left: auto; width: 190px; padding: .42rem .65rem; border: 1px solid #e3ebe7; border-radius: 9px; color: #71827b; background: #f8faf9; font-size: .58rem; font-style: normal; }
.landing-preview-body { min-height: 430px; display: grid; grid-template-columns: 54px minmax(0,1fr); }
.landing-preview-body > aside { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 15px; background: #0e1915; }
.landing-preview-body > aside strong { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #0aa376; color: #fff; }
.landing-preview-body > aside span { width: 21px; height: 5px; border-radius: 99px; background: #405049; }
.landing-preview-body > main { padding: 18px; background: #f7faf8; }
.landing-preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.landing-preview-stats article { padding: 12px; border: 1px solid #e0e9e5; border-radius: 12px; background: #fff; }
.landing-preview-stats small { display: block; color: #708078; font-size: .5rem; }
.landing-preview-stats strong { font-size: .85rem; }
.landing-preview-content { display: grid; grid-template-columns: 1.3fr .7fr; gap: 10px; margin-top: 10px; }
.landing-preview-content > section { min-height: 265px; padding: 16px; border: 1px solid #e0e9e5; border-radius: 14px; background: #fff; }
.landing-preview-content small { color: #0aa376; font-size: .5rem; font-weight: 900; }
.landing-preview-content h3 { margin: .25rem 0 1.4rem; font-size: 1rem; }
.landing-chart { height: 145px; display: flex; align-items: end; gap: 9px; }
.landing-chart i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg,#15bb89,#a5e6d2); }
.landing-chart i:nth-child(1){height:42%}.landing-chart i:nth-child(2){height:58%}.landing-chart i:nth-child(3){height:49%}.landing-chart i:nth-child(4){height:72%}.landing-chart i:nth-child(5){height:63%}.landing-chart i:nth-child(6){height:86%}.landing-chart i:nth-child(7){height:94%}
.landing-ai-card { display: grid; align-content: start; }
.landing-ai-card iconify-icon { color: #0aa376; font-size: 1.8rem; }
.landing-ai-card strong { margin-top: 1rem; font-size: .76rem; }
.landing-ai-card p { color: #657870; font-size: .58rem; line-height: 1.55; }
.landing-ai-card button { justify-self: start; border: 0; border-radius: 8px; padding: .45rem .65rem; background: #e2f6ef; color: #087a5b; font-size: .55rem; font-weight: 800; }
.landing-proof-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 92px; color: #6a7d75; font-size: .72rem; font-weight: 750; }
.landing-proof-strip i { width: 4px; height: 4px; border-radius: 50%; background: #b5c5bf; }
.landing-section { padding: 80px 0; }
.landing-section-heading { max-width: 720px; margin-bottom: 35px; }
.landing-section-heading > span, .landing-pricing-copy > span { color: #0a9d72; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.landing-section-heading h2, .landing-pricing-copy h2 { margin: .45rem 0 .8rem; font-size: clamp(2rem,4vw,3.7rem); line-height: 1.02; letter-spacing: -.055em; }
.landing-section-heading p, .landing-pricing-copy p { color: #62766e; line-height: 1.7; }
.landing-module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.landing-module-grid article { min-height: 240px; padding: 25px; border: 1px solid #dce7e2; border-radius: 20px; background: #fff; transition: transform .2s ease,box-shadow .2s ease; }
.landing-module-grid article:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(25,70,55,.09); }
.landing-module-grid article > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #0aa376; background: #e6f7f1; font-size: 1.35rem; }
.landing-module-grid h3 { margin: 1.4rem 0 .55rem; font-size: 1.05rem; }
.landing-module-grid p { margin: 0; color: #65776f; font-size: .77rem; line-height: 1.65; }
.landing-ai-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(35px,7vw,100px); align-items: center; padding: 95px clamp(25px,5vw,70px); border-radius: 30px; background: #0d261e; color: #fff; }
.landing-ai-copy h2 { margin: .6rem 0 1rem; font-size: clamp(2rem,4vw,3.8rem); line-height: 1; letter-spacing: -.055em; }
.landing-ai-copy p { color: #bfd0ca; line-height: 1.7; }
.landing-ai-copy ul { display: grid; gap: .65rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.landing-ai-copy li:before { content:'✓'; margin-right: .5rem; color: #52d8ae; }
.landing-ai-demo { display: flex; flex-direction: column; gap: 13px; padding: 24px; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: rgba(255,255,255,.055); }
.landing-ai-question { align-self: flex-end; max-width: 78%; padding: .8rem .95rem; border-radius: 16px 16px 4px 16px; background: #0aa376; font-size: .78rem; }
.landing-ai-question.is-second { width: auto; margin-top: 7px; }
.landing-ai-answer { display: flex; gap: .7rem; max-width: 88%; padding: 1rem; border-radius: 16px 16px 16px 4px; background: #fff; color: #10251e; }
.landing-ai-answer > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e2f6ef; color: #0aa376; }
.landing-ai-answer p { color: #687a73; font-size: .7rem; line-height: 1.55; }
.landing-ai-answer button { border: 0; border-radius: 8px; padding: .45rem .65rem; background: #e4f7f0; color: #087a5b; font-size: .62rem; font-weight: 800; }
.landing-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.landing-flow article { min-height: 145px; display: grid; align-content: center; justify-items: center; padding: 20px; border: 1px solid #dce7e2; border-radius: 18px; background: #fff; text-align: center; }
.landing-flow b { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: .7rem; border-radius: 9px; color: #0a9d72; background: #e5f7f0; }
.landing-flow small { color: #718078; }
.landing-flow > iconify-icon { color: #8aa097; }
.landing-integration-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.landing-integration-grid article { padding: 24px; border: 1px solid #dce7e2; border-radius: 18px; background: #fff; }
.landing-integration-grid strong { font-size: 1rem; }
.landing-integration-grid p { margin: .4rem 0 0; color: #697b74; font-size: .72rem; line-height: 1.55; }
.landing-pricing { display: grid; grid-template-columns: 1fr minmax(360px,.65fr); gap: clamp(35px,8vw,110px); align-items: center; padding: 90px 0; }
.landing-price-card { padding: 30px; border: 1px solid #cfe1da; border-radius: 25px; background: #fff; box-shadow: 0 25px 70px rgba(24,74,56,.12); }
.landing-price-card > span { color: #0a9d72; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.landing-price-card > div { display: flex; align-items: end; gap: .55rem; margin: 1rem 0; }
.landing-price-card > div strong { font-size: 3.2rem; line-height: .9; letter-spacing: -.06em; }
.landing-price-card > div small { color: #6a7c75; }
.landing-price-card ul { display: grid; gap: .75rem; padding: 1.1rem 0 1.1rem 1.2rem; border-top: 1px solid #e3ebe7; border-bottom: 1px solid #e3ebe7; }
.landing-price-card li { font-size: .76rem; }
.landing-price-card > p { color: #687a73; font-size: .67rem; line-height: 1.55; }
.landing-faq-list { display: grid; gap: 10px; }
.landing-faq-list details { padding: 0 20px; border: 1px solid #dce7e2; border-radius: 15px; background: #fff; }
.landing-faq-list summary { padding: 18px 0; cursor: pointer; font-weight: 850; }
.landing-faq-list p { margin: 0 0 18px; color: #667970; font-size: .78rem; line-height: 1.65; }
.landing-final-v2 { padding: 45px; background: linear-gradient(135deg,#0d271f,#123c30); }
.landing-final-v2 h2 { max-width: 780px; }
@media (max-width: 980px) { .landing-nav-links { display:none; } .landing-hero-v2 { grid-template-columns:1fr; } .landing-app-preview { transform:none; } .landing-module-grid { grid-template-columns:repeat(2,1fr); } .landing-ai-section { grid-template-columns:1fr; } .landing-integration-grid { grid-template-columns:repeat(2,1fr); } .landing-pricing { grid-template-columns:1fr; } }
@media (max-width: 680px) { .public-page-landing .public-layout { width:min(100% - 24px,1240px); } .landing-nav-actions > a:not(.btn) { display:none; } .landing-hero-v2 .landing-copy h1 { font-size:2.9rem; } .landing-preview-body { grid-template-columns:1fr; } .landing-preview-body > aside { display:none; } .landing-preview-stats { grid-template-columns:1fr; } .landing-preview-content { grid-template-columns:1fr; } .landing-preview-content > section:first-child { display:none; } .landing-module-grid,.landing-integration-grid { grid-template-columns:1fr; } .landing-flow { grid-template-columns:1fr; } .landing-flow > iconify-icon { transform:rotate(90deg); justify-self:center; } .landing-ai-section { padding:50px 20px; } .landing-final-v2 { padding:28px; } }
.subscription-usage { display: grid; gap: .5rem; margin: .85rem 0; padding: .85rem; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface-soft); }
.subscription-usage-head,.subscription-usage-foot { display:flex; align-items:center; justify-content:space-between; gap:.8rem; font-size:.68rem; }
.subscription-usage-head strong,.subscription-usage-foot strong { color:var(--biz-text); }
.subscription-usage-foot { color:var(--biz-muted); font-size:.62rem; }
.subscription-usage-bar { height:8px; overflow:hidden; border-radius:999px; background:color-mix(in srgb,var(--biz-border) 70%,transparent); }
.subscription-usage-bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--biz-primary),#59d4b2); }
.ticket-heading-actions { display:flex; align-items:center; gap:.35rem; }
.pos-hold-dialog { width:min(680px,calc(100% - 24px)); max-height:min(80vh,720px); padding:0; border:1px solid var(--biz-border); border-radius:18px; background:var(--biz-surface); color:var(--biz-text); box-shadow:0 30px 90px rgba(0,0,0,.25); }
.pos-hold-dialog::backdrop { background:rgba(4,13,17,.48); backdrop-filter:blur(3px); }
.pos-hold-dialog > header { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.1rem; border-bottom:1px solid var(--biz-border); }
.pos-hold-dialog h2 { margin:.2rem 0 0; font-size:1.05rem; }
.pos-hold-list { max-height:62vh; overflow:auto; padding:.75rem; }
.pos-hold-list article { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem; border-bottom:1px solid var(--biz-border); }
.pos-hold-list article:last-child { border-bottom:0; }
.pos-hold-list article > div:first-child { display:grid; gap:.15rem; min-width:0; }
.pos-hold-list article span,.pos-hold-list article small { color:var(--biz-muted); font-size:.65rem; }
.pos-hold-list article > div:last-child { display:flex; gap:.4rem; }
@media(max-width:580px){.pos-hold-list article{align-items:flex-start;flex-direction:column}.pos-hold-list article>div:last-child{width:100%;justify-content:flex-end}}

/* BizAI v0.10.1 · estado, cupo y administración */
.topbar-bizai-trigger.is-disabled { cursor: pointer; }
.topbar-bizai-trigger.is-disabled .topbar-bizai-icon { opacity: .62; }
.topbar-bizai-trigger.is-limit-reached { border-color: color-mix(in srgb, #d79b24 38%, var(--biz-border)); }
.bizai-drawer { grid-template-rows: auto auto auto minmax(0,1fr); }
.bizai-status-strip { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .45rem 1.1rem; border-bottom: 1px solid var(--biz-border); background: color-mix(in srgb, var(--biz-primary) 5%, var(--biz-surface)); color: var(--biz-muted); font-size: .64rem; }
.bizai-status-strip strong { color: var(--bs-body-color); font-size: .65rem; }
.bizai-chat { min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto auto auto; }
.bizai-chat[hidden] { display: none !important; }
.bizai-unavailable { align-self: start; margin: 1.25rem; padding: 1.2rem; display: grid; justify-items: start; gap: .55rem; border: 1px solid var(--biz-border); border-radius: 16px; background: var(--biz-surface-soft); }
.bizai-unavailable[hidden] { display: none !important; }
.bizai-unavailable > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.3rem; }
.bizai-unavailable strong { font-size: .9rem; }
.bizai-unavailable p { margin: 0 0 .2rem; color: var(--biz-muted); font-size: .72rem; line-height: 1.55; }
.integration-plan-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-top: .8rem; }
.integration-plan-summary > div { display: grid; gap: .15rem; padding: .7rem; border: 1px solid var(--biz-border); border-radius: 11px; background: var(--biz-surface-soft); }
.integration-plan-summary span,.integration-price,.integration-helper { color: var(--biz-muted); font-size: .64rem; }
.integration-plan-summary strong { font-size: .78rem; }
.integration-usage-bar { margin: .65rem 0 .8rem; }
.integration-feature-list { display: flex; flex-wrap: wrap; gap: .42rem; margin: .75rem 0; }
.integration-feature-list span { padding: .38rem .55rem; border: 1px solid var(--biz-border); border-radius: 999px; color: var(--biz-muted); background: var(--biz-surface-soft); font-size: .61rem; }
.compact-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.compact-form-grid > label { min-width: 0; }
.compact-form-grid > label > span,.compact-filter > span { display: block; margin-bottom: .25rem; color: var(--biz-muted); font-size: .62rem; font-weight: 800; }
.compact-filter { width: min(180px,100%); }
.module-stats-inline { margin-bottom: 1rem; }
@media (max-width: 980px) { .compact-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .compact-form-grid { grid-template-columns: 1fr; } .integration-plan-summary { grid-template-columns: 1fr; } }
.subscription-addons-summary { display:grid; grid-template-columns:1fr auto; gap:.25rem .8rem; margin:.55rem 0 .75rem; padding:.7rem .8rem; border:1px solid var(--biz-border); border-radius:11px; background:var(--biz-surface-soft); font-size:.67rem; }
.subscription-addons-summary > div { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:.35rem; }
.subscription-addons-summary small { padding:.25rem .45rem; border-radius:999px; background:var(--biz-surface); color:var(--biz-muted); border:1px solid var(--biz-border); }

/* Biznube V1 · documentos nativos */
.biznube-locked { min-height: 220px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; padding: 1.4rem; }
.biznube-locked-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.75rem; }
.biznube-locked h2 { margin: 0 0 .3rem; font-size: 1rem; }
.biznube-locked p { margin: 0; max-width: 680px; color: var(--biz-muted); font-size: .72rem; line-height: 1.55; }
.biznube-quickbar { display: flex; align-items: center; min-height: 52px; margin: -.2rem 0 .8rem; padding: .55rem .8rem; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface); overflow-x: auto; }
.biznube-quickbar > div { min-width: 135px; display: grid; grid-template-columns: 24px auto; grid-template-rows: auto auto; column-gap: .45rem; align-items: center; padding: 0 .55rem; }
.biznube-quickbar iconify-icon { grid-row: 1 / 3; color: var(--biz-primary); font-size: 1.05rem; }
.biznube-quickbar span { color: var(--biz-muted); font-size: .57rem; font-weight: 760; }
.biznube-quickbar strong { font-size: .72rem; }
.biznube-quickbar > i { width: 1px; align-self: stretch; background: var(--biz-border); }
.biznube-tabs { display: flex; align-items: center; gap: .25rem; margin-bottom: .75rem; border-bottom: 1px solid var(--biz-border); }
.biznube-tabs a { padding: .62rem .75rem; color: var(--biz-muted); text-decoration: none; font-size: .67rem; font-weight: 800; border-bottom: 2px solid transparent; }
.biznube-tabs a.active { color: var(--biz-primary); border-bottom-color: var(--biz-primary); }
.biznube-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: .75rem; align-items: start; }
.biznube-layout.has-detail { grid-template-columns: 200px minmax(0,1fr) minmax(285px,360px); }
.biznube-sidebar,.biznube-browser,.biznube-detail { min-width: 0; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface); overflow: hidden; }
.biznube-side-title,.biznube-browser-head,.biznube-detail-head { display: flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 52px; padding: .7rem .8rem; border-bottom: 1px solid var(--biz-border); }
.biznube-side-title strong,.biznube-browser-head strong,.biznube-detail-head h2 { margin: 0; font-size: .75rem; }
.biznube-browser-head > div,.biznube-detail-head > div { display: grid; gap: .08rem; min-width: 0; }
.biznube-browser-head small,.biznube-detail-head small { color: var(--biz-muted); font-size: .56rem; }
.biznube-folder-list { display: grid; gap: .1rem; padding: .45rem; }
.biznube-folder-list a { display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .5rem .55rem; border-radius: 9px; color: var(--biz-muted); text-decoration: none; font-size: .64rem; font-weight: 740; }
.biznube-folder-list a iconify-icon { flex: 0 0 auto; font-size: .95rem; }
.biznube-folder-list a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biznube-folder-list a.active,.biznube-folder-list a:hover { color: var(--bs-body-color); background: var(--biz-surface-soft); }
.biznube-filterbar { display: grid; grid-template-columns: minmax(180px,1fr) 145px 135px auto; gap: .45rem; padding: .55rem .65rem; border-bottom: 1px solid var(--biz-border); background: var(--biz-surface-soft); }
.biznube-filterbar .form-control,.biznube-filterbar .form-select { min-height: 34px; font-size: .63rem; }
.biznube-doc-list { display: grid; }
.biznube-doc-row { display: grid; grid-template-columns: minmax(180px,1.7fr) minmax(100px,.65fr) 90px 90px 26px; gap: .65rem; align-items: center; min-width: 0; padding: .68rem .75rem; border-bottom: 1px solid var(--biz-border); color: inherit; text-decoration: none; }
.biznube-doc-row:last-child { border-bottom: 0; }
.biznube-doc-row:hover,.biznube-doc-row.active { background: var(--biz-surface-soft); }
.biznube-doc-main { display: flex; align-items: center; min-width: 0; gap: .6rem; }
.biznube-doc-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.05rem; }
.biznube-doc-main > span,.biznube-doc-row > span { min-width: 0; display: grid; gap: .08rem; }
.biznube-doc-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.biznube-doc-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--biz-muted); font-size: .56rem; }
.biznube-doc-row > iconify-icon { color: var(--biz-muted); }
.biznube-empty { min-height: 230px; display: grid; place-items: center; align-content: center; gap: .4rem; padding: 2rem; text-align: center; color: var(--biz-muted); }
.biznube-empty iconify-icon { font-size: 2.2rem; color: var(--biz-primary); opacity: .65; }
.biznube-empty strong { color: var(--bs-body-color); font-size: .8rem; }
.biznube-empty p { max-width: 420px; margin: 0; font-size: .65rem; line-height: 1.55; }
.biznube-detail { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.biznube-detail-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biznube-detail-actions { display: flex; gap: .35rem; padding: .65rem .75rem; border-bottom: 1px solid var(--biz-border); }
.biznube-detail-section { border-bottom: 1px solid var(--biz-border); }
.biznube-detail-section summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .68rem .75rem; cursor: pointer; list-style: none; font-size: .65rem; font-weight: 820; }
.biznube-detail-section summary::-webkit-details-marker { display: none; }
.biznube-detail-section summary span { color: var(--biz-muted); font-size: .56rem; }
.biznube-detail-body { display: grid; gap: .55rem; padding: 0 .75rem .75rem; }
.biznube-properties { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.biznube-properties > div { min-width: 0; padding: .48rem; border-radius: 9px; background: var(--biz-surface-soft); }
.biznube-properties span { display: block; color: var(--biz-muted); font-size: .53rem; }
.biznube-properties strong { display: block; margin-top: .08rem; overflow-wrap: anywhere; font-size: .62rem; }
.biznube-link-list,.biznube-version-list { display: grid; gap: .3rem; }
.biznube-link-item,.biznube-share-item,.biznube-version-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; padding: .5rem; border: 1px solid var(--biz-border); border-radius: 9px; color: inherit; text-decoration: none; }
.biznube-link-item > span,.biznube-share-item > span,.biznube-version-list a > span { min-width: 0; display: grid; gap: .06rem; }
.biznube-link-item strong,.biznube-share-item strong,.biznube-version-list strong { font-size: .61rem; }
.biznube-link-item small,.biznube-share-item small,.biznube-version-list small { color: var(--biz-muted); font-size: .54rem; }
.biznube-mini-form,.biznube-version-form,.biznube-share-form,.biznube-move-form { display: grid; gap: .4rem; }
.biznube-mini-form > div,.biznube-link-row { position: relative; display: grid; grid-template-columns: 125px minmax(0,1fr); gap: .4rem; }
.biznube-mini-form .form-control,.biznube-mini-form .form-select,.biznube-version-form .form-control,.biznube-share-form .form-select,.biznube-move-form .form-select { min-height: 35px; font-size: .61rem; }
.biznube-entity-results { position: absolute; z-index: 15; top: calc(100% + .25rem); right: 0; left: 0; max-height: 220px; overflow: auto; padding: .25rem; border: 1px solid var(--biz-border); border-radius: 10px; background: var(--biz-surface); box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.biznube-entity-results button { width: 100%; display: grid; gap: .08rem; padding: .5rem; border: 0; border-radius: 7px; background: transparent; color: var(--bs-body-color); text-align: left; }
.biznube-entity-results button:hover { background: var(--biz-surface-soft); }
.biznube-entity-results strong { font-size: .61rem; }
.biznube-entity-results small,.biznube-entity-results > span { color: var(--biz-muted); font-size: .54rem; }
.biznube-share-ready { display: grid; gap: .4rem; margin: .65rem; padding: .65rem; border: 1px solid color-mix(in srgb,var(--biz-primary) 35%,var(--biz-border)); border-radius: 11px; background: var(--biz-primary-soft); }
.biznube-share-ready strong { font-size: .65rem; }
.biznube-share-ready > div { display: flex; gap: .35rem; }
.biznube-share-ready .form-control { min-width: 0; min-height: 34px; font-size: .58rem; }
.biznube-share-ready small { color: var(--biz-muted); font-size: .53rem; }
.biznube-danger-action,.biznube-trash-actions { display: flex; gap: .4rem; padding: .7rem .75rem; }
.biznube-upload-sheet,.biznube-folder-sheet { max-width: min(960px,100%); }
.biznube-upload-grid { display: grid; grid-template-columns: minmax(200px,1.5fr) minmax(130px,.65fr) minmax(170px,.85fr); gap: .65rem; }
.biznube-upload-grid label,.biznube-version-form label { min-width: 0; }
.biznube-upload-grid label > span,.biznube-version-form label > span { display: block; margin-bottom: .25rem; color: var(--biz-muted); font-size: .59rem; font-weight: 800; }
.biznube-dropzone { position: relative; min-height: 145px; display: grid; place-items: center; margin-bottom: .75rem; overflow: hidden; border: 1.5px dashed var(--biz-border-strong); border-radius: 13px; background: var(--biz-surface-soft); cursor: pointer; }
.biznube-dropzone.is-dragging { border-color: var(--biz-primary); background: var(--biz-primary-soft); }
.biznube-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.biznube-dropzone > span { display: grid; justify-items: center; gap: .25rem; max-width: 85%; text-align: center; pointer-events: none; }
.biznube-dropzone iconify-icon { font-size: 1.7rem; color: var(--biz-primary); }
.biznube-dropzone strong { font-size: .75rem; }
.biznube-dropzone small { color: var(--biz-muted); font-size: .56rem; }
.biznube-link-upload { display: grid; grid-template-columns: minmax(180px,.45fr) minmax(0,1fr); gap: .8rem; align-items: end; margin-top: .8rem; padding: .7rem; border: 1px solid var(--biz-border); border-radius: 11px; }
.biznube-link-upload p { margin: .18rem 0 0; color: var(--biz-muted); font-size: .58rem; }
.biznube-link-row { grid-template-columns: 150px minmax(0,1fr); }
@media (max-width: 1180px) { .biznube-layout.has-detail { grid-template-columns: 185px minmax(0,1fr); } .biznube-layout.has-detail .biznube-detail { position: static; grid-column: 1 / -1; max-height: none; } }
@media (max-width: 820px) { .biznube-layout,.biznube-layout.has-detail { grid-template-columns: 1fr; } .biznube-sidebar { display: none; } .biznube-filterbar { grid-template-columns: 1fr 1fr; } .biznube-doc-row { grid-template-columns: minmax(0,1fr) 76px 26px; } .biznube-doc-row > span:nth-of-type(2),.biznube-doc-row > span:nth-of-type(3) { display: none; } .biznube-upload-grid,.biznube-link-upload { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .biznube-heading { align-items: flex-start; } .biznube-heading .page-heading-buttons { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .biznube-quickbar { margin-top: 0; } .biznube-filterbar { grid-template-columns: 1fr; } .biznube-filterbar .btn { width: 100%; } .biznube-doc-row { grid-template-columns: minmax(0,1fr) 24px; } .biznube-doc-row > span { display: none; } .biznube-properties { grid-template-columns: 1fr 1fr; } .biznube-mini-form > div,.biznube-link-row { grid-template-columns: 1fr; } .biznube-locked { grid-template-columns: 1fr; } }
/* Ajustes de selectores de la vista Biznube V1 */
.biznube-folders { min-width: 0; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface); overflow: hidden; }
.biznube-folder-link { display:flex; align-items:center; gap:.45rem; margin:.12rem .42rem; padding:.5rem .55rem; border-radius:9px; color:var(--biz-muted); text-decoration:none; font-size:.63rem; font-weight:760; }
.biznube-folder-link:first-of-type { margin-top:.42rem; }
.biznube-folder-link:last-of-type { margin-bottom:.42rem; }
.biznube-folder-link span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.biznube-folder-link:hover,.biznube-folder-link.active { color:var(--biz-text); background:var(--biz-surface-soft); }
.biznube-side-empty { display:block; padding:.55rem .75rem .8rem; color:var(--biz-muted); font-size:.56rem; line-height:1.5; }
.biznube-toolbar { display:grid; grid-template-columns:minmax(180px,1fr) 155px 155px auto; gap:.45rem; padding:.58rem .65rem; border-bottom:1px solid var(--biz-border); background:var(--biz-surface-soft); }
.biznube-toolbar .form-control,.biznube-toolbar .form-select { min-height:34px; font-size:.62rem; }
.biznube-search { min-width:0; }
.biznube-file-icon { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border-radius:10px; background:var(--biz-primary-soft); color:var(--biz-primary); font-size:1.05rem; }
.biznube-file-main { min-width:0; display:grid; gap:.08rem; }
.biznube-file-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.67rem; }
.biznube-file-main small,.biznube-file-meta small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--biz-muted); font-size:.55rem; }
.biznube-file-origin,.biznube-file-meta,.biznube-file-counts { min-width:0; }
.biznube-file-meta { display:grid; gap:.08rem; }
.biznube-file-meta strong { font-size:.6rem; }
.biznube-file-counts { display:flex; justify-content:flex-end; gap:.3rem; }
.biznube-file-counts small { display:inline-flex; align-items:center; gap:.12rem; color:var(--biz-muted); font-size:.54rem; }
.biznube-properties { margin:0; padding:.65rem .75rem; border-bottom:1px solid var(--biz-border); }
.biznube-properties dt { color:var(--biz-muted); font-size:.52rem; font-weight:750; }
.biznube-properties dd { margin:.08rem 0 0; overflow-wrap:anywhere; font-size:.61rem; font-weight:800; }
.biznube-link-chip { display:flex; align-items:center; justify-content:space-between; gap:.45rem; padding:.45rem .5rem; border:1px solid var(--biz-border); border-radius:9px; }
.biznube-link-chip > span { min-width:0; display:grid; gap:.05rem; }
.biznube-link-chip strong { font-size:.59rem; }
.biznube-link-chip small { color:var(--biz-muted); font-size:.53rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:820px){.biznube-folders{display:none}.biznube-toolbar{grid-template-columns:1fr 1fr}.biznube-doc-row{grid-template-columns:42px minmax(0,1fr) 80px 24px}.biznube-file-origin,.biznube-file-meta:nth-of-type(2){display:none}}
@media(max-width:560px){.biznube-toolbar{grid-template-columns:1fr}.biznube-doc-row{grid-template-columns:36px minmax(0,1fr) 22px}.biznube-file-meta,.biznube-file-origin{display:none}}

/* =========================================================
   v0.10.3 · mensajes y confirmaciones nativas de Bizfera
========================================================= */
.bizfera-toast-stack{position:fixed;right:18px;bottom:18px;z-index:1400;display:grid;gap:10px;width:min(390px,calc(100vw - 28px));pointer-events:none}
.bizfera-toast{display:grid;grid-template-columns:38px minmax(0,1fr) 28px;align-items:start;gap:10px;padding:12px 12px 12px 11px;border:1px solid var(--biz-border);border-radius:15px;background:color-mix(in srgb,var(--biz-surface) 96%,#fff 4%);box-shadow:0 18px 50px rgba(0,0,0,.22);opacity:0;transform:translateY(14px) scale(.985);transition:opacity .18s ease,transform .18s ease;pointer-events:auto;overflow:hidden}
.bizfera-toast.is-visible{opacity:1;transform:none}.bizfera-toast.is-leaving{opacity:0;transform:translateY(8px) scale(.985)}
.bizfera-toast-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:20px}.bizfera-toast-error .bizfera-toast-icon{background:rgba(232,77,103,.12);color:#e84d67}.bizfera-toast-warning .bizfera-toast-icon{background:rgba(215,155,36,.13);color:#d79b24}
.bizfera-toast-copy{min-width:0}.bizfera-toast-copy strong{display:block;margin:1px 0 3px;font-size:.76rem}.bizfera-toast-copy p{margin:0;color:var(--biz-muted);font-size:.67rem;line-height:1.45;overflow-wrap:anywhere}.bizfera-toast-close{display:grid;width:28px;height:28px;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--biz-muted);font-size:18px}.bizfera-toast-close:hover{background:var(--biz-surface-soft);color:var(--biz-text)}
.bizfera-dialog-backdrop{position:fixed;inset:0;z-index:1450;display:grid;place-items:center;padding:18px;background:rgba(3,11,14,.46);backdrop-filter:blur(4px);opacity:0;transition:opacity .15s ease}.bizfera-dialog-backdrop.is-visible{opacity:1}.bizfera-dialog-backdrop.is-leaving{opacity:0}.bizfera-dialog{width:min(440px,100%);padding:16px;border:1px solid var(--biz-border);border-radius:18px;background:var(--biz-surface);box-shadow:0 28px 90px rgba(0,0,0,.28);color:var(--biz-text)}
.bizfera-dialog header{display:flex;align-items:flex-start;gap:12px}.bizfera-dialog-mark{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:12px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:21px}.bizfera-dialog header div{min-width:0}.bizfera-dialog header strong{display:block;font-size:.92rem}.bizfera-dialog header p{margin:4px 0 0;color:var(--biz-muted);font-size:.7rem;line-height:1.5;white-space:pre-line}.bizfera-dialog>input{margin-top:14px}.bizfera-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
@media(max-width:620px){.bizfera-toast-stack{right:12px;bottom:12px;width:calc(100vw - 24px)}.bizfera-dialog{border-radius:16px}}

/* =========================================================
   v0.10.3 · UI estable: BizAI, integraciones, permisos y landing
========================================================= */
/* BizAI: panel cómodo, sin overflow horizontal y composer siempre visible. */
.bizai-drawer{
    width:min(560px,100vw)!important;
    height:100dvh!important;
    min-width:0;
    overflow:hidden;
    grid-template-rows:auto auto minmax(0,1fr)!important;
}
.bizai-drawer>*{min-width:0}
.bizai-header{padding:.9rem 1rem!important;background:var(--biz-surface)}
.bizai-title small{font-size:.64rem!important}
.bizai-meta-row{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:.6rem;padding:.5rem .9rem;border-bottom:1px solid var(--biz-border);background:var(--biz-surface-soft)}
.bizai-meta-row .bizai-context{min-width:0;padding:0!important;border:0!important;background:transparent!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.62rem!important}
.bizai-meta-row .bizai-status-strip{flex:0 0 auto;display:flex!important;align-items:center;gap:.42rem;padding:.28rem .45rem!important;border:1px solid var(--biz-border)!important;border-radius:999px;background:var(--biz-surface)!important;font-size:.57rem!important}
.bizai-meta-row .bizai-status-strip[hidden]{display:none!important}
.bizai-meta-row .bizai-status-strip strong{font-size:.58rem!important;white-space:nowrap}
.bizai-chat{min-width:0!important;min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;background:var(--biz-surface)}
.bizai-chat[hidden]{display:none!important}
.bizai-messages{min-width:0;min-height:0;overflow-x:hidden!important;overflow-y:auto!important;padding:1rem!important;gap:.7rem!important;scrollbar-gutter:stable}
.bizai-message{min-width:0;max-width:88%!important;gap:.48rem!important}
.bizai-message>div{min-width:0;padding:.7rem .78rem!important;border-radius:16px!important}
.bizai-message.is-assistant>div{border-bottom-left-radius:5px!important}
.bizai-message.is-user>div{border-bottom-right-radius:5px!important}
.bizai-message p{font-size:.74rem!important;line-height:1.55!important;overflow-wrap:anywhere}
.bizai-message-avatar{width:28px!important;height:28px!important;flex:0 0 28px!important}
.bizai-chat-bottom{min-width:0;padding:.6rem .9rem .75rem;border-top:1px solid var(--biz-border);background:color-mix(in srgb,var(--biz-surface) 97%,var(--biz-primary) 3%)}
.bizai-suggestions{min-width:0;padding:0 0 .55rem!important;gap:.38rem!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;overscroll-behavior-x:contain}
.bizai-suggestions::-webkit-scrollbar{display:none}
.bizai-suggestions button{padding:.36rem .6rem!important;font-size:.59rem!important;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bizai-composer{min-width:0;margin:0!important;padding:.42rem!important;grid-template-columns:minmax(0,1fr) 40px!important;border-radius:15px!important;background:var(--biz-surface)!important;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.bizai-composer textarea{min-width:0!important;min-height:40px!important;max-height:130px!important;padding:.55rem .5rem!important;font-size:.73rem!important;line-height:1.4}
.bizai-send{width:40px!important;height:40px!important;border-radius:12px!important}
.bizai-note{display:flex;align-items:center;justify-content:center;gap:.28rem;margin:.45rem 0 0!important;font-size:.54rem!important;line-height:1.3!important}
.bizai-note iconify-icon{color:var(--biz-primary);font-size:.8rem}
.bizai-unavailable{margin:1rem!important;align-self:start;max-width:none!important}
.bizai-module-bar{margin:0 0 .8rem!important;border-radius:13px!important;box-shadow:none!important}
body.bizai-open{overflow:hidden}
@media(max-width:620px){
    .bizai-drawer{width:100vw!important;border-left:0!important}
    .bizai-header{padding:.75rem .8rem!important}
    .bizai-meta-row{padding:.45rem .7rem}
    .bizai-messages{padding:.75rem!important}
    .bizai-message{max-width:94%!important}
    .bizai-chat-bottom{padding:.55rem .7rem calc(.65rem + env(safe-area-inset-bottom))}
}

/* Panel interno de consumo BizAI. */
.bizai-consumption-stats .module-stats-bar-inner{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible!important;padding:0 clamp(.75rem,2vw,1.35rem)!important}
.bizai-consumption-stats .module-stat-item{min-width:0!important;padding:.55rem .85rem!important;border-right:1px solid var(--biz-border)}
.bizai-consumption-stats .module-stat-item:first-child{padding-left:0!important}
.bizai-consumption-stats .module-stat-copy{min-width:0;display:grid;gap:.05rem}
.bizai-consumption-stats .module-stat-copy small{font-size:.58rem!important;white-space:normal}
.bizai-consumption-stats .module-stat-copy strong{font-size:.78rem!important;line-height:1.2;overflow-wrap:anywhere}
.bizai-control-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:.8rem;align-items:stretch;margin-bottom:.8rem}
.bizai-control-grid>details{margin:0!important}
.bizai-engine-card{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:1fr auto;gap:.7rem .8rem;align-items:start;padding:1rem}
.bizai-engine-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.3rem}
.bizai-engine-copy{min-width:0}.bizai-engine-copy strong{display:block;margin:.18rem 0 .2rem;font-size:.85rem}.bizai-engine-copy p{margin:0;color:var(--biz-muted);font-size:.64rem;line-height:1.5}.bizai-engine-copy small{display:block;margin-top:.45rem;color:var(--biz-muted);font-size:.57rem;overflow-wrap:anywhere}
.bizai-engine-card>.btn{grid-column:1/-1;justify-self:stretch}
@media(max-width:1000px){.bizai-control-grid{grid-template-columns:1fr}.bizai-consumption-stats .module-stats-bar-inner{grid-template-columns:repeat(2,minmax(0,1fr))}.bizai-consumption-stats .module-stat-item:nth-child(2){border-right:0}}
@media(max-width:540px){.bizai-consumption-stats .module-stats-bar-inner{display:flex!important;overflow-x:auto!important}.bizai-consumption-stats .module-stat-item{min-width:160px!important}}

/* Integraciones: el logo es la identidad visual principal de cada bloque. */
.integration-brand-slot{min-width:126px;min-height:42px;display:flex;align-items:center;gap:.55rem}
.integration-brand-image{display:block;width:auto;max-width:145px;height:34px;object-fit:contain;object-position:left center}
.integration-section-logo{display:inline-block;width:auto;max-width:78px;height:22px;object-fit:contain;object-position:left center;vertical-align:middle}
.integration-brand-fallback{font-size:.88rem;white-space:nowrap}
.integration-card-header{grid-template-columns:minmax(126px,.42fr) minmax(0,1fr) auto!important;gap:.9rem!important;align-items:center!important}
.integration-card-copy-v2{min-width:0}
@media(max-width:720px){.integration-card-header{grid-template-columns:minmax(0,1fr) auto!important}.integration-brand-slot{min-width:0}.integration-card-copy-v2{grid-column:1/-1}.integration-brand-image{max-width:130px;height:31px}}

/* Accesos de usuarios: columnas compactas en ambos administradores. */
.module-access-grid,.company-permission-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.42rem .5rem!important}
.module-access-grid label,.company-permission-grid label{min-width:0;display:flex!important;align-items:center!important;gap:.42rem!important;margin:0!important;padding:.5rem .55rem!important;border:1px solid var(--biz-border);border-radius:9px;background:var(--biz-surface-soft);font-size:.61rem!important;line-height:1.2;cursor:pointer}
.module-access-grid label:hover,.company-permission-grid label:hover{border-color:color-mix(in srgb,var(--biz-primary) 36%,var(--biz-border))}
.module-access-grid input,.company-permission-grid input{width:14px!important;height:14px!important;flex:0 0 14px!important;margin:0!important}
.module-access-grid span,.company-permission-grid span{min-width:0;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@media(max-width:900px){.module-access-grid,.company-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.module-access-grid,.company-permission-grid{grid-template-columns:1fr!important}}

/* Landing v0.10.3 */
.public-page-landing .public-layout{width:min(100% - 36px,1240px)}
.landing-nav .public-brand img{width:auto;height:32px;max-width:150px;object-fit:contain}
.landing-hero-v3{min-height:650px;padding:70px 0 82px;grid-template-columns:minmax(0,.88fr) minmax(480px,1.12fr);gap:clamp(35px,6vw,90px);align-items:center}
.landing-hero-v3 .landing-kicker{display:inline-flex;align-items:center;gap:.45rem}.landing-hero-v3 .landing-kicker img{width:22px;height:22px;object-fit:contain;border-radius:7px}
.landing-hero-v3 .landing-copy h1{font-size:clamp(3rem,5.3vw,5.25rem);line-height:.98;letter-spacing:-.065em}.landing-hero-v3 .landing-copy h1 em{color:#0aa376;font-style:normal}
.landing-hero-v3 .landing-copy>p{max-width:630px;font-size:1rem;line-height:1.7}
.landing-app-preview-v3{transform:perspective(1200px) rotateY(-3deg);box-shadow:0 32px 95px rgba(15,70,51,.14)}
.landing-preview-bar img{width:auto;height:22px;margin-left:8px;object-fit:contain}.landing-preview-bar b{display:none}.landing-preview-body>aside img{width:30px;height:30px;object-fit:contain;border-radius:9px}
.landing-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:12px}.landing-preview-heading>div{display:grid;gap:2px}.landing-preview-heading small{color:#0aa376;font-size:.48rem;font-weight:900}.landing-preview-heading strong{font-size:.9rem}.landing-preview-heading b{padding:.35rem .5rem;border-radius:999px;background:#e5f7f0;color:#0a8b68;font-size:.48rem}
.landing-preview-stats article em{display:block;margin-top:5px;color:#0a9d72;font-size:.46rem;font-style:normal;font-weight:800}
.landing-preview-content-v3{grid-template-columns:1.15fr .85fr!important}.landing-preview-activity{display:grid!important;align-content:start;gap:10px}.landing-preview-activity>div{display:flex;align-items:center;gap:9px;padding:9px;border-radius:10px;background:#f7faf8}.landing-preview-activity>div>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e4f7f0;color:#0aa376}.landing-preview-activity p{display:grid;margin:0!important}.landing-preview-activity p strong{font-size:.58rem}.landing-preview-activity p small{font-size:.48rem!important}
.landing-smart-section{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(35px,7vw,90px);align-items:center;margin:25px 0 80px;padding:clamp(35px,6vw,70px);border-radius:30px;background:#0d261e;color:#fff}.landing-smart-copy h2{margin:.55rem 0 .9rem;font-size:clamp(2rem,4vw,3.5rem);line-height:1;letter-spacing:-.055em}.landing-smart-copy p{margin:0;color:#bfd0ca;line-height:1.7}.landing-smart-examples{display:flex;flex-wrap:wrap;gap:.65rem}.landing-smart-examples span{padding:.75rem .9rem;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.06);font-size:.72rem;line-height:1.4}
.landing-integration-brand{min-height:40px;display:flex;align-items:center;gap:.6rem}.landing-integration-brand img{width:auto;max-width:135px;height:80px;object-fit:contain;object-position:left center}.landing-integration-brand>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e6f7f1;color:#0aa376;font-size:1.15rem}.landing-integration-brand strong{font-size:.95rem}
@media(max-width:980px){.landing-hero-v3{grid-template-columns:1fr;min-height:0;padding-top:50px}.landing-app-preview-v3{transform:none}.landing-smart-section{grid-template-columns:1fr}}
@media(max-width:680px){
    .public-page-landing .public-layout{width:min(100% - 22px,1240px)}
    .landing-nav{margin-top:8px;padding:.55rem .6rem}.landing-nav .public-brand img{height:27px}.landing-nav-actions .btn{padding:.48rem .65rem!important;font-size:.6rem!important}
    .landing-hero-v3{padding:42px 0 55px;gap:32px}.landing-hero-v3 .landing-copy h1{font-size:clamp(2.55rem,12vw,3.6rem)}.landing-hero-v3 .landing-copy>p{font-size:.86rem}.landing-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.landing-actions .btn{width:100%;min-width:0;justify-content:center}
    .landing-app-preview-v3{border-radius:20px}.landing-preview-bar{height:46px}.landing-preview-bar i{width:125px!important}.landing-preview-body{min-height:330px!important}.landing-preview-body>main{padding:12px!important}.landing-preview-stats{grid-template-columns:repeat(3,1fr)!important;gap:6px}.landing-preview-stats article{padding:9px 7px!important}.landing-preview-stats strong{font-size:.62rem!important}.landing-preview-stats small{font-size:.4rem!important}.landing-preview-content-v3{grid-template-columns:1fr!important}.landing-preview-content-v3>section:first-child{display:block!important;min-height:190px!important}.landing-preview-activity{display:none!important}.landing-chart{height:100px!important}
    .landing-proof-strip{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-bottom:55px}.landing-proof-strip::-webkit-scrollbar{display:none}.landing-proof-strip span{flex:0 0 auto}
    .landing-section{padding:56px 0!important}.landing-section-heading{margin-bottom:24px}.landing-section-heading h2,.landing-pricing-copy h2{font-size:2.25rem}
    .landing-scroll-cards{display:flex!important;gap:12px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;padding:0 1px 10px;scrollbar-width:none}.landing-scroll-cards::-webkit-scrollbar{display:none}.landing-scroll-cards>article{flex:0 0 min(82vw,310px)!important;scroll-snap-align:start;min-height:210px!important}
    .landing-flow{display:flex!important;overflow-x:auto;gap:9px!important;scroll-snap-type:x mandatory;scrollbar-width:none}.landing-flow::-webkit-scrollbar{display:none}.landing-flow article{flex:0 0 150px;min-height:125px!important;scroll-snap-align:start}.landing-flow>iconify-icon{flex:0 0 auto;align-self:center;transform:none!important}
    .landing-smart-section{margin:10px 0 55px;padding:35px 20px;border-radius:23px}.landing-smart-examples{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.landing-smart-examples::-webkit-scrollbar{display:none}.landing-smart-examples span{flex:0 0 230px}
    .landing-pricing{padding:55px 0!important}.landing-price-card{min-width:0;padding:24px 20px!important}.landing-price-card>div strong{font-size:2.65rem!important}
}

.integration-section-logo-large{max-width:112px;height:27px;margin-right:.15rem}

/* Biznube v0.10.4 · archivo conectado, no un Drive genérico */
.biznube-heading-v2 { align-items: flex-end; margin-bottom: .8rem; }
.biznube-heading-v2 p { max-width: 700px; }
.biznube-heading-v2 .page-heading-buttons { display: flex; gap: .45rem; flex-wrap: wrap; }

.biznube-command { margin-bottom: .55rem; padding: .55rem .65rem; border-radius: 16px; }
.biznube-searchbar { min-height: 48px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: .45rem; padding: .22rem .3rem .22rem .75rem; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface-soft); }
.biznube-searchbar > iconify-icon { color: var(--biz-muted); font-size: 1.08rem; }
.biznube-searchbar > input[type="search"] { width: 100%; min-width: 0; padding: .5rem 0; border: 0; outline: 0; background: transparent; color: var(--bs-body-color); font: inherit; font-size: .68rem; }
.biznube-searchbar > input[type="search"]::placeholder { color: color-mix(in srgb,var(--biz-muted) 78%,transparent); }
.biznube-search-clear { width: 30px; height: 30px; display: grid; place-items: center; color: var(--biz-muted); text-decoration: none; border-radius: 9px; }
.biznube-search-clear:hover { color: var(--bs-body-color); background: var(--biz-surface); }
.biznube-filter-button { min-height: 34px; display: inline-flex; align-items: center; gap: .32rem; padding: .35rem .6rem; border: 1px solid var(--biz-border); border-radius: 9px; background: var(--biz-surface); color: var(--bs-body-color); font-size: .6rem; font-weight: 820; }
.biznube-filter-button:hover,.biznube-filter-button.is-active { border-color: color-mix(in srgb,var(--biz-primary) 40%,var(--biz-border)); color: var(--biz-primary); background: var(--biz-primary-soft); }
.biznube-command-meta { display: flex; align-items: center; gap: .55rem; margin-top: .45rem; padding: 0 .25rem; color: var(--biz-muted); font-size: .55rem; }
.biznube-command-meta strong { color: var(--bs-body-color); }
.biznube-command-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--biz-border-strong); }

.biznube-smart-nav { display: flex; align-items: center; gap: .25rem; margin-bottom: .7rem; overflow-x: auto; scrollbar-width: none; }
.biznube-smart-nav::-webkit-scrollbar { display: none; }
.biznube-smart-nav a { flex: 0 0 auto; min-height: 35px; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .62rem; border: 1px solid transparent; border-radius: 10px; color: var(--biz-muted); text-decoration: none; font-size: .61rem; font-weight: 790; transition: background .15s ease,color .15s ease,border-color .15s ease; }
.biznube-smart-nav a iconify-icon { font-size: .92rem; }
.biznube-smart-nav a small { min-width: 20px; padding: .08rem .3rem; border-radius: 999px; background: var(--biz-surface-soft); color: var(--biz-muted); text-align: center; font-size: .5rem; }
.biznube-smart-nav a:hover { color: var(--bs-body-color); background: var(--biz-surface-soft); }
.biznube-smart-nav a.active { border-color: color-mix(in srgb,var(--biz-primary) 24%,var(--biz-border)); color: var(--biz-primary); background: var(--biz-primary-soft); }
.biznube-smart-nav a.active small { background: color-mix(in srgb,var(--biz-primary) 13%,var(--biz-surface)); color: var(--biz-primary); }

.biznube-link-ready { display: grid; grid-template-columns: minmax(230px,1fr) minmax(300px,.9fr); align-items: center; gap: .75rem; margin-bottom: .7rem; padding: .7rem .8rem; border-color: color-mix(in srgb,var(--biz-primary) 28%,var(--biz-border)); background: linear-gradient(110deg,var(--biz-primary-soft),var(--biz-surface) 58%); }
.biznube-link-ready > div:first-child { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.biznube-ready-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--biz-primary); color: #fff; font-size: 1rem; }
.biznube-link-ready span > strong,.biznube-link-ready span > small { display: block; }
.biznube-link-ready span > strong { font-size: .67rem; }
.biznube-link-ready span > small { margin-top: .1rem; color: var(--biz-muted); font-size: .55rem; line-height: 1.45; }
.biznube-ready-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem; }
.biznube-ready-copy .form-control { min-width: 0; font-size: .57rem; }

.biznube-workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: .7rem; align-items: start; }
.biznube-workspace.has-detail { grid-template-columns: minmax(0,1fr) minmax(330px,400px); }
.biznube-library { min-width: 0; padding: 0; overflow: hidden; border-radius: 16px; }
.biznube-library-head { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .68rem .78rem; border-bottom: 1px solid var(--biz-border); }
.biznube-library-head > div { min-width: 0; display: grid; gap: .08rem; }
.biznube-library-head strong { font-size: .72rem; }
.biznube-library-head small { color: var(--biz-muted); font-size: .54rem; }
.biznube-sync-button { flex: 0 0 auto; }

.biznube-doc-list-v2,.biznube-request-list { display: grid; }
.biznube-doc-row-v2 { min-height: 69px; display: grid; grid-template-columns: 38px minmax(150px,1fr) auto 94px 20px; align-items: center; gap: .68rem; padding: .62rem .78rem; border-bottom: 1px solid var(--biz-border); color: inherit; text-decoration: none; transition: background .13s ease; }
.biznube-doc-row-v2:last-child,.biznube-request-row:last-child { border-bottom: 0; }
.biznube-doc-row-v2:hover,.biznube-doc-row-v2.active { background: color-mix(in srgb,var(--biz-primary) 4.5%,var(--biz-surface-soft)); }
.biznube-doc-row-v2.active { box-shadow: inset 2px 0 0 var(--biz-primary); }
.biznube-doc-row-v2 .biznube-file-icon,.biznube-request-row .biznube-file-icon { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb,var(--biz-primary) 10%,var(--biz-surface-soft)); }
.biznube-doc-copy { min-width: 0; display: grid; gap: .08rem; }
.biznube-doc-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; font-weight: 840; }
.biznube-doc-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--biz-muted); font-size: .54rem; }
.biznube-doc-copy small b { color: color-mix(in srgb,var(--biz-text) 82%,var(--biz-muted)); font-weight: 740; }
.biznube-context-badge { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .25rem .48rem; border-radius: 999px; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: .5rem; font-weight: 850; }
.biznube-context-badge.is-bizfera { background: var(--biz-primary-soft); color: var(--biz-primary); }
.biznube-doc-meta { min-width: 0; display: grid; gap: .06rem; text-align: right; }
.biznube-doc-meta strong { font-size: .57rem; }
.biznube-doc-meta small { color: var(--biz-muted); font-size: .5rem; }
.biznube-row-arrow { justify-self: end; color: var(--biz-muted); font-size: .86rem; }

.biznube-request-row { min-height: 69px; display: grid; grid-template-columns: 38px minmax(160px,1fr) auto 110px auto; align-items: center; gap: .68rem; padding: .62rem .78rem; border-bottom: 1px solid var(--biz-border); }
.biznube-file-icon.is-request { color: color-mix(in srgb,var(--biz-primary) 84%,#6f5cff); }
.biznube-request-main,.biznube-request-date { min-width: 0; display: grid; gap: .08rem; }
.biznube-request-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .65rem; }
.biznube-request-main small,.biznube-request-date small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--biz-muted); font-size: .52rem; }
.biznube-request-date { text-align: right; }
.biznube-request-date strong { font-size: .55rem; }
.biznube-request-status { padding: .23rem .45rem; border-radius: 999px; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: .49rem; font-weight: 850; }
.biznube-request-status.is-completa { background: var(--biz-primary-soft); color: var(--biz-primary); }
.biznube-request-status.is-pendiente { background: color-mix(in srgb,#f0a229 14%,var(--biz-surface)); color: #b46a00; }
.biznube-request-status.is-vencida,.biznube-request-status.is-revocada { background: color-mix(in srgb,var(--biz-danger) 8%,var(--biz-surface)); color: var(--biz-danger); }
.biznube-request-actions { display: flex; justify-content: flex-end; gap: .25rem; }
.biznube-request-actions form { margin: 0; }

.biznube-empty-v2 { min-height: 310px; display: grid; place-items: center; align-content: center; gap: .4rem; padding: 2rem; text-align: center; }
.biznube-empty-v2 > span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: .2rem; border-radius: 16px; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.55rem; }
.biznube-empty-v2 strong { font-size: .78rem; }
.biznube-empty-v2 p { max-width: 440px; margin: 0 0 .35rem; color: var(--biz-muted); font-size: .6rem; line-height: 1.6; }

.biznube-detail-v2 { position: sticky; top: calc(var(--topbar-height, 64px) + .7rem); min-width: 0; max-height: calc(100vh - var(--topbar-height,64px) - 1.4rem); padding: 0; overflow: auto; border-radius: 16px; scrollbar-width: thin; }
.biznube-detail-head-v2 { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; padding: .78rem; border-bottom: 1px solid var(--biz-border); }
.biznube-detail-head-v2 > div { min-width: 0; }
.biznube-detail-head-v2 h2 { margin: .12rem 0 .1rem; overflow-wrap: anywhere; font-size: .76rem; line-height: 1.35; }
.biznube-detail-head-v2 p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--biz-muted); font-size: .51rem; }
.biznube-preview { height: 240px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--biz-border); background: color-mix(in srgb,var(--biz-surface-soft) 90%,var(--biz-bg)); }
.biznube-preview img { width: 100%; height: 100%; object-fit: contain; }
.biznube-preview iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.biznube-preview-unavailable { display: grid; justify-items: center; gap: .28rem; padding: 1rem; color: var(--biz-muted); text-align: center; }
.biznube-preview-unavailable iconify-icon { font-size: 2rem; color: var(--biz-primary); }
.biznube-preview-unavailable strong { color: var(--bs-body-color); font-size: .65rem; }
.biznube-preview-unavailable small { max-width: 250px; font-size: .53rem; line-height: 1.5; }
.biznube-detail-actions-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .65rem .75rem .25rem; }
.biznube-doc-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: .35rem; padding: .45rem .75rem .7rem; border-bottom: 1px solid var(--biz-border); }
.biznube-doc-facts > span { min-width: 0; padding: .45rem; border-radius: 10px; background: var(--biz-surface-soft); }
.biznube-doc-facts small,.biznube-doc-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biznube-doc-facts small { color: var(--biz-muted); font-size: .49rem; }
.biznube-doc-facts strong { margin-top: .08rem; font-size: .56rem; }

.biznube-context-section { padding: .7rem .75rem; border-bottom: 1px solid var(--biz-border); }
.biznube-section-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.biznube-section-title span { display: grid; gap: .05rem; }
.biznube-section-title strong { font-size: .64rem; }
.biznube-section-title small { color: var(--biz-muted); font-size: .51rem; }
.biznube-link-chips-v2 { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.biznube-link-chip-v2 { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: .3rem; padding: .38rem .38rem .38rem .48rem; border: 1px solid color-mix(in srgb,var(--biz-primary) 18%,var(--biz-border)); border-radius: 10px; background: color-mix(in srgb,var(--biz-primary) 5%,var(--biz-surface)); }
.biznube-link-chip-v2 > span { min-width: 0; display: grid; gap: .02rem; }
.biznube-link-chip-v2 small { color: var(--biz-muted); font-size: .47rem; }
.biznube-link-chip-v2 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .55rem; }
.biznube-link-chip-v2 form { margin: 0; }
.biznube-link-chip-v2 .icon-button { width: 27px; height: 27px; }
.biznube-no-context { display: block; width: 100%; padding: .45rem 0; color: var(--biz-muted); font-size: .53rem; }
.biznube-mini-form-v2 { display: grid; grid-template-columns: 95px minmax(0,1fr) auto; gap: .35rem; align-items: center; }
.biznube-mini-form-v2 .form-control,.biznube-mini-form-v2 .form-select { min-height: 34px; font-size: .57rem; }
.biznube-entity-search-wrap { position: relative; min-width: 0; }
.biznube-entity-results { top: calc(100% + .25rem); }
.biznube-entity-loading { display: block; padding: .45rem; }

.biznube-detail-section-v2 { border-bottom: 1px solid var(--biz-border); }
.biznube-detail-section-v2 summary { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .75rem; cursor: pointer; list-style: none; }
.biznube-detail-section-v2 summary::-webkit-details-marker { display: none; }
.biznube-detail-section-v2 summary > span { display: inline-flex; align-items: center; gap: .38rem; font-size: .6rem; font-weight: 820; }
.biznube-detail-section-v2 summary > span iconify-icon { color: var(--biz-muted); font-size: .9rem; }
.biznube-detail-section-v2 summary > small { min-width: 20px; padding: .1rem .3rem; border-radius: 999px; background: var(--biz-surface-soft); color: var(--biz-muted); text-align: center; font-size: .48rem; }
.biznube-detail-section-v2[open] summary { background: var(--biz-surface-soft); }
.biznube-detail-body-v2 { display: grid; gap: .5rem; padding: .65rem .75rem .75rem; }
.biznube-version-list,.biznube-share-form,.biznube-version-form,.biznube-move-form { display: grid; gap: .4rem; }
.biznube-version-list a,.biznube-share-item { border-radius: 10px; }
.biznube-version-form label > span { display: block; margin-bottom: .2rem; color: var(--biz-muted); font-size: .52rem; font-weight: 780; }
.biznube-share-form,.biznube-move-form { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.biznube-activity-list > div { display: grid; grid-template-columns: 8px minmax(0,1fr); gap: .45rem; align-items: start; }
.biznube-activity-list > div > span:last-child { display: grid; gap: .05rem; }
.biznube-activity-list strong { font-size: .55rem; font-weight: 760; }
.biznube-activity-list small { color: var(--biz-muted); font-size: .49rem; }
.biznube-activity-dot { width: 7px; height: 7px; margin-top: .27rem; border: 2px solid color-mix(in srgb,var(--biz-primary) 35%,var(--biz-surface)); border-radius: 50%; background: var(--biz-primary); }
.biznube-danger-action-v2 { margin: 0; }
.biznube-danger-action-v2 .btn { width: 100%; }
.biznube-trash-actions-v2 { display: flex; gap: .4rem; padding: .75rem; }

.biznube-upload-sheet,.biznube-request-sheet,.biznube-filter-sheet,.biznube-folder-sheet { max-width: min(900px,100%); }
.biznube-upload-form { display: grid; gap: .7rem; }
.biznube-dropzone-v2 { position: relative; min-height: 155px; display: grid; place-items: center; margin: 0; overflow: hidden; border: 1.5px dashed var(--biz-border-strong); border-radius: 15px; background: linear-gradient(145deg,var(--biz-surface-soft),color-mix(in srgb,var(--biz-primary) 3%,var(--biz-surface))); cursor: pointer; transition: border-color .15s ease,background .15s ease,transform .15s ease; }
.biznube-dropzone-v2:hover,.biznube-dropzone-v2.is-dragging { border-color: color-mix(in srgb,var(--biz-primary) 65%,var(--biz-border)); background: var(--biz-primary-soft); }
.biznube-dropzone-v2.is-dragging { transform: scale(.997); }
.biznube-dropzone-v2.has-files { border-style: solid; border-color: color-mix(in srgb,var(--biz-primary) 38%,var(--biz-border)); }
.biznube-dropzone-v2 > input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.biznube-dropzone-v2 > span { display: grid; justify-items: center; gap: .25rem; max-width: 84%; text-align: center; pointer-events: none; }
.biznube-dropzone-v2 iconify-icon { font-size: 1.8rem; color: var(--biz-primary); }
.biznube-dropzone-v2 strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.biznube-dropzone-v2 small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--biz-muted); font-size: .55rem; }
.biznube-upload-shortcuts { display: flex; gap: .4rem; margin-top: -.25rem; }
.biznube-form-stack { display: grid; gap: .6rem; }
.biznube-form-stack label,.biznube-advanced label { min-width: 0; }
.biznube-form-stack label > span,.biznube-advanced label > span { display: block; margin-bottom: .24rem; color: var(--biz-muted); font-size: .56rem; font-weight: 790; }
.biznube-form-stack label > span small { font-weight: 650; }
.biznube-link-upload-v2 { display: grid; gap: .5rem; padding: .72rem; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface-soft); }
.biznube-link-upload-v2 > div:first-child { display: grid; gap: .06rem; }
.biznube-link-upload-v2 > div:first-child strong { font-size: .63rem; }
.biznube-link-upload-v2 > div:first-child small { color: var(--biz-muted); font-size: .52rem; }
.biznube-link-upload-v2.is-required { border-color: color-mix(in srgb,var(--biz-primary) 27%,var(--biz-border)); }
.biznube-link-row-v2 { display: grid; grid-template-columns: 155px minmax(0,1fr); gap: .45rem; }
.biznube-advanced { padding: .05rem 0; }
.biznube-advanced summary { cursor: pointer; color: var(--biz-muted); font-size: .57rem; font-weight: 780; }
.biznube-advanced[open] summary { margin-bottom: .5rem; }
.biznube-filter-secondary { display: flex; justify-content: flex-start; margin-top: .25rem; }

@media (max-width: 1120px) {
  .biznube-workspace.has-detail { grid-template-columns: minmax(0,1fr); }
  .biznube-detail-v2 { position: static; max-height: none; }
  .biznube-preview { height: min(430px,50vh); }
}
@media (max-width: 760px) {
  .biznube-heading-v2 { align-items: flex-start; }
  .biznube-link-ready { grid-template-columns: 1fr; }
  .biznube-doc-row-v2 { grid-template-columns: 36px minmax(0,1fr) 82px 18px; gap: .55rem; }
  .biznube-context-badge { display: none; }
  .biznube-request-row { grid-template-columns: 36px minmax(0,1fr) auto auto; }
  .biznube-request-date { display: none; }
  .biznube-mini-form-v2 { grid-template-columns: 110px minmax(0,1fr); }
  .biznube-mini-form-v2 > .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .biznube-heading-v2 .page-heading-buttons { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .biznube-command { padding: .45rem; }
  .biznube-searchbar { grid-template-columns: auto minmax(0,1fr) auto; }
  .biznube-filter-button { grid-column: 1 / -1; justify-content: center; }
  .biznube-command-meta { display: none; }
  .biznube-smart-nav { margin-right: -.6rem; padding-right: .6rem; }
  .biznube-doc-row-v2 { grid-template-columns: 34px minmax(0,1fr) 17px; min-height: 62px; padding: .55rem .6rem; }
  .biznube-doc-meta { display: none; }
  .biznube-request-row { grid-template-columns: 34px minmax(0,1fr) auto; padding: .55rem .6rem; }
  .biznube-request-actions { display: none; }
  .biznube-ready-copy { grid-template-columns: 1fr; }
  .biznube-upload-shortcuts { display: grid; grid-template-columns: 1fr 1fr; }
  .biznube-link-row-v2,.biznube-mini-form-v2,.biznube-share-form,.biznube-move-form { grid-template-columns: 1fr; }
  .biznube-mini-form-v2 > .btn { grid-column: auto; }
  .biznube-doc-facts { grid-template-columns: 1fr 1fr 1fr; }
  .biznube-trash-actions-v2 { flex-direction: column; }
}

/* Verificador de precios v0.10.4 · estado de espera visible */
.price-checker-idle-screen { width: min(780px,88vw); display: grid; justify-items: center; gap: .45rem; text-align: center; animation: priceReveal .22s ease-out; }
.price-checker-idle-screen[hidden] { display: none !important; }
.price-checker-idle-icon { width: clamp(88px,12vw,128px); height: clamp(88px,12vw,128px); display: grid; place-items: center; margin-bottom: .35rem; border-radius: 30px; background: color-mix(in srgb,#08aa7a 9%,transparent); color: #08aa7a; font-size: clamp(2.8rem,6vw,5rem);}
.price-checker-idle-screen > small { color: #08aa7a; font-size: clamp(.65rem,1.2vw,.9rem); font-weight: 900; letter-spacing: .14em; }
.price-checker-idle-screen h2 { margin: .05rem 0 0; font-size: clamp(2.4rem,6vw,5.7rem); line-height: .98; font-weight: 950; letter-spacing: -.05em; }
.price-checker-idle-screen p { max-width: 620px; margin: .15rem 0 0; color: color-mix(in srgb,currentColor 58%,transparent); font-size: clamp(.9rem,1.6vw,1.2rem); line-height: 1.55; }
.price-checker-setup:fullscreen { background: radial-gradient(circle at 50% 42%,rgba(8,170,122,.08),transparent 34%),#f5f8f7; color: #07171c; }
[data-bs-theme="dark"] .price-checker-setup:fullscreen { background: radial-gradient(circle at 50% 42%,rgba(8,170,122,.12),transparent 34%),#0d1415; color: #f7fbfa; }

/* Biznube v0.10.4 · acceso por usuario/rol para documentos sensibles */
.biznube-doc-copy small em { display:inline-flex; align-items:center; gap:.12rem; color:color-mix(in srgb,var(--biz-danger) 72%,var(--biz-muted)); font-style:normal; font-weight:760; }
.biznube-doc-copy small em iconify-icon { font-size:.62rem; }
.biznube-access-box { display:grid; gap:.5rem; padding:.62rem; border:1px solid var(--biz-border); border-radius:12px; background:var(--biz-surface-soft); }
.biznube-access-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.55rem; }
.biznube-access-head > span:first-child { min-width:0; display:grid; gap:.05rem; }
.biznube-access-head strong { font-size:.58rem; }
.biznube-access-head small { color:var(--biz-muted); font-size:.49rem; line-height:1.45; }
.biznube-access-state { flex:0 0 auto; display:inline-flex; align-items:center; gap:.2rem; padding:.23rem .4rem; border-radius:999px; background:var(--biz-surface); color:var(--biz-muted); font-size:.47rem; font-weight:830; }
.biznube-access-state.is-restricted { background:color-mix(in srgb,var(--biz-danger) 8%,var(--biz-surface)); color:var(--biz-danger); }
.biznube-access-visibility,.biznube-access-add { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.35rem; }
.biznube-access-visibility .form-select,.biznube-access-add .form-select { min-height:34px; font-size:.55rem; }
.biznube-access-list { display:grid; gap:.28rem; }
.biznube-access-list > div { display:flex; align-items:center; justify-content:space-between; gap:.4rem; padding:.38rem .42rem; border:1px solid var(--biz-border); border-radius:9px; background:var(--biz-surface); }
.biznube-access-list > div > span { min-width:0; display:grid; gap:.02rem; }
.biznube-access-list small { color:var(--biz-muted); font-size:.46rem; }
.biznube-access-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.53rem; }
.biznube-access-list form { margin:0; }
.biznube-access-list .icon-button { width:27px; height:27px; }
@media(max-width:560px){.biznube-access-head{display:grid}.biznube-access-state{justify-self:start}.biznube-access-visibility,.biznube-access-add{grid-template-columns:1fr}}

/* Landing v0.10.8 · operación conectada preservada en mobile con scroll horizontal */
.landing-connected-operation .landing-section-heading{max-width:820px}
.landing-operation-scroll{width:100%;min-width:0;overflow:visible}
.landing-operation-map{position:relative;display:grid;grid-template-columns:minmax(220px,1fr) minmax(250px,.9fr) minmax(220px,1fr);grid-template-rows:repeat(3,minmax(118px,auto));gap:20px clamp(62px,8vw,118px);align-items:center;min-height:520px;padding:18px 0 30px}
.landing-operation-connectors{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;pointer-events:none}
.landing-operation-connectors path{fill:none;stroke:#c8ddd5;stroke-width:1.35;stroke-dasharray:5 7;marker-end:url(#landing-operation-arrow)}
.landing-operation-connectors marker path{fill:#a9c8bc;stroke:none;stroke-dasharray:none}
.landing-operation-center,.landing-operation-effect{position:relative;z-index:1}
.landing-operation-center{grid-column:2;grid-row:2;min-height:190px;display:grid;place-items:center;align-content:center;padding:28px;border:1px solid rgba(255,255,255,.16);border-radius:28px;background:linear-gradient(145deg,#0b2e24,#0aa376);color:#fff;text-align:center;box-shadow:0 28px 70px rgba(10,163,118,.19)}
.landing-operation-center>span{width:52px;height:52px;display:grid;place-items:center;margin-bottom:13px;border-radius:16px;background:rgba(255,255,255,.13);font-size:1.55rem}
.landing-operation-center>small{margin-bottom:4px;color:#bdf3df;font-size:.58rem;font-weight:900;letter-spacing:.1em}
.landing-operation-center>strong{font-size:1.08rem;letter-spacing:-.02em}
.landing-operation-center>p{margin:.35rem 0 0;color:#d8eee6;font-size:.7rem}
.landing-operation-effect{min-height:104px;display:flex;align-items:center;gap:13px;padding:18px;border:1px solid #dce7e2;border-radius:18px;background:#fff;box-shadow:0 13px 35px rgba(25,70,55,.055)}
.landing-operation-effect>span{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#e6f7f1;color:#0aa376;font-size:1.2rem}
.landing-operation-effect>div{min-width:0;display:grid;gap:4px}.landing-operation-effect strong{font-size:.78rem;line-height:1.3}.landing-operation-effect small{color:#6d7f77;font-size:.62rem;line-height:1.45}
.landing-operation-effect.is-stock{grid-column:1;grid-row:1}.landing-operation-effect.is-cash{grid-column:3;grid-row:1}.landing-operation-effect.is-client{grid-column:1;grid-row:2}.landing-operation-effect.is-arca{grid-column:3;grid-row:2}.landing-operation-effect.is-movement{grid-column:1;grid-row:3}.landing-operation-effect.is-audit{grid-column:3;grid-row:3}
.landing-optional-flow{display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);gap:clamp(25px,5vw,70px);align-items:center;margin-top:22px;padding:30px;border:1px solid #dce7e2;border-radius:24px;background:linear-gradient(135deg,#f9fcfa,#f1f8f5)}
.landing-optional-flow-copy>span{color:#0a9d72;font-size:.6rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.landing-optional-flow-copy h3{margin:.45rem 0 .65rem;font-size:1.45rem;letter-spacing:-.035em}.landing-optional-flow-copy p{margin:0;color:#60756c;font-size:.78rem;line-height:1.65}.landing-optional-flow-copy small{display:block;margin-top:.7rem;color:#819089;font-size:.63rem;line-height:1.5}
.landing-mini-flow{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;padding:16px;border:1px solid #e0e9e5;border-radius:17px;background:#fff}.landing-mini-flow strong{min-width:0;padding:.65rem .7rem;border-radius:11px;background:#f3f8f6;color:#17372d;font-size:.67rem;white-space:nowrap}.landing-mini-flow iconify-icon{flex:0 0 auto;color:#87a298;font-size:.9rem}

.landing-integration-grid{align-items:stretch}.landing-integration-card{appearance:none;width:100%;min-height:230px;display:flex;flex-direction:column;padding:24px;border:1px solid #dce7e2;border-radius:20px;background:#fff;color:#142d24;text-align:left;font:inherit;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.landing-integration-card:hover{transform:translateY(-4px);border-color:#c5ded4;box-shadow:0 20px 52px rgba(25,70,55,.09)}.landing-integration-card:focus-visible{outline:3px solid rgba(10,163,118,.22);outline-offset:3px}.landing-integration-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.landing-integration-type{display:inline-flex;align-self:flex-start;margin-top:15px;padding:.28rem .45rem;border-radius:999px;background:#f2f6f4;color:#6d7f77;font-size:.52rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.landing-integration-card p{margin:.7rem 0 0;color:#65776f;font-size:.72rem;line-height:1.6}.landing-integration-status{display:inline-flex;align-items:center;gap:.3rem;padding:.32rem .5rem;border-radius:999px;font-size:.53rem;font-weight:900;white-space:nowrap}.landing-integration-status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.landing-integration-status.is-available{color:#087c5b;background:#e4f7f0}.landing-integration-status.is-coming{color:#8a6915;background:#fff5d9}.landing-integration-more{display:inline-flex;align-items:center;gap:.3rem;margin-top:auto;padding-top:18px;color:#0a9d72;font-size:.61rem;font-weight:900}.landing-integration-more iconify-icon{font-size:.82rem;transition:transform .18s ease}.landing-integration-card:hover .landing-integration-more iconify-icon{transform:translateX(3px)}
.landing-integration-modal .modal-dialog{max-width:620px;padding:12px}.landing-integration-modal .modal-content{overflow:hidden;border:1px solid #d9e6e0;border-radius:24px;box-shadow:0 30px 90px rgba(14,51,38,.18)}.landing-integration-modal .modal-header{align-items:center;padding:20px 22px;border-bottom:1px solid #e8efec}.landing-integration-modal-title{display:flex;align-items:center;gap:14px;min-width:0}.landing-integration-modal-title>.landing-integration-brand{min-width:90px}.landing-integration-modal-title>div:last-child{display:grid;gap:2px}.landing-integration-modal-title>div:last-child>span{color:#7c8d86;font-size:.54rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.landing-integration-modal-title>div:last-child>strong{font-size:1.05rem}.landing-integration-modal .modal-body{padding:22px}.landing-integration-modal .modal-body>.landing-integration-status{margin-bottom:18px}.landing-integration-modal .modal-body section+section{margin-top:20px;padding-top:18px;border-top:1px solid #eef3f1}.landing-integration-modal h3{margin:0 0 .45rem;font-size:.78rem}.landing-integration-modal p,.landing-integration-modal li{color:#60756d;font-size:.72rem;line-height:1.65}.landing-integration-modal p{margin:0}.landing-integration-modal ul{display:grid;gap:.45rem;margin:0;padding-left:1.05rem}.landing-integration-example{margin-top:22px;padding:16px;border-radius:16px;background:#f2f8f5}.landing-integration-example>span{display:block;margin-bottom:5px;color:#0a9d72;font-size:.55rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.landing-integration-example p{color:#29463c}.landing-integration-modal .btn-close{box-shadow:none!important}

@media(max-width:980px){
    .landing-operation-map{grid-template-columns:minmax(190px,1fr) minmax(220px,.9fr) minmax(190px,1fr);gap:16px 38px}.landing-operation-effect{padding:15px}.landing-operation-connectors{opacity:.75}
    .landing-optional-flow{grid-template-columns:1fr}.landing-mini-flow{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.landing-mini-flow::-webkit-scrollbar{display:none}
}
@media(max-width:680px){
    .landing-operation-scroll{width:calc(100vw - 24px);max-width:none;margin-left:calc((100% - (100vw - 24px))/2);overflow-x:auto;overflow-y:hidden;padding:2px 0 12px;scrollbar-width:thin;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
    .landing-operation-map{width:960px;min-width:960px;grid-template-columns:minmax(220px,1fr) minmax(250px,.9fr) minmax(220px,1fr);grid-template-rows:repeat(3,minmax(118px,auto));gap:20px 72px;min-height:520px;padding:18px 8px 30px}
    .landing-operation-connectors{display:block;opacity:.78}.landing-operation-center{grid-column:2!important;grid-row:2!important;min-height:190px;margin:0;border-radius:28px}.landing-operation-effect{min-height:104px;display:flex;align-items:center;gap:13px;padding:18px}.landing-operation-effect>span{width:42px;height:42px;flex-basis:42px}.landing-operation-effect strong{font-size:.78rem}.landing-operation-effect small{font-size:.62rem}.landing-operation-effect.is-stock{grid-column:1!important;grid-row:1!important}.landing-operation-effect.is-cash{grid-column:3!important;grid-row:1!important}.landing-operation-effect.is-client{grid-column:1!important;grid-row:2!important}.landing-operation-effect.is-arca{grid-column:3!important;grid-row:2!important}.landing-operation-effect.is-movement{grid-column:1!important;grid-row:3!important}.landing-operation-effect.is-audit{grid-column:3!important;grid-row:3!important}
    .landing-optional-flow{margin-top:12px;padding:20px;border-radius:20px}.landing-optional-flow-copy h3{font-size:1.25rem}.landing-mini-flow{padding:11px}.landing-mini-flow strong{font-size:.6rem}
    .landing-integration-card{min-height:220px!important}.landing-integration-modal .modal-dialog{margin:0 auto}.landing-integration-modal .modal-content{border-radius:20px}.landing-integration-modal .modal-header,.landing-integration-modal .modal-body{padding:18px}.landing-integration-modal-title>.landing-integration-brand{min-width:72px}.landing-integration-modal-title .landing-integration-brand img{max-width:90px}
}
@media(max-width:680px){.landing-integration-grid.landing-scroll-cards>.landing-integration-card{flex:0 0 min(82vw,310px)!important;scroll-snap-align:start}}

/* BizAI v0.11 · control explícito del hilo */
.bizai-header-actions{display:flex;align-items:center;gap:.45rem}
.bizai-new-thread{height:36px;display:inline-flex;align-items:center;gap:.35rem;padding:0 .65rem;border:1px solid var(--biz-border);border-radius:10px;background:var(--biz-surface);color:var(--biz-text);font:inherit;font-size:.62rem;font-weight:750;cursor:pointer;transition:.16s ease}
.bizai-new-thread:hover{border-color:color-mix(in srgb,var(--biz-primary) 45%,var(--biz-border));color:var(--biz-primary);background:var(--biz-primary-soft)}
.bizai-new-thread iconify-icon{font-size:1rem}.bizai-new-thread:disabled{opacity:.55;cursor:wait}
@media(max-width:520px){.bizai-new-thread{width:36px;padding:0;justify-content:center}.bizai-new-thread span{display:none}}

/* =========================================================
   IMPORTADORES · v0.11
   ========================================================= */
.importadores-heading{align-items:flex-end}.importer-shell{display:grid;gap:.85rem;margin-bottom:1rem}.importer-steps{display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.2rem .6rem}.importer-steps span{display:inline-flex;align-items:center;gap:.38rem;color:var(--biz-muted);font-size:.64rem;font-weight:750;white-space:nowrap}.importer-steps span b{width:25px;height:25px;display:grid;place-items:center;border:1px solid var(--biz-border);border-radius:50%;background:var(--biz-surface);font-size:.6rem}.importer-steps span.is-active{color:var(--biz-text)}.importer-steps span.is-active b,.importer-steps span.is-done b{border-color:var(--biz-primary);background:var(--biz-primary);color:#fff}.importer-steps i{width:46px;height:1px;background:var(--biz-border)}
.importer-stage{max-width:1020px;width:100%;margin:0 auto;padding:clamp(1rem,2.4vw,1.5rem);display:grid;gap:1rem}.importer-stage[hidden],.importer-result[hidden]{display:none!important}.importer-stage-copy{max-width:650px}.importer-stage-copy h2,.importer-stage-head h2,.importer-result h2{margin:.15rem 0 .2rem;font-size:1.12rem}.importer-stage-copy p,.importer-stage-head p,.importer-result p{margin:0;color:var(--biz-muted);font-size:.7rem;line-height:1.55}.importer-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.importer-start-form{display:grid;gap:.85rem}.importer-target{display:grid;gap:.35rem;max-width:560px}.importer-target>span,.importer-final-options label>span{font-size:.64rem;font-weight:800}.importer-target small,.importer-final-options small{color:var(--biz-muted);font-size:.58rem;line-height:1.45}
.importer-dropzone{min-height:190px;border:1.5px dashed color-mix(in srgb,var(--biz-border) 84%,var(--biz-primary) 16%);border-radius:18px;background:color-mix(in srgb,var(--biz-surface-soft) 88%,var(--biz-primary) 12%);display:grid;place-items:center;align-content:center;gap:.35rem;text-align:center;cursor:pointer;padding:1.5rem;transition:.16s ease}.importer-dropzone input{position:absolute;opacity:0;pointer-events:none}.importer-dropzone>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.45rem}.importer-dropzone strong{font-size:.84rem}.importer-dropzone small{color:var(--biz-muted);font-size:.62rem}.importer-dropzone:hover,.importer-dropzone.is-dragging,.importer-dropzone.has-file{border-color:var(--biz-primary);background:color-mix(in srgb,var(--biz-primary) 8%,var(--biz-surface))}.importer-safety,.importer-warning{display:flex;align-items:flex-start;gap:.55rem;padding:.7rem .8rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.importer-safety iconify-icon{color:var(--biz-primary)}.importer-warning iconify-icon{color:#d68b19}.importer-safety p,.importer-warning p{display:grid;gap:.05rem;margin:0}.importer-safety strong,.importer-warning strong{font-size:.63rem}.importer-safety span,.importer-warning span{color:var(--biz-muted);font-size:.58rem}.importer-start-form>.btn,.importer-stage-actions>.btn{justify-self:end;min-width:180px}
.importer-mapping{display:grid;border:1px solid var(--biz-border);border-radius:14px;overflow:hidden}.importer-map-row{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(230px,.75fr);align-items:center;gap:.65rem;padding:.65rem .75rem;border-bottom:1px solid var(--biz-border);background:var(--biz-surface)}.importer-map-row:last-child{border-bottom:0}.importer-map-row>span{display:grid;gap:.06rem}.importer-map-row strong{font-size:.66rem}.importer-map-row em{width:max-content;padding:.08rem .3rem;border-radius:999px;background:color-mix(in srgb,#d94141 9%,var(--biz-surface));color:#b52f2f;font-size:.48rem;font-style:normal;font-weight:800}.importer-map-row small{color:var(--biz-muted);font-size:.54rem}.importer-map-row>iconify-icon{color:var(--biz-muted)}.importer-stage-actions{display:flex;justify-content:flex-end}
.importer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.importer-summary article{display:grid;gap:.05rem;padding:.7rem .8rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.importer-summary article span{color:var(--biz-muted);font-size:.57rem}.importer-summary article strong{font-size:.9rem}.importer-summary article.has-errors strong,.importer-result-grid article.has-errors strong{color:#bf3a3a}.importer-summary>p{grid-column:1/-1;margin:0;color:var(--biz-muted);font-size:.58rem}.importer-preview-table{max-height:430px;border:1px solid var(--biz-border);border-radius:12px}.importer-preview-values{display:flex;flex-wrap:wrap;gap:.25rem .65rem}.importer-preview-values span{font-size:.59rem;color:var(--biz-muted)}.importer-preview-values b{color:var(--biz-text)}.importer-row-errors{display:grid;gap:.12rem;margin-top:.35rem}.importer-row-errors small{color:#b62e2e;font-size:.55rem}.importer-final-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.65fr);gap:.7rem;align-items:end}.importer-final-options label{display:grid;gap:.3rem}
.importer-result{max-width:1020px;width:100%;margin:0 auto;padding:1.35rem;grid-template-columns:auto minmax(0,1fr);gap:.8rem 1rem;align-items:center}.importer-result:not([hidden]){display:grid}.importer-result-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.55rem}.importer-result-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.importer-result-grid article{display:grid;gap:.05rem;padding:.7rem;border:1px solid var(--biz-border);border-radius:12px}.importer-result-grid strong{font-size:1rem}.importer-result-grid span{color:var(--biz-muted);font-size:.56rem}.importer-result details{grid-column:1/-1;border:1px solid var(--biz-border);border-radius:12px;padding:.7rem}.importer-result summary{cursor:pointer;font-size:.64rem;font-weight:800}.importer-errors-list{display:grid;gap:.25rem;margin-top:.5rem;max-height:260px;overflow:auto}.importer-errors-list p{font-size:.58rem;margin:0}.importer-result>.btn{grid-column:1/-1;justify-self:end}.importer-history{margin-top:.85rem}.importer-history-result{display:grid;gap:.04rem}.importer-history-result b{font-size:.62rem}.importer-history-result span{color:var(--biz-muted);font-size:.55rem}
.importer-example-help{max-width:1020px;width:100%;margin:-.18rem auto .15rem;text-align:center;color:var(--biz-muted);font-size:.59rem;line-height:1.45}.importer-example-link{display:inline;padding:0;border:0;background:transparent;color:var(--biz-primary);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.importer-example-link:hover{color:color-mix(in srgb,var(--biz-primary) 80%,#000)}.importer-example-link:disabled{color:var(--biz-muted);cursor:not-allowed;text-decoration-style:dotted;opacity:.65}
@media(max-width:760px){.importer-steps{justify-content:flex-start;overflow-x:auto}.importer-steps i{width:24px;flex:0 0 24px}.importer-stage-head{display:grid}.importer-map-row{grid-template-columns:1fr}.importer-map-row>iconify-icon{transform:rotate(90deg)}.importer-final-options{grid-template-columns:1fr}.importer-summary{grid-template-columns:repeat(3,minmax(110px,1fr));overflow-x:auto}.importer-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.importadores-heading{align-items:flex-start}.importer-start-form>.btn,.importer-stage-actions>.btn,.importer-result>.btn{width:100%;justify-self:stretch}}
/* v0.11.1 · Importadores: advertencias y confirmaciones nativas de Bizfera */
.importer-inline-feedback{padding:.72rem .85rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft);font-size:.64rem}.importer-inline-feedback.is-error{border-color:color-mix(in srgb,#d94141 35%,var(--biz-border));color:#b62e2e}.importer-inline-feedback.is-warning{border-color:color-mix(in srgb,#d68b19 40%,var(--biz-border));color:#9a6813}.importer-unmapped-columns{display:grid;gap:.12rem;padding:.65rem .75rem;background:var(--biz-surface-soft);border-top:1px solid var(--biz-border)}.importer-unmapped-columns strong{font-size:.6rem}.importer-unmapped-columns span{color:var(--biz-muted);font-size:.54rem;line-height:1.5}.importer-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.importer-summary article.has-warnings strong,.importer-result-grid article.has-warnings strong{color:#b47a17}.importer-row-warnings{display:grid;gap:.12rem;margin-top:.35rem}.importer-row-warnings small{color:#a36a0b;font-size:.55rem}.importer-warnings-list{display:grid;gap:.25rem;margin-top:.5rem;max-height:260px;overflow:auto}.importer-warnings-list p{font-size:.58rem;margin:0}.importer-result-grid-v2{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){.importer-summary{grid-template-columns:repeat(4,minmax(120px,1fr))}.importer-result-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Mercado Pago · Facturación v0.11.1 */
.mp-checkout-workspace { min-height: 420px; }
.mp-payment-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.mp-payment-mode {
    width: 100%; min-height: 116px; display: grid; grid-template-columns: 48px minmax(0,1fr) 22px;
    align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--biz-border); border-radius: 15px;
    background: var(--biz-surface); color: var(--bs-body-color); text-align: left; transition: .18s ease;
}
.mp-payment-mode:hover { border-color: color-mix(in srgb, var(--biz-primary) 38%, var(--biz-border)); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(11,25,31,.055); }
.mp-payment-mode > span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--biz-primary-soft); color: var(--biz-primary); font-size: 1.35rem; }
.mp-payment-mode > div { display: grid; gap: .22rem; min-width: 0; }
.mp-payment-mode strong { font-size: .82rem; }
.mp-payment-mode small { color: var(--biz-muted); font-size: .66rem; line-height: 1.45; }
.mp-payment-mode > iconify-icon { color: var(--biz-muted); }
.mp-payment-panel { display: grid; justify-items: center; gap: 1rem; padding: 1rem 0; }
.mp-qr-shell { width: 252px; height: 252px; padding: 16px; border: 1px solid var(--biz-border); border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 18px 48px rgba(11,25,31,.08); }
.mp-qr-code { width: 220px; height: 220px; display: grid; place-items: center; }
.mp-qr-code img, .mp-qr-code canvas { max-width: 100%; height: auto !important; }
.mp-payment-copy { display: grid; justify-items: center; gap: .28rem; text-align: center; max-width: 520px; }
.mp-payment-copy > strong { font-size: 1.35rem; }
.mp-payment-copy p { margin: .15rem 0 0; color: var(--biz-muted); font-size: .72rem; line-height: 1.5; }
.mp-payment-copy small { color: var(--biz-muted); font-size: .6rem; word-break: break-all; }
.mp-transfer-card { width: min(560px, 100%); padding: 1.15rem; border: 1px solid var(--biz-border); border-radius: 16px; background: var(--biz-surface-soft); display: grid; gap: .75rem; }
.mp-transfer-card > strong { font-size: 1.35rem; }
.mp-transfer-card dl { margin: 0; display: grid; gap: .55rem; }
.mp-transfer-card dl > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: .65rem; padding: .65rem 0; border-top: 1px solid var(--biz-border); }
.mp-transfer-card dt { color: var(--biz-muted); font-size: .65rem; }
.mp-transfer-card dd { margin: 0; font-size: .76rem; font-weight: 800; word-break: break-word; }
.mp-transfer-card p { margin: 0; color: var(--biz-muted); font-size: .68rem; line-height: 1.5; }
@media (max-width: 980px) {
    .mp-payment-mode-grid { grid-template-columns: 1fr; }
    .mp-checkout-workspace { min-height: 0; }
    .mp-qr-shell { width: 226px; height: 226px; padding: 13px; }
    .mp-qr-code { width: 200px; height: 200px; }
}

/* BizAI · respuesta progresiva */
.bizai-typing-caret{display:inline-block;width:.12rem;height:.9em;margin-left:.12rem;vertical-align:-.08em;border-radius:999px;background:currentColor;opacity:.65;animation:bizaiTypingCaret .72s steps(1,end) infinite}
.bizai-message.is-typing>div{will-change:contents}
@keyframes bizaiTypingCaret{0%,48%{opacity:.65}49%,100%{opacity:.08}}
@media (prefers-reduced-motion:reduce){.bizai-typing-caret{animation:none;opacity:.35}}

/* =========================================================
   Biznube · trabajos y evidencias
   ========================================================= */
.biznube-secondary-nav{display:flex;gap:.45rem;align-items:center;overflow-x:auto;padding:.15rem 0 .85rem;scrollbar-width:none}.biznube-secondary-nav::-webkit-scrollbar{display:none}.biznube-secondary-nav a{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;padding:.42rem .68rem;border:1px solid var(--biz-border);border-radius:999px;color:var(--biz-text-muted);font-size:.72rem;font-weight:650;background:var(--biz-surface)}.biznube-secondary-nav a.active{color:var(--biz-primary);border-color:color-mix(in srgb,var(--biz-primary) 28%,var(--biz-border));background:var(--biz-primary-soft)}.biznube-secondary-nav small{display:grid;place-items:center;min-width:1.15rem;height:1.15rem;border-radius:999px;background:var(--biz-surface-soft);font-size:.62rem}
.biznube-work-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:.85rem}.biznube-work-kpis article{display:flex;align-items:center;gap:.7rem;padding:.8rem .9rem;border:1px solid var(--biz-border);border-radius:16px;background:var(--biz-surface)}.biznube-work-kpis article>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.05rem}.biznube-work-kpis article>div{display:grid;gap:.08rem}.biznube-work-kpis small{font-size:.66rem;color:var(--biz-text-muted)}.biznube-work-kpis strong{font-size:1.1rem}.biznube-work-kpis .is-danger>span{background:rgba(220,53,69,.08);color:#d6404d}.biznube-work-kpis .is-danger strong{color:#d6404d}
.biznube-work-layout{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(0,1.45fr);gap:.85rem;align-items:start}.biznube-work-layout:not(.has-detail){grid-template-columns:1fr}.biznube-work-list,.biznube-work-detail,.biznube-ticket-panel,.biznube-template-panel{overflow:hidden}.biznube-work-list>header,.biznube-ticket-panel>header,.biznube-template-panel>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-bottom:1px solid var(--biz-border)}.biznube-work-list>header>div{display:grid;gap:.08rem}.biznube-work-list>header small{color:var(--biz-text-muted);font-size:.68rem}.biznube-work-items{max-height:68vh;overflow:auto}.biznube-work-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.78rem 1rem;border-bottom:1px solid var(--biz-border);color:inherit;transition:.16s ease}.biznube-work-item:hover,.biznube-work-item.active{background:var(--biz-surface-soft)}.biznube-work-item.active{box-shadow:inset 3px 0 0 var(--biz-primary)}.biznube-work-state{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--biz-surface-soft);color:var(--biz-text-muted);font-size:1.05rem}.biznube-work-state.is-en_proceso{background:var(--biz-primary-soft);color:var(--biz-primary)}.biznube-work-state.is-realizado{background:rgba(24,160,107,.1);color:#149966}.biznube-work-state.is-cancelado{background:rgba(220,53,69,.08);color:#d6404d}.biznube-work-copy{min-width:0;display:grid;gap:.14rem}.biznube-work-copy strong{font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.biznube-work-copy small,.biznube-work-copy em{font-size:.64rem;color:var(--biz-text-muted);font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.biznube-work-item>b{min-width:22px;height:22px;padding:0 .35rem;border-radius:999px;background:rgba(220,53,69,.08);color:#d6404d;display:grid;place-items:center;font-size:.65rem}
.biznube-work-detail{padding:0}.biznube-work-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.05rem;border-bottom:1px solid var(--biz-border)}.biznube-work-detail-head h2{font-size:1.12rem;margin:.08rem 0}.biznube-work-detail-head p{margin:0;font-size:.68rem;color:var(--biz-text-muted)}.biznube-work-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;padding:.85rem 1rem;border-bottom:1px solid var(--biz-border)}.biznube-work-meta>span{display:grid;gap:.1rem;padding:.58rem .65rem;border-radius:11px;background:var(--biz-surface-soft)}.biznube-work-meta small{font-size:.6rem;color:var(--biz-text-muted)}.biznube-work-meta strong{font-size:.7rem}.biznube-work-description{padding:.85rem 1rem;margin:0;border-bottom:1px solid var(--biz-border);font-size:.72rem;line-height:1.6}.biznube-work-section{padding:.9rem 1rem;border-bottom:1px solid var(--biz-border)}.biznube-work-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.65rem}.biznube-work-section>header>div{display:grid;gap:.08rem}.biznube-work-section>header strong{font-size:.78rem}.biznube-work-section>header small,.biznube-work-muted{font-size:.64rem;color:var(--biz-text-muted);margin:0}.biznube-work-state-actions{display:flex;flex-wrap:wrap;gap:.38rem}.biznube-work-state-actions form{margin:0}.biznube-work-requirements{display:flex;gap:.55rem;align-items:flex-start;margin-top:.7rem;padding:.65rem .72rem;border-radius:12px;background:rgba(243,166,43,.09);color:#99630f}.biznube-work-requirements>iconify-icon{font-size:1rem;margin-top:.05rem}.biznube-work-requirements span{display:grid;gap:.08rem}.biznube-work-requirements strong{font-size:.7rem}.biznube-work-requirements small{font-size:.63rem;line-height:1.45}
.biznube-check-list{display:grid;gap:.3rem}.biznube-check-list form{margin:0}.biznube-check-item{width:100%;display:flex;align-items:center;gap:.5rem;text-align:left;padding:.5rem .55rem;border:0;background:transparent;border-radius:10px;color:inherit;font-size:.7rem}.biznube-check-item:hover{background:var(--biz-surface-soft)}.biznube-check-item iconify-icon{font-size:1rem;color:var(--biz-text-muted)}.biznube-check-item.done{color:var(--biz-text-muted);text-decoration:line-through}.biznube-check-item.done iconify-icon{color:var(--biz-primary)}.biznube-check-item small{font-size:.58rem;text-decoration:none}
.biznube-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin-bottom:.6rem}.biznube-evidence-grid a{display:flex;align-items:center;gap:.5rem;padding:.55rem .6rem;border:1px solid var(--biz-border);border-radius:11px;color:inherit;min-width:0}.biznube-evidence-grid a>iconify-icon{font-size:1rem;color:var(--biz-primary)}.biznube-evidence-grid a>span{display:grid;min-width:0}.biznube-evidence-grid strong{font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.biznube-evidence-grid small{font-size:.58rem;color:var(--biz-text-muted)}.biznube-evidence-form,.biznube-material-add,.biznube-sign-form{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1.5fr) auto;gap:.45rem;align-items:center}.biznube-material-add{grid-template-columns:minmax(0,1.5fr) 110px minmax(130px,.7fr) auto}.biznube-sign-form{grid-template-columns:minmax(0,1fr) auto}.biznube-material-list{display:grid;gap:.3rem;margin-bottom:.55rem}.biznube-material-list>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.48rem .55rem;border-radius:10px;background:var(--biz-surface-soft)}.biznube-material-list span{display:grid}.biznube-material-list strong{font-size:.68rem}.biznube-material-list small{font-size:.59rem;color:var(--biz-text-muted)}
.biznube-work-history{padding:.8rem 1rem}.biznube-work-history summary{cursor:pointer;font-size:.7rem;font-weight:700}.biznube-work-history>div{display:grid;gap:.45rem;margin-top:.7rem}.biznube-work-history article{display:grid;grid-template-columns:minmax(140px,.4fr) 1fr;gap:.7rem;padding:.5rem 0;border-bottom:1px dashed var(--biz-border)}.biznube-work-history article span{display:grid}.biznube-work-history strong{font-size:.65rem;text-transform:capitalize}.biznube-work-history small,.biznube-work-history p{font-size:.59rem;color:var(--biz-text-muted);margin:0}
.biznube-ticket-panel>header>div,.biznube-template-panel>header>div{display:grid;gap:.12rem}.biznube-ticket-panel>header h2,.biznube-template-panel>header h2{margin:0;font-size:1.05rem}.biznube-ticket-panel>header p,.biznube-template-panel>header p{margin:0;font-size:.67rem;color:var(--biz-text-muted)}.biznube-ticket-list{display:grid}.biznube-ticket-list>article{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(220px,auto);gap:.7rem;align-items:center;padding:.8rem 1rem;border-bottom:1px solid var(--biz-border)}.biznube-ticket-list article>div{display:grid;gap:.12rem}.biznube-ticket-list strong{font-size:.74rem}.biznube-ticket-list small,.biznube-ticket-list p{font-size:.62rem;color:var(--biz-text-muted);margin:0}.biznube-ticket-convert{display:grid;grid-template-columns:130px 140px 170px auto;gap:.35rem;align-items:center}.biznube-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;padding:.9rem}.biznube-template-grid>article{display:flex;gap:.7rem;padding:.8rem;border:1px solid var(--biz-border);border-radius:14px}.biznube-template-grid>article>span{width:36px;height:36px;flex:0 0 36px;border-radius:11px;display:grid;place-items:center;background:var(--biz-primary-soft);color:var(--biz-primary)}.biznube-template-grid article>div{display:grid;gap:.15rem}.biznube-template-grid strong{font-size:.76rem}.biznube-template-grid p,.biznube-template-grid small{font-size:.61rem;color:var(--biz-text-muted);margin:0}.biznube-template-requirements{display:flex;flex-wrap:wrap;gap:.28rem;margin-top:.35rem}.biznube-template-requirements em{font-size:.56rem;font-style:normal;padding:.25rem .38rem;border-radius:999px;background:var(--biz-primary-soft);color:var(--biz-primary)}.biznube-requirement-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.7rem 0}.biznube-requirement-checks label{display:flex;align-items:center;gap:.45rem;padding:.6rem;border:1px solid var(--biz-border);border-radius:11px;font-size:.68rem}
@media(max-width:1100px){.biznube-work-layout{grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr)}.biznube-work-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.biznube-ticket-list>article{grid-template-columns:38px minmax(0,1fr)}.biznube-ticket-convert{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr));}.biznube-ticket-convert .btn{grid-column:1/-1}}
@media(max-width:780px){.biznube-work-kpis{display:flex;overflow-x:auto;gap:.55rem;padding-bottom:.2rem;scroll-snap-type:x proximity}.biznube-work-kpis article{min-width:145px;scroll-snap-align:start}.biznube-work-layout{display:block}.biznube-work-list{margin-bottom:.75rem}.biznube-work-items{max-height:none}.biznube-work-detail{margin-top:.75rem}.biznube-work-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.biznube-evidence-form,.biznube-material-add,.biznube-sign-form{grid-template-columns:1fr}.biznube-evidence-grid{grid-template-columns:1fr}.biznube-template-grid{grid-template-columns:1fr;padding:.7rem}.biznube-ticket-list>article{grid-template-columns:34px minmax(0,1fr);align-items:start}.biznube-ticket-convert{grid-column:1/-1;grid-template-columns:1fr}.biznube-requirement-checks{grid-template-columns:1fr}.biznube-work-detail-head{align-items:flex-start}.biznube-secondary-nav{margin-left:-.15rem;margin-right:-.15rem}}
.biznube-work-head-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}.biznube-work-execution-form{display:grid;grid-template-columns:minmax(150px,.8fr) 120px minmax(0,1.5fr) auto;gap:.45rem;align-items:start}.biznube-work-execution-form textarea{min-height:76px}.biznube-sign-form{display:grid!important;grid-template-columns:1fr!important;gap:.55rem!important}.biznube-signature-pad{border:1px solid var(--biz-border);border-radius:13px;overflow:hidden;background:#fff}.biznube-signature-pad canvas{display:block;width:100%;height:130px;touch-action:none;background:linear-gradient(to bottom,#fff 0,#fff 76%,#eef2f0 77%,#fff 78%)}.biznube-signature-pad>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .55rem;border-top:1px solid #e7ece9;background:#fafcfb}.biznube-signature-pad small{font-size:.6rem;color:#6c7772}.biznube-work-meta{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.biznube-work-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.biznube-work-execution-form{grid-template-columns:1fr 120px}.biznube-work-execution-form textarea,.biznube-work-execution-form button{grid-column:1/-1}}
@media(max-width:780px){.biznube-work-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.biznube-work-execution-form{grid-template-columns:1fr}.biznube-work-execution-form textarea,.biznube-work-execution-form button{grid-column:auto}.biznube-work-head-actions{justify-content:flex-start}}

/* v0.11.3 · Integraciones ecommerce */
.integration-toggle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.integration-check { display:flex !important; align-items:center; gap:.55rem; min-height:42px; padding:.6rem .7rem; border:1px solid var(--biz-border); border-radius:10px; background:var(--biz-surface-soft); cursor:pointer; }
.integration-check input { width:16px; height:16px; flex:0 0 auto; }
.integration-check span { font-size:.69rem; font-weight:600; }
.secure-note-warning { background:rgba(245,158,11,.08); border-color:rgba(245,158,11,.22); color:var(--biz-text); }
.integration-card-ecommerce .integration-card-actions { flex-wrap:wrap; }
@media (max-width:620px) { .integration-toggle-grid { grid-template-columns:1fr; } }

/* v0.11.4 · lanzamiento público, SEO y medición */
.seo-public-nav{max-width:1320px;margin:0 auto}.seo-hero{max-width:1320px;margin:0 auto;padding:5.5rem 3rem 4.5rem;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:4.5rem;align-items:center}.seo-hero-copy>span,.seo-problem>span,.seo-price-copy>span{font-size:.7rem;font-weight:800;letter-spacing:.12em;color:var(--biz-primary)}.seo-hero-copy h1{font-size:clamp(2.5rem,5vw,4.9rem);line-height:1.02;letter-spacing:-.055em;margin:.7rem 0 1.15rem;max-width:900px}.seo-hero-copy>p{font-size:1.05rem;line-height:1.7;color:var(--biz-text-muted);max-width:720px}.seo-hero-visual{display:flex;justify-content:center}.seo-operation-card{width:min(100%,520px);border:1px solid var(--biz-border);border-radius:26px;padding:1.5rem;background:linear-gradient(180deg,var(--biz-surface),var(--biz-surface-soft));box-shadow:0 28px 80px rgba(17,62,48,.09);display:grid;gap:1rem}.seo-operation-card>small{font-size:.65rem;font-weight:800;letter-spacing:.11em;color:var(--biz-primary)}.seo-operation-card>strong{font-size:1.3rem}.seo-operation-center{min-height:130px;border-radius:20px;background:linear-gradient(135deg,#075f49,#0aac7b);color:#fff;display:grid;place-items:center;align-content:center;gap:.55rem;text-align:center}.seo-operation-center span{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:1.35rem}.seo-operation-center b{font-size:1.05rem}.seo-operation-effects{display:grid;grid-template-columns:repeat(5,1fr);gap:.45rem}.seo-operation-effects span{min-height:58px;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface);display:grid;place-items:center;text-align:center;gap:.15rem;padding:.4rem;font-size:.58rem;font-weight:700}.seo-operation-effects iconify-icon{font-size:1rem;color:var(--biz-primary)}.seo-problem{max-width:1120px;margin:0 auto;padding:2rem 3rem 5rem;text-align:center}.seo-problem h2{font-size:clamp(1.7rem,3vw,2.7rem);line-height:1.25;letter-spacing:-.035em;margin:.7rem auto 0;max-width:980px}.seo-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.seo-feature-grid article{padding:1.25rem;border:1px solid var(--biz-border);border-radius:18px;background:var(--biz-surface)}.seo-feature-grid article>span{width:40px;height:40px;border-radius:12px;background:var(--biz-primary-soft);color:var(--biz-primary);display:grid;place-items:center;font-size:1.15rem}.seo-feature-grid h3{font-size:.9rem;margin:.85rem 0 .4rem}.seo-feature-grid p{font-size:.7rem;line-height:1.6;color:var(--biz-text-muted);margin:0}.seo-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.seo-step-grid article{display:flex;gap:.8rem;padding:1rem 0;border-top:1px solid var(--biz-border)}.seo-step-grid article>b{width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:var(--biz-primary);color:#fff;display:grid;place-items:center;font-size:.72rem}.seo-step-grid h3{font-size:.85rem;margin:0 0 .25rem}.seo-step-grid p{font-size:.69rem;color:var(--biz-text-muted);line-height:1.55;margin:0}.seo-connected-band{max-width:1260px;margin:1rem auto 5rem;padding:2.1rem 2.3rem;border-radius:24px;background:#073b30;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:2rem}.seo-connected-band>div{max-width:820px}.seo-connected-band span{font-size:.66rem;font-weight:800;letter-spacing:.11em;color:#52d7b3}.seo-connected-band h2{font-size:1.7rem;margin:.45rem 0}.seo-connected-band p{margin:0;color:rgba(255,255,255,.7);font-size:.74rem}.seo-price-section{display:flex!important;align-items:center;justify-content:space-between;gap:2rem}.seo-price-copy{max-width:760px}.seo-price-copy h2{font-size:2rem;margin:.45rem 0}.seo-price-copy p{font-size:.76rem;color:var(--biz-text-muted);margin:0}.seo-related-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.seo-related-links a{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--biz-border);border-radius:14px;padding:.85rem 1rem;color:inherit;font-size:.75rem;font-weight:700;background:var(--biz-surface)}.seo-related-links a:hover{border-color:rgba(10,163,118,.4);transform:translateY(-1px)}.seo-final{max-width:1320px}.public-footer{max-width:1320px;margin:0 auto;padding:2rem 3rem 3rem;border-top:1px solid var(--biz-border);display:flex;align-items:center;gap:1.5rem;justify-content:space-between}.public-footer .public-brand img{height:29px}.public-footer nav{display:flex;gap:1rem;flex-wrap:wrap}.public-footer a{color:inherit;font-size:.7rem}.public-footer small{font-size:.63rem;color:var(--biz-text-muted)}.legal-page{max-width:900px;margin:0 auto;padding:5rem 2rem 5.5rem}.legal-page>span{font-size:.68rem;font-weight:800;letter-spacing:.12em;color:var(--biz-primary)}.legal-page h1{font-size:clamp(2.2rem,5vw,3.6rem);letter-spacing:-.05em;margin:.6rem 0 1rem}.legal-page .legal-intro{font-size:.95rem;color:var(--biz-text-muted);line-height:1.7;margin-bottom:3rem}.legal-page h2{font-size:1.05rem;margin:2rem 0 .55rem}.legal-page p{font-size:.76rem;color:var(--biz-text-muted);line-height:1.75}.marketing-consent{position:fixed;left:20px;right:20px;bottom:20px;z-index:2000;max-width:860px;margin:0 auto;padding:1rem 1.1rem;border:1px solid var(--biz-border);border-radius:16px;background:var(--biz-surface);box-shadow:0 20px 60px rgba(8,40,31,.2);display:flex;align-items:center;justify-content:space-between;gap:1rem}.marketing-consent[hidden]{display:none!important}.marketing-consent>div:first-child{display:grid;gap:.15rem}.marketing-consent strong{font-size:.76rem}.marketing-consent p{margin:0;font-size:.64rem;line-height:1.45;color:var(--biz-text-muted)}.marketing-consent a{font-size:.62rem;color:var(--biz-primary);font-weight:700}.marketing-consent>div:last-child{display:flex;gap:.4rem;flex:0 0 auto}
@media(max-width:900px){.seo-hero{grid-template-columns:1fr;padding:4rem 1.2rem 3.5rem;gap:2.5rem}.seo-hero-visual{justify-content:flex-start}.seo-operation-card{width:100%;max-width:none}.seo-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seo-problem{padding:1rem 1.2rem 4rem}.seo-connected-band{margin:0 1rem 4rem}.seo-price-section{align-items:flex-start!important;flex-direction:column}.public-footer{padding:1.5rem 1.2rem 2rem;align-items:flex-start;flex-direction:column}.seo-related-links{grid-template-columns:1fr}.seo-public-nav{margin:0}}
@media(max-width:620px){.seo-hero{padding-top:3rem}.seo-hero-copy h1{font-size:2.55rem}.seo-feature-grid,.seo-step-grid{grid-template-columns:1fr}.seo-operation-effects{display:flex;overflow-x:auto;padding-bottom:.2rem}.seo-operation-effects span{min-width:84px}.seo-connected-band{padding:1.4rem;align-items:flex-start;flex-direction:column}.seo-connected-band h2{font-size:1.35rem}.seo-price-copy h2{font-size:1.55rem}.marketing-consent{left:10px;right:10px;bottom:10px;align-items:stretch;flex-direction:column}.marketing-consent>div:last-child{display:grid;grid-template-columns:1fr 1fr}.legal-page{padding:3rem 1.2rem 4rem}}
.registration-legal{font-size:.62rem;line-height:1.5;color:var(--biz-text-muted);margin:.75rem 0 0}.registration-legal a{color:var(--biz-primary);font-weight:700}

/* v0.11.6 · Integraciones compactas: la configuración vive en un sheet. */
.integration-grid-v2 > .integration-card-v2 {
    min-height: 98px;
    padding: 0;
    overflow: hidden;
}
.integration-grid-v2 > .integration-card-v2 > :not(.integration-card-header) {
    display: none;
}
.integration-card-trigger {
    min-height: 98px;
    padding: 1rem 1.05rem;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}
.integration-card-trigger:hover { background: var(--biz-surface-soft); }
.integration-card-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--biz-primary) 22%, transparent); outline-offset: -3px; }
.integration-card-trigger::after {
    content: '›';
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    margin-left: .1rem;
    border-radius: 9px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 1.15rem;
    font-weight: 800;
}
.integration-sheet-backdrop { z-index: 1285; }
.integration-grid-v2 > .integration-card-v2.is-sheet-open {
    position: fixed;
    z-index: 1290;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: min(1180px, calc(100% - 2rem));
    max-height: 92dvh;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--biz-surface);
    box-shadow: 0 -24px 70px rgba(0,0,0,.24);
}
.integration-grid-v2 > .integration-card-v2.is-sheet-open > :not(.integration-card-header) {
    display: flex;
    margin-right: 1.2rem;
    margin-left: 1.2rem;
}
.integration-grid-v2 > .integration-card-v2.is-sheet-open > details,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-plan-summary,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .secure-note,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-meta,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-feature-list,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-helper,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-price {
    display: block;
}
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 82px;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--biz-border);
    background: color-mix(in srgb, var(--biz-surface) 96%, transparent);
    backdrop-filter: blur(12px);
    cursor: default;
}
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header::after { display: none; }
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header .integration-sheet-close { margin-left: .1rem; }
.integration-grid-v2 > .integration-card-v2.is-sheet-open > :last-child { margin-bottom: 1.2rem; }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .filter-accordion { width: calc(100% - 2.4rem); }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-card-actions { flex-wrap: wrap; }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-connect-simple,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-connected-account { width: calc(100% - 2.4rem); }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-feature-list { width: calc(100% - 2.4rem); }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-plan-summary { width: calc(100% - 2.4rem); }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-card-meta { width: calc(100% - 2.4rem); }
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-helper,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-price { width: calc(100% - 2.4rem); }
@media (max-width:720px) {
    .integration-grid-v2 > .integration-card-v2 { min-height: 118px; }
    .integration-card-trigger { min-height: 118px; padding: .9rem; }
    .integration-card-trigger::after { grid-row: 1; grid-column: 2; }
    .integration-grid-v2 > .integration-card-v2.is-sheet-open { width: 100%; max-height: 96dvh; border-right: 0; border-left: 0; border-radius: 20px 20px 0 0; }
    .integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header { grid-template-columns: minmax(0,1fr) auto!important; }
    .integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header .integration-card-copy-v2 { grid-column: 1 / -1; }
}

/* v0.11.8 · BizAI: isotipo suelto en la interfaz; badge solo en Integraciones. */
.topbar-bizai-icon img,
.bizai-mark img,
.bizai-message-avatar img,
.bizai-unavailable-logo img,
.bizai-engine-icon img,
.bizai-module-logo img,
.sidebar-link-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-bizai-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.bizai-mark {
    width: 38px;
    height: 38px;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bizai-message-avatar {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bizai-unavailable-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin: 0 auto .4rem;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.bizai-engine-icon {
    width: 44px;
    height: 44px;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bizai-module-logo {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    overflow: visible;
}

.sidebar-link-image {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 0;
    background: transparent;
}

/* El badge del isotipo BizAI existe únicamente dentro de Integraciones. */
.integration-brand-bizai {
    min-width: 54px;
}

@media (max-width: 720px) {
    .topbar-bizai-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}

/* v0.11.6 · Logo BizAI en las cards públicas donde se menciona el asistente. */
.seo-bizai-logo { width: 30px; height: 30px; object-fit: contain; }
@media (max-width: 720px) {
    .topbar-bizai-icon { width: 28px; height: 28px; flex-basis: 28px; }
}


/* v0.11.9 · Documento público enviado por email. */
.shared-document-page {
    width: 100%;
}
.shared-document-header {
    width: min(100%, 980px);
    margin: 0 auto 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #dbe4e0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(13, 42, 33, .08);
}
.shared-document-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}
.shared-document-brand > img {
    width: 104px;
    height: 34px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
}
.shared-document-brand > div {
    min-width: 0;
}
.shared-document-brand span {
    display: block;
    color: #0aa376;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.shared-document-brand h1 {
    margin: .2rem 0 .12rem;
    font-size: 1.05rem;
    letter-spacing: -.025em;
}
.shared-document-brand p {
    margin: 0;
    color: #68756f;
    font-size: .68rem;
}
.shared-document-content > .print-document,
.shared-document-content > .document-print {
    margin-bottom: 1rem;
}
.shared-document-footer {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: .4rem .2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #71807a;
    font-size: .61rem;
}
.shared-document-footer span {
    font-weight: 700;
    color: #43514c;
}
.shared-document-error {
    width: min(520px, calc(100% - 2rem));
    margin: 12vh auto 0;
    padding: 2rem;
    border: 1px solid #dbe4e0;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 60px rgba(13, 42, 33, .1);
}
.shared-document-error img {
    width: 120px;
    height: 38px;
    object-fit: contain;
}
.shared-document-error > span {
    display: block;
    margin-top: 1rem;
    color: #0aa376;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.shared-document-error h1 {
    margin: .45rem 0;
    font-size: 1.35rem;
}
.shared-document-error p {
    margin: 0;
    color: #6d7975;
    font-size: .75rem;
    line-height: 1.6;
}

.bizai-module-badge {
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 9px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 1rem;
}

@media (max-width: 720px) {
    .shared-document-header {
        align-items: stretch;
        flex-direction: column;
        padding: .9rem;
    }
    .shared-document-brand {
        align-items: flex-start;
    }
    .shared-document-brand > img {
        width: 82px;
        height: 29px;
    }
    .shared-document-header .btn {
        width: 100%;
        justify-content: center;
    }
    .shared-document-footer {
        flex-direction: column;
        padding-right: .4rem;
        padding-left: .4rem;
    }
}

@media print {
    .shared-document-content > .print-document,
    .shared-document-content > .document-print {
        margin-bottom: 0;
    }
}

/* v0.12.0 · Setup de integraciones externas. */
.integration-setup-note {
    width: calc(100% - 2.4rem);
    margin-top: .9rem;
    padding: .85rem .95rem;
    display: grid !important;
    gap: .55rem;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface-soft);
}
.integration-setup-note > div {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.integration-setup-note > div > iconify-icon {
    flex: 0 0 auto;
    margin-top: .08rem;
    color: var(--biz-primary);
    font-size: 1.05rem;
}
.integration-setup-note > div > span {
    display: grid;
    gap: .12rem;
}
.integration-setup-note strong { font-size: .72rem; }
.integration-setup-note small { color: var(--biz-muted); font-size: .63rem; line-height: 1.5; }
.integration-setup-note code {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    padding: .58rem .68rem;
    border: 1px solid var(--biz-border);
    border-radius: 9px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    font-size: .61rem;
    white-space: nowrap;
}
.integration-setup-warning {
    margin: 0;
    padding: .55rem .65rem;
    border-radius: 9px;
    background: color-mix(in srgb, #f4b73b 12%, var(--biz-surface));
    color: color-mix(in srgb, #9a6400 78%, var(--biz-text));
    font-size: .62rem;
    line-height: 1.5;
}
@media (max-width: 720px) {
    .integration-setup-note { width: calc(100% - 1.8rem); margin-right: .9rem !important; margin-left: .9rem !important; }
}


/* v0.12.4 · Mercado Libre: comprobación operativa de catálogo y ventas. */
.ml-sync-panel {
    width: calc(100% - 2.4rem);
    margin: .2rem 1.2rem .9rem;
    padding: .85rem;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
}
.ml-sync-topbar {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:.8rem;
}
.ml-sync-topbar > div { min-width:0; }
.ml-sync-topbar strong { display:block; font-size:.76rem; }
.ml-sync-topbar small { display:block; margin-top:.15rem; color:var(--biz-muted); font-size:.61rem; }
.ml-sync-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .55rem;
    margin-top: .75rem;
}
.ml-sync-stats > div {
    display: grid;
    gap: .12rem;
    padding: .62rem .7rem;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    background: var(--biz-surface-soft);
}
.ml-sync-stats span { color: var(--biz-muted); font-size: .58rem; }
.ml-sync-stats strong { font-size: .86rem; }
.ml-sync-message { margin: .68rem 0 0; color: var(--biz-muted); font-size: .63rem; line-height: 1.5; }
.ml-sync-content { display:grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.9fr); gap:.7rem; margin-top:.7rem; }
.ml-sync-column { display:grid; gap:.45rem; align-content:start; }
.ml-sync-subtitle { font-size:.63rem; font-weight:800; color:var(--biz-text); }
.ml-publications,.ml-orders { margin-top: 0; }
.ml-publication-list { display: grid; gap: .42rem; }
.ml-publication-row {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto minmax(130px,auto);
    align-items: center;
    gap: .6rem;
    padding: .55rem;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    background: var(--biz-surface-soft);
}
.ml-publication-image { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--biz-surface); }
.ml-publication-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-publication-placeholder { display:grid; width:100%; height:100%; place-items:center; color:var(--biz-muted); }
.ml-publication-copy { min-width: 0; }
.ml-publication-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.66rem; }
.ml-publication-copy small { display:block; margin-top:.12rem; color:var(--biz-muted); font-size:.56rem; }
.ml-publication-price { font-size:.65rem; font-weight:800; white-space:nowrap; }
.ml-publication-link { display:flex; align-items:center; justify-content:flex-end; gap:.35rem; min-width:0; }
.ml-publication-link > span { display:inline-flex; align-items:center; gap:.25rem; max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--biz-muted); font-size:.56rem; }
.ml-publication-link.is-linked > span { color:var(--biz-primary); font-weight:700; }
.ml-orders-list { display:grid; gap:.35rem; }
.ml-orders-title { font-size:.66rem; }
.ml-order-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:.55rem; align-items:center; padding:.5rem .6rem; border:1px solid var(--biz-border); border-radius:9px; background:var(--biz-surface-soft); }
.ml-order-row span,.ml-order-row strong { font-size:.61rem; }
.ml-order-row small { color:var(--biz-muted); font-size:.55rem; }
.integration-empty-state { display:grid; gap:.18rem; padding:.75rem; border:1px dashed var(--biz-border); border-radius:10px; background:var(--biz-surface-soft); }
.integration-empty-state strong { font-size:.66rem; }
.integration-empty-state span { color:var(--biz-muted); font-size:.59rem; line-height:1.45; }
.btn-xs { min-height: 28px!important; padding: .3rem .48rem!important; font-size: .55rem!important; }
@media(max-width:760px){
    .ml-sync-panel { width:calc(100% - 1.2rem); margin-left:.6rem; margin-right:.6rem; }
    .ml-sync-topbar { align-items:stretch; flex-direction:column; }
    .ml-sync-topbar .btn { width:100%; justify-content:center; }
    .ml-sync-stats { grid-template-columns:repeat(3,minmax(105px,1fr)); overflow-x:auto; }
    .ml-sync-content { grid-template-columns:1fr; }
    .ml-publication-row { grid-template-columns:42px minmax(0,1fr) auto; }
    .ml-publication-link { grid-column:2/-1; justify-content:flex-start; }
    .ml-order-row { grid-template-columns:minmax(0,1fr) auto; }
    .ml-order-row small { grid-column:1/2; }
}


/* v0.13.3 · Mercado Libre operativo (contenido solo dentro del sheet). */
.integration-grid-v2 > .integration-card-v2 > .ml-operations { display: none; }
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .ml-operations { display: block; }
.ml-operations{
    width:calc(100% - 2.4rem);
    margin:.25rem 1.2rem .9rem;
    padding:1rem;
    border:1px solid var(--biz-border);
    border-radius:14px;
    background:var(--biz-surface);
}
.ml-operations > *{width:100%}
.ml-operations-header{display:block;margin:0}
.ml-operations-header strong{display:block;font-size:.78rem}
.ml-operations-header small{display:block;margin-top:.12rem;color:var(--biz-muted);font-size:.61rem}
.ml-top-grid{display:grid;grid-template-columns:minmax(280px,420px) minmax(320px,1fr);gap:.8rem;align-items:start;margin-top:.8rem}
.ml-box{border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft);padding:.75rem}
.ml-box-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.55rem}
.ml-box-header strong{font-size:.65rem}
.ml-box-header span{color:var(--biz-muted);font-size:.55rem}
.ml-settings{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:.55rem;align-items:end}
.ml-settings>label>span{display:block;margin-bottom:.25rem;color:var(--biz-muted);font-size:.58rem;font-weight:700}
.ml-settings-simple>.btn{align-self:end}
.ml-action-grid{display:flex;flex-wrap:wrap;gap:.45rem}
.ml-action-grid .btn{justify-content:center}
.ml-sync-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:.8rem}
.ml-sync-stats > div{padding:.7rem .75rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft)}
.ml-sync-stats span{display:block;color:var(--biz-muted);font-size:.58rem}
.ml-sync-stats strong{display:block;margin-top:.1rem;font-size:1rem;line-height:1.2}
.ml-sync-message{margin:.55rem 0 0;padding:.65rem .75rem;border:1px dashed var(--biz-border);border-radius:10px;color:var(--biz-muted);font-size:.61rem;line-height:1.45;background:var(--biz-surface-soft)}
.ml-workspace{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:.8rem;align-items:start;margin-top:.8rem}
.ml-workspace-panel{min-width:0;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft);overflow:hidden}
.ml-workspace-panel>header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.7rem .8rem;border-bottom:1px solid var(--biz-border)}
.ml-workspace-panel>header strong{font-size:.67rem}
.ml-workspace-panel>header span{color:var(--biz-muted);font-size:.55rem}
.ml-workspace-panel>.ml-publications,.ml-workspace-panel>.ml-orders{padding:.6rem;min-height:220px;max-height:460px;overflow:auto}
.ml-publication-list{display:grid;gap:.45rem}
.ml-publication-row{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:.55rem;align-items:center;padding:.55rem .6rem;border:1px solid var(--biz-border);border-radius:10px;background:var(--biz-surface)}
.ml-publication-image{width:46px;height:46px;border-radius:9px;overflow:hidden;background:var(--biz-surface-soft)}
.ml-publication-image img{display:block;width:100%;height:100%;object-fit:cover}
.ml-publication-placeholder{display:grid;width:100%;height:100%;place-items:center;color:var(--biz-muted)}
.ml-publication-copy{min-width:0}
.ml-publication-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.64rem}
.ml-publication-copy small{display:block;margin-top:.1rem;color:var(--biz-muted);font-size:.55rem}
.ml-publication-meta{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.18rem;color:var(--biz-muted);font-size:.54rem}
.ml-publication-actions{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}
.ml-linked-product{display:flex;align-items:center;gap:.3rem;max-width:180px;color:var(--biz-primary)}
.ml-linked-product>span{min-width:0}
.ml-linked-product strong,.ml-linked-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-linked-product strong{font-size:.57rem}
.ml-linked-product small{font-size:.52rem}
.ml-link-editor{grid-column:2/-1;display:grid;gap:.3rem;margin-top:.1rem}
.ml-link-editor[hidden]{display:none}
.ml-link-results{display:grid;gap:.2rem}
.ml-link-results>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.4rem;padding:.42rem .5rem;border:1px solid var(--biz-border);border-radius:8px;background:var(--biz-surface);text-align:left}
.ml-link-results>button:hover{border-color:var(--biz-primary)}
.ml-link-results strong{font-size:.57rem}
.ml-link-results small,.ml-link-results>span{color:var(--biz-muted);font-size:.52rem}
.ml-orders-list{display:grid;gap:.4rem}
.ml-order-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.55rem;padding:.55rem .6rem;border:1px solid var(--biz-border);border-radius:10px;background:var(--biz-surface)}
.ml-order-card>div:first-child strong,.ml-order-card>div:first-child small{display:block}
.ml-order-card>div:first-child strong{font-size:.61rem}
.ml-order-card>div:first-child small{margin-top:.1rem;color:var(--biz-muted);font-size:.54rem}
.ml-order-card>strong{font-size:.61rem;white-space:nowrap}
.ml-order-card>div:last-child{display:flex;align-items:center;gap:.3rem;justify-content:flex-end}
.ml-order-number{color:var(--biz-muted);font-size:.53rem}
.ml-order-wait{padding:.28rem .4rem;border-radius:7px;background:var(--biz-surface-soft);color:var(--biz-muted);font-size:.53rem}
.ml-sync-message.is-error{color:#c44855}
@media(max-width:1080px){
    .ml-top-grid{grid-template-columns:1fr}
    .ml-workspace{grid-template-columns:1fr}
    .ml-workspace-panel>.ml-publications,.ml-workspace-panel>.ml-orders{max-height:none}
}
@media(max-width:720px){
    .ml-operations{width:calc(100% - 1.2rem);margin-left:.6rem;margin-right:.6rem;padding:.8rem}
    .ml-settings{grid-template-columns:1fr}
    .ml-settings>.btn{width:100%}
    .ml-action-grid{display:grid;grid-template-columns:1fr}
    .ml-sync-stats{grid-template-columns:1fr}
    .ml-publication-row{grid-template-columns:42px minmax(0,1fr)}
    .ml-publication-image{width:42px;height:42px}
    .ml-publication-actions{grid-column:1/-1;justify-content:flex-start}
    .ml-link-editor{grid-column:1/-1}
    .ml-order-card{grid-template-columns:1fr}
    .ml-order-card>strong{justify-self:start}
    .ml-order-card>div:last-child{justify-content:flex-start}
}


/* v0.13.6 · Tiendanube: resumen horizontal y permisos. */
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-plan-summary.tiendanube-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}
.tiendanube-permission-note {
    align-items: center;
    grid-template-columns: auto minmax(0,1fr) auto;
}
.tiendanube-permission-note > span { display: grid; gap: .08rem; }
.tiendanube-permission-note > span strong { font-size: .64rem; }
.tiendanube-permission-note > span small { color: inherit; opacity: .82; font-size: .58rem; }
.tiendanube-permission-note form { margin-left: auto; }
@media (max-width: 760px) {
    .integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-plan-summary.tiendanube-summary {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .tiendanube-permission-note { grid-template-columns: auto minmax(0,1fr); }
    .tiendanube-permission-note form { grid-column: 1 / -1; width: 100%; margin: .3rem 0 0; }
    .tiendanube-permission-note form .btn { width: 100%; justify-content: center; }
}


/* v0.14.1 · Dashboard ejecutivo */
:root{
    --dashboard-blue:#3978db;
    --dashboard-amber:#d48a00;
    --dashboard-purple:#8a63d2;
    --dashboard-red:#dc5b66;
    --dashboard-cyan:#2ba7a0;
    --dashboard-slate:#687771;
    --dashboard-lime:#7aa33e;
}
.dashboard-heading{align-items:flex-end}
.dashboard-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}
.dashboard-heading-actions .page-date{margin:0 .2rem 0 0}

.executive-kpis{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:.75rem;
    margin-bottom:.75rem;
}
.executive-kpi{
    min-width:0;
    min-height:148px;
    padding:1rem;
    border:1px solid var(--biz-border);
    border-radius:16px;
    background:var(--biz-surface);
    box-shadow:var(--biz-shadow-sm);
}
.executive-kpi-primary{
    background:linear-gradient(145deg,var(--biz-primary-soft),var(--biz-surface) 62%);
    border-color:color-mix(in srgb,var(--biz-primary) 28%,var(--biz-border));
}
.executive-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:var(--biz-muted);font-size:.66rem;font-weight:750}
.executive-kpi-head iconify-icon{font-size:1.05rem;color:var(--biz-primary)}
.executive-kpi>strong{display:block;margin:.55rem 0 .75rem;font-size:clamp(1.08rem,1.55vw,1.45rem);letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.executive-kpi footer{display:flex;min-width:0;align-items:flex-end;justify-content:space-between;gap:.4rem;color:var(--biz-muted);font-size:.55rem}
.executive-kpi footer>span,.executive-kpi footer>small,.executive-kpi footer>a{min-width:0}
.executive-kpi footer>a{color:var(--biz-primary);font-weight:750}
.dashboard-trend{display:inline-flex!important;align-items:center;gap:.18rem;font-weight:750}
.dashboard-trend.up{color:var(--biz-primary)}
.dashboard-trend.down{color:var(--dashboard-red)}
.dashboard-trend.neutral{color:var(--biz-muted)}

.dashboard-command-row{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:.75rem;
    margin-bottom:.75rem;
}
.dashboard-command-card{
    display:grid;
    min-width:0;
    min-height:104px;
    padding:.85rem;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:.65rem;
    border:1px solid var(--biz-border);
    border-radius:14px;
    background:var(--biz-surface);
}
.dashboard-command-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.05rem}
.dashboard-command-card.needs-attention .dashboard-command-icon{background:#fff0f1;color:var(--dashboard-red)}
html[data-bs-theme="dark"] .dashboard-command-card.needs-attention .dashboard-command-icon{background:#432126}
.dashboard-command-card small,.dashboard-command-card span{display:block;color:var(--biz-muted);font-size:.55rem}
.dashboard-command-card strong{display:block;margin:.12rem 0;font-size:.88rem;letter-spacing:-.02em}

.executive-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:.75rem;
}
.executive-dashboard-grid>.panel-card{padding:1rem;border-radius:16px}
.dashboard-chart-wide{grid-column:span 8}
.dashboard-chart-card:not(.dashboard-chart-wide){grid-column:span 4}
.dashboard-ranking-card{grid-column:span 4}
.dashboard-attention-card{grid-column:span 5}
.dashboard-table-card{grid-column:span 7}
.dashboard-table-wide{grid-column:span 8}
.dashboard-activity-card{grid-column:span 4}

.dashboard-panel-head{display:flex;min-width:0;margin-bottom:.85rem;align-items:flex-start;justify-content:space-between;gap:.75rem}
.dashboard-panel-head>div{min-width:0}
.dashboard-panel-head h2{margin:.12rem 0 0;font-size:.86rem;font-weight:800}
.dashboard-panel-head>a{color:var(--biz-primary);font-size:.56rem;font-weight:800;white-space:nowrap}
.dashboard-panel-total{text-align:right}
.dashboard-panel-total small{display:block;color:var(--biz-muted);font-size:.5rem}
.dashboard-panel-total strong{display:block;margin-top:.08rem;font-size:.8rem}
.dashboard-period{padding:.25rem .42rem;border:1px solid var(--biz-border);border-radius:7px;color:var(--biz-muted);font-size:.53rem;white-space:nowrap}

.dashboard-line-chart{height:255px;overflow:hidden}
.dashboard-line-chart svg{display:block;width:100%;height:100%;overflow:visible}
.dashboard-svg-grid{stroke:var(--biz-border);stroke-width:1;vector-effect:non-scaling-stroke}
.dashboard-svg-y,.dashboard-svg-x{fill:var(--biz-muted);font-size:9px;font-family:inherit}
.dashboard-svg-area{fill:color-mix(in srgb,var(--biz-primary) 14%,transparent)}
.dashboard-svg-line{fill:none;stroke:var(--biz-primary);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.dashboard-svg-dot{fill:var(--biz-surface);stroke:var(--biz-primary);stroke-width:2;vector-effect:non-scaling-stroke}

.dashboard-grouped-chart{display:flex;height:210px;padding:.6rem .2rem 0;align-items:flex-end;gap:.7rem;border-bottom:1px solid var(--biz-border);background-image:linear-gradient(to bottom,var(--biz-border) 1px,transparent 1px);background-size:100% 25%}
.dashboard-group{display:flex;min-width:0;height:100%;flex:1;align-items:center;justify-content:flex-end;flex-direction:column;gap:.35rem}
.dashboard-group-bars{display:flex;width:100%;height:calc(100% - 22px);align-items:flex-end;justify-content:center;gap:4px}
.dashboard-group-bars i{display:block;width:min(18px,36%);min-height:0;border-radius:5px 5px 2px 2px}
.dashboard-bar-sales{background:var(--biz-primary)}
.dashboard-bar-purchases{background:var(--dashboard-blue)}
.dashboard-group>small{color:var(--biz-muted);font-size:.52rem}
.dashboard-chart-legend{display:flex;margin-top:.65rem;gap:.8rem;color:var(--biz-muted);font-size:.53rem}
.dashboard-chart-legend span{display:inline-flex;align-items:center;gap:.3rem}
.dashboard-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:3px}
.legend-primary{background:var(--biz-primary)}
.legend-secondary{background:var(--dashboard-blue)}

.dashboard-donut-wrap{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:1rem;min-height:210px}
.dashboard-donut{display:grid;width:145px;aspect-ratio:1;place-items:center;border-radius:50%;position:relative}
.dashboard-donut::after{content:"";position:absolute;width:64%;height:64%;border-radius:50%;background:var(--biz-surface)}
.dashboard-donut>div{position:relative;z-index:1;text-align:center}
.dashboard-donut strong{display:block;font-size:.82rem}
.dashboard-donut small{display:block;margin-top:.12rem;color:var(--biz-muted);font-size:.48rem}
.dashboard-donut-legend{display:grid;gap:.45rem}
.dashboard-donut-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr);align-items:center;gap:.4rem}
.dashboard-donut-legend>div>i{display:block;width:8px;height:8px;border-radius:3px}
.dashboard-donut-legend strong,.dashboard-donut-legend small{display:block}
.dashboard-donut-legend strong{font-size:.56rem}
.dashboard-donut-legend small{margin-top:.05rem;color:var(--biz-muted);font-size:.48rem}

.dashboard-ranking-list{display:grid}
.dashboard-ranking-row{display:grid;min-width:0;padding:.55rem 0;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:.55rem;border-bottom:1px solid var(--biz-border)}
.dashboard-ranking-row:last-child{border-bottom:0}
.dashboard-ranking-link{color:var(--biz-text)}
.dashboard-rank{display:grid;width:24px;height:24px;place-items:center;border-radius:8px;background:var(--biz-surface-soft);color:var(--biz-muted);font-size:.52rem;font-weight:800}
.dashboard-ranking-copy{min-width:0}
.dashboard-ranking-copy strong,.dashboard-ranking-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-ranking-copy strong{font-size:.59rem}
.dashboard-ranking-copy small{margin-top:.08rem;color:var(--biz-muted);font-size:.5rem}
.dashboard-ranking-copy>i{display:block;width:100%;height:3px;margin-top:.32rem;border-radius:999px;background:var(--biz-border);overflow:hidden}
.dashboard-ranking-copy>i::after{content:"";display:block;width:var(--dashboard-progress);height:100%;border-radius:999px;background:var(--biz-primary)}
.dashboard-ranking-value{text-align:right}
.dashboard-ranking-value strong{display:block;font-size:.58rem;white-space:nowrap}
.dashboard-ranking-value small{display:block;margin-top:.08rem;color:var(--biz-muted);font-size:.47rem;white-space:nowrap}

.dashboard-horizontal-bars{display:grid;gap:.65rem}
.dashboard-horizontal-bars>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(90px,1.25fr) auto;align-items:center;gap:.55rem}
.dashboard-horizontal-bars>div>div{min-width:0}
.dashboard-horizontal-bars>div>div strong,.dashboard-horizontal-bars>div>div span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-horizontal-bars>div>div strong{font-size:.56rem}
.dashboard-horizontal-bars>div>div span{color:var(--biz-muted);font-size:.47rem}
.dashboard-horizontal-bars>div>i{display:block;height:7px;border-radius:999px;background:var(--biz-border);overflow:hidden}
.dashboard-horizontal-bars>div>i>b{display:block;height:100%;border-radius:999px;background:var(--biz-primary)}
.dashboard-horizontal-bars>div>strong{font-size:.55rem;white-space:nowrap}

.dashboard-alert-count{display:grid;width:27px;height:27px;place-items:center;border-radius:9px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:.58rem;font-weight:850}
.dashboard-alert-list{display:grid;gap:.45rem}
.dashboard-alert{display:grid;padding:.6rem;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:.55rem;border:1px solid var(--biz-border);border-radius:11px;color:var(--biz-text);transition:border-color .16s ease,transform .16s ease}
.dashboard-alert:hover{border-color:var(--biz-primary);transform:translateY(-1px)}
.dashboard-alert>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:.95rem}
.dashboard-alert>div{min-width:0}
.dashboard-alert>div strong,.dashboard-alert>div small{display:block}
.dashboard-alert>div strong{font-size:.57rem}
.dashboard-alert>div small{margin-top:.08rem;color:var(--biz-muted);font-size:.49rem}
.dashboard-alert>b{display:inline-flex;align-items:center;gap:.2rem;color:var(--biz-primary);font-size:.49rem;white-space:nowrap}

.dashboard-mini-table{display:grid}
.dashboard-mini-table-head,.dashboard-mini-table>a{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px;align-items:center;gap:.5rem}
.dashboard-mini-table-head{padding:0 .15rem .45rem;color:var(--biz-muted);font-size:.48rem;font-weight:750}
.dashboard-mini-table-head span:not(:first-child){text-align:right}
.dashboard-mini-table>a{padding:.48rem .15rem;border-top:1px solid var(--biz-border);color:var(--biz-text)}
.dashboard-mini-table>a>span{min-width:0}
.dashboard-mini-table>a strong,.dashboard-mini-table>a small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-mini-table>a strong{font-size:.56rem}
.dashboard-mini-table>a small{color:var(--biz-muted);font-size:.47rem}
.dashboard-mini-table>a>b{text-align:right;font-size:.55rem}

.dashboard-debt-columns,.dashboard-operations-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.dashboard-debt-columns>div,.dashboard-operations-columns>div{min-width:0}
.dashboard-debt-columns header,.dashboard-operations-columns header{display:flex;padding-bottom:.45rem;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--biz-border)}
.dashboard-debt-columns header strong,.dashboard-operations-columns header strong{font-size:.57rem}
.dashboard-debt-columns header span{font-size:.57rem;font-weight:800}
.dashboard-operations-columns header a{color:var(--biz-primary);font-size:.48rem;font-weight:750}
.dashboard-debt-columns>div>a,.dashboard-operations-columns>div>a{display:flex;padding:.48rem 0;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--biz-border);color:var(--biz-text)}
.dashboard-debt-columns>div>a:last-child,.dashboard-operations-columns>div>a:last-child{border-bottom:0}
.dashboard-debt-columns>div>a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.52rem}
.dashboard-debt-columns>div>a strong{font-size:.52rem;white-space:nowrap}
.dashboard-debt-columns>div>small{display:block;padding:.6rem 0;color:var(--biz-muted);font-size:.5rem}
.dashboard-operations-columns>div>a>span{min-width:0}
.dashboard-operations-columns>div>a strong,.dashboard-operations-columns>div>a small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-operations-columns>div>a strong{font-size:.54rem}
.dashboard-operations-columns>div>a small{margin-top:.08rem;color:var(--biz-muted);font-size:.46rem}
.dashboard-operations-columns>div>a>b{font-size:.53rem;white-space:nowrap}

.dashboard-timeline{display:grid}
.dashboard-timeline-item{display:grid;min-width:0;padding:.48rem 0;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:.55rem;border-bottom:1px solid var(--biz-border)}
.dashboard-timeline-item:last-child{border-bottom:0}
.dashboard-timeline-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:.9rem}
.dashboard-timeline-compra,.dashboard-timeline-pago{background:#fff3da;color:var(--dashboard-amber)}
.dashboard-timeline-stock{background:#eaf3ff;color:var(--dashboard-blue)}
.dashboard-timeline-item>div:nth-child(2){min-width:0}
.dashboard-timeline-item>div:nth-child(2) strong,.dashboard-timeline-item>div:nth-child(2) small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-timeline-item>div:nth-child(2) strong{font-size:.55rem}
.dashboard-timeline-item>div:nth-child(2) small{margin-top:.05rem;color:var(--biz-muted);font-size:.47rem}
.dashboard-timeline-side{text-align:right}
.dashboard-timeline-side strong,.dashboard-timeline-side small{display:block;white-space:nowrap}
.dashboard-timeline-side strong{font-size:.52rem}
.dashboard-timeline-side small{margin-top:.05rem;color:var(--biz-muted);font-size:.45rem}

.dashboard-empty{display:grid;min-height:155px;padding:1rem;place-items:center;align-content:center;gap:.3rem;border:1px dashed var(--biz-border);border-radius:11px;text-align:center}
.dashboard-empty.compact{min-height:90px}
.dashboard-empty iconify-icon{font-size:1.4rem;color:var(--biz-primary)}
.dashboard-empty strong{font-size:.6rem}
.dashboard-empty span{max-width:260px;color:var(--biz-muted);font-size:.5rem;line-height:1.45}

html[data-bs-theme="dark"] .dashboard-timeline-compra,
html[data-bs-theme="dark"] .dashboard-timeline-pago{background:#3f3014}
html[data-bs-theme="dark"] .dashboard-timeline-stock{background:#172e4f}

@media(max-width:1450px){
    .executive-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
    .dashboard-command-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1100px){
    .dashboard-chart-wide,.dashboard-chart-card:not(.dashboard-chart-wide){grid-column:span 12}
    .dashboard-ranking-card{grid-column:span 6}
    .dashboard-attention-card,.dashboard-table-card,.dashboard-table-wide,.dashboard-activity-card{grid-column:span 12}
}
@media(max-width:760px){
    .dashboard-heading{align-items:flex-start}
    .dashboard-heading-actions{width:100%;justify-content:flex-start}
    .executive-kpis,.dashboard-command-row{grid-template-columns:1fr}
    .executive-kpi{min-height:125px}
    .executive-dashboard-grid{display:block}
    .executive-dashboard-grid>.panel-card{margin-bottom:.7rem}
    .dashboard-line-chart{height:215px}
    .dashboard-grouped-chart{height:190px}
    .dashboard-donut-wrap{grid-template-columns:1fr;justify-items:center}
    .dashboard-donut-legend{width:100%}
    .dashboard-debt-columns,.dashboard-operations-columns{grid-template-columns:1fr}
    .dashboard-horizontal-bars>div{grid-template-columns:minmax(95px,1fr) minmax(70px,1fr) auto}
    .dashboard-alert{grid-template-columns:32px minmax(0,1fr)}
    .dashboard-alert>b{grid-column:2}
}

/* v0.14.2 · SEO técnico y enlaces internos */
.landing-copy > .eyebrow {
    display:block;
    margin-bottom:.65rem;
    color:var(--biz-primary);
    font-size:.68rem;
    font-weight:850;
    letter-spacing:.1em;
}
.public-footer .public-footer-links {
    max-width:830px;
    justify-content:center;
    row-gap:.45rem;
}
.public-footer .public-footer-links a {
    font-size:.62rem;
}
@media(max-width:900px){
    .public-footer .public-footer-links{justify-content:flex-start}
}


/* v0.14.4 · Operación, reportes, BizAI y responsive */
.report-type-section{margin-bottom:.75rem}.report-section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:.55rem}.report-section-heading h2{margin:.1rem 0 0;font-size:.95rem}.report-section-heading>small{color:var(--biz-muted);font-size:.56rem}.report-type-scroll{display:flex;gap:.55rem;overflow-x:auto;padding:.05rem .05rem .35rem;scroll-snap-type:x proximity;scrollbar-width:thin}.report-type-card{flex:0 0 175px;min-height:88px;padding:.75rem;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface);color:var(--biz-text);display:flex;flex-direction:column;justify-content:space-between;gap:.55rem;scroll-snap-align:start;transition:.16s ease}.report-type-card:hover,.report-type-card.is-active{border-color:var(--biz-primary);box-shadow:0 7px 22px rgba(10,163,118,.08);transform:translateY(-1px)}.report-type-card.is-active{background:var(--biz-primary-soft)}.report-type-card>span{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:var(--biz-surface-soft);color:var(--biz-primary);font-size:.92rem}.report-type-card strong{font-size:.59rem;line-height:1.25}.report-filter-accordion{margin-bottom:.75rem}.report-filter-panel{grid-template-columns:repeat(5,minmax(0,1fr));padding:.8rem!important}.report-metrics-after-filter{margin-bottom:.75rem}.report-chart-panel{margin-bottom:.75rem}.report-chart-panel .dashboard-panel-head small{display:block;margin-top:.15rem;color:var(--biz-muted);font-size:.52rem}.report-horizontal-chart{display:grid;gap:.55rem}.report-chart-row{display:grid;grid-template-columns:minmax(120px,190px) minmax(120px,1fr) 105px;align-items:center;gap:.6rem}.report-chart-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.54rem;font-weight:700}.report-chart-row>div{position:relative;height:10px;border-radius:999px;background:var(--biz-border);overflow:hidden}.report-chart-row>div i{position:absolute;inset:0 auto 0 0;border-radius:999px;background:var(--biz-primary)}.report-chart-row>div b{position:absolute;left:0;bottom:0;height:2px;background:var(--dashboard-blue)}.report-chart-row>strong{text-align:right;font-size:.53rem;white-space:nowrap}.report-chart-note{margin-top:.55rem;color:var(--biz-muted);font-size:.5rem}

.bizai-expand-button>span{font-size:1rem;line-height:1}.bizai-panel.is-expanded .bizai-drawer{top:16px;right:16px;bottom:16px;width:min(1180px,calc(100vw - 32px));height:auto;border:1px solid var(--biz-border)!important;border-radius:18px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.22)}.bizai-quick-shell{position:relative;padding:0 0 .45rem}.bizai-quick-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.45rem .6rem;border:1px solid var(--biz-border);border-radius:10px;background:var(--biz-surface);color:var(--biz-text);font-size:.58rem;font-weight:780}.bizai-quick-toggle>span{flex:1;text-align:left}.bizai-quick-menu{position:absolute;left:0;right:0;bottom:calc(100% + .4rem);z-index:6;max-height:min(58vh,540px);overflow:auto;padding:.75rem;border:1px solid var(--biz-border);border-radius:14px;background:var(--biz-surface);box-shadow:0 -18px 50px rgba(0,0,0,.16)}.bizai-quick-menu[hidden]{display:none!important}.bizai-quick-menu>header{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;padding:0 0 .6rem;border-bottom:1px solid var(--biz-border)}.bizai-quick-menu>header strong,.bizai-quick-menu>header small{display:block}.bizai-quick-menu>header strong{font-size:.68rem}.bizai-quick-menu>header small{margin-top:.08rem;color:var(--biz-muted);font-size:.5rem}.bizai-quick-menu>header button{border:0;background:transparent;color:var(--biz-muted);font-size:1rem}.bizai-quick-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;padding-top:.65rem}.bizai-panel.is-expanded .bizai-quick-groups{grid-template-columns:repeat(3,minmax(0,1fr))}.bizai-quick-groups section{padding:.55rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft)}.bizai-quick-groups h3{margin:0 0 .35rem;font-size:.56rem}.bizai-quick-groups button{display:block;width:100%;padding:.34rem 0;border:0;border-top:1px solid var(--biz-border);background:transparent;color:var(--biz-text);text-align:left;font-size:.51rem;line-height:1.35}.bizai-quick-groups h3+button{border-top:0}.bizai-quick-groups button:hover{color:var(--biz-primary)}

.public-page{background:#fff!important;color:#101614!important}.public-page .public-layout{background:#fff!important}.public-page .landing-page,.public-page .seo-page,.public-page .legal-page{color:#101614}.public-page .landing-page{--biz-surface:#fff;--biz-surface-soft:#f4f8f6;--biz-border:#dce7e2;--biz-text:#101614;--biz-text-muted:#687a73;--biz-muted:#687a73}.public-page .seo-page,.public-page .legal-page{--biz-surface:#fff;--biz-surface-soft:#f4f8f6;--biz-border:#dce7e2;--biz-text:#101614;--biz-text-muted:#687a73;--biz-muted:#687a73}

@media(max-width:760px){
  .executive-kpis,.dashboard-command-row{display:flex!important;grid-template-columns:none!important;overflow-x:auto;gap:.65rem;padding-bottom:.35rem;scroll-snap-type:x mandatory;scrollbar-width:none}.executive-kpis::-webkit-scrollbar,.dashboard-command-row::-webkit-scrollbar{display:none}.executive-kpi{flex:0 0 min(82vw,300px);min-height:126px!important;scroll-snap-align:start}.dashboard-command-card{flex:0 0 min(76vw,275px);scroll-snap-align:start}.report-filter-panel{grid-template-columns:1fr 1fr!important}.report-search-field,.report-filter-panel .treasury-filter-actions{grid-column:1/-1}.report-type-card{flex-basis:155px}.report-chart-row{grid-template-columns:minmax(90px,125px) minmax(80px,1fr) 78px}.bizai-panel.is-expanded .bizai-drawer{inset:0!important;width:100%!important;height:100%!important;border-radius:0!important}.bizai-quick-groups,.bizai-panel.is-expanded .bizai-quick-groups{grid-template-columns:1fr}.bizai-quick-menu{max-height:62vh}}


/* v0.14.5 · Reportes: tabla primero, visualizaciones después */
:root{
    --report-chart-1:#09a779;
    --report-chart-2:#3c7de0;
    --report-chart-3:#e3a12a;
    --report-chart-4:#8367d7;
    --report-chart-5:#e45f70;
    --report-chart-6:#2fa8a2;
    --report-chart-7:#7b8d85;
}
.report-filter-accordion:not([open]){margin-bottom:.75rem}
.report-filter-accordion>summary{min-height:54px}
.report-filter-summary-side{display:flex;align-items:center;gap:.6rem;margin-left:auto}
.report-filter-summary-side>small{color:var(--biz-muted);font-size:.52rem;font-weight:600}
.report-results-primary{margin-bottom:1rem}
.report-results-primary .table-toolbar>div{display:flex;flex-direction:column;align-items:flex-start;gap:.08rem}
.report-results-primary .table-toolbar .panel-kicker{margin-bottom:.12rem}

.report-analysis-section{display:grid;gap:.85rem;margin-top:1rem}
.report-analysis-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:.15rem .15rem 0}
.report-analysis-heading h2{margin:.08rem 0 .12rem;font-size:1rem}
.report-analysis-heading p{margin:0;color:var(--biz-muted);font-size:.56rem}
.report-chart-main{padding:1.15rem!important}
.report-chart-main .dashboard-panel-head h2,
.report-chart-grid .dashboard-panel-head h2{font-size:.86rem}
.report-chart-main .dashboard-panel-head small,
.report-chart-grid .dashboard-panel-head small{display:block;margin-top:.12rem;color:var(--biz-muted);font-size:.52rem}
.report-horizontal-chart-large{gap:.72rem;padding:.35rem 0}
.report-horizontal-chart-large .report-chart-row{grid-template-columns:minmax(150px,220px) minmax(180px,1fr) 125px;gap:.8rem}
.report-horizontal-chart-large .report-chart-row>span{font-size:.57rem}
.report-horizontal-chart-large .report-chart-row>strong{font-size:.57rem}
.report-horizontal-chart-large .report-chart-track{height:15px;background:color-mix(in srgb,var(--biz-border) 82%,transparent)}
.report-horizontal-chart-large .report-chart-track>i{background:linear-gradient(90deg,var(--biz-primary),color-mix(in srgb,var(--biz-primary) 72%,var(--dashboard-blue)))}
.report-horizontal-chart-large .report-chart-track>b{height:4px;bottom:0;background:var(--dashboard-blue)}
.report-chart-note{display:flex;align-items:center;gap:.8rem}
.report-chart-note span{display:inline-flex;align-items:center;gap:.28rem}
.report-chart-note span>i,.report-chart-note span>b{display:inline-block;width:16px;height:4px;border-radius:999px;background:var(--biz-primary)}
.report-chart-note span>b{background:var(--dashboard-blue)}

.report-chart-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:.85rem}
.report-chart-grid>.panel-card{padding:1.15rem!important;min-height:335px}
.report-pie-layout{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:1.2rem;min-height:240px}
.report-pie{position:relative;display:grid;width:176px;aspect-ratio:1;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--biz-border) 60%,transparent)}
.report-pie::after{content:"";position:absolute;width:62%;height:62%;border-radius:50%;background:var(--biz-surface);box-shadow:0 0 0 1px var(--biz-border)}
.report-pie>div{position:relative;z-index:1;text-align:center}
.report-pie>div strong,.report-pie>div small{display:block}
.report-pie>div strong{max-width:106px;overflow:hidden;text-overflow:ellipsis;font-size:.78rem;white-space:nowrap}
.report-pie>div small{margin-top:.1rem;color:var(--biz-muted);font-size:.48rem}
.report-pie-legend{display:grid;gap:.55rem;min-width:0}
.report-pie-legend>div{display:grid;grid-template-columns:10px minmax(0,1fr);align-items:center;gap:.45rem}
.report-pie-legend>div>i{width:9px;height:9px;border-radius:3px}
.report-pie-legend span{min-width:0}
.report-pie-legend strong,.report-pie-legend small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-pie-legend strong{font-size:.55rem}
.report-pie-legend small{margin-top:.06rem;color:var(--biz-muted);font-size:.48rem}

.report-column-chart{display:flex;height:245px;padding:1rem .2rem .1rem;align-items:flex-end;gap:.6rem;border-bottom:1px solid var(--biz-border);background-image:linear-gradient(to bottom,var(--biz-border) 1px,transparent 1px);background-size:100% 25%}
.report-column-item{display:grid;min-width:0;height:100%;flex:1;grid-template-rows:22px minmax(0,1fr) 30px;align-items:end;text-align:center}
.report-column-item>strong{font-size:.48rem;white-space:nowrap}
.report-column-item>div{display:flex;width:100%;height:100%;align-items:flex-end;justify-content:center}
.report-column-item>div>i{display:block;width:min(36px,72%);min-height:2px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,var(--biz-primary),color-mix(in srgb,var(--biz-primary) 66%,var(--dashboard-blue)))}
.report-column-item>span{align-self:start;padding-top:.35rem;overflow:hidden;color:var(--biz-muted);font-size:.45rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}

.report-heatmap-after-table{margin-top:0;padding:1.15rem!important}
html[data-bs-theme="dark"] .report-pie::after{background:var(--biz-surface)}

@media(max-width:1050px){
    .report-chart-grid{grid-template-columns:1fr}
    .report-chart-grid>.panel-card{min-height:0}
}
@media(max-width:760px){
    .report-filter-summary-side>small{display:none}
    .report-horizontal-chart-large{overflow-x:auto;padding-bottom:.35rem}
    .report-horizontal-chart-large .report-chart-row{min-width:620px}
    .report-pie-layout{grid-template-columns:1fr;justify-items:center}
    .report-pie-legend{width:100%}
    .report-column-chart{min-width:620px}
    .report-column-panel{overflow:hidden}
    .report-column-panel .report-column-chart{overflow:visible}
}


/* v0.14.5 · BizAI accesos directos */
.bizai-quick-menu{
    padding:.72rem .78rem!important;
    max-height:min(66vh,620px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
}
.bizai-quick-menu>header{position:sticky;top:-.72rem;z-index:2;padding:.72rem 0 .62rem;background:var(--biz-surface)}
.bizai-quick-groups,
.bizai-panel.is-expanded .bizai-quick-groups{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    padding-top:.2rem!important;
}
.bizai-quick-groups section{
    min-width:0;
    padding:.62rem 0!important;
    border:0!important;
    border-bottom:1px solid var(--biz-border)!important;
    border-radius:0!important;
    background:transparent!important;
}
.bizai-quick-groups section:last-child{border-bottom:0!important}
.bizai-quick-groups h3{
    margin:0 0 .38rem!important;
    padding:0 .05rem;
    font-size:.58rem!important;
    font-weight:850;
}
.bizai-quick-chip-row{
    display:flex;
    min-width:0;
    gap:.38rem;
    overflow-x:auto;
    overflow-y:hidden;
    padding:.02rem .05rem .18rem;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
}
.bizai-quick-chip-row::-webkit-scrollbar{display:none}
.bizai-quick-groups .bizai-quick-chip{
    display:inline-flex!important;
    width:auto!important;
    flex:0 0 auto;
    align-items:center;
    min-height:31px;
    padding:.34rem .58rem!important;
    border:1px solid var(--biz-border)!important;
    border-radius:999px!important;
    background:var(--biz-surface)!important;
    color:var(--biz-text)!important;
    font-size:.5rem!important;
    font-weight:720;
    line-height:1.2!important;
    white-space:nowrap;
    scroll-snap-align:start;
}
.bizai-quick-groups .bizai-quick-chip:hover{
    border-color:var(--biz-primary)!important;
    color:var(--biz-primary)!important;
}
.bizai-quick-groups .bizai-quick-chip.is-action{
    border-color:color-mix(in srgb,var(--biz-primary) 38%,var(--biz-border))!important;
    background:var(--biz-primary-soft)!important;
    color:var(--biz-primary)!important;
    font-weight:800;
}
.bizai-quick-group.is-featured h3{color:var(--biz-primary)}
.bizai-suggestions{display:none!important}
@media(max-width:760px){
    .bizai-quick-menu{max-height:68vh!important}
    .bizai-quick-groups .bizai-quick-chip{font-size:.54rem!important;min-height:34px}
}


/* v0.14.6 · BizAI maximizado real y accesos navegables */
.bizai-panel.is-expanded .bizai-drawer{inset:12px!important;width:auto!important;max-width:none!important;height:auto!important;border:1px solid var(--biz-border)!important;border-radius:18px!important;box-shadow:0 28px 90px rgba(0,0,0,.25)!important}
.bizai-panel.is-expanded .bizai-messages{max-width:980px;width:100%;margin-inline:auto}.bizai-panel.is-expanded .bizai-chat-bottom{max-width:1100px;width:100%;margin-inline:auto}
.bizai-quick-row-shell{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;align-items:center;gap:.25rem;min-width:0}.bizai-quick-scroll-button{display:grid;width:28px;height:28px;place-items:center;border:1px solid var(--biz-border);border-radius:9px;background:var(--biz-surface);color:var(--biz-text);opacity:0;pointer-events:none;transition:opacity .15s ease,border-color .15s ease,color .15s ease}.bizai-quick-row-shell.is-scrollable .bizai-quick-scroll-button{opacity:1;pointer-events:auto}.bizai-quick-scroll-button:hover:not(:disabled){border-color:var(--biz-primary);color:var(--biz-primary)}.bizai-quick-scroll-button:disabled{opacity:.28!important;cursor:default}.bizai-quick-scroll-button iconify-icon{font-size:.8rem}.bizai-quick-row-shell .bizai-quick-chip-row{min-width:0}.bizai-quick-menu>header{z-index:4!important}

/* v0.14.6 · Biznube como sistema dentro de Bizfera */
.biznube-app-shell{margin-bottom:.85rem;overflow:hidden;border:1px solid var(--biz-border);border-radius:17px;background:var(--biz-surface);box-shadow:var(--biz-shadow-sm)}.biznube-app-header{min-height:64px;display:grid;grid-template-columns:minmax(180px,.65fr) auto minmax(160px,.65fr);align-items:center;gap:.8rem;padding:.65rem .75rem}.biznube-app-brand{display:flex;align-items:center;gap:.55rem;min-width:0;color:var(--biz-text);text-decoration:none}.biznube-app-brand>span{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:12px;background:linear-gradient(145deg,var(--biz-primary),color-mix(in srgb,var(--biz-primary) 70%,#5a79df));color:#fff;font-size:1.05rem;box-shadow:0 8px 20px color-mix(in srgb,var(--biz-primary) 20%,transparent)}.biznube-app-brand>div{display:grid;min-width:0;gap:.02rem}.biznube-app-brand strong{font-size:.78rem;letter-spacing:-.02em}.biznube-app-brand small{color:var(--biz-muted);font-size:.5rem}.biznube-mode-switch{display:flex;align-items:center;justify-content:center;gap:.25rem;padding:.22rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.biznube-mode-switch a{min-height:34px;display:inline-flex;align-items:center;gap:.32rem;padding:.36rem .58rem;border-radius:9px;color:var(--biz-muted);text-decoration:none;font-size:.57rem;font-weight:800;white-space:nowrap}.biznube-mode-switch a iconify-icon{font-size:.88rem}.biznube-mode-switch a:hover{color:var(--biz-text);background:var(--biz-surface)}.biznube-mode-switch a.active{color:var(--biz-primary);background:var(--biz-surface);box-shadow:0 2px 10px rgba(0,0,0,.055)}.biznube-app-header-meta{display:flex;justify-content:flex-end;align-items:center;gap:.45rem;color:var(--biz-muted);font-size:.52rem}.biznube-app-header-meta b{color:var(--biz-text)}.biznube-app-header-meta i{width:3px;height:3px;border-radius:50%;background:var(--biz-border-strong)}
.biznube-app-subnav{display:flex;align-items:center;gap:.2rem;min-width:0;overflow-x:auto;padding:.38rem .65rem;border-top:1px solid var(--biz-border);background:color-mix(in srgb,var(--biz-surface-soft) 72%,var(--biz-surface));scrollbar-width:none}.biznube-app-subnav::-webkit-scrollbar{display:none}.biznube-app-subnav a{flex:0 0 auto;min-height:32px;display:inline-flex;align-items:center;gap:.3rem;padding:.34rem .52rem;border-radius:9px;color:var(--biz-muted);text-decoration:none;font-size:.54rem;font-weight:780}.biznube-app-subnav a iconify-icon{font-size:.82rem}.biznube-app-subnav a small{min-width:18px;padding:.06rem .25rem;border-radius:999px;background:var(--biz-surface);text-align:center;font-size:.46rem}.biznube-app-subnav a.active,.biznube-app-subnav a:hover{color:var(--biz-primary);background:var(--biz-primary-soft)}.biznube-app-subnav a.active small{color:var(--biz-primary)}
.biznube-home-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);align-items:stretch;gap:.8rem;margin-bottom:.75rem}.biznube-home-copy{min-height:210px;padding:1.4rem 1.5rem;border:1px solid color-mix(in srgb,var(--biz-primary) 22%,var(--biz-border));border-radius:20px;background:radial-gradient(circle at 92% 18%,color-mix(in srgb,var(--biz-primary) 17%,transparent),transparent 30%),linear-gradient(140deg,var(--biz-primary-soft),var(--biz-surface) 62%)}.biznube-home-copy h1{max-width:720px;margin:.32rem 0 .48rem;font-size:clamp(1.55rem,2.4vw,2.25rem);letter-spacing:-.045em;line-height:1.04}.biznube-home-copy p{max-width:720px;margin:0;color:var(--biz-muted);font-size:.69rem;line-height:1.6}.biznube-home-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:1rem}.biznube-home-health{min-height:210px;display:grid;grid-template-columns:46px minmax(0,1fr) 34px;align-items:center;gap:.7rem;padding:1.1rem;border:1px solid var(--biz-border);border-radius:20px;background:var(--biz-surface)}.biznube-home-health-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.2rem}.biznube-home-health div{display:grid;gap:.16rem}.biznube-home-health strong{font-size:.74rem}.biznube-home-health small{color:var(--biz-muted);font-size:.55rem;line-height:1.45}.biznube-home-health>a{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;border:1px solid var(--biz-border);color:var(--biz-text)}
.biznube-home-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.55rem;margin-bottom:.75rem}.biznube-home-kpis>a{min-width:0;min-height:108px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:.55rem;padding:.72rem;border:1px solid var(--biz-border);border-radius:15px;background:var(--biz-surface);color:var(--biz-text);text-decoration:none}.biznube-home-kpis>a>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:.92rem}.biznube-home-kpis>a.needs-attention>span{background:#fff4df;color:#b86f00}.biznube-home-kpis>a.is-danger>span{background:#fff0f1;color:#d84b5a}.biznube-home-kpis>a>div{min-width:0}.biznube-home-kpis small,.biznube-home-kpis strong,.biznube-home-kpis em{display:block}.biznube-home-kpis small{color:var(--biz-muted);font-size:.48rem}.biznube-home-kpis strong{margin:.1rem 0;font-size:.92rem;letter-spacing:-.03em}.biznube-home-kpis em{overflow:hidden;color:var(--biz-muted);font-size:.46rem;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.biznube-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:.75rem}.biznube-mode-card{padding:1rem!important;overflow:hidden}.biznube-mode-card>header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:.65rem;padding-bottom:.8rem;border-bottom:1px solid var(--biz-border)}.biznube-mode-card>header>span{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.1rem}.biznube-mode-card>header>div small{color:var(--biz-primary);font-size:.45rem;font-weight:900;letter-spacing:.08em}.biznube-mode-card>header h2{margin:.05rem 0;font-size:.88rem}.biznube-mode-card>header p{margin:0;color:var(--biz-muted);font-size:.51rem}.biznube-mode-card>header>a{display:inline-flex;align-items:center;gap:.25rem;color:var(--biz-primary);font-size:.52rem;font-weight:820}.biznube-mode-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;padding:.75rem 0}.biznube-mode-summary>div{min-width:0;padding:.55rem;border-radius:11px;background:var(--biz-surface-soft)}.biznube-mode-summary strong,.biznube-mode-summary small{display:block}.biznube-mode-summary strong{font-size:.72rem}.biznube-mode-summary small{margin-top:.08rem;color:var(--biz-muted);font-size:.46rem;line-height:1.3}.biznube-type-bars{display:grid;gap:.48rem}.biznube-type-bars>div{display:grid;grid-template-columns:minmax(110px,.6fr) minmax(100px,1fr) 30px;align-items:center;gap:.45rem}.biznube-type-bars span{overflow:hidden;font-size:.49rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.biznube-type-bars i{display:block;height:7px;border-radius:999px;background:var(--biz-border);overflow:hidden}.biznube-type-bars i>b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--biz-primary),color-mix(in srgb,var(--biz-primary) 64%,#5e7ee0))}.biznube-type-bars>div>strong{text-align:right;font-size:.49rem}.biznube-state-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.biznube-state-grid>div{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:.4rem;padding:.48rem;border:1px solid var(--biz-border);border-radius:11px}.biznube-state-grid>div>span{grid-row:1/3;display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:var(--biz-surface-soft);color:var(--biz-primary)}.biznube-state-grid strong{font-size:.6rem}.biznube-state-grid small{color:var(--biz-muted);font-size:.43rem}.biznube-state-grid .is-realizado>span{background:#e8f7f0;color:#149966}.biznube-state-grid .is-en_proceso>span{background:var(--biz-primary-soft);color:var(--biz-primary)}.biznube-state-grid .is-cancelado>span{background:#fff0f1;color:#d84b5a}.biznube-dashboard-empty-line{grid-column:1/-1!important;padding:.7rem!important;color:var(--biz-muted)!important;font-size:.5rem!important}
.biznube-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:.75rem}.biznube-dashboard-list{padding:0!important;overflow:hidden}.biznube-dashboard-list>header{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;padding:.78rem .85rem;border-bottom:1px solid var(--biz-border)}.biznube-dashboard-list>header h2{margin:.08rem 0 0;font-size:.77rem}.biznube-dashboard-list>header>a{color:var(--biz-primary);font-size:.5rem;font-weight:800}.biznube-dashboard-list>div>a{display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;align-items:center;gap:.55rem;min-height:62px;padding:.52rem .8rem;border-bottom:1px solid var(--biz-border);color:var(--biz-text);text-decoration:none}.biznube-dashboard-list>div>a:last-child{border-bottom:0}.biznube-dashboard-list>div>a:hover{background:var(--biz-surface-soft)}.biznube-dashboard-list>div>a>span:nth-child(2){min-width:0}.biznube-dashboard-list>div>a>span:nth-child(2) strong,.biznube-dashboard-list>div>a>span:nth-child(2) small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.biznube-dashboard-list>div>a>span:nth-child(2) strong{font-size:.55rem}.biznube-dashboard-list>div>a>span:nth-child(2) small{margin-top:.05rem;color:var(--biz-muted);font-size:.46rem}.biznube-dashboard-list>div>a>em{color:var(--biz-muted);font-size:.47rem;font-style:normal;white-space:nowrap}.biznube-dashboard-list>div>a>iconify-icon{color:var(--biz-muted)}.biznube-dashboard-list>div>a.is-overdue>em{color:#d84b5a;font-weight:780}.biznube-home-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:.2rem;padding:1rem;text-align:center}.biznube-home-empty>iconify-icon{font-size:1.3rem;color:var(--biz-primary)}.biznube-home-empty strong{font-size:.58rem}.biznube-home-empty span{color:var(--biz-muted);font-size:.48rem}
.biznube-dashboard-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.biznube-dashboard-shortcuts>a{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:.68rem;border:1px solid var(--biz-border);border-radius:14px;background:var(--biz-surface);color:var(--biz-text);text-decoration:none}.biznube-dashboard-shortcuts>a>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--biz-primary-soft);color:var(--biz-primary)}.biznube-dashboard-shortcuts>a>div{min-width:0}.biznube-dashboard-shortcuts strong,.biznube-dashboard-shortcuts small{display:block}.biznube-dashboard-shortcuts strong{font-size:.55rem}.biznube-dashboard-shortcuts small{margin-top:.05rem;color:var(--biz-muted);font-size:.45rem;line-height:1.35}.biznube-dashboard-shortcuts>a>b{min-width:23px;padding:.12rem .3rem;border-radius:999px;background:var(--biz-surface-soft);font-size:.48rem;text-align:center}.biznube-dashboard-shortcuts>a>iconify-icon{color:var(--biz-muted)}
.biznube-workspace.has-detail{grid-template-columns:minmax(430px,.82fr) minmax(520px,1.18fr)!important;gap:.8rem!important}.biznube-detail-v2{max-width:none!important}.biznube-preview{height:min(560px,58vh)!important}.biznube-doc-row-v2{min-height:76px!important;padding:.7rem .85rem!important}.biznube-library-head{min-height:58px!important;padding:.76rem .86rem!important}.biznube-library-head strong{font-size:.76rem!important}.biznube-detail-head-v2{padding:.9rem!important}.biznube-detail-head-v2 h2{font-size:.88rem!important}.biznube-doc-facts{padding:.55rem .85rem .8rem!important}.biznube-context-section,.biznube-detail-body-v2{padding-left:.85rem!important;padding-right:.85rem!important}
@media(max-width:1450px){.biznube-home-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1220px){.biznube-app-header{grid-template-columns:minmax(170px,.6fr) auto}.biznube-app-header-meta{display:none}.biznube-workspace.has-detail{grid-template-columns:minmax(350px,.9fr) minmax(430px,1.1fr)!important}}@media(max-width:1050px){.biznube-home-hero{grid-template-columns:1fr}.biznube-home-health{min-height:100px}.biznube-mode-grid,.biznube-dashboard-grid{grid-template-columns:1fr}.biznube-dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.biznube-workspace.has-detail{grid-template-columns:1fr!important}.biznube-preview{height:min(520px,58vh)!important}}@media(max-width:760px){.bizai-panel.is-expanded .bizai-drawer{inset:0!important;border:0!important;border-radius:0!important}.bizai-quick-row-shell{grid-template-columns:30px minmax(0,1fr) 30px}.bizai-quick-scroll-button{width:30px;height:30px}.biznube-app-header{display:flex;min-height:auto;align-items:center;padding:.55rem}.biznube-app-brand{flex:0 0 auto}.biznube-app-brand>div{display:none}.biznube-mode-switch{min-width:0;flex:1;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.biznube-mode-switch::-webkit-scrollbar{display:none}.biznube-mode-switch a{padding:.34rem .48rem}.biznube-app-subnav{padding:.34rem .5rem}.biznube-home-copy{min-height:0;padding:1rem}.biznube-home-copy h1{font-size:1.45rem}.biznube-home-health{min-height:90px;padding:.8rem}.biznube-home-kpis{display:flex;overflow-x:auto;gap:.5rem;padding-bottom:.25rem;scroll-snap-type:x mandatory;scrollbar-width:none}.biznube-home-kpis::-webkit-scrollbar{display:none}.biznube-home-kpis>a{flex:0 0 min(72vw,250px);scroll-snap-align:start}.biznube-mode-summary{display:flex;overflow-x:auto;scrollbar-width:none}.biznube-mode-summary>div{flex:0 0 145px}.biznube-state-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.biznube-dashboard-shortcuts{display:flex;overflow-x:auto;gap:.5rem;padding-bottom:.25rem;scrollbar-width:none}.biznube-dashboard-shortcuts::-webkit-scrollbar{display:none}.biznube-dashboard-shortcuts>a{flex:0 0 min(78vw,280px)}.biznube-dashboard-list>div>a{grid-template-columns:34px minmax(0,1fr) auto}.biznube-dashboard-list>div>a>iconify-icon{display:none}.biznube-preview{height:min(440px,55vh)!important}}


/* v0.14.7 · identidad visual Biznube */
.sidebar-link-image{width:1.15rem;height:1.15rem;object-fit:contain}
.biznube-locked-icon img{width:28px;height:28px;object-fit:contain}
.biznube-app-shell{padding:.7rem;border-radius:18px;background:linear-gradient(180deg,var(--biz-surface),color-mix(in srgb,var(--biz-surface-soft) 55%,var(--biz-surface)));box-shadow:var(--biz-shadow-sm)}
.biznube-app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.1rem .2rem .6rem;grid-template-columns:none!important}
.biznube-app-brand{gap:.8rem}
.biznube-app-brand-mark{display:grid!important;width:56px;height:56px;flex:0 0 56px;place-items:center;border-radius:16px;background:linear-gradient(145deg,#5a6cff,#377fe8);box-shadow:0 10px 24px rgba(71,102,245,.18)}
.biznube-app-brand-mark img{width:36px;height:36px;object-fit:contain;filter:brightness(0) invert(1)}
.biznube-app-brand>div{display:grid!important;gap:.22rem}
.biznube-app-brand-logo{display:block;width:auto;height:40px;object-fit:contain}
.biznube-app-brand small{font-size:.56rem;color:var(--biz-muted)}
.biznube-app-header-meta{font-size:.56rem;white-space:nowrap}
.biznube-mode-switch{justify-content:flex-start;padding:.28rem;border-radius:14px}
.biznube-mode-switch a{min-height:38px;padding:.5rem .8rem;font-size:.6rem;border-radius:11px}
.biznube-mode-switch a iconify-icon{font-size:.95rem}
.biznube-app-subnav{padding:.46rem .2rem 0;margin-top:.15rem;background:transparent;border-top:1px solid var(--biz-border)}
.biznube-app-subnav a{min-height:34px;padding:.4rem .6rem;font-size:.55rem}
.biznube-home-hero-banner{display:block!important;margin-bottom:.9rem}
.biznube-home-copy{min-height:280px;padding:1.55rem 1.65rem;border-radius:24px;background:radial-gradient(circle at 86% 20%,color-mix(in srgb,var(--biz-primary) 18%,transparent),transparent 28%),linear-gradient(135deg,color-mix(in srgb,var(--biz-primary-soft) 78%,#ffffff),#ffffff 68%);border:1px solid color-mix(in srgb,var(--biz-primary) 28%,var(--biz-border))}
.biznube-home-logo{display:block;height:46px;width:auto;object-fit:contain;margin:.2rem 0 .4rem}
.biznube-home-copy h1{max-width:840px;font-size:clamp(2rem,2.9vw,2.8rem)}
.biznube-home-copy p{max-width:840px;font-size:.74rem}
.biznube-home-status{display:grid;grid-template-columns:48px minmax(0,1fr) 34px;align-items:center;gap:.7rem;max-width:480px;margin-top:1rem;padding:.85rem .95rem;border:1px solid var(--biz-border);border-radius:16px;background:rgba(255,255,255,.72);backdrop-filter:blur(4px)}
.biznube-home-status-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.15rem}
.biznube-home-status strong{display:block;font-size:.74rem}
.biznube-home-status small{display:block;color:var(--biz-muted);font-size:.54rem;line-height:1.45}
.biznube-home-status a{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;border:1px solid var(--biz-border);color:var(--biz-text)}
@media (max-width:980px){
  .biznube-app-header{flex-direction:column;align-items:flex-start}
  .biznube-app-header-meta{display:none}
  .biznube-app-brand-logo{height:34px}
}
@media (max-width:760px){
  .biznube-app-shell{padding:.55rem}
  .biznube-app-header{padding:0 0 .5rem}
  .biznube-app-brand{width:100%}
  .biznube-app-brand-mark{width:46px;height:46px;flex-basis:46px;border-radius:14px}
  .biznube-app-brand-mark img{width:28px;height:28px}
  .biznube-app-brand-logo{height:30px}
  .biznube-app-brand small{font-size:.5rem;line-height:1.35}
  .biznube-mode-switch{overflow-x:auto;scrollbar-width:none;width:100%}
  .biznube-mode-switch::-webkit-scrollbar{display:none}
  .biznube-home-copy{min-height:0;padding:1.15rem 1rem}
  .biznube-home-logo{height:34px}
  .biznube-home-copy h1{font-size:1.75rem}
  .biznube-home-status{grid-template-columns:40px minmax(0,1fr);padding:.75rem}
  .biznube-home-status a{display:none}
}


/* v0.14.8 · Biznube premium, inicio separado y navegación convencional */
.sidebar-link-image{width:20px!important;height:20px!important;flex:0 0 20px!important;border-radius:0!important;background:transparent!important;object-fit:contain}
.biznube-locked-icon img{width:28px;height:28px;object-fit:contain}
.biznube-app-shell{padding:1rem 1.15rem;border-radius:24px;background:linear-gradient(180deg,#ffffff,color-mix(in srgb,var(--biz-surface-soft) 65%,#fff));box-shadow:0 24px 70px rgba(10,31,68,.06);border:1px solid color-mix(in srgb,var(--biz-border) 82%,white)}
.biznube-app-header{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:0 0 .75rem!important}
.biznube-app-brand{display:grid;gap:.22rem;min-width:0}
.biznube-app-brand-logo{display:block;height:40px;width:auto;object-fit:contain;max-width:min(280px,45vw)}
.biznube-app-brand small{font-size:.6rem;color:var(--biz-muted);line-height:1.4}
.biznube-app-topnav{display:flex;align-items:center;justify-content:flex-end;gap:1rem;min-width:0;flex:1}
.biznube-mode-switch{display:flex;align-items:center;justify-content:flex-end;gap:.35rem;padding:.32rem;border-radius:16px;background:var(--biz-surface-soft);border:1px solid var(--biz-border);overflow:auto;scrollbar-width:none}
.biznube-mode-switch::-webkit-scrollbar{display:none}
.biznube-mode-switch a{display:inline-flex;align-items:center;gap:.45rem;min-height:42px;padding:.62rem .95rem;font-size:.63rem;font-weight:600;border-radius:12px;white-space:nowrap;color:var(--biz-muted)}
.biznube-mode-switch a.active{background:#fff;color:var(--biz-primary);box-shadow:0 10px 28px rgba(20,120,96,.12)}
.biznube-app-header-meta{display:flex;align-items:center;gap:.55rem;font-size:.58rem;color:var(--biz-muted);white-space:nowrap}
.biznube-app-header-meta span{display:inline-flex;align-items:center;gap:.3rem;padding:.45rem .7rem;border-radius:999px;background:var(--biz-surface-soft);border:1px solid var(--biz-border)}
.biznube-app-header-meta i{display:none}
.biznube-app-subnav{display:flex;align-items:center;gap:.4rem;overflow:auto;padding:.75rem 0 0;margin-top:.1rem;border-top:1px solid var(--biz-border);scrollbar-width:none}
.biznube-app-subnav::-webkit-scrollbar{display:none}
.biznube-app-subnav a{display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap;min-height:36px;padding:.48rem .72rem;border-radius:12px;background:transparent;font-size:.58rem;color:var(--biz-muted)}
.biznube-app-subnav a.active{background:var(--biz-primary-soft);color:var(--biz-primary)}
.biznube-home-landing{margin-top:1rem}
.biznube-home-landing .biznube-home-copy{padding:2.2rem 2rem;border-radius:28px;background:radial-gradient(circle at 88% 20%,rgba(59,130,246,.18),transparent 28%),linear-gradient(135deg,rgba(234,251,246,.98),#ffffff 74%);border:1px solid rgba(20,120,96,.18);min-height:360px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 25px 80px rgba(22,92,64,.08)}
.biznube-home-logo{display:block;height:54px;width:auto;object-fit:contain;margin:.15rem 0 .55rem}
.biznube-home-copy h1{font-size:clamp(2.35rem,4vw,4rem);max-width:900px;line-height:1.02;letter-spacing:-.04em;margin:0 0 .7rem}
.biznube-home-copy p{max-width:860px;font-size:.82rem;line-height:1.75;color:var(--biz-muted)}
.biznube-home-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:1rem}
.biznube-home-banner-pills{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:1rem}
.biznube-home-banner-pills span{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .78rem;border-radius:999px;background:rgba(255,255,255,.88);border:1px solid rgba(20,120,96,.14);font-size:.58rem;color:var(--biz-muted)}
.biznube-panel-heading{margin-top:1rem}
.biznube-dashboard-kpis,.biznube-home-kpis{margin-top:.45rem}
.biznube-mode-grid-premium .biznube-mode-card,.biznube-overview-card,.biznube-overview-hero{border:1px solid color-mix(in srgb,var(--biz-border) 84%,white);box-shadow:0 16px 46px rgba(15,23,42,.05)}
.biznube-overview-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.2rem;margin-bottom:.8rem;border-radius:22px;background:linear-gradient(135deg,rgba(234,251,246,.95),#ffffff 72%)}
.biznube-overview-hero.is-work{background:linear-gradient(135deg,rgba(239,245,255,.96),#ffffff 72%)}
.biznube-overview-hero h2{font-size:1.25rem;margin:.12rem 0 .28rem}
.biznube-overview-hero p{font-size:.65rem;color:var(--biz-muted);max-width:760px}
.biznube-overview-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.biznube-overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:.8rem}
.biznube-overview-kpis article{padding:1rem 1.05rem;border-radius:18px;background:#fff;border:1px solid var(--biz-border);box-shadow:0 12px 34px rgba(15,23,42,.04)}
.biznube-overview-kpis small{display:block;font-size:.54rem;color:var(--biz-muted);text-transform:uppercase;letter-spacing:.08em}
.biznube-overview-kpis strong{display:block;font-size:1.45rem;line-height:1.1;margin-top:.18rem}
.biznube-overview-kpis em{display:block;margin-top:.22rem;font-size:.55rem;color:var(--biz-muted);font-style:normal}
.biznube-overview-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:.9rem;margin-bottom:.95rem}
.biznube-overview-card header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.8rem}
.biznube-mini-list{display:grid;gap:.55rem}
.biznube-mini-list>a{display:grid;grid-template-columns:auto 1fr;gap:.65rem;align-items:center;padding:.7rem .78rem;border-radius:16px;background:var(--biz-surface-soft);border:1px solid var(--biz-border)}
.biznube-mini-list>a strong{display:block;font-size:.63rem}
.biznube-mini-list>a small{display:block;font-size:.54rem;color:var(--biz-muted);margin-top:.14rem}
.biznube-docs-overview,.biznube-jobs-overview{display:grid;gap:0}
.biznube-dashboard-list,.biznube-library,.biznube-work-list,.biznube-work-detail{box-shadow:0 16px 48px rgba(15,23,42,.05)}
.biznube-work-kpis article,.biznube-home-kpis>a{box-shadow:0 12px 34px rgba(15,23,42,.04)}
@media (max-width:1100px){
  .biznube-app-header{flex-direction:column;align-items:flex-start}
  .biznube-app-topnav{width:100%;justify-content:space-between;flex-wrap:wrap}
  .biznube-overview-grid,.biznube-mode-grid{grid-template-columns:1fr}
}
@media (max-width:780px){
  .biznube-app-shell{padding:.8rem}
  .biznube-app-brand-logo{height:34px;max-width:200px}
  .biznube-app-topnav{align-items:flex-start}
  .biznube-mode-switch{width:100%;justify-content:flex-start}
  .biznube-app-header-meta{width:100%;overflow:auto;scrollbar-width:none}
  .biznube-app-header-meta::-webkit-scrollbar{display:none}
  .biznube-home-landing .biznube-home-copy{padding:1.35rem 1rem;min-height:0}
  .biznube-home-logo{height:42px}
  .biznube-home-copy h1{font-size:2rem}
  .biznube-overview-hero{flex-direction:column;align-items:flex-start}
  .biznube-overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .biznube-overview-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .biznube-home-actions .btn,.biznube-overview-actions .btn{width:100%;justify-content:center}
  .biznube-overview-kpis{grid-template-columns:1fr}
}


/* v0.14.9 · Biznube hero full + dashboard larger */
.biznube-home-banner-full{margin-top:1rem}
.biznube-home-banner-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);align-items:stretch;overflow:hidden;border-radius:32px;background:linear-gradient(135deg,#eef9f5 0%,#f7fbfb 44%,#edf3ff 100%);border:1px solid rgba(20,120,96,.16);box-shadow:0 28px 88px rgba(18,42,66,.08)}
.biznube-home-banner-grid .biznube-home-copy{padding:3rem 2.5rem;min-height:460px;display:flex;flex-direction:column;justify-content:center;background:transparent;border:0;box-shadow:none}
.biznube-home-banner-grid .biznube-home-copy h1{font-size:clamp(3rem,4.7vw,5.4rem);line-height:.98;letter-spacing:-.05em;max-width:760px}
.biznube-home-banner-grid .biznube-home-copy p{font-size:1rem;line-height:1.7;max-width:760px}
.biznube-home-visual{position:relative;display:flex;align-items:center;justify-content:center;padding:2rem 2rem 2rem 0;min-height:460px}
.biznube-home-visual-stage{position:relative;width:min(100%,460px);height:100%;min-height:360px;display:grid;place-items:center}
.biznube-home-visual-stage::before{content:"";position:absolute;inset:6% 2% 6% 14%;border-radius:34px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.68));backdrop-filter:blur(8px);box-shadow:0 30px 80px rgba(25,63,114,.12)}
.biznube-home-visual-image{position:relative;z-index:2;width:min(84%,360px);height:auto;object-fit:contain;filter:drop-shadow(0 22px 50px rgba(64,92,214,.18))}
.biznube-home-floating-card{position:absolute;z-index:3;display:grid;gap:.15rem;padding:.9rem 1rem;border-radius:18px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.88);box-shadow:0 22px 50px rgba(20,37,70,.12)}
.biznube-home-floating-card strong{font-size:1.35rem;line-height:1;font-weight:800}
.biznube-home-floating-card small{font-size:.67rem;color:var(--biz-muted)}
.biznube-home-floating-card.is-top{top:10%;right:2%}
.biznube-home-floating-card.is-middle{left:2%;top:42%}
.biznube-home-floating-card.is-bottom{right:7%;bottom:10%}
.biznube-dashboard-hero{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);align-items:center;gap:1.25rem;padding:2rem 2.1rem!important;margin-top:1rem;border-radius:28px;background:linear-gradient(135deg,#f4fbf7 0%,#ffffff 54%,#eef3ff 100%);border:1px solid rgba(20,120,96,.16);box-shadow:0 26px 84px rgba(18,42,66,.06)}
.biznube-dashboard-hero-copy h1{font-size:clamp(2rem,3.2vw,3.2rem);line-height:1.02;letter-spacing:-.04em;max-width:740px;margin:.3rem 0 .7rem}
.biznube-dashboard-hero-copy p{max-width:760px;font-size:.9rem;line-height:1.75;color:var(--biz-muted)}
.biznube-dashboard-hero-visual{position:relative;min-height:260px;display:grid;place-items:center}
.biznube-dashboard-hero-visual::before{content:"";position:absolute;inset:8%;border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.74));box-shadow:0 22px 60px rgba(40,61,107,.12)}
.biznube-dashboard-hero-visual img{position:relative;z-index:2;width:min(68%,240px);height:auto;object-fit:contain;filter:drop-shadow(0 18px 45px rgba(64,92,214,.18))}
.biznube-dashboard-hero-visual .hero-chip{position:absolute;z-index:3;display:grid;gap:.12rem;min-width:92px;padding:.75rem .85rem;border-radius:16px;background:#fff;border:1px solid rgba(255,255,255,.9);box-shadow:0 16px 42px rgba(18,42,66,.12);text-align:left}
.biznube-dashboard-hero-visual .hero-chip strong{font-size:1.05rem;line-height:1}
.biznube-dashboard-hero-visual .hero-chip small{font-size:.62rem;color:var(--biz-muted)}
.biznube-dashboard-hero-visual .hero-chip.is-one{top:12%;right:7%}
.biznube-dashboard-hero-visual .hero-chip.is-two{left:8%;top:43%}
.biznube-dashboard-hero-visual .hero-chip.is-three{right:12%;bottom:12%}
.biznube-dashboard-kpis,.biznube-home-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem;margin-bottom:1rem}
.biznube-home-kpis>a{min-height:150px;grid-template-columns:58px minmax(0,1fr);gap:.85rem;padding:1rem 1.05rem;border-radius:20px}
.biznube-home-kpis>a>span{width:58px;height:58px;border-radius:16px;font-size:1.3rem}
.biznube-home-kpis small{font-size:.68rem;letter-spacing:.02em}
.biznube-home-kpis strong{margin:.16rem 0;font-size:1.7rem;line-height:1.05}
.biznube-home-kpis em{font-size:.66rem;white-space:normal}
.biznube-dashboard-modules{gap:1rem;margin-bottom:1rem}
.biznube-mode-grid-premium .biznube-mode-card{padding:1.1rem!important;border-radius:24px;min-height:360px}
.biznube-mode-card header>span{width:56px;height:56px;border-radius:16px;font-size:1.35rem}
.biznube-mode-card header h2{font-size:1.55rem;margin:.18rem 0 .28rem}
.biznube-mode-card header p{font-size:.72rem;line-height:1.6;max-width:82%}
.biznube-mode-card header>a{font-size:.7rem}
.biznube-mode-summary{gap:.7rem;margin:1rem 0}
.biznube-mode-summary>div{padding:1rem;border-radius:18px}
.biznube-mode-summary>div strong{font-size:1.45rem}
.biznube-mode-summary>div small{font-size:.64rem}
.biznube-type-bars{gap:.72rem}
.biznube-type-bars>div{grid-template-columns:170px 1fr 32px;gap:.8rem}
.biznube-type-bars>div span,.biznube-type-bars>div strong{font-size:.74rem}
.biznube-type-bars>div i{height:8px;border-radius:999px}
.biznube-state-grid{gap:.8rem}
.biznube-state-grid>div{padding:1rem;border-radius:18px;min-height:112px}
.biznube-state-grid>div strong{font-size:1.5rem}
.biznube-state-grid>div small{font-size:.64rem}
.biznube-state-grid>div span{width:44px;height:44px;font-size:1.1rem}
.biznube-dashboard-grid{gap:1rem;margin-bottom:1rem}
.biznube-dashboard-list{border-radius:24px}
.biznube-dashboard-list>header{padding:1rem 1.1rem}
.biznube-dashboard-list>header h2{font-size:1.2rem}
.biznube-dashboard-list>header>a{font-size:.68rem}
.biznube-dashboard-list>div>a{grid-template-columns:44px minmax(0,1fr) auto 18px;min-height:82px;padding:.8rem 1rem;gap:.8rem}
.biznube-dashboard-list>div>a>span:nth-child(2) strong{font-size:.8rem}
.biznube-dashboard-list>div>a>span:nth-child(2) small{font-size:.64rem}
.biznube-dashboard-list>div>a>em{font-size:.64rem}
.biznube-dashboard-list .biznube-file-icon,.biznube-dashboard-list .biznube-work-state{width:44px;height:44px;border-radius:14px}
.biznube-home-empty{min-height:260px;padding:1.5rem}
.biznube-home-empty>iconify-icon{font-size:2rem}.biznube-home-empty strong{font-size:.9rem}.biznube-home-empty span{font-size:.72rem;max-width:340px}
.biznube-dashboard-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.biznube-dashboard-shortcuts>a{min-height:120px;padding:1rem;border-radius:20px}
.biznube-dashboard-shortcuts>a>span{width:48px;height:48px;border-radius:14px;font-size:1.1rem}
.biznube-dashboard-shortcuts>a strong{font-size:.8rem}.biznube-dashboard-shortcuts>a small{font-size:.65rem;line-height:1.55}.biznube-dashboard-shortcuts>a>b{font-size:1rem}
@media(max-width:1450px){.biznube-dashboard-kpis,.biznube-home-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.biznube-dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1200px){.biznube-home-banner-grid,.biznube-dashboard-hero{grid-template-columns:1fr}.biznube-home-visual{padding:0 1.5rem 1.8rem}.biznube-home-banner-grid .biznube-home-copy{min-height:0;padding:2rem 1.6rem 1rem}.biznube-dashboard-hero{padding:1.4rem!important}}
@media(max-width:760px){.biznube-home-banner-grid .biznube-home-copy h1{font-size:2.2rem}.biznube-home-banner-grid .biznube-home-copy p,.biznube-dashboard-hero-copy p{font-size:.8rem}.biznube-home-kpis{display:flex;overflow-x:auto}.biznube-home-kpis>a{flex:0 0 min(82vw,320px)}.biznube-home-visual{min-height:280px;padding:0 1rem 1rem}.biznube-home-visual-stage{min-height:260px}.biznube-dashboard-hero-visual{min-height:220px}.biznube-mode-grid,.biznube-dashboard-grid{grid-template-columns:1fr}.biznube-dashboard-shortcuts{display:flex;overflow-x:auto}.biznube-dashboard-shortcuts>a{flex:0 0 min(82vw,280px)}.biznube-mode-card header p{max-width:100%}.biznube-type-bars>div{grid-template-columns:120px 1fr 24px}}

/* v0.15.0 · Landings comerciales SEO */
.seo-breadcrumb{max-width:1320px;margin:.8rem auto -1.2rem;padding:0 3rem;display:flex;align-items:center;gap:.35rem;color:var(--biz-text-muted);font-size:.66rem}
.seo-breadcrumb a{color:var(--biz-text-muted);font-weight:650}.seo-breadcrumb a:hover{color:var(--biz-primary)}.seo-breadcrumb iconify-icon{font-size:.72rem}.seo-breadcrumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seo-hero-commercial{padding-top:4.7rem;gap:3.2rem}.seo-hero-commercial .seo-hero-copy h1{font-size:clamp(2.8rem,5vw,5.25rem)}
.seo-commercial-visual{align-items:center}.seo-commercial-card{position:relative;width:min(100%,560px);min-height:430px;padding:1.55rem;display:flex;flex-direction:column;justify-content:flex-end;gap:.55rem;overflow:hidden;border:1px solid var(--biz-border);border-radius:30px;background:radial-gradient(circle at 78% 15%,rgba(88,120,255,.2),transparent 34%),radial-gradient(circle at 14% 88%,rgba(10,163,118,.18),transparent 34%),linear-gradient(145deg,#fbfdfd,#f4f8f7);box-shadow:0 32px 90px rgba(18,48,39,.1)}
.seo-commercial-card::before{content:"";position:absolute;width:210px;height:210px;right:-45px;top:-38px;border-radius:52px;transform:rotate(18deg);background:linear-gradient(145deg,rgba(88,120,255,.14),rgba(62,128,236,.04));border:1px solid rgba(88,120,255,.1)}
.seo-commercial-card::after{content:"";position:absolute;width:175px;height:175px;left:-48px;bottom:46px;border-radius:50%;background:linear-gradient(145deg,rgba(10,163,118,.12),rgba(10,163,118,.02));border:1px solid rgba(10,163,118,.08)}
.seo-commercial-card>*{position:relative;z-index:1}.seo-commercial-bizfera{width:auto;height:40px;object-fit:contain;object-position:left;margin-bottom:auto;align-self:flex-start}.seo-commercial-card>small{font-size:.64rem;font-weight:850;letter-spacing:.11em;color:var(--biz-primary)}.seo-commercial-card>strong{max-width:470px;font-size:1.55rem;line-height:1.15;letter-spacing:-.025em}
.seo-commercial-brand{display:flex;align-items:center;gap:.7rem;margin-bottom:auto;min-height:56px}.seo-commercial-brand img{max-width:160px;max-height:48px;object-fit:contain}.seo-commercial-brand img:last-child{max-width:112px;max-height:34px}.seo-commercial-brand>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:rgba(255,255,255,.8);border:1px solid var(--biz-border);font-size:1rem;font-weight:700;color:var(--biz-text-muted)}
.seo-commercial-nodes{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.65rem}.seo-commercial-nodes span{display:inline-flex;align-items:center;gap:.3rem;min-height:34px;padding:.38rem .55rem;border:1px solid rgba(10,163,118,.14);border-radius:999px;background:rgba(255,255,255,.78);font-size:.62rem;font-weight:720;backdrop-filter:blur(5px)}.seo-commercial-nodes iconify-icon{color:var(--biz-primary);font-size:.86rem}
.seo-problem-commercial{padding-bottom:4rem}.seo-audience .landing-section-heading>p{max-width:820px;margin:.6rem auto 0;color:var(--biz-text-muted);font-size:.77rem;line-height:1.65}.seo-audience-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.seo-audience-grid article{display:grid;grid-template-columns:46px minmax(0,1fr);gap:.75rem;padding:1.05rem;border:1px solid var(--biz-border);border-radius:18px;background:var(--biz-surface)}.seo-audience-grid article>span{display:grid;width:46px;height:46px;place-items:center;border-radius:13px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:1.15rem}.seo-audience-grid h3{margin:.05rem 0 .3rem;font-size:.9rem}.seo-audience-grid p{margin:0;color:var(--biz-text-muted);font-size:.7rem;line-height:1.55}
.seo-features-commercial .seo-feature-grid article{min-height:195px}.seo-use-case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.72rem}.seo-use-case-list article{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:.75rem;min-height:116px;padding:1rem 1.05rem;border:1px solid var(--biz-border);border-radius:17px;background:var(--biz-surface);transition:transform .15s ease,border-color .15s ease}.seo-use-case-list article:hover{transform:translateY(-2px);border-color:rgba(10,163,118,.32)}.seo-use-case-list article>b{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:var(--biz-surface-soft);color:var(--biz-primary);font-size:.65rem}.seo-use-case-list h3{font-size:.83rem;margin:0 0 .25rem}.seo-use-case-list p{margin:0;color:var(--biz-text-muted);font-size:.68rem;line-height:1.55}.seo-use-case-list>article>iconify-icon{color:var(--biz-text-muted);font-size:.9rem}.seo-connected-commercial{background:linear-gradient(135deg,#062f27,#0a5342)}
.seo-public-footer{align-items:flex-start}.seo-public-footer .public-footer-links{max-width:900px;justify-content:center}.seo-public-footer .public-footer-links a{font-size:.62rem}
.landing-seo-hub{padding-top:3.3rem!important;padding-bottom:4.5rem!important}.landing-seo-hub-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.landing-seo-hub-groups>article{padding:1rem;border:1px solid var(--biz-border);border-radius:20px;background:var(--biz-surface)}.landing-seo-hub-groups>article>span{display:block;margin:0 0 .7rem;color:var(--biz-primary);font-size:.58rem;font-weight:850;letter-spacing:.09em}.landing-seo-hub-groups>article>div{display:grid;gap:.45rem}.landing-seo-hub-groups a{display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:.08rem .5rem;align-items:center;padding:.62rem .7rem;border-radius:13px;background:var(--biz-surface-soft);color:var(--biz-text);text-decoration:none}.landing-seo-hub-groups a:hover{background:var(--biz-primary-soft);color:var(--biz-primary)}.landing-seo-hub-groups strong{font-size:.69rem}.landing-seo-hub-groups small{grid-column:1;color:var(--biz-text-muted);font-size:.56rem;line-height:1.35}.landing-seo-hub-groups iconify-icon{grid-column:2;grid-row:1/3;color:var(--biz-text-muted)}
@media(max-width:980px){.seo-breadcrumb{padding:0 1.2rem}.seo-audience-grid,.landing-seo-hub-groups{grid-template-columns:1fr}.seo-use-case-list{grid-template-columns:1fr}.seo-commercial-card{width:100%;min-height:360px}.seo-hero-commercial{gap:2.2rem}.seo-public-footer .public-footer-links{justify-content:flex-start}}
@media(max-width:620px){.seo-breadcrumb{margin:.6rem auto -.4rem}.seo-commercial-card{min-height:320px;padding:1.1rem}.seo-commercial-card>strong{font-size:1.25rem}.seo-commercial-brand img{max-width:125px}.seo-commercial-nodes{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.1rem}.seo-commercial-nodes span{flex:0 0 auto}.seo-audience-grid article{grid-template-columns:40px minmax(0,1fr)}.seo-audience-grid article>span{width:40px;height:40px}.seo-use-case-list article{grid-template-columns:36px minmax(0,1fr);min-height:0}.seo-use-case-list article>b{width:36px;height:36px}.seo-use-case-list>article>iconify-icon{display:none}.landing-seo-hub{padding-top:2rem!important;padding-bottom:3rem!important}}

/* Bizfera v0.16.0 · modo lectura */
.subscription-readonly-banner{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:14px 16px;border:1px solid var(--border-color,#e7e9ed);border-radius:16px;background:var(--surface,#fff)}
.subscription-readonly-banner>iconify-icon{font-size:24px;flex:0 0 auto}.subscription-readonly-banner>div{display:flex;flex:1;flex-direction:column;gap:2px}.subscription-readonly-banner span{font-size:13px;color:var(--biz-muted)}
@media(max-width:700px){.subscription-readonly-banner{align-items:flex-start;flex-wrap:wrap}.subscription-readonly-banner .btn{width:100%}}
.receipt-allocation-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border-color,#eceef2)}.receipt-allocation-row>span{display:flex;flex-direction:column}.receipt-allocation-row small{color:var(--biz-muted)}.receipt-payment-row{display:grid;grid-template-columns:1.2fr 180px 1fr;gap:10px;margin:10px 0}.receipt-totals{display:flex;justify-content:flex-end;gap:24px;padding:12px 0;font-size:14px}.receipt-totals strong{margin-left:4px}.form-section-label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin:8px 0}
@media(max-width:700px){.receipt-allocation-row,.receipt-payment-row{grid-template-columns:1fr}.receipt-totals{justify-content:space-between}}
.credit-note-form{display:flex;flex-direction:column;gap:14px;padding:16px 0;border-bottom:1px solid var(--border-color,#eceef2)}.credit-note-heading>div{display:flex;flex-direction:column;gap:3px}.credit-note-heading small,.credit-note-line small{color:var(--biz-muted)}.credit-note-lines{border:1px solid var(--border-color,#eceef2);border-radius:14px;overflow:hidden}.credit-note-line{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border-color,#eceef2)}.credit-note-line:last-child{border-bottom:0}.credit-note-line>div{display:flex;flex-direction:column}.credit-note-line.is-complete{opacity:.55}.credit-note-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.credit-note-options label{display:flex;flex-direction:column;gap:6px}
@media(max-width:700px){.credit-note-line,.credit-note-options{grid-template-columns:1fr}}

/* Bizfera v0.16.0 · monitor interno */
.platform-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.platform-status-card{padding:22px;display:grid;gap:14px}.platform-status-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.platform-status-head>div{display:flex;align-items:center;gap:10px}.platform-status-head h2{font-size:18px;margin:0}.platform-status-dot{width:10px;height:10px;border-radius:999px;background:var(--text-muted,#8b9894);box-shadow:0 0 0 4px rgba(127,145,139,.12)}.platform-status-card.is-verde .platform-status-dot{background:#13a875}.platform-status-card.is-amarillo .platform-status-dot{background:#d79b16}.platform-status-card.is-rojo .platform-status-dot{background:#d74f4f}.platform-status-card p{margin:0;color:var(--text-muted,#66746f)}.platform-status-data{display:grid;gap:8px;margin:0}.platform-status-data div{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border-color,#e7eeeb);padding-top:8px}.platform-status-data dt{color:var(--text-muted,#66746f)}.platform-status-data dd{margin:0;font-weight:700;text-align:right}.platform-technical-detail{border-top:1px solid var(--border-color,#e7eeeb);padding-top:10px}.platform-technical-detail summary{cursor:pointer;font-weight:700}.platform-technical-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;padding:12px;border-radius:12px;background:rgba(0,0,0,.045);font-size:12px}

/* Bizfera v0.17.0 · Conexión ARCA guiada */
.integration-card-arca .status-pendiente{background:rgba(215,155,22,.12);color:#a66f00;border-color:rgba(215,155,22,.22)}
.arca-connect-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.arca-connect-entry small{color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.68rem}.arca-connect-main{min-width:180px}.arca-onboarding{display:grid;gap:16px;margin-top:18px}.arca-onboarding.is-collapsed{display:none}.arca-connected-summary{display:flex;align-items:center;gap:12px;margin-top:18px;padding:16px;border:1px solid rgba(18,168,117,.2);border-radius:18px;background:rgba(18,168,117,.055)}.arca-connected-check{display:grid;width:42px;height:42px;place-items:center;flex:0 0 auto;border-radius:14px;background:rgba(18,168,117,.12);color:var(--biz-primary,#12a875);font-size:24px}.arca-connected-summary strong{font-size:.93rem}.arca-connected-summary p{margin:3px 0 0;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.7rem}.arca-status-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.arca-status-facts>span{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--biz-border,var(--border-color,#e7e9ed));border-radius:15px;background:var(--biz-surface-soft,#f8faf9)}.arca-status-facts small{font-size:.58rem;color:var(--biz-text-muted,var(--text-muted,#667085));text-transform:uppercase;letter-spacing:.06em}.arca-status-facts b{font-size:.76rem}.arca-renewal-callout{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:14px 16px;border-radius:16px;border:1px solid rgba(215,155,22,.25);background:rgba(215,155,22,.07)}.arca-renewal-callout>div{display:flex;flex-direction:column;gap:3px}.arca-renewal-callout small{color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.65rem}
.arca-wizard-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:flex-start;padding:17px;border:1px solid var(--biz-border,var(--border-color,#e7e9ed));border-radius:18px;background:var(--biz-surface,#fff)}.arca-wizard-card.is-warning{border-color:rgba(215,155,22,.28);background:rgba(215,155,22,.045)}.arca-step-number{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:var(--biz-primary-soft,rgba(18,168,117,.1));color:var(--biz-primary,#12a875);font-size:.78rem;font-weight:850}.arca-step-number iconify-icon{font-size:20px}.arca-step-number.is-done{background:rgba(18,168,117,.13)}.arca-wizard-content{min-width:0}.arca-wizard-card h3{margin:2px 0 6px;font-size:.9rem}.arca-wizard-card p{margin:0 0 12px;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.69rem;line-height:1.55}.arca-inline-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.arca-inline-form label{display:flex;flex:1 1 240px;flex-direction:column;gap:6px}.arca-inline-form label>span,.arca-upload-box label>span{font-size:.65rem;font-weight:750}.arca-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.arca-progress span{position:relative;padding:9px 8px;border-radius:12px;background:var(--biz-surface-soft,#f4f6f5);color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.58rem;font-weight:750;text-align:center}.arca-progress span.is-done{background:rgba(18,168,117,.1);color:var(--biz-primary,#12a875)}.arca-tutorial{display:grid;gap:8px;padding:4px 0}.arca-tutorial>div{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:flex-start}.arca-tutorial>div>span{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:var(--biz-surface-soft,#f4f6f5);font-size:.62rem;font-weight:850}.arca-tutorial p{display:flex;flex-direction:column;gap:2px;margin:0;font-size:.69rem}.arca-tutorial small{color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.64rem;line-height:1.5}.arca-upload-box{display:flex;align-items:flex-end;gap:10px;padding:14px;border:1px dashed var(--biz-border,var(--border-color,#dfe5e2));border-radius:16px;background:var(--biz-surface-soft,#fafcfb)}.arca-upload-box label{display:flex;flex:1;flex-direction:column;gap:5px}.arca-upload-box label small{color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.58rem}.arca-regenerate{padding-top:2px}.arca-regenerate summary{cursor:pointer;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.64rem;font-weight:700}.arca-regenerate>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding:12px;border-radius:14px;background:var(--biz-surface-soft,#f8faf9)}.arca-regenerate p{margin:0;max-width:620px;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.62rem;line-height:1.45}.arca-advanced-config{margin-top:16px!important}.secure-note.is-warning{border-color:rgba(215,155,22,.24);background:rgba(215,155,22,.06)}
@media(max-width:760px){.arca-status-facts{grid-template-columns:1fr}.arca-renewal-callout,.arca-upload-box,.arca-regenerate>div{align-items:stretch;flex-direction:column}.arca-renewal-callout .btn,.arca-upload-box .btn,.arca-inline-form .btn,.arca-regenerate .btn{width:100%}.arca-progress{grid-template-columns:1fr 1fr}.arca-wizard-card{grid-template-columns:36px minmax(0,1fr);padding:14px}.arca-step-number{width:34px;height:34px}.arca-inline-form{align-items:stretch;flex-direction:column}.arca-inline-form label{flex-basis:auto;width:100%}}
.checkout-inline-action{display:inline-flex;margin-left:5px;color:var(--biz-primary,#12a875);font-weight:800;text-decoration:underline;text-underline-offset:2px}
.platform-arca-companies{margin-top:18px;padding:20px}.platform-arca-companies .panel-section-heading{margin-bottom:14px}.platform-arca-companies td>small{display:block;margin-top:3px;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.58rem}.platform-arca-diagnostic{min-width:240px;max-width:420px}.platform-arca-diagnostic>span{font-size:.65rem;line-height:1.4}.platform-support-actions{min-width:120px}.platform-support-actions summary{cursor:pointer;font-size:.63rem;font-weight:750}.platform-support-actions>div{display:grid;gap:6px;margin-top:7px}.platform-support-actions .btn{width:100%;white-space:nowrap}


/* Bizfera v0.17.0 · Recibos de cobranza */
.receipt-document{max-width:980px;margin:0 auto;padding:30px;display:flex;flex-direction:column;gap:26px;background:var(--surface,#fff);border:1px solid var(--border-color,#e7e9ee);border-radius:20px;box-shadow:0 10px 30px rgba(16,24,40,.04)}
.receipt-document-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:2px solid var(--text-color,#101828)}
.receipt-brand{display:flex;align-items:center;gap:14px}.receipt-brand img{width:46px;height:46px;object-fit:contain}.receipt-brand>div,.receipt-number{display:flex;flex-direction:column;gap:3px}.receipt-brand strong{font-size:17px}.receipt-brand small,.receipt-number small,.receipt-document-grid small,.receipt-document-line small,.receipt-section-title small{color:var(--biz-muted)}
.receipt-number{text-align:right}.receipt-number>span,.receipt-section-title>span,.receipt-document-grid span,.receipt-document-summary span,.receipt-document-note>span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--biz-muted)}.receipt-number>strong{font-size:26px;line-height:1.1}
.receipt-cancelled{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;border:1px solid #f1b7b7;border-radius:12px;background:#fff7f7;color:#b42318}.receipt-cancelled span{font-size:13px}
.receipt-document-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;border:1px solid var(--border-color,#e7e9ee);border-radius:15px;overflow:hidden}.receipt-document-grid>div{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border-right:1px solid var(--border-color,#e7e9ee)}.receipt-document-grid>div:last-child{border-right:0}.receipt-document-grid strong{font-size:14px}
.receipt-document-section{display:flex;flex-direction:column;gap:10px}.receipt-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.receipt-lines{border-top:1px solid var(--border-color,#e7e9ee)}.receipt-document-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:13px 2px;border-bottom:1px solid var(--border-color,#e7e9ee)}.receipt-document-line>div{display:flex;flex-direction:column;gap:2px}.receipt-document-line>strong{font-size:14px}.receipt-document-empty{padding:15px 0;color:var(--biz-muted)}
.receipt-document-summary{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px;padding-top:8px}.receipt-document-summary>div{display:flex;flex-direction:column;gap:5px;padding:15px 17px;border:1px solid var(--border-color,#e7e9ee);border-radius:13px}.receipt-document-summary>div strong{font-size:17px}.receipt-document-summary>.total{background:var(--text-color,#101828);border-color:var(--text-color,#101828);color:#fff}.receipt-document-summary>.total span{color:rgba(255,255,255,.7)}.receipt-document-summary>.total strong{font-size:22px}
.receipt-document-note{padding:15px 17px;border-radius:13px;background:var(--surface-soft,#f8f9fb)}.receipt-document-note p{margin:5px 0 0;white-space:normal}.receipt-document-footer{display:flex;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid var(--border-color,#e7e9ee);font-size:11px;color:var(--biz-muted)}
.receipt-document-print{max-width:190mm;border:0;box-shadow:none;border-radius:0;margin:0 auto;padding:12mm;background:#fff;color:#111}

/* Nota de crédito total + devolución parcial son acciones diferentes. */
.credit-note-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.credit-note-choice{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid var(--border-color,#eceef2);border-radius:16px;background:var(--surface,#fff)}.credit-note-choice-head{display:flex;gap:11px;align-items:flex-start}.credit-note-choice-head>div{display:flex;flex-direction:column;gap:3px}.credit-note-choice-head small,.credit-note-choice-disabled{color:var(--biz-muted)}.credit-note-choice-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:var(--surface-soft,#f7f8fa);font-size:20px}.credit-note-total-form,.credit-note-partial-form{display:flex;flex-direction:column;gap:12px}.credit-note-total-form label,.credit-note-options label{display:flex;flex-direction:column;gap:6px}.credit-note-choice-disabled{display:flex;gap:8px;align-items:flex-start;padding:11px 12px;border-radius:11px;background:var(--surface-soft,#f7f8fa);font-size:13px}.credit-note-form{padding:0;border-bottom:0}
@media(max-width:900px){.credit-note-choice-grid{grid-template-columns:1fr}.receipt-document{padding:20px}.receipt-document-grid,.receipt-document-summary{grid-template-columns:1fr}.receipt-document-grid>div{border-right:0;border-bottom:1px solid var(--border-color,#e7e9ee)}.receipt-document-grid>div:last-child{border-bottom:0}.receipt-document-head{flex-direction:column}.receipt-number{text-align:left}}
@media print{.receipt-document-print{max-width:none;width:100%;padding:0}.receipt-document-print .receipt-document-head{padding-bottom:14px}.receipt-document-print .receipt-document-grid>div,.receipt-document-print .receipt-document-summary>div{break-inside:avoid}.receipt-document-print .receipt-document-summary>.total{background:#111!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.print-actions,.no-print{display:none!important}}

/* Bizfera v0.17.1 · Integraciones en sheet de pantalla completa + ARCA ordenado */
.integration-grid-v2 > .integration-card-v2.is-sheet-open {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header {
    position: sticky;
    z-index: 5;
    top: 0;
    min-height: 88px;
    padding: 1rem clamp(1rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--biz-border);
    background: color-mix(in srgb, var(--biz-surface) 97%, transparent);
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open > :not(.integration-card-header) {
    display: block;
    width: min(1040px, calc(100% - 3rem));
    margin-right: auto;
    margin-left: auto;
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open > .arca-onboarding {
    display: grid;
    gap: 18px;
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open > .arca-onboarding.is-collapsed {
    display: none;
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open > .arca-connect-entry,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .arca-connected-summary,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .arca-renewal-callout,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-connected-account,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-connect-simple,
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-actions {
    display: flex;
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open .filter-accordion,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-connect-simple,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-connected-account,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-feature-list,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-plan-summary,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-card-meta,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-helper,
.integration-grid-v2 > .integration-card-v2.is-sheet-open .integration-price {
    width: min(1040px, calc(100% - 3rem));
}

.integration-grid-v2 > .integration-card-v2.is-sheet-open > :last-child {
    margin-bottom: 2rem;
}

.integration-sheet-open .main-content,
.integration-sheet-open .app-shell {
    overflow: hidden;
}

/* ARCA guiado: una sola columna, sin bloques apretados. */
.integration-card-arca.is-sheet-open .arca-onboarding,
.integration-card-arca.is-sheet-open .arca-advanced-config,
.integration-card-arca.is-sheet-open .arca-connected-summary,
.integration-card-arca.is-sheet-open .arca-status-facts,
.integration-card-arca.is-sheet-open .arca-renewal-callout,
.integration-card-arca.is-sheet-open .arca-connect-entry {
    width: min(920px, calc(100% - 3rem));
}

.integration-card-arca.is-sheet-open .arca-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.integration-card-arca.is-sheet-open .arca-progress span {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .64rem;
}

.integration-card-arca.is-sheet-open .arca-wizard-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
}

.integration-card-arca.is-sheet-open .arca-wizard-card h3 {
    margin-top: 3px;
    font-size: 1rem;
}

.integration-card-arca.is-sheet-open .arca-wizard-card p {
    max-width: 760px;
    font-size: .72rem;
}

.integration-card-arca.is-sheet-open .arca-tutorial {
    gap: 12px;
    margin-top: 6px;
}

.integration-card-arca.is-sheet-open .arca-tutorial > div {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 2px 0;
}

.integration-card-arca.is-sheet-open .arca-tutorial > div > span {
    width: 32px;
    height: 32px;
}

.integration-card-arca.is-sheet-open .arca-tutorial p {
    font-size: .72rem;
}

.integration-card-arca.is-sheet-open .arca-tutorial small {
    margin-top: 3px;
    font-size: .66rem;
}

.integration-card-arca.is-sheet-open .arca-upload-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
}

.integration-card-arca.is-sheet-open .arca-upload-box label {
    min-width: 0;
}

.integration-card-arca.is-sheet-open .arca-upload-box .btn {
    min-height: 42px;
    white-space: nowrap;
}

/* Configuración avanzada: simple, vertical y legible. */
.arca-advanced-config {
    margin-top: 22px !important;
    overflow: hidden;
    border-radius: 16px;
}

.arca-advanced-config > summary {
    min-height: 66px !important;
    padding: 14px 16px !important;
}

.arca-advanced-config > summary > span {
    grid-template-columns: 26px minmax(0, 1fr) !important;
    gap: 2px 10px !important;
}

.arca-advanced-config > summary > span > iconify-icon {
    grid-row: 1 / 3;
    font-size: 22px;
}

.arca-advanced-config > summary b {
    font-size: .76rem;
}

.arca-advanced-config > summary small {
    grid-column: 2;
    font-size: .62rem;
    line-height: 1.45;
}

.arca-advanced-body {
    padding: 0 !important;
    border-top: 1px solid var(--biz-border);
}

.arca-advanced-intro {
    display: flex;
    gap: 12px;
    padding: 18px 18px 14px;
    align-items: flex-start;
}

.arca-advanced-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 20px;
}

.arca-advanced-intro strong {
    display: block;
    margin-top: 1px;
    font-size: .8rem;
}

.arca-advanced-intro p {
    max-width: 720px;
    margin: 4px 0 0;
    color: var(--biz-muted);
    font-size: .66rem;
    line-height: 1.55;
}

.arca-advanced-form.admin-form {
    display: flex !important;
    width: min(100%, 760px);
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 18px 22px;
    flex-direction: column;
    gap: 16px;
}

.arca-advanced-form.admin-form > * {
    width: 100%;
    min-width: 0;
}

.arca-advanced-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.arca-advanced-field > span {
    color: var(--bs-body-color);
    font-size: .66rem;
    font-weight: 750;
}

.arca-advanced-field > span small {
    margin-left: 4px;
    color: var(--biz-muted);
    font-size: .58rem;
    font-weight: 600;
}

.arca-file-field {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface-soft);
}

.arca-file-field-icon {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1;
    place-items: center;
    border-radius: 12px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: 20px;
}

.arca-file-field-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.arca-file-field-copy b {
    font-size: .7rem;
}

.arca-file-field-copy small {
    color: var(--biz-muted);
    font-size: .6rem;
    line-height: 1.4;
}

.arca-file-field > input[type="file"] {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
}

.arca-advanced-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.arca-advanced-note {
    margin: 0;
}

.arca-advanced-footer {
    display: flex;
    width: 100%;
    margin-top: 2px;
    padding-top: 16px;
    justify-content: flex-end;
    border-top: 1px solid var(--biz-border);
}

.arca-advanced-footer .btn {
    min-height: 44px;
}

@media (max-width: 720px) {
    .integration-grid-v2 > .integration-card-v2.is-sheet-open {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header {
        min-height: 76px;
        padding: .85rem 1rem;
    }

    .integration-grid-v2 > .integration-card-v2.is-sheet-open > :not(.integration-card-header),
    .integration-card-arca.is-sheet-open .arca-onboarding,
    .integration-card-arca.is-sheet-open .arca-advanced-config,
    .integration-card-arca.is-sheet-open .arca-connected-summary,
    .integration-card-arca.is-sheet-open .arca-status-facts,
    .integration-card-arca.is-sheet-open .arca-renewal-callout,
    .integration-card-arca.is-sheet-open .arca-connect-entry {
        width: calc(100% - 2rem);
    }

    .integration-card-arca.is-sheet-open .arca-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .integration-card-arca.is-sheet-open .arca-upload-box {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .integration-card-arca.is-sheet-open .arca-upload-box .btn {
        width: 100%;
    }

    .arca-advanced-intro {
        padding: 16px;
    }

    .arca-advanced-form.admin-form {
        padding: 12px 16px 18px;
    }

    .arca-advanced-dates {
        grid-template-columns: 1fr;
    }

    .arca-advanced-footer .btn {
        width: 100%;
    }
}

/* Bizfera v0.17.2 · guía de alta de punto de venta ARCA */
.arca-pos-guide{display:grid;gap:16px;margin-top:14px;padding:18px;border:1px solid var(--biz-border,var(--border-color,#e7e9ed));border-radius:16px;background:var(--biz-surface-soft,#f8faf9)}
.arca-pos-guide-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:flex-start}.arca-pos-guide-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:rgba(18,168,117,.1);color:var(--biz-primary,#12a875);font-size:22px}.arca-pos-guide-head h4{margin:2px 0 4px;font-size:.9rem}.arca-pos-guide-head p{margin:0!important;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.68rem!important}
.arca-pos-steps{display:grid;gap:0;border:1px solid var(--biz-border,var(--border-color,#e7e9ed));border-radius:14px;overflow:hidden;background:var(--biz-surface,#fff)}.arca-pos-steps>div{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:13px 14px;border-bottom:1px solid var(--biz-border,var(--border-color,#e7e9ed))}.arca-pos-steps>div:last-child{border-bottom:0}.arca-pos-steps>div>span{display:grid;width:30px;height:30px;place-items:center;border-radius:10px;background:var(--biz-primary-soft,rgba(18,168,117,.1));color:var(--biz-primary,#12a875);font-size:.64rem;font-weight:850}.arca-pos-steps p{display:flex;flex-direction:column;gap:3px;margin:0!important;font-size:.69rem!important}.arca-pos-steps small{color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.64rem;line-height:1.5}.arca-pos-guide-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.arca-help-link{display:inline-flex;align-items:center;gap:5px;color:var(--biz-primary,#12a875);font-size:.65rem;font-weight:750;text-decoration:none}.arca-help-link:hover{text-decoration:underline}.arca-pos-recheck{margin-top:12px}.arca-pos-recheck .btn{min-height:42px}
@media(max-width:700px){.arca-pos-guide{padding:14px}.arca-pos-guide-head{grid-template-columns:36px minmax(0,1fr)}.arca-pos-guide-icon{width:36px;height:36px;font-size:19px}.arca-pos-steps>div{grid-template-columns:30px minmax(0,1fr);padding:12px}.arca-pos-guide-actions{align-items:stretch;flex-direction:column}.arca-pos-guide-actions .btn,.arca-pos-recheck .btn{width:100%}.arca-help-link{justify-content:center}}

/* Bizfera v0.17.5 · diagnóstico preciso de puntos de venta ARCA/WSFE */
.arca-pos-after-create{display:grid;gap:14px;margin-top:16px;padding:18px;border:1px solid var(--biz-border,var(--border-color,#e7e9ed));border-radius:16px;background:var(--biz-surface,#fff)}
.arca-pos-after-create-copy h4{margin:3px 0 5px;font-size:.92rem}.arca-pos-after-create-copy p{margin:0!important;max-width:820px;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.68rem!important;line-height:1.55}
.arca-pos-last-check{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:7px 10px;border-radius:10px;background:var(--biz-surface-soft,#f6f8f8);color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.64rem}.arca-pos-last-check strong{margin-left:4px;color:var(--biz-text,#1d2939)}
.arca-pos-manual-form{display:grid;grid-template-columns:minmax(220px,360px) auto;gap:12px;align-items:end}.arca-pos-manual-form label{display:grid;gap:6px;margin:0}.arca-pos-manual-form label>span{font-size:.66rem;font-weight:800;color:var(--biz-text,#1d2939)}.arca-pos-manual-form small{color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.61rem;line-height:1.45}.arca-pos-manual-form .btn{min-height:42px;white-space:nowrap}
.arca-pos-recheck-divider{display:flex;align-items:center;gap:10px;color:var(--biz-text-muted,var(--text-muted,#98a2b3));font-size:.61rem}.arca-pos-recheck-divider:before,.arca-pos-recheck-divider:after{content:"";height:1px;flex:1;background:var(--biz-border,var(--border-color,#e7e9ed))}.arca-pos-recheck-divider span{padding:0 2px}
.arca-pos-after-create .arca-pos-recheck{margin-top:0}.arca-pos-after-create .arca-pos-recheck .btn{min-height:40px}
@media(max-width:700px){.arca-pos-after-create{padding:14px}.arca-pos-manual-form{grid-template-columns:1fr}.arca-pos-manual-form .btn,.arca-pos-after-create .arca-pos-recheck .btn{width:100%}}

/* Bizfera v0.17.6 · ARCA: reintentos seguros y certificado persistente */
.arca-keep-certificate{margin:12px 0!important;background:rgba(18,168,117,.07)!important;border-color:rgba(18,168,117,.18)!important;color:var(--biz-text,#17212b)!important}.arca-keep-certificate strong{color:var(--biz-primary,#12a875)}.arca-authorization-guide{margin:12px 0;padding:14px 16px;border:1px solid var(--biz-border,var(--border-color,#e4e9e7));border-radius:14px;background:var(--biz-surface-soft,#f8faf9)}.arca-authorization-guide>strong{display:block;margin-bottom:8px;font-size:.72rem}.arca-authorization-guide ol{display:grid;gap:6px;margin:0 0 8px;padding-left:20px;color:var(--biz-text,#17212b);font-size:.66rem;line-height:1.5}.arca-authorization-guide small{display:block;color:var(--biz-text-muted,var(--text-muted,#667085));font-size:.61rem;line-height:1.5}.arca-regenerate.has-certificate>div{align-items:flex-end}.arca-regenerate.has-certificate>div>div{flex:1;min-width:0}.arca-regenerate-confirm{display:flex;align-items:center;gap:8px;margin-top:9px;color:var(--biz-text,#17212b);font-size:.62rem;font-weight:650}.arca-regenerate-confirm input{width:16px;height:16px;accent-color:var(--biz-primary,#12a875)}
@media(max-width:760px){.arca-regenerate.has-certificate>div{align-items:stretch}.arca-authorization-guide{padding:12px}}

/* Bizfera v0.17.8 · diagnóstico ARCA sin inducir certificados/relaciones duplicadas */
.arca-safe-diagnostic{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0;padding:12px 14px;border:1px solid var(--border-color,#dfe7e4);border-radius:14px;background:rgba(248,250,249,.9);font-size:12px;color:var(--text-muted,#64706d)}
.arca-safe-diagnostic span{display:inline-flex;gap:5px;align-items:center}.arca-safe-diagnostic b{color:var(--text-color,#17201e)}
@media(max-width:700px){.arca-safe-diagnostic{display:grid;grid-template-columns:1fr;gap:7px}}

/* ARCA v0.17.10 — diagnóstico técnico visible sólo a administración de plataforma */
.arca-internal-diagnostic{margin:12px 0 14px;border:1px solid var(--border-color,#dfe7e4);border-radius:14px;background:var(--biz-surface,#fff);overflow:hidden}
.arca-internal-diagnostic summary{display:flex;align-items:center;gap:8px;padding:11px 14px;cursor:pointer;font-size:.69rem;font-weight:800;color:var(--text-color,#17201e);background:var(--biz-surface-soft,#f8faf9)}
.arca-internal-diagnostic summary iconify-icon{font-size:17px;color:var(--biz-primary,#12a875)}
.arca-internal-diagnostic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border-color,#e7ecea);border-top:1px solid var(--border-color,#e7ecea)}
.arca-internal-diagnostic-grid>span{display:flex;min-width:0;flex-direction:column;gap:4px;padding:11px 13px;background:var(--biz-surface,#fff)}
.arca-internal-diagnostic-grid>span.is-wide{grid-column:1/-1}
.arca-internal-diagnostic-grid small{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--biz-muted)}
.arca-internal-diagnostic-grid b{font-size:.67rem;line-height:1.45;overflow-wrap:anywhere;color:var(--text-color,#17201e)}
@media(max-width:900px){.arca-internal-diagnostic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.arca-internal-diagnostic-grid{grid-template-columns:1fr}.arca-internal-diagnostic-grid>span.is-wide{grid-column:auto}}

/* =========================================================
   BIZFERA v0.17.29 · DASHBOARD EJECUTIVO MÁS LEGIBLE
========================================================= */
.dashboard-heading { margin-bottom: 1.25rem; }
.dashboard-heading h1 { font-size: clamp(1.55rem, 2vw, 1.9rem) !important; }
.dashboard-heading p { margin-top: .15rem; font-size: .84rem !important; }
.dashboard-heading .eyebrow { font-size: .72rem; }

.executive-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.executive-kpi {
    min-height: 170px;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
}
.executive-kpi-head { font-size: .78rem; }
.executive-kpi-head iconify-icon { font-size: 1.28rem; }
.executive-kpi > strong {
    margin: .7rem 0 .8rem;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}
.executive-kpi footer { align-items: center; font-size: .66rem; line-height: 1.35; }

.dashboard-command-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
a.dashboard-command-card { color: var(--bs-body-color); text-decoration: none; }
.dashboard-command-card {
    min-height: 118px;
    padding: 1rem 1.05rem;
    grid-template-columns: 44px minmax(0,1fr);
    gap: .8rem;
    border-radius: 16px;
    box-shadow: var(--biz-shadow-sm);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
a.dashboard-command-card:hover { color: var(--bs-body-color); border-color: color-mix(in srgb,var(--biz-primary) 32%,var(--biz-border)); transform: translateY(-2px); }
.dashboard-command-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 1.2rem; }
.dashboard-command-card small, .dashboard-command-card span { font-size: .66rem; line-height: 1.4; }
.dashboard-command-card strong { margin: .18rem 0; font-size: 1.05rem; }

.executive-dashboard-grid { gap: 1rem; }
.executive-dashboard-grid > .panel-card { padding: 1.25rem; border-radius: 18px; }
.dashboard-panel-head { margin-bottom: 1rem; }
.dashboard-panel-head h2 { margin-top: .15rem; font-size: 1rem; }
.dashboard-panel-head > a { font-size: .68rem; }
.dashboard-panel-total small { font-size: .62rem; }
.dashboard-panel-total strong { font-size: .9rem; }
.dashboard-period { padding: .3rem .5rem; font-size: .62rem; }
.dashboard-panel-head .panel-kicker { font-size: .62rem; }

/* Orden visual: primero panorama + prioridades, luego análisis, rankings y operación. */
.dashboard-sales-trend-card { order: 1; grid-column: span 8; }
.dashboard-attention-card { order: 2; grid-column: span 4; }
.dashboard-flow-card { order: 3; grid-column: span 6 !important; }
.dashboard-payment-card { order: 4; grid-column: span 6 !important; }
.dashboard-products-card { order: 5; grid-column: span 4; }
.dashboard-clients-card { order: 6; grid-column: span 4; }
.dashboard-stock-critical-card { order: 7; grid-column: span 4; }
.dashboard-sellers-card { order: 8; grid-column: span 6; }
.dashboard-branches-card { order: 9; grid-column: span 6; }
.dashboard-accounts-card { order: 10; grid-column: span 12; }
.dashboard-operations-card { order: 11; grid-column: span 8; }
.dashboard-activity-card { order: 12; grid-column: span 4; }

.dashboard-line-chart { height: 300px; }
.dashboard-grouped-chart { height: 260px; }
.dashboard-svg-y, .dashboard-svg-x { font-size: 11px; }
.dashboard-group > small { font-size: .62rem; }
.dashboard-chart-legend { margin-top: .8rem; font-size: .65rem; }
.dashboard-donut-wrap { grid-template-columns: 175px minmax(0,1fr); min-height: 245px; gap: 1.25rem; }
.dashboard-donut { width: 170px; }
.dashboard-donut strong { font-size: .98rem; }
.dashboard-donut small { font-size: .58rem; }
.dashboard-donut-legend { gap: .58rem; }
.dashboard-donut-legend strong { font-size: .68rem; }
.dashboard-donut-legend small { font-size: .58rem; }

.dashboard-ranking-row { padding: .72rem 0; grid-template-columns: 30px minmax(0,1fr) auto; gap: .7rem; }
.dashboard-rank { width: 29px; height: 29px; border-radius: 9px; font-size: .62rem; }
.dashboard-ranking-copy strong { font-size: .7rem; }
.dashboard-ranking-copy small { margin-top: .11rem; font-size: .59rem; }
.dashboard-ranking-copy > i { height: 4px; margin-top: .42rem; }
.dashboard-ranking-value strong { font-size: .68rem; }
.dashboard-ranking-value small { font-size: .56rem; }

.dashboard-horizontal-bars { gap: .82rem; }
.dashboard-horizontal-bars > div { grid-template-columns: minmax(130px,1fr) minmax(120px,1.25fr) auto; gap: .7rem; }
.dashboard-horizontal-bars > div > div strong { font-size: .69rem; }
.dashboard-horizontal-bars > div > div span { font-size: .57rem; }
.dashboard-horizontal-bars > div > i { height: 8px; }
.dashboard-horizontal-bars > div > strong { font-size: .66rem; }

.dashboard-attention-summary {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .65rem;
    margin-bottom: .85rem;
}
.dashboard-attention-summary > a {
    display: block;
    min-width: 0;
    padding: .8rem;
    border-radius: 12px;
    background: var(--biz-surface-soft);
    color: var(--bs-body-color);
    text-decoration: none;
}
.dashboard-attention-summary span, .dashboard-attention-summary strong, .dashboard-attention-summary small { display: block; }
.dashboard-attention-summary span { color: var(--biz-muted); font-size: .58rem; }
.dashboard-attention-summary strong { margin: .12rem 0; font-size: 1rem; }
.dashboard-attention-summary small { overflow: hidden; color: var(--biz-muted); font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-alert-count { width: 31px; height: 31px; font-size: .67rem; }
.dashboard-alert-list { gap: .55rem; }
.dashboard-alert { padding: .72rem; grid-template-columns: 38px minmax(0,1fr) auto; gap: .65rem; border-radius: 12px; }
.dashboard-alert > span { width: 38px; height: 38px; font-size: 1.05rem; }
.dashboard-alert > div strong { font-size: .68rem; }
.dashboard-alert > div small { font-size: .58rem; }
.dashboard-alert > b { font-size: .58rem; }

.dashboard-mini-table-head, .dashboard-mini-table > a { grid-template-columns: minmax(0,1fr) 82px 82px; }
.dashboard-mini-table-head { padding-bottom: .55rem; font-size: .58rem; }
.dashboard-mini-table > a { padding: .65rem .15rem; }
.dashboard-mini-table > a strong { font-size: .68rem; }
.dashboard-mini-table > a small { font-size: .56rem; }
.dashboard-mini-table > a > b { font-size: .66rem; }

.dashboard-debt-columns, .dashboard-operations-columns { gap: 1rem; }
.dashboard-debt-columns header, .dashboard-operations-columns header { min-height: 38px; }
.dashboard-debt-columns header strong, .dashboard-debt-columns header span,
.dashboard-operations-columns header strong { font-size: .68rem; }
.dashboard-operations-columns header a { font-size: .6rem; }
.dashboard-debt-columns > div > a, .dashboard-operations-columns > div > a { padding: .67rem .05rem; }
.dashboard-debt-columns > div > a span, .dashboard-debt-columns > div > a strong { font-size: .64rem; }
.dashboard-operations-columns > div > a strong { font-size: .66rem; }
.dashboard-operations-columns > div > a small { font-size: .56rem; }
.dashboard-operations-columns > div > a > b { font-size: .64rem; }

.dashboard-timeline-item { padding: .65rem 0; grid-template-columns: 38px minmax(0,1fr) auto; gap: .65rem; }
.dashboard-timeline-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
.dashboard-timeline-item > div:nth-child(2) strong { font-size: .67rem; }
.dashboard-timeline-item > div:nth-child(2) small { font-size: .56rem; }
.dashboard-timeline-side strong { font-size: .63rem; }
.dashboard-timeline-side small { font-size: .54rem; }
.dashboard-empty strong { font-size: .7rem; }
.dashboard-empty span { font-size: .6rem; }

@media (max-width: 1450px) {
    .executive-kpis, .dashboard-command-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1180px) {
    .dashboard-sales-trend-card, .dashboard-attention-card,
    .dashboard-flow-card, .dashboard-payment-card,
    .dashboard-products-card, .dashboard-clients-card, .dashboard-stock-critical-card,
    .dashboard-sellers-card, .dashboard-branches-card,
    .dashboard-accounts-card, .dashboard-operations-card, .dashboard-activity-card { grid-column: span 12 !important; }
}
@media (max-width: 760px) {
    .dashboard-heading h1 { font-size: 1.45rem !important; }
    .dashboard-heading-actions .page-date { display: none; }
    .executive-kpis, .dashboard-command-row { grid-template-columns: 1fr; }
    .executive-kpi { min-height: 150px; }
    .dashboard-command-card { min-height: 106px; }
    .executive-dashboard-grid > .panel-card { padding: 1rem; }
    .dashboard-line-chart { height: 235px; }
    .dashboard-grouped-chart { height: 215px; }
    .dashboard-attention-summary { grid-template-columns: 1fr 1fr; }
    .dashboard-horizontal-bars > div { grid-template-columns: minmax(105px,1fr) minmax(70px,1fr) auto; }
}

/* v0.17.46 · Verificación obligatoria de correo */
.public-page-verificar-email {
    background: radial-gradient(circle at 18% 10%, rgba(10,163,118,.11), transparent 34%), #f5f7f6;
}
.public-page-verificar-email .public-layout {
    width: 100%;
    max-width: none;
    margin: 0;
}
.email-verification-shell {
    display: grid;
    min-height: 100vh;
    padding: 34px 20px 60px;
    justify-items: center;
    align-content: start;
}
.email-verification-card {
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid #dfe7e3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(21,55,44,.10);
    text-align: center;
}
.email-verification-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 17px;
    background: #e9f8f3;
    color: #0aa376;
}
.email-verification-icon iconify-icon { font-size: 29px; }
.email-verification-card h1 {
    margin: .4rem 0 .55rem;
    color: #18231f;
    font-size: 1.7rem;
    letter-spacing: -.04em;
}
.email-verification-card > p {
    margin: 0 auto;
    max-width: 420px;
    color: #64756e;
    font-size: .78rem;
    line-height: 1.65;
}
.email-verification-card > p strong { color: #263a33; }
.email-code-inputs {
    display: grid;
    max-width: 330px;
    margin: 25px auto 20px;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.email-code-inputs input {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border: 1px solid #cfdbd6;
    border-radius: 14px;
    outline: 0;
    background: #fbfcfc;
    color: #17231f;
    font-family: inherit;
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.email-code-inputs input:focus {
    border-color: #0aa376;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10,163,118,.12);
}
.email-verification-submit {
    width: min(330px, 100%);
    min-height: 46px;
}
.email-verification-status {
    max-width: 420px;
    margin: 18px auto 0;
    padding: 11px 13px;
    border-radius: 11px;
    background: #f3f6f5;
    color: #60716a;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.45;
}
.email-verification-status.is-success { background: #eaf8f3; color: #087556; }
.email-verification-status.is-error { background: #fff0f2; color: #9f1f32; }
.email-verification-resend {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #798983;
    font-size: .68rem;
}
.email-verification-resend button {
    padding: 0;
    border: 0;
    background: none;
    color: #0a936c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.email-verification-resend button:disabled { cursor: default; opacity: .6; }
.email-verification-card > small {
    display: block;
    margin-top: 8px;
    color: #93a09b;
    font-size: .62rem;
}
.email-verification-exit {
    display: inline-block;
    margin-top: 22px;
    color: #65766f;
    font-size: .66rem;
    font-weight: 750;
}
@media (max-width: 520px) {
    .email-verification-shell { padding: 24px 14px 40px; }
    .email-verification-card { padding: 27px 18px; border-radius: 18px; }
    .email-code-inputs { max-width: 292px; gap: 9px; }
    .email-code-inputs input { border-radius: 12px; font-size: 1.4rem; }
}

/* =========================================================
   Bizfera v0.17.47 · Refinamiento operativo y onboarding
========================================================= */

/* Tabs reutilizables */
.module-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: .3rem;
    gap: .25rem;
    overflow-x: auto;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
    scrollbar-width: none;
}
.module-tabs::-webkit-scrollbar { display: none; }
.module-tab {
    display: inline-flex;
    min-height: 40px;
    padding: .55rem .85rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--biz-muted);
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
}
.module-tab iconify-icon { font-size: 1rem; }
.module-tab:hover { background: var(--biz-surface-soft); color: var(--bs-body-color); }
.module-tab.is-active { background: var(--biz-primary-soft); color: var(--biz-primary); }

/* Caja: una vista a la vez */
.cash-section-head {
    display: flex;
    margin: .1rem 0 .8rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.cash-section-head h2 { margin: .12rem 0 .18rem; font-size: 1rem; }
.cash-section-head p { margin: 0; color: var(--biz-muted); font-size: .66rem; }
.cash-tabs { margin-bottom: 1.15rem; }

/* Checklist inicial */
.topbar-onboarding-button {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    padding: .32rem .58rem .32rem .4rem;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    flex: 0 0 auto;
}
.topbar-onboarding-button:hover { border-color: rgba(10,163,118,.4); background: var(--biz-primary-soft); }
.topbar-onboarding-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}
.topbar-onboarding-icon iconify-icon { font-size: 1rem; }
.topbar-onboarding-copy { display: grid; line-height: 1.1; text-align: left; }
.topbar-onboarding-copy small { color: var(--biz-muted); font-size: .53rem; font-weight: 650; }
.topbar-onboarding-copy strong { margin-top: .1rem; font-size: .68rem; }
.topbar-onboarding-button > i {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--biz-surface);
    border-radius: 50%;
    background: #ef5d67;
}
.onboarding-panel { position: fixed; z-index: 2100; inset: 0; pointer-events: none; visibility: hidden; }
.onboarding-panel.is-open { pointer-events: auto; visibility: visible; }
.onboarding-backdrop { position: absolute; inset: 0; background: rgba(4,18,14,.38); opacity: 0; backdrop-filter: blur(3px); transition: opacity .2s ease; }
.onboarding-panel.is-open .onboarding-backdrop { opacity: 1; }
.onboarding-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(470px, 100%);
    height: 100%;
    padding: 1.25rem;
    overflow-y: auto;
    flex-direction: column;
    background: var(--biz-surface);
    box-shadow: -20px 0 55px rgba(0,0,0,.14);
    transform: translateX(102%);
    transition: transform .25s ease;
}
.onboarding-panel.is-open .onboarding-drawer { transform: translateX(0); }
.onboarding-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.onboarding-header h2 { margin: .15rem 0 .25rem; font-size: 1.25rem; }
.onboarding-header p { margin: 0; max-width: 330px; color: var(--biz-muted); font-size: .68rem; line-height: 1.55; }
.onboarding-progress-card { margin: 1.25rem 0 1rem; padding: 1rem; border: 1px solid rgba(10,163,118,.2); border-radius: 16px; background: var(--biz-primary-soft); }
.onboarding-progress-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.onboarding-progress-card strong { color: var(--biz-primary); font-size: 1.45rem; }
.onboarding-progress-card span { color: var(--biz-muted); font-size: .62rem; }
.onboarding-progress-track { height: 7px; margin-top: .75rem; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--biz-border) 75%, transparent); }
.onboarding-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--biz-primary); }
.onboarding-task-list { display: grid; gap: .55rem; }
.onboarding-task {
    display: grid;
    min-height: 76px;
    padding: .75rem;
    align-items: center;
    grid-template-columns: 30px 38px minmax(0,1fr) 22px;
    gap: .6rem;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
}
.onboarding-task:hover { border-color: rgba(10,163,118,.35); background: var(--biz-surface-soft); color: var(--bs-body-color); }
.onboarding-task-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: .65rem; font-weight: 800; }
.onboarding-task-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.onboarding-task-copy { min-width: 0; }
.onboarding-task-copy strong, .onboarding-task-copy small { display: block; }
.onboarding-task-copy strong { font-size: .7rem; }
.onboarding-task-copy small { margin-top: .17rem; color: var(--biz-muted); font-size: .58rem; line-height: 1.4; }
.onboarding-task-arrow { color: var(--biz-muted); }
.onboarding-task.is-done { opacity: .68; }
.onboarding-task.is-done .onboarding-task-number { background: var(--biz-primary); color: #fff; }
.onboarding-complete { display: flex; margin-top: 1rem; padding: .9rem; align-items: center; gap: .7rem; border-radius: 14px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.onboarding-complete > iconify-icon { font-size: 1.5rem; }
.onboarding-complete strong, .onboarding-complete span { display: block; }
.onboarding-complete strong { font-size: .7rem; }
.onboarding-complete span { margin-top: .12rem; color: var(--biz-muted); font-size: .58rem; }

/* Cliente: sheet ordenado por bloques */
.client-sheet { width: min(1120px, calc(100% - 1rem)); }
.client-sheet-header { padding-bottom: .85rem; }
.client-sheet-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; padding-top: .85rem; }
.client-form-section { min-width: 0; padding: .9rem; border: 1px solid var(--biz-border); border-radius: 14px; background: var(--biz-surface); }
.client-form-section:first-of-type,
.client-form-section.client-form-commercial { grid-column: 1 / -1; }
.client-form-section-head { display: flex; margin-bottom: .75rem; align-items: center; gap: .6rem; }
.client-form-section-head > span { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.client-form-section-head strong, .client-form-section-head small { display: block; }
.client-form-section-head strong { font-size: .7rem; }
.client-form-section-head small { margin-top: .1rem; color: var(--biz-muted); font-size: .55rem; }
.client-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.client-form-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.client-field-wide { grid-column: 1 / -1; }
.client-sheet-footer { grid-column: 1 / -1; }
.client-sheet-form .admin-check { min-height: 62px; }

/* CRM: oportunidades como selector visual */
.crm-opportunity-strip-section { margin-bottom: .9rem; }
.crm-section-heading { display: flex; margin-bottom: .55rem; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.crm-section-heading h2 { margin: .12rem 0 .12rem; font-size: .95rem; }
.crm-section-heading p { margin: 0; color: var(--biz-muted); font-size: .6rem; }
.crm-opportunity-strip { display: flex; overflow-x: auto; gap: .7rem; padding: .1rem .05rem .45rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.crm-opportunity-filter {
    position: relative;
    display: flex;
    flex: 0 0 235px;
    min-height: 132px;
    padding: .85rem;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: .32rem;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    text-align: left;
    scroll-snap-align: start;
    cursor: pointer;
}
button.crm-opportunity-filter { appearance: none; }
.crm-opportunity-filter:hover { border-color: color-mix(in srgb,var(--biz-primary) 38%,var(--biz-border)); color: var(--bs-body-color); }
.crm-opportunity-filter.is-active { border-color: var(--biz-primary); background: var(--biz-primary-soft); }
.crm-opportunity-filter > strong { margin-top: .1rem; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.crm-opportunity-filter > span:not(.crm-opportunity-filter-icon) { overflow: hidden; color: var(--biz-muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.crm-opportunity-filter > small { overflow: hidden; color: var(--biz-muted); font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.crm-opportunity-filter footer { display: flex; margin-top: auto; padding-top: .3rem; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--biz-border); }
.crm-opportunity-filter footer b { font-size: .6rem; }
.crm-opportunity-filter footer em { color: var(--biz-primary); font-size: .56rem; font-style: normal; font-weight: 800; }
.crm-opportunity-filter-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.crm-opportunity-filter-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: .25rem; border-radius: 10px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.crm-opportunity-empty { display: grid; min-width: 250px; min-height: 132px; place-items: center; padding: .85rem; border: 1px dashed var(--biz-border-strong); border-radius: 14px; color: var(--biz-muted); text-align: center; }
.crm-opportunity-empty iconify-icon { font-size: 1.25rem; color: var(--biz-primary); }
.crm-opportunity-empty strong { color: var(--bs-body-color); font-size: .68rem; }
.crm-opportunity-empty span { font-size: .56rem; }
.crm-activity-panel { min-height: 330px; }
.crm-row-overdue { background: color-mix(in srgb,#fff0f1 55%,transparent); }
.crm-sheet { width: min(980px, calc(100% - 1rem)); }
.crm-opportunity-sheet { width: min(1080px, calc(100% - 1rem)); }

/* Tesorería: dashboard y detalle */
.treasury-tabs { margin-bottom: 1rem; }
.treasury-dashboard-hero {
    display: grid;
    margin-bottom: .9rem;
    padding: 1rem;
    grid-template-columns: minmax(200px,.7fr) minmax(0,1.3fr);
    gap: .8rem;
    border: 1px solid var(--biz-border);
    border-radius: 16px;
    background: var(--biz-surface);
    box-shadow: var(--biz-shadow-sm);
}
.treasury-balance-card { display: flex; min-height: 140px; padding: 1rem; flex-direction: column; justify-content: center; border-radius: 14px; background: var(--biz-sidebar); color: #fff; }
.treasury-balance-card span, .treasury-balance-card small { color: rgba(255,255,255,.65); }
.treasury-balance-card span { font-size: .62rem; font-weight: 700; }
.treasury-balance-card strong { margin: .35rem 0; font-size: clamp(1.5rem,3vw,2.1rem); }
.treasury-balance-card small { font-size: .54rem; }
.treasury-dashboard-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.treasury-dashboard-kpi { display: flex; min-width: 0; padding: .9rem; flex-direction: column; justify-content: center; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface-soft); }
.treasury-dashboard-kpi span, .treasury-dashboard-kpi small { color: var(--biz-muted); }
.treasury-dashboard-kpi span { font-size: .56rem; font-weight: 700; }
.treasury-dashboard-kpi strong { margin: .28rem 0; font-size: 1rem; }
.treasury-dashboard-kpi small { font-size: .5rem; line-height: 1.35; }
.treasury-dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.treasury-dashboard-panel { min-height: 280px; }
.treasury-summary-list { display: grid; }
.treasury-summary-row { display: flex; padding: .72rem 0; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--biz-border); }
.treasury-summary-row:first-child { border-top: 0; }
.treasury-summary-row strong { font-size: .65rem; }
.treasury-summary-row span { color: var(--biz-muted); font-size: .58rem; }
.treasury-detail-tab .treasury-filters { margin-bottom: .8rem; }

/* Movimiento stock */
.stock-movement-types label span {
    display: flex !important;
    min-height: 42px;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Compra full screen */
.purchase-sheet {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.purchase-sheet[aria-hidden="true"] {
    transform: translateY(calc(100% + 48px)) !important;
    visibility: hidden;
    pointer-events: none !important;
}
.purchase-sheet.open[aria-hidden="false"],
.purchase-sheet.show[aria-hidden="false"] {
    transform: translateY(0) !important;
    visibility: visible;
    pointer-events: auto !important;
}
.purchase-sheet .bottom-sheet-handle { display: none; }
.purchase-sheet .bottom-sheet-header { min-height: 86px; padding: 1rem 1.5rem; align-items: center; }
.purchase-sheet .bottom-sheet-body { flex: 1 1 auto; min-height: 0; }
.purchase-sheet .purchase-builder { height: calc(100vh - 86px); }
.purchase-sheet .purchase-catalog,
.purchase-sheet .purchase-cart { height: 100%; }

/* Reportes */
.report-type-card {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
.report-type-card:hover,
.report-type-card.is-active {
    border-color: var(--biz-primary) !important;
    background: var(--biz-primary-soft) !important;
    box-shadow: none !important;
    transform: none !important;
}
.report-result-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.report-result-actions .table-search { min-width: min(380px,100%); }

/* Exportaciones */
.export-layout { display: grid; margin-bottom: .9rem; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: .9rem; align-items: start; }
.export-builder-card { padding: 1.1rem; }
.export-card-heading { display: flex; margin-bottom: 1rem; align-items: center; gap: .75rem; }
.export-card-heading h2, .export-guide-card h2, .export-all-card h2 { margin: .12rem 0 .18rem; font-size: 1rem; }
.export-card-heading p, .export-guide-card > p, .export-all-card p { margin: 0; color: var(--biz-muted); font-size: .62rem; line-height: 1.55; }
.export-card-icon, .export-all-icon { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.export-card-icon iconify-icon, .export-all-icon iconify-icon { font-size: 1.25rem; }
.export-main-fields { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(180px,.6fr); gap: .7rem; }
.export-main-fields label, .export-filter-grid label { display: grid; gap: .3rem; }
.export-main-fields label > span, .export-filter-grid label > span { color: var(--biz-muted); font-size: .6rem; font-weight: 700; }
.export-advanced { margin-top: .8rem; border: 1px solid var(--biz-border); border-radius: 13px; overflow: hidden; }
.export-advanced summary { display: flex; min-height: 48px; padding: .7rem .8rem; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; list-style: none; }
.export-advanced summary::-webkit-details-marker { display: none; }
.export-advanced summary > span { display: flex; align-items: center; gap: .45rem; }
.export-advanced summary b { font-size: .66rem; }
.export-advanced summary small { color: var(--biz-muted); font-size: .56rem; }
.export-advanced[open] summary { border-bottom: 1px solid var(--biz-border); background: var(--biz-surface-soft); }
.export-advanced[open] summary > iconify-icon { transform: rotate(180deg); }
.export-filter-grid { display: grid; padding: .8rem; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.export-safety-note { display: flex; margin-top: .8rem; padding: .75rem .8rem; align-items: center; gap: .6rem; border-radius: 12px; background: var(--biz-primary-soft); color: var(--biz-primary); }
.export-safety-note > iconify-icon { font-size: 1.15rem; }
.export-safety-note strong, .export-safety-note small { display: block; }
.export-safety-note strong { font-size: .61rem; }
.export-safety-note small { margin-top: .1rem; color: var(--biz-muted); font-size: .53rem; }
.export-form-footer { display: flex; margin-top: .9rem; justify-content: flex-end; }
.export-guide-card { padding: 1.1rem; }
.export-guide-list { display: grid; margin-top: 1rem; gap: .55rem; }
.export-guide-list > div { display: grid; padding: .7rem 0; grid-template-columns: 38px minmax(0,1fr); gap: .55rem; border-top: 1px solid var(--biz-border); }
.export-guide-list > div:first-child { border-top: 0; }
.export-guide-list > div > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--biz-surface-soft); color: var(--biz-primary); }
.export-guide-list strong, .export-guide-list small { display: block; }
.export-guide-list strong { font-size: .64rem; }
.export-guide-list small { margin-top: .12rem; color: var(--biz-muted); font-size: .53rem; line-height: 1.45; }
.export-all-card { display: grid; padding: 1rem 1.1rem; align-items: center; grid-template-columns: 44px minmax(0,1fr) auto; gap: .8rem; }

/* Mi empresa: el selector de comprobantes queda solo */
.company-panel[data-company-panel="empresa"] .admin-form-row:has([name="arca_modalidad_a"]) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.company-panel[data-company-panel="empresa"] .admin-form-row:has([name="arca_modalidad_a"]) > label { grid-column: 1 / 2; }

@media (max-width: 1100px) {
    .topbar-onboarding-copy { display: none; }
    .topbar-onboarding-button { width: 42px; padding: .3rem; justify-content: center; }
    .export-layout { grid-template-columns: 1fr; }
    .export-guide-card { display: none; }
    .treasury-dashboard-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .client-sheet-form { grid-template-columns: 1fr; }
    .client-form-section:first-of-type, .client-form-section.client-form-commercial { grid-column: auto; }
    .client-form-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .treasury-dashboard-kpis { grid-template-columns: 1fr; }
    .treasury-dashboard-grid { grid-template-columns: 1fr; }
    .purchase-sheet .purchase-builder { height: calc(100vh - 78px); }
    .export-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 650px) {
    .cash-section-head { align-items: flex-start; flex-direction: column; }
    .module-tabs { width: 100%; }
    .module-tab { flex: 1 0 auto; }
    .onboarding-drawer { padding: 1rem; }
    .onboarding-task { grid-template-columns: 28px 34px minmax(0,1fr); }
    .onboarding-task-arrow { display: none; }
    .client-sheet { width: 100%; }
    .client-form-grid, .client-form-grid-3 { grid-template-columns: 1fr; }
    .client-field-wide { grid-column: auto; }
    .crm-opportunity-filter { flex-basis: min(78vw,245px); }
    .purchase-sheet .bottom-sheet-header { min-height: 76px; padding: .8rem 1rem; }
    .purchase-sheet .purchase-builder { height: calc(100vh - 76px); }
    .report-result-actions { width: 100%; justify-content: stretch; }
    .report-result-actions .table-search, .report-result-actions .btn { width: 100%; }
    .export-main-fields, .export-filter-grid { grid-template-columns: 1fr; }
    .export-all-card { grid-template-columns: 40px minmax(0,1fr); }
    .export-all-card form { grid-column: 1 / -1; }
    .export-all-card .btn { width: 100%; }
}
body.onboarding-open { overflow: hidden; }
.treasury-balance-card h2 { margin: .16rem 0 .2rem; color: #fff; font-size: .9rem; }
.treasury-balance-card p { margin: 0; color: rgba(255,255,255,.62); font-size: .56rem; }
.treasury-method-cards,
.treasury-type-summary { display: grid; }
.treasury-method-cards article,
.treasury-type-summary > div { display: flex; min-height: 54px; padding: .7rem 0; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--biz-border); }
.treasury-method-cards article:first-child,
.treasury-type-summary > div:first-child { border-top: 0; }
.treasury-method-cards span,
.treasury-type-summary span { font-size: .62rem; font-weight: 700; }
.treasury-method-cards span small,
.treasury-type-summary span small { display: block; margin-top: .12rem; color: var(--biz-muted); font-size: .51rem; font-weight: 500; }
.treasury-method-cards strong,
.treasury-type-summary strong { font-size: .64rem; white-space: nowrap; }
.treasury-recent-panel { margin-top: .9rem; }
/* El sheet de clientes usa su propia grilla, por encima del layout vertical genérico de sheets. */
.bottom-sheet .bottom-sheet-body.admin-form.client-sheet-form {
    display: grid !important;
    width: min(100%, 1040px);
    max-width: 1040px;
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-content: start;
    gap: .7rem;
}
@media (max-width: 900px) {
    .bottom-sheet .bottom-sheet-body.admin-form.client-sheet-form { grid-template-columns: 1fr; }
}

/* Bizfera v0.17.51 · Pago de compras, recorrido y administración de suscripciones */
.purchase-payment-sheet {
    width: min(1080px, calc(100% - 2rem));
    max-height: 92vh;
}
.purchase-payment-header { padding: 1rem 1.25rem 1.05rem; }
.purchase-payment-body {
    display: grid;
    grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr);
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    align-items: start;
}
.purchase-payment-summary {
    position: sticky;
    top: 0;
    display: grid;
    padding: 1.15rem;
    border: 1px solid var(--biz-border);
    border-radius: 18px;
    background: linear-gradient(160deg,var(--biz-primary-soft),var(--biz-surface) 52%);
}
.purchase-payment-summary-icon { display:grid; width:44px; height:44px; margin-bottom:.8rem; place-items:center; border-radius:13px; background:var(--biz-primary); color:#fff; }
.purchase-payment-summary-icon iconify-icon { font-size:1.2rem; }
.purchase-payment-summary h3 { margin:.25rem 0 .15rem; font-size:1.15rem; }
.purchase-payment-summary > p { margin:0; color:var(--biz-muted); font-size:.7rem; }
.purchase-payment-balance { display:grid; gap:.15rem; margin-top:1rem; padding-top:1rem; border-top:1px solid color-mix(in srgb,var(--biz-border) 85%,transparent); }
.purchase-payment-balance span { color:var(--biz-muted); font-size:.58rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.purchase-payment-balance strong { font-size:1.05rem; }
.purchase-payment-summary-note { display:flex; margin-top:1rem; padding:.75rem; align-items:flex-start; gap:.5rem; border-radius:12px; background:rgba(255,255,255,.72); color:var(--biz-muted); font-size:.6rem; line-height:1.5; }
.purchase-payment-summary-note iconify-icon { flex:0 0 auto; margin-top:.05rem; color:var(--biz-primary); font-size:.9rem; }
.purchase-payment-form { display:grid; gap:.8rem; min-width:0; }
.purchase-payment-section { padding:1rem; border:1px solid var(--biz-border); border-radius:16px; background:var(--biz-surface); }
.purchase-payment-section-head { display:flex; margin-bottom:.85rem; align-items:center; gap:.65rem; }
.purchase-payment-section-head > span { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; background:var(--biz-primary-soft); color:var(--biz-primary); }
.purchase-payment-section-head strong,.purchase-payment-section-head small { display:block; }
.purchase-payment-section-head strong { font-size:.72rem; }
.purchase-payment-section-head small { margin-top:.1rem; color:var(--biz-muted); font-size:.57rem; }
.purchase-payment-section > label,.purchase-payment-file { display:grid; gap:.3rem; margin-top:.65rem; }
.purchase-payment-section label > span { color:var(--biz-muted); font-size:.6rem; font-weight:700; }
.purchase-payment-file small { color:var(--biz-muted); font-size:.56rem; line-height:1.45; }
.purchase-payment-cash-option { display:flex; padding:.8rem .9rem; align-items:flex-start; gap:.65rem; border:1px solid rgba(18,168,117,.22); border-radius:14px; background:var(--biz-primary-soft); cursor:pointer; }
.purchase-payment-cash-option > input { margin-top:.25rem; accent-color:var(--biz-primary); }
.purchase-payment-cash-option > span { display:flex; align-items:center; gap:.6rem; }
.purchase-payment-cash-option > span > iconify-icon { color:var(--biz-primary); font-size:1rem; }
.purchase-payment-cash-option strong,.purchase-payment-cash-option small { display:block; }
.purchase-payment-cash-option strong { color:var(--biz-text); font-size:.65rem; }
.purchase-payment-cash-option small { margin-top:.12rem; color:var(--biz-muted); font-size:.56rem; }
.purchase-payment-actions { display:flex; justify-content:flex-end; gap:.55rem; padding-top:.2rem; }
.purchase-payment-form .checkout-validation { margin:0; }

.subscription-admin-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-bottom:.9rem; }
.subscription-admin-kpis article { display:grid; gap:.15rem; padding:1rem; }
.subscription-admin-kpis span { color:var(--biz-muted); font-size:.6rem; font-weight:700; }
.subscription-admin-kpis strong { font-size:1.35rem; }
.subscription-admin-kpis small { color:var(--biz-muted); font-size:.56rem; }
.subscription-admin-tabs { display:flex; margin-bottom:.9rem; overflow-x:auto; scrollbar-width:none; }
.subscription-admin-tabs::-webkit-scrollbar { display:none; }
.subscription-admin-tabs a { display:flex; min-height:44px; padding:.55rem .75rem; align-items:center; gap:.42rem; flex:0 0 auto; border:1px solid var(--biz-border); border-right:0; background:var(--biz-surface); color:var(--biz-muted); font-size:.62rem; font-weight:700; text-decoration:none; }
.subscription-admin-tabs a:first-child { border-radius:12px 0 0 12px; }
.subscription-admin-tabs a:last-child { border-right:1px solid var(--biz-border); border-radius:0 12px 12px 0; }
.subscription-admin-tabs a.active { background:var(--biz-primary-soft); color:var(--biz-primary); border-color:rgba(18,168,117,.32); }
.subscription-admin-tabs a.active + a { border-left-color:rgba(18,168,117,.32); }
.subscription-admin-tabs b { display:grid; min-width:21px; height:21px; padding:0 5px; place-items:center; border-radius:999px; background:var(--biz-surface-soft); color:inherit; font-size:.53rem; }
.subscription-invoice-state { display:inline-flex; align-items:center; gap:.3rem; color:var(--biz-muted); font-size:.58rem; font-weight:700; }
.subscription-invoice-state.is-ready { color:var(--biz-primary); }
.subscription-admin-payments .table-action.disabled { opacity:.35; pointer-events:none; }

.onboarding-finished-toast { position:fixed; z-index:2200; top:76px; right:20px; display:grid; width:min(390px,calc(100vw - 32px)); padding:.9rem; grid-template-columns:42px minmax(0,1fr) 28px; gap:.7rem; align-items:center; border:1px solid rgba(18,168,117,.24); border-radius:16px; background:var(--biz-surface); box-shadow:0 16px 48px rgba(4,18,14,.16); }
.onboarding-finished-toast > span { display:grid; width:42px; height:42px; place-items:center; border-radius:13px; background:var(--biz-primary-soft); color:var(--biz-primary); }
.onboarding-finished-toast > span iconify-icon { font-size:1.3rem; }
.onboarding-finished-toast strong,.onboarding-finished-toast small { display:block; }
.onboarding-finished-toast strong { font-size:.7rem; }
.onboarding-finished-toast small { margin-top:.15rem; color:var(--biz-muted); font-size:.58rem; line-height:1.45; }
.onboarding-finished-toast button { display:grid; width:28px; height:28px; place-items:center; padding:0; border:0; background:transparent; color:var(--biz-muted); }

@media (max-width: 800px) {
    .purchase-payment-sheet { width:100%; max-height:94vh; border-radius:20px 20px 0 0; }
    .purchase-payment-body { grid-template-columns:1fr; padding:.8rem; }
    .purchase-payment-summary { position:static; }
    .subscription-admin-kpis { grid-template-columns:1fr; }
}

/* v0.17.51 · Detalle de pago visible para la empresa cliente */
.subscription-payment-detail-sheet { width:min(820px,calc(100% - 2rem)); max-height:90vh; }
.subscription-payment-detail-body { display:grid; gap:.85rem; padding:1rem 1.15rem 1.2rem; }
.subscription-payment-detail-hero { display:flex; padding:1rem; align-items:center; gap:.8rem; border:1px solid rgba(18,168,117,.22); border-radius:16px; background:var(--biz-primary-soft); }
.subscription-payment-detail-hero > span { display:grid; width:44px; height:44px; place-items:center; flex:0 0 auto; border-radius:13px; background:var(--biz-primary); color:#fff; }
.subscription-payment-detail-hero > span iconify-icon { font-size:1.15rem; }
.subscription-payment-detail-hero small,.subscription-payment-detail-hero strong,.subscription-payment-detail-hero p { display:block; }
.subscription-payment-detail-hero small { color:var(--biz-muted); font-size:.56rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.subscription-payment-detail-hero strong { margin-top:.12rem; font-size:1.25rem; }
.subscription-payment-detail-hero p { margin:.12rem 0 0; color:var(--biz-muted); font-size:.6rem; }
.subscription-payment-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.subscription-payment-detail-grid article { display:grid; gap:.15rem; padding:.9rem; border:1px solid var(--biz-border); border-radius:14px; background:var(--biz-surface); }
.subscription-payment-detail-grid small { color:var(--biz-muted); font-size:.55rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.subscription-payment-detail-grid strong { font-size:.72rem; }
.subscription-payment-detail-grid span { color:var(--biz-muted); font-size:.56rem; line-height:1.45; }
.subscription-payment-invoice-card { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:.7rem; align-items:center; padding:1rem; border:1px solid var(--biz-border); border-radius:15px; background:var(--biz-surface); }
.subscription-payment-invoice-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:12px; background:var(--biz-primary-soft); color:var(--biz-primary); }
.subscription-payment-invoice-card small,.subscription-payment-invoice-card strong,.subscription-payment-invoice-card span { display:block; }
.subscription-payment-invoice-card small { color:var(--biz-muted); font-size:.54rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.subscription-payment-invoice-card strong { margin-top:.1rem; font-size:.68rem; }
.subscription-payment-invoice-card div > span { margin-top:.12rem; color:var(--biz-muted); font-size:.56rem; line-height:1.4; }
@media(max-width:650px){.subscription-payment-detail-sheet{width:100%;border-radius:20px 20px 0 0}.subscription-payment-detail-grid{grid-template-columns:1fr}.subscription-payment-invoice-card{grid-template-columns:42px minmax(0,1fr)}.subscription-payment-invoice-card .btn{grid-column:1/-1;width:100%}}

/* Bizfera v0.17.52 · Suscripciones e integraciones más claras */
.subscription-invoice-state.is-pending { color:#a66700; }
.subscription-admin-tabs { overflow-x:auto; scrollbar-width:none; }
.subscription-admin-tabs::-webkit-scrollbar { display:none; }

/* El detalle de cobro queda realmente fuera del DOM visual hasta abrirlo. */
.subscription-payment-detail-sheet[hidden],
.subscription-payment-detail-backdrop[hidden] { display:none!important; }
.subscription-payment-detail-sheet {
    top:auto!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:min(900px,calc(100% - 2rem))!important;
    height:auto!important;
    max-height:min(780px,92dvh)!important;
    margin:0 auto!important;
    border:1px solid var(--biz-border)!important;
    border-bottom:0!important;
    border-radius:22px 22px 0 0!important;
    overflow:hidden;
    box-shadow:0 -22px 70px rgba(4,18,14,.18)!important;
}
.subscription-payment-detail-header { min-height:82px!important; padding:1rem 1.25rem!important; }
.subscription-payment-detail-header p { display:flex; gap:.25rem; flex-wrap:wrap; }
.subscription-payment-detail-body { display:grid; gap:1rem; padding:1.1rem 1.25rem 1.35rem; overflow:auto; }
.subscription-payment-detail-summary { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr); gap:.75rem; }
.subscription-payment-detail-amount,
.subscription-payment-detail-period { min-height:118px; padding:1rem; border:1px solid var(--biz-border); border-radius:16px; background:var(--biz-surface); }
.subscription-payment-detail-amount { display:flex; align-items:center; gap:.85rem; background:linear-gradient(145deg,var(--biz-primary-soft),var(--biz-surface) 72%); border-color:rgba(18,168,117,.24); }
.subscription-payment-detail-icon { display:grid; width:48px; height:48px; place-items:center; flex:0 0 auto; border-radius:14px; background:var(--biz-primary); color:#fff; font-size:1.3rem; }
.subscription-payment-detail-amount small,
.subscription-payment-detail-period small { display:block; color:var(--biz-muted); font-size:.55rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.subscription-payment-detail-amount strong { display:block; margin:.16rem 0 .28rem; font-size:1.45rem; letter-spacing:-.035em; }
.subscription-payment-detail-period { display:flex; flex-direction:column; justify-content:center; gap:.18rem; }
.subscription-payment-detail-period strong { font-size:.76rem; }
.subscription-payment-detail-period span { color:var(--biz-muted); font-size:.56rem; }
.subscription-payment-detail-section { overflow:hidden; border:1px solid var(--biz-border); border-radius:16px; background:var(--biz-surface); }
.subscription-payment-detail-section-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1rem; border-bottom:1px solid var(--biz-border); }
.subscription-payment-detail-section-head h3 { margin:.08rem 0 0; font-size:.82rem; }
.subscription-payment-detail-section-head>span { padding:.28rem .5rem; border-radius:999px; background:var(--biz-surface-soft); color:var(--biz-muted); font-size:.54rem; font-weight:800; }
.subscription-payment-line-items { display:grid; }
.subscription-payment-line-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem; align-items:center; padding:.78rem 1rem; border-top:1px solid var(--biz-border); }
.subscription-payment-line-item:first-child { border-top:0; }
.subscription-payment-line-item>div { display:grid; gap:.08rem; }
.subscription-payment-line-item small { color:var(--biz-primary); font-size:.5rem; font-weight:850; letter-spacing:.05em; }
.subscription-payment-line-item strong { font-size:.66rem; }
.subscription-payment-line-item>div>span { color:var(--biz-muted); font-size:.55rem; }
.subscription-payment-line-item>strong { white-space:nowrap; font-size:.7rem; }
.subscription-payment-line-empty { padding:1rem; color:var(--biz-muted); font-size:.6rem; }
.subscription-payment-detail-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.subscription-payment-detail-metrics article { display:grid; gap:.12rem; padding:.85rem 1rem; border:1px solid var(--biz-border); border-radius:14px; }
.subscription-payment-detail-metrics small { color:var(--biz-muted); font-size:.53rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.subscription-payment-detail-metrics strong { font-size:.76rem; }
.subscription-payment-detail-metrics span { color:var(--biz-muted); font-size:.55rem; }
.subscription-payment-invoice-card { border-radius:16px; }

/* Sheets de integraciones: primero valor, después configuración. */
.integration-card-v2.is-sheet-open .integration-product-hero,
.integration-card-v2.is-sheet-open .integration-benefit-grid,
.integration-card-v2.is-sheet-open .integration-how-it-works,
.integration-card-v2.is-sheet-open .integration-plan-comparison,
.integration-card-v2.is-sheet-open .integration-value-callout,
.integration-card-v2.is-sheet-open .integration-usage-card {
    width:min(1040px,calc(100% - 3rem));
    margin-right:auto;
    margin-left:auto;
}
.integration-product-hero { display:grid!important; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr); gap:1.25rem; margin-top:1.35rem!important; padding:1.2rem 0; align-items:center; border-top:1px solid var(--biz-border); border-bottom:1px solid var(--biz-border); background:transparent; }
.integration-product-hero.integration-product-hero-simple { grid-template-columns:1fr; }
.integration-product-copy { display:flex; flex-direction:column; justify-content:center; max-width:680px; }
.integration-product-copy h2 { margin:.3rem 0 .45rem; font-size:1.25rem; line-height:1.15; letter-spacing:-.035em; }
.integration-product-copy p { margin:0; color:var(--biz-muted); font-size:.66rem; line-height:1.55; }
.integration-product-badge,
.integration-product-price,
.integration-product-meta { display:flex; flex-direction:column; justify-content:center; min-height:96px; padding:.25rem 0 .25rem 1.15rem; border:0; border-left:1px solid var(--biz-border); border-radius:0; background:transparent; }
.integration-product-badge iconify-icon { display:none; }
.integration-product-badge strong,.integration-product-price strong,.integration-product-meta strong { display:block; font-size:1rem; }
.integration-product-badge span,.integration-product-price span,.integration-product-meta small { margin-top:.22rem; color:var(--biz-muted); font-size:.56rem; line-height:1.4; }
.integration-product-price small,.integration-product-meta>span { color:var(--biz-primary); font-size:.53rem; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.integration-product-price strong { margin-top:.18rem; font-size:1.35rem; letter-spacing:-.035em; }
.integration-benefit-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin-top:.75rem!important; }
.integration-benefit-grid article { display:grid; grid-template-columns:38px minmax(0,1fr); gap:.65rem; align-items:start; padding:.85rem; border:1px solid var(--biz-border); border-radius:14px; background:var(--biz-surface); }
.integration-benefit-grid article>iconify-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:11px; background:var(--biz-primary-soft); color:var(--biz-primary); font-size:1rem; }
.integration-benefit-grid article>div { display:grid; gap:.16rem; }
.integration-benefit-grid strong { font-size:.65rem; }
.integration-benefit-grid span { color:var(--biz-muted); font-size:.55rem; line-height:1.48; }
.integration-how-it-works { display:grid!important; grid-template-columns:30px minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr); gap:.55rem; align-items:center; margin-top:.75rem!important; padding:.8rem 1rem; border:1px solid var(--biz-border); border-radius:14px; background:var(--biz-surface); }
.integration-how-it-works>span { display:grid; width:30px; height:30px; place-items:center; border-radius:9px; background:var(--biz-primary); color:#fff; font-size:.58rem; font-weight:850; }
.integration-how-it-works p { display:grid; gap:.08rem; margin:0; }
.integration-how-it-works strong { font-size:.59rem; }
.integration-how-it-works small { color:var(--biz-muted); font-size:.51rem; }
.integration-plan-comparison { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin-top:.75rem!important; }
.integration-plan-comparison article { position:relative; display:grid; gap:.2rem; padding:1rem; border:1px solid var(--biz-border); border-radius:15px; background:var(--biz-surface); }
.integration-plan-comparison article.is-highlight { border-color:rgba(18,168,117,.46); background:var(--biz-surface); }
.integration-plan-comparison article.is-current::after { content:'Actual'; position:absolute; top:.75rem; right:.75rem; padding:.22rem .42rem; border-radius:999px; background:var(--biz-primary-soft); color:var(--biz-primary); font-size:.48rem; font-weight:850; }
.integration-plan-comparison span { color:var(--biz-primary); font-size:.52rem; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.integration-plan-comparison strong { font-size:.88rem; }
.integration-plan-comparison b { font-size:.68rem; }
.integration-plan-comparison small { color:var(--biz-muted); font-size:.54rem; line-height:1.45; }
.integration-usage-card { display:grid!important; gap:.45rem; margin-top:.75rem!important; padding:.8rem 1rem; border:1px solid var(--biz-border); border-radius:14px; }
.integration-usage-card>div:first-child { display:flex; justify-content:space-between; gap:1rem; font-size:.58rem; }
.integration-usage-track { height:7px; overflow:hidden; border-radius:99px; background:var(--biz-surface-soft); }
.integration-usage-track i { display:block; height:100%; border-radius:inherit; background:var(--biz-primary); }
.integration-value-callout { display:flex!important; gap:.7rem; align-items:center; margin-top:.75rem!important; padding:.85rem 1rem; border:1px solid var(--biz-border); border-radius:14px; background:var(--biz-surface); }
.integration-value-callout>iconify-icon { color:var(--biz-primary); font-size:1.25rem; }
.integration-value-callout>div { display:grid; gap:.08rem; }
.integration-value-callout strong { font-size:.64rem; }
.integration-value-callout span { color:var(--biz-muted); font-size:.54rem; }
.integration-card-v2.is-sheet-open > .integration-connected-account,
.integration-card-v2.is-sheet-open > .integration-connect-simple,
.integration-card-v2.is-sheet-open > .ml-operations,
.integration-card-v2.is-sheet-open > .integration-card-actions,
.integration-card-v2.is-sheet-open > details,
.integration-card-v2.is-sheet-open > .integration-plan-summary,
.integration-card-v2.is-sheet-open > .integration-feature-list,
.integration-card-v2.is-sheet-open > .secure-note,
.integration-card-v2.is-sheet-open > .integration-helper {
    margin-top:.75rem;
}
.integration-card-v2.is-sheet-open > .integration-connect-simple { padding:1rem; border:1px solid var(--biz-border); border-radius:14px; background:var(--biz-surface); }
.integration-card-v2.is-sheet-open > .integration-card-actions { width:min(1040px,calc(100% - 3rem)); margin-right:auto; margin-left:auto; padding-bottom:1.25rem; }

@media(max-width:800px){
    .subscription-payment-detail-sheet { width:100%!important; max-height:92dvh!important; border-radius:18px 18px 0 0!important; }
    .subscription-payment-detail-summary,.subscription-payment-detail-metrics { grid-template-columns:1fr; }
    .integration-card-v2.is-sheet-open .integration-product-hero,
    .integration-card-v2.is-sheet-open .integration-benefit-grid,
    .integration-card-v2.is-sheet-open .integration-how-it-works,
    .integration-card-v2.is-sheet-open .integration-plan-comparison,
    .integration-card-v2.is-sheet-open .integration-value-callout,
    .integration-card-v2.is-sheet-open .integration-usage-card { width:calc(100% - 2rem); }
    .integration-product-hero,.integration-benefit-grid,.integration-plan-comparison { grid-template-columns:1fr; }
    .integration-product-price,.integration-product-meta,.integration-product-badge { min-height:0; padding:.8rem 0 0; border-left:0; border-top:1px solid var(--biz-border); }
    .integration-how-it-works { grid-template-columns:30px minmax(0,1fr); }
    .integration-card-v2.is-sheet-open > .integration-card-actions { width:calc(100% - 2rem); }
}
/* Las piezas comerciales nuevas sólo aparecen dentro del sheet abierto. */
.integration-grid-v2 > .integration-card-v2:not(.is-sheet-open) > .integration-product-hero,
.integration-grid-v2 > .integration-card-v2:not(.is-sheet-open) > .integration-benefit-grid,
.integration-grid-v2 > .integration-card-v2:not(.is-sheet-open) > .integration-how-it-works,
.integration-grid-v2 > .integration-card-v2:not(.is-sheet-open) > .integration-plan-comparison,
.integration-grid-v2 > .integration-card-v2:not(.is-sheet-open) > .integration-value-callout,
.integration-grid-v2 > .integration-card-v2:not(.is-sheet-open) > .integration-usage-card { display:none!important; }

/* v0.17.59 · cierre de prueba: alta rápida/DNI, documentos compactos y producto público. */
.client-picker-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}
.client-picker-actions .btn { min-height: 36px; padding: .42rem .68rem; font-size: .62rem; }
.client-picker-actions .btn.is-active { border-color: var(--biz-primary); color: var(--biz-primary); background: var(--biz-primary-soft); }
.quick-client-form {
    margin-bottom: .65rem;
    padding: .72rem;
    border: 1px solid color-mix(in srgb, var(--biz-primary) 24%, var(--biz-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--biz-primary-soft) 45%, var(--biz-surface));
}
.quick-client-form[hidden] { display: none !important; }
.quick-client-form-head,
.quick-client-form-footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.quick-client-form-head { margin-bottom: .58rem; }
.quick-client-form-head strong,
.quick-client-form-head small { display: block; }
.quick-client-form-head strong { font-size: .7rem; }
.quick-client-form-head small,
.quick-client-form-footer > small { color: var(--biz-muted); font-size: .56rem; }
.quick-client-form-footer > small.is-error { color: #b42318; }
.quick-client-form-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1fr 1.15fr; gap: .5rem; align-items: end; }
.quick-client-form-grid label > span { display: block; margin-bottom: .22rem; color: var(--biz-muted); font-size: .55rem; font-weight: 760; }
.quick-client-form-grid .form-control,
.quick-client-form-grid .form-select { min-height: 36px; padding-top: .36rem; padding-bottom: .36rem; font-size: .62rem; }
.quick-client-form-footer { margin-top: .58rem; }
.quick-client-form-footer .btn { min-height: 36px; padding: .42rem .7rem; font-size: .62rem; }

.dni-scanner-open { overflow: hidden; }
.dni-scanner-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 18, 15, .66);
    backdrop-filter: blur(8px);
}
.dni-scanner-backdrop[hidden] { display: none !important; }
.dni-scanner-dialog {
    width: min(680px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--biz-border);
    border-radius: 22px;
    background: var(--biz-surface);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}
.dni-scanner-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.dni-scanner-dialog h2 { margin: .1rem 0 .22rem; font-size: 1.05rem; }
.dni-scanner-dialog header p { max-width: 530px; margin: 0; color: var(--biz-muted); font-size: .64rem; line-height: 1.55; }
.dni-scanner-camera { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #08120f; }
.dni-scanner-camera video { width: 100%; height: 100%; object-fit: cover; }
.dni-scanner-frame { position: absolute; inset: 16% 8%; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.18); pointer-events: none; }
.dni-scanner-frame::before,
.dni-scanner-frame::after,
.dni-scanner-frame span::before,
.dni-scanner-frame span::after { content: ''; position: absolute; width: 34px; height: 34px; border-color: #28d9a0; border-style: solid; }
.dni-scanner-frame::before { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-radius: 12px 0 0 0; }
.dni-scanner-frame::after { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-radius: 0 12px 0 0; }
.dni-scanner-frame span::before { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-radius: 0 0 0 12px; }
.dni-scanner-frame span::after { right: -2px; bottom: -2px; border-width: 0 4px 4px 0; border-radius: 0 0 12px 0; }
.dni-scanner-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .26rem; padding: 1rem; color: #fff; text-align: center; background: #0d1915; }
.dni-scanner-placeholder[hidden] { display: none !important; }
.dni-scanner-placeholder iconify-icon { color: #28d9a0; font-size: 2rem; }
.dni-scanner-placeholder strong { font-size: .76rem; }
.dni-scanner-placeholder small { color: rgba(255,255,255,.66); font-size: .58rem; }
.dni-scanner-status { margin: .65rem 0; padding: .55rem .68rem; border-radius: 10px; background: var(--biz-surface-soft); color: var(--biz-muted); font-size: .61rem; }
.dni-scanner-status.is-error { background: rgba(180,35,24,.08); color: #b42318; }
.dni-scanner-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.dni-scanner-actions .btn { min-height: 38px; font-size: .62rem; }
.dni-scanner-note { display: block; margin-top: .55rem; color: var(--biz-muted); font-size: .53rem; text-align: right; }

.biznube-docs-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 .75rem;
    padding: .72rem .82rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(15,23,42,.035);
}
.biznube-docs-summary-copy { min-width: 0; }
.biznube-docs-summary-copy > strong,
.biznube-docs-summary-copy > small { display: block; }
.biznube-docs-summary-copy > strong { margin-top: .1rem; font-size: .72rem; }
.biznube-docs-summary-copy > small { margin-top: .12rem; color: var(--biz-muted); font-size: .55rem; }
.biznube-docs-summary-stats { display: flex; align-items: stretch; gap: .32rem; flex: 0 0 auto; }
.biznube-docs-summary-stats > span { display: grid; min-width: 78px; padding: .42rem .58rem; align-content: center; border-radius: 10px; background: var(--biz-surface-soft); text-align: center; }
.biznube-docs-summary-stats b { font-size: .72rem; line-height: 1; }
.biznube-docs-summary-stats small { margin-top: .12rem; color: var(--biz-muted); font-size: .49rem; }

.public-page-producto-publico { min-height: 100vh; background: #f4f8f6 !important; }
.public-page-producto-publico .public-layout { width: min(1040px, calc(100% - 32px)); }
.public-product-page { padding: 28px 0 22px; }
.public-product-topbar { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 18px; }
.public-product-topbar > span { color: #687a73; font-size: .68rem; font-weight: 750; }
.public-product-bizfera { display: inline-flex; align-items: center; }
.public-product-bizfera img { width: auto; height: 30px; object-fit: contain; }
.public-product-card { display: grid; overflow: hidden; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); border: 1px solid #dce7e2; border-radius: 28px; background: #fff; box-shadow: 0 26px 80px rgba(15,45,35,.08); }
.public-product-visual { display: grid; min-height: 520px; place-items: center; padding: 40px; background: linear-gradient(145deg,#eff7f3,#f8fbfa); }
.public-product-visual > img { width: 100%; max-width: 440px; max-height: 440px; object-fit: contain; border-radius: 20px; }
.public-product-info { display: flex; padding: 48px 46px; flex-direction: column; justify-content: center; }
.public-product-company { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.public-product-company > img { width: auto; max-width: 105px; height: 32px; object-fit: contain; }
.public-product-company small,
.public-product-company strong { display: block; }
.public-product-company small { color: #687a73; font-size: .58rem; }
.public-product-company strong { margin-top: .05rem; font-size: .7rem; }
.public-product-tags { display: flex; gap: .38rem; flex-wrap: wrap; margin-bottom: .75rem; }
.public-product-tags span { padding: .34rem .52rem; border-radius: 999px; background: #eef8f4; color: #087b59; font-size: .54rem; font-weight: 780; }
.public-product-info h1 { margin: 0; color: #101614; font-size: clamp(2rem,4vw,3.45rem); line-height: 1.02; letter-spacing: -.045em; }
.public-product-code { margin: .55rem 0 0; color: #687a73; font-size: .68rem; }
.public-product-price { display: grid; margin: 1.3rem 0 1.1rem; padding: 1rem 1.05rem; border: 1px solid #dce7e2; border-radius: 16px; background: #f8fbfa; }
.public-product-price small { color: #687a73; font-size: .58rem; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.public-product-price strong { margin-top: .14rem; color: #101614; font-size: 2.1rem; line-height: 1; }
.public-product-price span { margin-top: .22rem; color: #687a73; font-size: .56rem; }
.public-product-description { padding-top: .9rem; border-top: 1px solid #e6eeea; }
.public-product-description > span { color: #687a73; font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.public-product-description p { margin: .36rem 0 0; color: #34453f; font-size: .68rem; line-height: 1.65; }
.public-product-meta { display: grid; gap: .22rem; margin-top: 1rem; color: #687a73; }
.public-product-meta > span { display: flex; align-items: center; gap: .3rem; font-size: .57rem; }
.public-product-meta iconify-icon { color: #0aa376; font-size: .9rem; }
.public-product-meta > small { font-size: .52rem; }
.public-product-footer { padding: 16px 0 0; color: #687a73; font-size: .58rem; text-align: center; }
.public-product-error { width: min(620px,100%); margin: 14vh auto 0; padding: 40px; border: 1px solid #dce7e2; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(15,45,35,.08); text-align: center; }
.public-product-error .public-product-bizfera { margin-bottom: 1.4rem; }
.public-product-error > span { display: block; color: #0aa376; font-size: .58rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.public-product-error h1 { margin: .35rem 0 .45rem; font-size: 1.55rem; }
.public-product-error p { margin: 0; color: #687a73; font-size: .68rem; line-height: 1.6; }

@media (max-width: 980px) {
    .quick-client-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .quick-client-name,.quick-client-email { grid-column: span 2; }
    .public-product-card { grid-template-columns: 1fr; }
    .public-product-visual { min-height: 360px; padding: 28px; }
    .public-product-visual > img { max-height: 320px; }
    .public-product-info { padding: 34px 30px; }
}
@media (max-width: 700px) {
    .client-picker-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .client-picker-actions .btn { width: 100%; justify-content: center; }
    .quick-client-form-grid { grid-template-columns: 1fr; }
    .quick-client-name,.quick-client-email { grid-column: auto; }
    .quick-client-form-footer { align-items: stretch; flex-direction: column; }
    .quick-client-form-footer .btn { width: 100%; justify-content: center; }
    .dni-scanner-backdrop { padding: .55rem; }
    .dni-scanner-dialog { padding: .75rem; border-radius: 16px; }
    .dni-scanner-camera { aspect-ratio: 4 / 3; }
    .dni-scanner-frame { inset: 20% 5%; }
    .dni-scanner-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .dni-scanner-actions .btn { width: 100%; justify-content: center; }
    .biznube-docs-summary { align-items: stretch; flex-direction: column; }
    .biznube-docs-summary-stats { width: 100%; }
    .biznube-docs-summary-stats > span { min-width: 0; flex: 1; }
    .public-page-producto-publico .public-layout { width: min(100% - 20px,1040px); }
    .public-product-page { padding-top: 12px; }
    .public-product-topbar { margin-bottom: 10px; }
    .public-product-topbar > span { display: none; }
    .public-product-card { border-radius: 20px; }
    .public-product-visual { min-height: 285px; padding: 22px; }
    .public-product-visual > img { max-height: 250px; }
    .public-product-info { padding: 26px 22px 30px; }
    .public-product-info h1 { font-size: 2.15rem; }
    .public-product-price strong { font-size: 1.8rem; }
    .public-product-error { margin-top: 8vh; padding: 28px 20px; }
}

/* v0.17.60 · DNI por lector/cámara + corrección del alta rápida. */
.dni-scanner-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}
.dni-scanner-method {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    align-items: center;
    gap: .72rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--biz-border);
    border-radius: 16px;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dni-scanner-method:hover {
    border-color: color-mix(in srgb, var(--biz-primary) 46%, var(--biz-border));
    background: color-mix(in srgb, var(--biz-primary-soft) 38%, var(--biz-surface));
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}
.dni-scanner-method > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}
.dni-scanner-method > span iconify-icon { font-size: 1.3rem; }
.dni-scanner-method > div { min-width: 0; }
.dni-scanner-method strong,
.dni-scanner-method small { display: block; }
.dni-scanner-method strong { font-size: .72rem; }
.dni-scanner-method small { margin-top: .16rem; color: var(--biz-muted); font-size: .56rem; line-height: 1.5; }
.dni-scanner-method-arrow { color: var(--biz-muted); font-size: 1rem; }
.dni-scanner-reader-panel[hidden],
.dni-scanner-camera-panel[hidden] { display: none !important; }
.dni-scanner-reader-visual {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .82rem;
    border: 1px solid color-mix(in srgb, var(--biz-primary) 20%, var(--biz-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--biz-primary-soft) 34%, var(--biz-surface));
}
.dni-scanner-reader-visual > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--biz-primary);
    color: #fff;
}
.dni-scanner-reader-visual iconify-icon { font-size: 1.25rem; }
.dni-scanner-reader-visual strong,
.dni-scanner-reader-visual small { display: block; }
.dni-scanner-reader-visual strong { font-size: .7rem; }
.dni-scanner-reader-visual small { margin-top: .12rem; color: var(--biz-muted); font-size: .56rem; line-height: 1.45; }
.dni-scanner-reader-field { display: block; margin-top: .7rem; }
.dni-scanner-reader-field > span { display: block; margin-bottom: .26rem; color: var(--biz-muted); font-size: .55rem; font-weight: 760; }
.dni-scanner-reader-field textarea {
    min-height: 82px;
    resize: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .6rem;
    line-height: 1.45;
}
.dni-scanner-reader-field > small { display: block; margin-top: .3rem; color: var(--biz-muted); font-size: .52rem; line-height: 1.45; }

@media (max-width: 700px) {
    .dni-scanner-methods { grid-template-columns: 1fr; }
    .dni-scanner-method { grid-template-columns: 42px minmax(0, 1fr) 18px; padding: .75rem; }
    .dni-scanner-method > span { width: 42px; height: 42px; }
    .dni-scanner-dialog > header { gap: .6rem; }
    .dni-scanner-dialog header p { font-size: .59rem; }
}

/* Error Log · administración interna */
.error-log-heading{align-items:flex-end}.error-log-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}.error-log-summary .panel-card{padding:18px 20px;display:flex;flex-direction:column;gap:3px}.error-log-summary span{font-size:10px;letter-spacing:.08em;color:var(--bs-secondary-color);font-weight:700}.error-log-summary strong{font-size:30px;line-height:1.05}.error-log-summary small{color:var(--bs-secondary-color)}.error-log-summary .is-critical strong{color:#c74343}.error-log-panel{padding:0;overflow:hidden}.error-log-filters{display:grid;grid-template-columns:minmax(240px,2fr) repeat(4,minmax(120px,1fr)) auto;gap:10px;align-items:end;padding:18px;border-bottom:1px solid var(--border-color,#e4e9e7)}.error-log-filters label{display:flex;flex-direction:column;gap:6px;margin:0}.error-log-filters label>span{font-size:11px;font-weight:700;color:var(--bs-secondary-color)}.error-log-search{position:relative}.error-log-search iconify-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:18px;color:var(--bs-secondary-color)}.error-log-search input{width:100%;height:40px;border:1px solid var(--border-color,#dce5e1);border-radius:10px;background:var(--bs-body-bg);color:var(--bs-body-color);padding:0 12px 0 39px;outline:none}.error-log-filter-actions{display:flex;gap:8px}.error-log-results-head{display:flex;justify-content:space-between;gap:12px;padding:13px 18px;font-size:12px;color:var(--bs-secondary-color);border-bottom:1px solid var(--border-color,#e4e9e7)}.error-log-results-head strong{color:var(--bs-body-color)}.error-log-note{margin:14px 18px 0;padding:10px 12px;border-radius:10px;background:rgba(244,171,38,.1);display:flex;align-items:center;gap:8px;font-size:12px}.error-log-list{display:flex;flex-direction:column}.error-log-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:16px 18px;border-bottom:1px solid var(--border-color,#e8ecea)}.error-log-item:last-child{border-bottom:0}.error-log-item-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(219,69,69,.09);color:#c74343;font-size:19px}.error-log-item.level-warning .error-log-item-mark{background:rgba(236,160,31,.11);color:#ad7415}.error-log-item.level-notice .error-log-item-mark,.error-log-item.level-deprecated .error-log-item-mark{background:rgba(55,122,201,.1);color:#377ac9}.error-log-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.error-log-item-top time{font-size:11px;color:var(--bs-secondary-color);white-space:nowrap}.error-log-badges{display:flex;flex-wrap:wrap;gap:6px}.error-log-badges span{font-size:10px;font-weight:700;padding:4px 7px;border:1px solid var(--border-color,#dfe7e3);border-radius:999px;color:var(--bs-secondary-color)}.error-log-badges .error-log-level{color:#b73c3c;border-color:rgba(199,67,67,.25);background:rgba(199,67,67,.06)}.level-warning .error-log-badges .error-log-level{color:#98610b;border-color:rgba(173,116,21,.25);background:rgba(173,116,21,.07)}.error-log-item h2{font-size:14px;line-height:1.45;margin:8px 0 7px;word-break:break-word}.error-log-inline-meta{display:flex;flex-wrap:wrap;gap:7px 16px;font-size:11px;color:var(--bs-secondary-color)}.error-log-inline-meta span{max-width:100%;overflow-wrap:anywhere}.error-log-inline-meta b{color:var(--bs-body-color)}.error-log-detail{margin-top:10px}.error-log-detail>summary{cursor:pointer;font-size:11px;font-weight:700;color:var(--primary,#079f74);list-style:none}.error-log-detail>summary::-webkit-details-marker{display:none}.error-log-detail-grid{margin-top:10px;padding:13px;background:var(--soft-bg,#f7faf8);border:1px solid var(--border-color,#e1e8e5);border-radius:12px;display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:12px}.error-log-detail-grid dl{margin:0;display:grid;gap:8px}.error-log-detail-grid dl div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;font-size:11px}.error-log-detail-grid dt{color:var(--bs-secondary-color);font-weight:600}.error-log-detail-grid dd{margin:0;overflow-wrap:anywhere}.error-log-detail-grid h3{font-size:11px;margin:0 0 7px;text-transform:uppercase;letter-spacing:.05em}.error-log-detail-grid pre{margin:0;max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#101a17;color:#dff5ec;padding:11px;border-radius:9px;font-size:10px}.error-log-trace{grid-column:1/-1}.error-log-empty{padding:60px 20px}.error-log-pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:15px 18px;border-top:1px solid var(--border-color,#e4e9e7);font-size:12px}.error-log-pagination .btn{min-width:90px}
@media(max-width:1200px){.error-log-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.error-log-filter-actions{grid-column:auto}.error-log-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.error-log-summary{grid-template-columns:1fr 1fr}.error-log-summary .panel-card{padding:14px}.error-log-summary strong{font-size:25px}.error-log-filters{grid-template-columns:1fr;padding:14px}.error-log-filter-actions{width:100%}.error-log-filter-actions .btn{flex:1}.error-log-results-head{align-items:flex-start;flex-direction:column}.error-log-item{grid-template-columns:30px minmax(0,1fr);padding:14px;gap:9px}.error-log-item-mark{width:30px;height:30px}.error-log-item-top{align-items:flex-start;flex-direction:column}.error-log-inline-meta{flex-direction:column;gap:4px}.error-log-detail-grid{grid-template-columns:1fr}.error-log-trace{grid-column:auto}}

/* v0.17.64 · sincronización automática de integraciones */
.integration-autosync{position:fixed;z-index:2250;right:20px;top:82px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center;width:min(360px,calc(100vw - 32px));padding:12px 14px;border:1px solid var(--biz-border);border-radius:15px;background:var(--biz-surface);box-shadow:0 18px 55px rgba(4,18,14,.18);opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.integration-autosync.is-visible{opacity:1;transform:none}.integration-autosync strong,.integration-autosync small{display:block}.integration-autosync strong{font-size:.72rem}.integration-autosync small{margin-top:2px;color:var(--biz-muted);font-size:.61rem;line-height:1.4}.integration-autosync-spinner{width:30px;height:30px;border:3px solid var(--biz-primary-soft);border-top-color:var(--biz-primary);border-radius:50%;animation:integrationAutosyncSpin .8s linear infinite}@keyframes integrationAutosyncSpin{to{transform:rotate(360deg)}}@media(max-width:620px){.integration-autosync{right:12px;top:70px;width:calc(100vw - 24px)}}
/* Precio unitario editable en operaciones */
.ticket-unit-price,.budget-unit-price{display:inline-flex;align-items:center;gap:4px;width:max-content;padding:0;border:0;background:transparent;color:var(--biz-muted);font:inherit;font-size:.62rem;text-align:left;cursor:pointer}.ticket-unit-price:hover,.budget-unit-price:hover{color:var(--biz-primary)}.ticket-unit-price iconify-icon,.budget-unit-price iconify-icon{font-size:.8rem}

/* v0.17.65 · Biznube: confirmación de adicional + prueba de 24 horas. */
.biznube-confirmation[hidden] { display: none !important; }
.biznube-confirmation {
    width: calc(100% - 2.4rem);
    margin-top: .85rem;
    padding: 1rem;
    grid-template-columns: 44px minmax(0,1fr) auto;
    gap: .9rem;
    align-items: start;
    border: 1px solid rgba(217,148,0,.28);
    border-radius: 15px;
    background: color-mix(in srgb, #f59e0b 7%, var(--biz-surface));
}
.integration-card-v2.is-sheet-open > .biznube-confirmation:not([hidden]) { display: grid !important; }
.biznube-confirmation-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(245,158,11,.12);
    color: #b66b00;
}
.biznube-confirmation-icon iconify-icon { font-size: 22px; }
.biznube-confirmation-copy { min-width: 0; }
.biznube-confirmation-copy h3 { margin: .15rem 0 .35rem; font-size: .88rem; }
.biznube-confirmation-copy > p { margin: 0; max-width: 760px; color: var(--biz-muted); font-size: .67rem; line-height: 1.55; }
.biznube-confirmation-copy > p strong { color: var(--bs-body-color); }
.biznube-confirmation-points { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-top: .7rem; }
.biznube-confirmation-points span { display: inline-flex; align-items: center; gap: .3rem; color: var(--biz-muted); font-size: .59rem; font-weight: 650; }
.biznube-confirmation-points iconify-icon { color: var(--biz-primary); font-size: 15px; }
.biznube-confirmation-actions { display: flex; align-items: center; gap: .4rem; align-self: center; }
.biznube-confirmation-actions form { margin: 0; }
.biznube-trial-note { align-items: flex-start !important; }
.biznube-trial-note > span { display: block; line-height: 1.5; }
.biznube-trial-note > span > strong { display: block; margin-bottom: .15rem; color: var(--bs-body-color); }
.biznube-trial-note [data-biznube-trial-countdown] { display: block; margin-top: .25rem; color: var(--biz-primary); font-weight: 800; }
@media (max-width: 760px) {
    .biznube-confirmation { width: calc(100% - 2rem); grid-template-columns: 38px minmax(0,1fr); padding: .85rem; }
    .biznube-confirmation-icon { width: 36px; height: 36px; }
    .biznube-confirmation-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-end; }
    .biznube-confirmation-actions form { flex: 1; }
    .biznube-confirmation-actions .btn { width: 100%; }
}


/* Bizfera v1.0.1 · Actividades */
.activity-heading{align-items:flex-end}.activity-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}.activity-summary .panel-card{padding:17px 18px;display:flex;flex-direction:column;gap:3px;min-width:0}.activity-summary span{font-size:10px;letter-spacing:.08em;color:var(--bs-secondary-color);font-weight:700}.activity-summary strong{font-size:28px;line-height:1.05}.activity-summary small{color:var(--bs-secondary-color);font-size:11px}.activity-summary .is-warning strong{color:#c74343}.activity-panel{padding:0;overflow:hidden}.activity-filters{display:grid;grid-template-columns:minmax(250px,2fr) repeat(5,minmax(110px,1fr));gap:10px;align-items:end;padding:18px;border-bottom:1px solid var(--border-color,#e4e9e7)}.activity-filters>label{display:flex;flex-direction:column;gap:6px;margin:0}.activity-filters label>span{font-size:11px;font-weight:700;color:var(--bs-secondary-color)}.activity-filter-search{grid-column:auto}.activity-search{position:relative}.activity-search iconify-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:18px;color:var(--bs-secondary-color)}.activity-search input{width:100%;height:40px;border:1px solid var(--border-color,#dce5e1);border-radius:10px;background:var(--bs-body-bg);color:var(--bs-body-color);padding:0 12px 0 39px;outline:none}.activity-filter-checks{display:flex;flex-wrap:wrap;gap:8px 16px;grid-column:1/-2;min-height:40px;align-items:center}.activity-check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px!important;font-size:11px;color:var(--bs-secondary-color);cursor:pointer}.activity-check input{width:15px;height:15px;accent-color:var(--primary,#079f74)}.activity-filter-actions{display:flex;justify-content:flex-end;gap:8px}.activity-results-head{display:flex;justify-content:space-between;gap:12px;padding:13px 18px;font-size:12px;color:var(--bs-secondary-color);border-bottom:1px solid var(--border-color,#e4e9e7)}.activity-results-head strong{color:var(--bs-body-color)}.activity-note{margin:14px 18px 0;padding:10px 12px;border-radius:10px;background:rgba(244,171,38,.1);display:flex;align-items:center;gap:8px;font-size:12px}.activity-list{display:flex;flex-direction:column}.activity-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:13px;padding:16px 18px;border-bottom:1px solid var(--border-color,#e8ecea)}.activity-item:last-child{border-bottom:0}.activity-item.has-server-error{background:rgba(199,67,67,.025)}.activity-item.has-client-error{background:rgba(236,160,31,.025)}.activity-item-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:20px;background:rgba(55,122,201,.1);color:#377ac9}.activity-item-mark.actor-usuario{background:rgba(7,159,116,.1);color:var(--primary,#079f74)}.activity-item-mark.actor-bot{background:rgba(112,79,184,.1);color:#7050b3}.activity-item-mark.actor-sistema{background:rgba(82,95,91,.1);color:#52605c}.activity-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.activity-item-top time{font-size:11px;color:var(--bs-secondary-color);white-space:nowrap}.activity-badges{display:flex;flex-wrap:wrap;gap:6px}.activity-badges span{font-size:10px;font-weight:700;padding:4px 7px;border:1px solid var(--border-color,#dfe7e3);border-radius:999px;color:var(--bs-secondary-color)}.activity-badges .activity-actor{color:var(--bs-body-color);background:var(--soft-bg,#f7faf8)}.activity-badges .activity-http.is-error{color:#b73c3c;border-color:rgba(199,67,67,.25);background:rgba(199,67,67,.06)}.activity-item h2{font-size:14px;line-height:1.4;margin:8px 0 6px;word-break:break-word}.activity-item h2 small{font-weight:600;color:var(--bs-secondary-color)}.activity-detail-copy{font-size:12px;margin:0 0 8px;color:var(--bs-secondary-color);overflow-wrap:anywhere}.activity-inline-meta{display:flex;flex-wrap:wrap;gap:7px 16px;font-size:11px;color:var(--bs-secondary-color)}.activity-inline-meta span{max-width:100%;overflow-wrap:anywhere}.activity-inline-meta b{color:var(--bs-body-color)}.activity-detail{margin-top:10px}.activity-detail>summary{cursor:pointer;font-size:11px;font-weight:700;color:var(--primary,#079f74);list-style:none}.activity-detail>summary::-webkit-details-marker{display:none}.activity-detail-grid{margin-top:10px;padding:13px;background:var(--soft-bg,#f7faf8);border:1px solid var(--border-color,#e1e8e5);border-radius:12px;display:grid;grid-template-columns:minmax(270px,.9fr) minmax(0,1.1fr);gap:14px}.activity-detail-grid dl{margin:0;display:grid;gap:8px}.activity-detail-grid dl div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;font-size:11px}.activity-detail-grid dt{color:var(--bs-secondary-color);font-weight:600}.activity-detail-grid dd{margin:0;overflow-wrap:anywhere}.activity-detail-secondary h3{font-size:10px;margin:0 0 6px;text-transform:uppercase;letter-spacing:.05em}.activity-detail-secondary p{font-size:11px;overflow-wrap:anywhere;margin:0 0 12px}.activity-detail-secondary pre{margin:0;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#101a17;color:#dff5ec;padding:11px;border-radius:9px;font-size:10px}.activity-empty{padding:60px 20px}.activity-pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:15px 18px;border-top:1px solid var(--border-color,#e4e9e7);font-size:12px}.activity-pagination .btn{min-width:90px}
@media(max-width:1350px){.activity-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-filters{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr))}.activity-filter-checks{grid-column:1/-1}.activity-filter-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:767px){.activity-summary{grid-template-columns:1fr 1fr}.activity-summary .panel-card{padding:14px}.activity-summary strong{font-size:24px}.activity-filters{grid-template-columns:1fr;padding:14px}.activity-filter-search,.activity-filter-checks,.activity-filter-actions{grid-column:auto}.activity-filter-checks{align-items:flex-start;flex-direction:column}.activity-filter-actions{width:100%}.activity-filter-actions .btn{flex:1}.activity-results-head{align-items:flex-start;flex-direction:column}.activity-item{grid-template-columns:31px minmax(0,1fr);padding:14px;gap:9px}.activity-item-mark{width:31px;height:31px}.activity-item-top{align-items:flex-start;flex-direction:column}.activity-inline-meta{flex-direction:column;gap:4px}.activity-detail-grid{grid-template-columns:1fr}}

/* Bizfera v1.0.2 · Estado de plataforma más compacto */
.module-estado-plataforma .platform-status-grid{gap:14px}
.module-estado-plataforma .platform-status-card{padding:18px;gap:10px}
.module-estado-plataforma .platform-status-head{gap:9px}
.module-estado-plataforma .platform-status-head>div{gap:8px}
.module-estado-plataforma .platform-status-head h2{font-size:.88rem;line-height:1.2}
.module-estado-plataforma .platform-status-head .status-pill{display:inline-flex;align-items:center;gap:4px;font-size:.6rem;line-height:1;font-weight:650;white-space:nowrap}
.module-estado-plataforma .platform-status-head .status-pill iconify-icon{font-size:.78rem}
.module-estado-plataforma .platform-status-card p{font-size:.65rem;line-height:1.45}
.module-estado-plataforma .platform-status-data{gap:6px}
.module-estado-plataforma .platform-status-data div{gap:12px;padding-top:7px}
.module-estado-plataforma .platform-status-data dt,
.module-estado-plataforma .platform-status-data dd{font-size:.64rem;line-height:1.4}
.module-estado-plataforma .platform-arca-companies{padding:18px}
.module-estado-plataforma .platform-arca-companies .panel-section-heading h2{font-size:1.22rem;line-height:1.15}
.module-estado-plataforma .platform-arca-companies .panel-section-heading p{font-size:.66rem;line-height:1.45}
.module-estado-plataforma .platform-arca-companies .data-table th{font-size:.55rem}
.module-estado-plataforma .platform-arca-companies .data-table td{font-size:.64rem}
@media(max-width:760px){
    .module-estado-plataforma .platform-status-card{padding:15px}
    .module-estado-plataforma .platform-status-head h2{font-size:.82rem}
    .module-estado-plataforma .platform-status-data div{align-items:flex-start}
}


/* Bizfera v1.0.3 · Landings comerciales: mobile sin desbordes y composición compacta. */
.public-page-seo {
    overflow-x: clip;
}
.public-page-seo .public-layout,
.public-page-seo .seo-public-nav,
.public-page-seo .seo-breadcrumb,
.public-page-seo .seo-hero,
.public-page-seo .seo-problem,
.public-page-seo .landing-section,
.public-page-seo .seo-connected-band,
.public-page-seo .landing-final,
.public-page-seo .public-footer {
    min-width: 0;
    max-width: 100%;
}
.public-page-seo .seo-hero > *,
.public-page-seo .seo-hero-copy,
.public-page-seo .seo-hero-visual,
.public-page-seo .seo-commercial-card,
.public-page-seo .landing-actions,
.public-page-seo .landing-trust {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .public-page-seo .public-layout {
        width: min(100% - 24px, 1240px);
    }
    .public-page-seo .seo-public-nav {
        width: 100%;
        margin: 8px 0 0;
        padding: .58rem .65rem;
        gap: .7rem;
    }
    .public-page-seo .seo-public-nav .landing-nav-links {
        display: none !important;
        margin: 0;
    }
    .public-page-seo .seo-public-nav .public-brand {
        min-width: 0;
        flex: 0 1 auto;
    }
    .public-page-seo .seo-public-nav .public-brand img {
        width: auto;
        height: 27px;
        max-width: 138px;
        object-fit: contain;
    }
    .public-page-seo .seo-public-nav .landing-nav-actions {
        flex: 0 0 auto;
        min-width: 0;
        margin-left: auto;
    }
    .public-page-seo .seo-public-nav .landing-nav-actions .btn {
        min-width: 0;
        padding: .5rem .72rem !important;
        font-size: .64rem !important;
        white-space: nowrap;
    }
    .public-page-seo .seo-breadcrumb {
        width: 100%;
        margin: .7rem 0 0;
        padding: 0 .15rem;
    }
    .public-page-seo .seo-hero,
    .public-page-seo .seo-hero-commercial {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding: 3.4rem 1rem 3rem;
    }
    .public-page-seo .seo-hero-copy h1,
    .public-page-seo .seo-hero-commercial .seo-hero-copy h1 {
        max-width: 760px;
        font-size: clamp(2.65rem, 7.2vw, 4rem);
        line-height: 1.02;
        overflow-wrap: normal;
        word-break: normal;
    }
    .public-page-seo .seo-hero-copy > p {
        max-width: 720px;
        font-size: .96rem;
        line-height: 1.65;
    }
    .public-page-seo .seo-hero-visual {
        width: 100%;
        justify-content: stretch;
    }
    .public-page-seo .seo-commercial-card {
        width: 100%;
        min-height: 340px;
    }
    .public-page-seo .seo-problem {
        width: 100%;
        padding: .8rem 1rem 3.5rem;
    }
    .public-page-seo .seo-connected-band {
        width: calc(100% - 1.5rem);
        margin: 0 .75rem 3.6rem;
    }
    .public-page-seo .public-footer {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .public-page-seo .public-layout {
        width: min(100% - 18px, 1240px);
    }
    .public-page-seo .seo-public-nav {
        border-radius: 13px;
        padding: .52rem .58rem;
    }
    .public-page-seo .seo-public-nav .public-brand img {
        height: auto;
        width: min(128px, 38vw);
        max-width: 128px;
    }
    .public-page-seo .seo-public-nav .landing-nav-actions .btn {
        padding: .48rem .62rem !important;
        font-size: .61rem !important;
    }
    .public-page-seo .seo-breadcrumb {
        margin-top: .65rem;
        font-size: .6rem;
    }
    .public-page-seo .seo-hero,
    .public-page-seo .seo-hero-commercial {
        padding: 2.9rem .7rem 2.65rem;
        gap: 1.6rem;
    }
    .public-page-seo .seo-hero-copy > span {
        font-size: .62rem;
    }
    .public-page-seo .seo-hero-copy h1,
    .public-page-seo .seo-hero-commercial .seo-hero-copy h1 {
        margin: .6rem 0 1rem;
        font-size: clamp(2.25rem, 11vw, 3.05rem);
        line-height: 1.04;
        letter-spacing: -.05em;
    }
    .public-page-seo .seo-hero-copy > p {
        font-size: .88rem;
        line-height: 1.62;
    }
    .public-page-seo .landing-actions {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: .55rem;
        margin-top: 1.35rem;
    }
    .public-page-seo .landing-actions .btn {
        min-width: 0;
        padding: .72rem .55rem !important;
        font-size: .72rem !important;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }
    .public-page-seo .landing-trust {
        gap: .55rem .8rem;
        margin-top: .9rem;
        font-size: .6rem;
    }
    .public-page-seo .landing-trust span {
        max-width: 100%;
    }
    .public-page-seo .seo-commercial-card {
        min-height: 290px;
        padding: 1rem;
        border-radius: 22px;
    }
    .public-page-seo .seo-commercial-card::before {
        width: 170px;
        height: 170px;
        right: -58px;
        top: -50px;
    }
    .public-page-seo .seo-commercial-card::after {
        width: 145px;
        height: 145px;
        left: -55px;
        bottom: 30px;
    }
    .public-page-seo .seo-commercial-bizfera {
        height: 32px;
        max-width: 145px;
    }
    .public-page-seo .seo-commercial-brand {
        max-width: 100%;
        gap: .5rem;
    }
    .public-page-seo .seo-commercial-brand img {
        max-width: 118px;
        max-height: 38px;
    }
    .public-page-seo .seo-commercial-brand img:last-child {
        max-width: 92px;
        max-height: 28px;
    }
    .public-page-seo .seo-commercial-card > strong {
        font-size: 1.18rem;
    }
    .public-page-seo .seo-commercial-nodes {
        max-width: 100%;
        flex-wrap: wrap !important;
        overflow: visible;
    }
    .public-page-seo .seo-problem {
        padding: .4rem .7rem 3rem;
    }
    .public-page-seo .seo-problem h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }
    .public-page-seo .landing-section {
        padding: 3rem 0 !important;
    }
    .public-page-seo .landing-section-heading {
        margin-bottom: 1.35rem;
    }
    .public-page-seo .landing-section-heading h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }
    .public-page-seo .seo-feature-grid,
    .public-page-seo .seo-step-grid,
    .public-page-seo .seo-audience-grid,
    .public-page-seo .seo-use-case-list,
    .public-page-seo .seo-related-links,
    .public-page-seo .landing-seo-hub-groups {
        grid-template-columns: minmax(0, 1fr);
    }
    .public-page-seo .seo-connected-band {
        width: 100%;
        margin: 0 0 3rem;
        padding: 1.35rem;
        border-radius: 19px;
    }
    .public-page-seo .seo-price-section {
        gap: 1.25rem;
    }
    .public-page-seo .seo-price-section > .btn {
        width: 100%;
        justify-content: center;
    }
    .public-page-seo .seo-final {
        width: 100%;
        margin-bottom: 2.5rem;
        padding: 1.45rem;
        border-radius: 19px;
    }
    .public-page-seo .seo-final > .btn {
        width: 100%;
        justify-content: center;
    }
    .public-page-seo .seo-public-footer {
        padding: 1.45rem .35rem 2rem;
    }
}

@media (max-width: 380px) {
    .public-page-seo .seo-public-nav .public-brand img {
        width: min(116px, 36vw);
        max-width: 116px;
    }
    .public-page-seo .seo-public-nav .landing-nav-actions .btn {
        padding-inline: .52rem !important;
        font-size: .58rem !important;
    }
    .public-page-seo .seo-hero,
    .public-page-seo .seo-hero-commercial {
        padding-inline: .5rem;
    }
    .public-page-seo .seo-hero-copy h1,
    .public-page-seo .seo-hero-commercial .seo-hero-copy h1 {
        font-size: clamp(2.05rem, 10.5vw, 2.5rem);
    }
    .public-page-seo .landing-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .public-page-seo .landing-actions .btn {
        min-height: 44px;
    }
    .public-page-seo .landing-trust {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Bizfera v1.0.7 · Centro de ayuda, soporte humano y recorridos */
.topbar-help-button{text-decoration:none;color:var(--bs-body-color)}
.bizai-human-support{border:1px solid var(--border-color,#dfe7e3);background:var(--bs-body-bg);color:var(--bs-body-color);border-radius:10px;height:36px;padding:0 11px;display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;white-space:nowrap}.bizai-human-support iconify-icon{font-size:17px;color:var(--primary,#079f74)}.bizai-human-support:hover{border-color:rgba(7,159,116,.35);background:rgba(7,159,116,.05)}
.help-heading{align-items:flex-end}.help-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:16px;align-items:start}.help-sidebar{padding:12px;position:sticky;top:86px;max-height:calc(100vh - 110px);overflow:hidden;display:flex;flex-direction:column}.help-search{position:relative;margin-bottom:10px}.help-search iconify-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:18px;color:var(--bs-secondary-color)}.help-search input{width:100%;height:42px;padding:0 12px 0 40px;border:1px solid var(--border-color,#dfe7e3);background:var(--bs-body-bg);color:var(--bs-body-color);border-radius:11px;outline:none}.help-module-list{display:flex;flex-direction:column;gap:4px;overflow:auto;padding-right:2px}.help-module-list>a{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start;padding:9px;border-radius:11px;text-decoration:none;color:var(--bs-body-color);border:1px solid transparent}.help-module-list>a>iconify-icon{font-size:20px;margin-top:2px;color:var(--bs-secondary-color)}.help-module-list>a span{min-width:0}.help-module-list>a strong{display:block;font-size:12px}.help-module-list>a small{display:block;font-size:10px;line-height:1.35;color:var(--bs-secondary-color);margin-top:2px}.help-module-list>a:hover{background:var(--soft-bg,#f7faf8)}.help-module-list>a.is-active{background:rgba(7,159,116,.07);border-color:rgba(7,159,116,.16)}.help-module-list>a.is-active>iconify-icon{color:var(--primary,#079f74)}.help-no-results{padding:25px 10px;text-align:center;font-size:12px;color:var(--bs-secondary-color)}.help-article{padding:28px}.help-article-header{display:grid;grid-template-columns:54px minmax(0,1fr);gap:15px;align-items:start;padding-bottom:22px;border-bottom:1px solid var(--border-color,#e4e9e7)}.help-article-icon{width:54px;height:54px;border-radius:16px;background:rgba(7,159,116,.09);color:var(--primary,#079f74);display:grid;place-items:center;font-size:27px}.help-article-header h2{font-size:30px;margin:3px 0 5px}.help-article-header p{margin:0;color:var(--bs-secondary-color);max-width:780px}.help-article-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;padding:25px 0}.help-article-grid section{min-width:0}.help-article h3{font-size:13px;margin:0 0 14px;display:flex;align-items:center;gap:7px}.help-article h3 iconify-icon{font-size:18px;color:var(--primary,#079f74)}.help-article ul,.help-article ol{margin:0;padding-left:21px;display:flex;flex-direction:column;gap:9px;font-size:12px;line-height:1.55;color:var(--bs-secondary-color)}.help-common{padding:18px;border:1px solid rgba(232,171,46,.25);background:rgba(232,171,46,.05);border-radius:14px}.help-common div{display:grid;gap:8px}.help-common p{font-size:12px;line-height:1.5;margin:0}.help-impact{margin-top:4px;padding:18px;border:1px solid rgba(7,159,116,.2);background:rgba(7,159,116,.045);border-radius:14px}.help-impact h3{margin-bottom:12px}.help-impact div{display:grid;gap:8px}.help-impact p{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:12px;line-height:1.5;color:var(--bs-secondary-color)}.help-impact p iconify-icon{flex:0 0 auto;margin-top:1px;font-size:17px;color:var(--primary,#079f74)}.help-article-footer{margin-top:24px;padding-top:20px;border-top:1px solid var(--border-color,#e4e9e7);display:flex;justify-content:space-between;align-items:center;gap:18px}.help-article-footer>div{display:flex;flex-direction:column;gap:3px}.help-article-footer strong{font-size:13px}.help-article-footer span{font-size:11px;color:var(--bs-secondary-color);max-width:680px}
.support-panel{position:fixed;inset:0;z-index:1095;pointer-events:none;visibility:hidden}.support-panel.is-open{pointer-events:auto;visibility:visible}.support-backdrop{position:absolute;inset:0;background:rgba(8,22,18,.32);opacity:0;transition:opacity .2s}.support-panel.is-open .support-backdrop{opacity:1}.support-drawer{position:absolute;right:0;top:0;height:100%;width:min(470px,100vw);background:var(--bs-body-bg);box-shadow:-18px 0 45px rgba(15,29,25,.15);transform:translateX(100%);transition:transform .22s ease;display:flex;flex-direction:column}.support-panel.is-open .support-drawer{transform:translateX(0)}.support-header{padding:17px 18px;border-bottom:1px solid var(--border-color,#e4e9e7);display:flex;justify-content:space-between;gap:12px;align-items:center}.support-title{display:flex;align-items:center;gap:11px}.support-title>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(7,159,116,.09);color:var(--primary,#079f74);font-size:21px}.support-title strong{font-size:14px;display:block}.support-title small{display:block;color:var(--bs-secondary-color);font-size:10px;margin-top:2px}.support-context{margin:12px 14px 0;padding:10px 11px;border-radius:11px;background:var(--soft-bg,#f7faf8);display:flex;gap:8px;font-size:10px;line-height:1.45;color:var(--bs-secondary-color)}.support-context iconify-icon{font-size:17px;color:var(--primary,#079f74);flex:none}.support-messages{flex:1;overflow:auto;padding:18px 14px;display:flex;flex-direction:column;gap:10px}.support-loading{margin:auto;color:var(--bs-secondary-color);font-size:12px}.support-welcome{text-align:center;margin:auto;max-width:320px;display:flex;flex-direction:column;align-items:center;gap:7px}.support-welcome>span{width:50px;height:50px;border-radius:16px;background:rgba(7,159,116,.08);color:var(--primary,#079f74);display:grid;place-items:center;font-size:25px}.support-welcome strong{font-size:15px}.support-welcome p{font-size:11px;line-height:1.5;color:var(--bs-secondary-color);margin:0}.support-message{display:flex}.support-message>div{max-width:84%;padding:10px 12px;border-radius:13px}.support-message p{font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.support-message small{display:block;margin-top:5px;font-size:9px;opacity:.7}.support-message.is-user{justify-content:flex-end}.support-message.is-user>div{background:var(--primary,#079f74);color:#fff;border-bottom-right-radius:4px}.support-message.is-support{justify-content:flex-start}.support-message.is-support>div{background:var(--soft-bg,#f4f7f6);border:1px solid var(--border-color,#e1e8e5);border-bottom-left-radius:4px}.support-resolved{margin:0 14px 10px;padding:10px 11px;background:rgba(7,159,116,.06);border-radius:10px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.support-composer{margin:0 14px 10px;border:1px solid var(--border-color,#dce5e1);border-radius:14px;padding:8px;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;align-items:end}.support-composer textarea{border:0!important;box-shadow:none!important;outline:0;resize:none;background:transparent;color:var(--bs-body-color);padding:4px 6px;font-size:12px;max-height:130px}.support-send{width:38px;height:38px;border:0;border-radius:11px;background:var(--primary,#079f74);color:#fff;display:grid;place-items:center;font-size:19px}.support-footer{padding:0 15px 14px;display:flex;justify-content:space-between;gap:10px}.support-footer a,.support-footer button{border:0;background:transparent;color:var(--bs-secondary-color);font-size:10px;text-decoration:none;display:flex;align-items:center;gap:5px;padding:4px}.support-footer a:hover,.support-footer button:hover{color:var(--primary,#079f74)}body.support-open{overflow:hidden}
.support-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,180px));gap:12px;margin-bottom:14px}.support-admin-stats article{padding:14px 16px}.support-admin-stats span{display:block;font-size:9px;font-weight:700;letter-spacing:.08em;color:var(--bs-secondary-color)}.support-admin-stats strong{font-size:24px}.support-admin-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:14px;align-items:start}.support-admin-list,.support-admin-detail{padding:0;overflow:hidden;min-height:650px}.support-admin-filters{display:grid;grid-template-columns:1fr 110px;gap:7px;padding:12px;border-bottom:1px solid var(--border-color,#e4e9e7)}.support-admin-filters .form-control,.support-admin-filters .form-select{font-size:11px}.support-admin-thread-list{max-height:720px;overflow:auto}.support-admin-thread{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:13px;border-bottom:1px solid var(--border-color,#e8ecea);text-decoration:none;color:var(--bs-body-color)}.support-admin-thread:hover,.support-admin-thread.is-active{background:var(--soft-bg,#f7faf8)}.support-admin-thread.is-active{box-shadow:inset 3px 0 var(--primary,#079f74)}.support-admin-thread strong{font-size:12px}.support-admin-thread span,.support-admin-thread time{font-size:9px;color:var(--bs-secondary-color)}.support-admin-thread p{grid-column:1/-1;margin:3px 0;font-size:10px;line-height:1.4;color:var(--bs-secondary-color);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.support-admin-thread small{grid-column:1/-1;width:max-content;font-size:9px;font-weight:700;border-radius:999px;padding:3px 7px;background:rgba(233,167,35,.08);color:#9a6a10}.support-admin-thread small.status-resuelta{background:rgba(7,159,116,.08);color:var(--primary,#079f74)}.support-admin-detail-head{padding:16px 18px;border-bottom:1px solid var(--border-color,#e4e9e7);display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.support-admin-detail-head h2{font-size:18px;margin:2px 0 3px}.support-admin-detail-head p{font-size:10px;color:var(--bs-secondary-color);margin:0}.support-admin-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);min-height:580px}.support-admin-chat{border-right:1px solid var(--border-color,#e4e9e7);display:flex;flex-direction:column;min-width:0}.support-admin-messages{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1;max-height:580px;overflow:auto}.support-admin-composer{padding:12px;border-top:1px solid var(--border-color,#e4e9e7);display:grid;gap:8px}.support-admin-composer textarea{font-size:11px;resize:vertical}.support-admin-composer .btn{justify-self:end}.support-diagnostic{padding:16px;overflow:auto;max-height:650px}.support-diagnostic>h3{font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin:4px 0 10px}.support-diagnostic dl{display:grid;gap:7px;margin:0 0 20px}.support-diagnostic dl div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:7px;font-size:10px}.support-diagnostic dt{color:var(--bs-secondary-color)}.support-diagnostic dd{margin:0;overflow-wrap:anywhere}.support-diagnostic-timeline,.support-diagnostic-errors{display:flex;flex-direction:column;gap:7px;margin-bottom:20px}.support-diagnostic-timeline article,.support-diagnostic-errors article{padding:9px;border:1px solid var(--border-color,#e4e9e7);border-radius:10px;display:flex;flex-direction:column;gap:2px}.support-diagnostic-timeline time,.support-diagnostic-timeline span,.support-diagnostic-errors small{font-size:9px;color:var(--bs-secondary-color)}.support-diagnostic-timeline strong,.support-diagnostic-errors strong{font-size:10px;line-height:1.4}.support-diagnostic-timeline b{font-size:9px;color:#b43f3f}.support-diagnostic-errors article>span{font-size:8px;font-weight:800;color:#b43f3f}
.activity-journeys{padding:0;margin-bottom:14px;overflow:hidden}.activity-journeys>header{padding:16px 18px;border-bottom:1px solid var(--border-color,#e4e9e7)}.activity-journeys h2{font-size:17px;margin:2px 0}.activity-journeys p{font-size:11px;color:var(--bs-secondary-color);margin:0}.activity-journey-list{display:flex;flex-direction:column}.activity-journey{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(270px,1fr) minmax(240px,1.1fr) auto;align-items:center;gap:15px;padding:13px 18px;border-bottom:1px solid var(--border-color,#e8ecea)}.activity-journey:last-child{border-bottom:0}.activity-journey.has-errors{background:rgba(199,67,67,.025)}.activity-journey-person{display:flex;align-items:center;gap:9px;min-width:0}.activity-journey-person>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(7,159,116,.08);color:var(--primary,#079f74);font-size:18px;flex:none}.activity-journey-person strong,.activity-journey-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-journey-person strong{font-size:11px}.activity-journey-person small{font-size:9px;color:var(--bs-secondary-color)}.activity-journey-metrics{display:flex;flex-wrap:wrap;gap:7px}.activity-journey-metrics span{font-size:9px;padding:4px 7px;border:1px solid var(--border-color,#e2e8e5);border-radius:999px;color:var(--bs-secondary-color)}.activity-journey-metrics .is-error{color:#b43f3f;border-color:rgba(180,63,63,.2)}.activity-journey-route{min-width:0}.activity-journey-route small,.activity-journey-route span,.activity-journey-route strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-journey-route small{font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:var(--bs-secondary-color)}.activity-journey-route strong{font-size:10px;margin:2px 0}.activity-journey-route span{font-size:9px;color:var(--bs-secondary-color)}
@media(max-width:1100px){.help-layout{grid-template-columns:1fr}.help-sidebar{position:static;max-height:none}.help-module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:330px}.support-admin-layout{grid-template-columns:1fr}.support-admin-list{min-height:0}.support-admin-thread-list{max-height:360px}.support-admin-content{grid-template-columns:1fr}.support-admin-chat{border-right:0;border-bottom:1px solid var(--border-color,#e4e9e7)}.activity-journey{grid-template-columns:1fr 1fr}.activity-journey>a{justify-self:start}}
@media(max-width:767px){.bizai-human-support span{display:none}.help-heading{align-items:flex-start}.help-layout{gap:10px}.help-sidebar{padding:9px}.help-module-list{grid-template-columns:1fr;max-height:280px}.help-article{padding:18px}.help-article-header{grid-template-columns:42px minmax(0,1fr)}.help-article-icon{width:42px;height:42px;border-radius:13px;font-size:22px}.help-article-header h2{font-size:23px}.help-article-grid{grid-template-columns:1fr;gap:22px}.help-article-footer{align-items:flex-start;flex-direction:column}.help-article-footer .btn{width:100%}.support-admin-stats{grid-template-columns:repeat(3,1fr)}.support-admin-layout{gap:10px}.support-admin-content{display:block}.support-diagnostic{max-height:none;border-top:1px solid var(--border-color,#e4e9e7)}.activity-journey{grid-template-columns:1fr;gap:9px}.activity-journey-metrics{gap:5px}}

.error-log-related{margin:.45rem 0 .15rem}.error-log-related .btn{gap:.38rem;font-size:.78rem;padding:.38rem .65rem}

/* Bizfera v1.0.8 · Actividades por usuario + acceso a App móvil */
.activity-back-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--bs-secondary-color);font-size:10px;font-weight:600;margin-bottom:9px}.activity-back-link:hover{color:var(--primary,#079f74)}.activity-back-link iconify-icon{font-size:15px}.activity-journey-detail-summary{grid-template-columns:repeat(6,minmax(0,1fr))}.activity-journey-only-head{border-bottom:1px solid var(--border-color,#e4e9e7)}
.mobile-app-entry{display:none}
@media(max-width:1200px){.activity-journey-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.activity-journey-detail-summary{grid-template-columns:1fr 1fr}.mobile-app-entry{display:grid}.topbar .mobile-app-entry{flex:none}}

/* Bizfera v1.0.9 · Web mobile: ayuda y tema siempre accesibles */
@media (max-width:575.98px){
    .topbar-actions .topbar-help-button{display:inline-flex!important}
    .topbar-actions [data-theme-toggle]{display:inline-flex!important}
    .topbar-actions .notification-button{display:inline-flex!important}
    .topbar-actions{gap:.24rem}
    .topbar-actions .icon-button{width:38px;height:38px;border-radius:10px}
    .topbar .subscription-status-pill{width:38px;min-width:38px;padding:0;justify-content:center}
}

/* Onboarding v1.0.9 · acceso fiscal opcional desde el principio */
.onboarding-arca-shortcut{margin:0 16px 12px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--biz-primary) 26%,var(--biz-border));border-radius:13px;background:color-mix(in srgb,var(--biz-primary) 7%,var(--biz-surface));color:var(--biz-text);text-decoration:none;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center}.onboarding-arca-shortcut>span{width:38px;height:38px;border-radius:11px;background:var(--biz-surface);color:var(--biz-primary);display:grid;place-items:center}.onboarding-arca-shortcut>span iconify-icon{font-size:20px}.onboarding-arca-shortcut>div{min-width:0}.onboarding-arca-shortcut small{display:block;font-size:.52rem;color:var(--biz-muted)}.onboarding-arca-shortcut strong{display:block;font-size:.68rem;margin-top:.08rem}.onboarding-arca-shortcut p{margin:.12rem 0 0;font-size:.53rem;color:var(--biz-muted)}.onboarding-arca-shortcut>iconify-icon{font-size:17px;color:var(--biz-primary)}.onboarding-arca-shortcut:hover{border-color:var(--biz-primary);color:var(--biz-text)}
.onboarding-progress-card>div:first-child span{line-height:1.45}

/* Bizfera v1.0.9 · Topbar web realmente utilizable en teléfonos angostos */
.profile-menu-bizai-icon{width:17px;height:17px;display:grid;place-items:center}.profile-menu-bizai-icon img{width:100%;height:100%;object-fit:contain}
@media (max-width:575.98px){
    .topbar{gap:.28rem;padding-left:.55rem;padding-right:.55rem}
    .topbar-actions{gap:.18rem}
    .topbar-actions .icon-button,.topbar .mobile-app-entry,.topbar .mobile-menu-button{width:36px;height:36px;min-width:36px}
    .topbar-onboarding-button{width:36px;height:36px;min-width:36px}
    .profile-button{min-width:38px;height:38px;padding:0 .1rem}
}
@media (max-width:430px){
    .topbar .subscription-status-pill{display:none!important}
    .topbar .topbar-bizai-trigger{display:none!important}
}

/* Bizfera v1.0.10 · onboarding ARCA discreto */
.onboarding-arca-shortcut{
    margin:0 18px 10px;
    padding:3px 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    display:flex;
    align-items:center;
    gap:6px;
    color:var(--biz-muted);
    text-decoration:none;
}
.onboarding-arca-shortcut>span{
    width:auto;
    height:auto;
    display:inline;
    background:transparent;
    color:var(--biz-muted);
    font-size:.54rem;
}
.onboarding-arca-shortcut>strong{font-size:.58rem;color:var(--biz-text);margin:0}
.onboarding-arca-shortcut>iconify-icon{font-size:13px;color:var(--biz-primary)}
.onboarding-arca-shortcut:hover{border:0;background:transparent;color:var(--biz-primary)}

/* Bizfera v1.0.12 · demo pública */
.bizfera-demo-bar{display:flex;align-items:center;justify-content:center;gap:14px;min-height:34px;padding:7px 14px;background:#eefaf6;border-bottom:1px solid #d3eee4;color:#345048;font-size:10px;line-height:1.3;text-align:center}
.bizfera-demo-bar span{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:center}.bizfera-demo-bar strong{color:#162c25}.bizfera-demo-bar i{font-style:normal;color:#94aaa2}.bizfera-demo-bar a{color:#078d69;font-weight:700;text-decoration:none;white-space:nowrap}.bizfera-demo-bar a:hover{text-decoration:underline}
html[data-bs-theme="dark"] .bizfera-demo-bar{background:#07110e;border-color:#17332a;color:#9eb4ac}html[data-bs-theme="dark"] .bizfera-demo-bar strong{color:#eff8f4}html[data-bs-theme="dark"] .bizfera-demo-bar a{color:#39d7a7}
@media(max-width:600px){.bizfera-demo-bar{justify-content:space-between;text-align:left;font-size:8.5px;padding:6px 10px}.bizfera-demo-bar span{justify-content:flex-start;gap:3px}.bizfera-demo-bar i{display:none}}

.print-demo-fiscal-notice{margin:12px 0;padding:10px 12px;border:1px dashed currentColor;border-radius:8px;display:flex;flex-direction:column;gap:2px;text-align:center}.print-demo-fiscal-notice strong{font-size:12px;letter-spacing:.04em}.print-demo-fiscal-notice span{font-size:10px}

/* Bizfera v1.0.16 · Facturación móvil compacta + sheets cerrados sin asomar */
.checkout-sheet[hidden],
.bottom-sheet[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    body.app-page.module-facturacion .main-content {
        padding: .8rem .7rem 1.2rem;
    }

    body.module-facturacion .pos-heading {
        margin-bottom: .55rem;
        gap: .55rem;
    }

    body.module-facturacion .pos-heading h1 {
        font-size: 1.35rem;
        line-height: 1.08;
    }

    body.module-facturacion .pos-heading p {
        margin-top: .18rem;
        font-size: .61rem;
        line-height: 1.45;
    }

    body.module-facturacion .pos-session {
        width: 100%;
        min-height: 54px;
        padding: .62rem .72rem;
        border-radius: 12px;
    }

    body.module-facturacion .pos-session strong { font-size: .68rem; }
    body.module-facturacion .pos-session small { font-size: .54rem; }

    body.module-facturacion .pos-layout {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    body.module-facturacion .pos-scanner {
        padding: .68rem;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: .55rem;
        border-radius: 14px;
    }

    body.module-facturacion .scanner-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    body.module-facturacion .pos-scanner label strong { font-size: .68rem; }
    body.module-facturacion .pos-scanner label span { font-size: .54rem; }

    body.module-facturacion .scanner-input {
        min-height: 43px;
        padding: 0 .55rem;
        grid-column: 1 / -1;
        border-radius: 10px;
        box-shadow: 0 0 0 3px var(--biz-primary-soft);
    }

    body.module-facturacion .scanner-input input {
        font-size: .76rem;
    }

    body.module-facturacion .scanner-input kbd { display: none; }

    body.module-facturacion .pos-catalog-heading {
        min-height: 44px;
        padding: .58rem .1rem .4rem;
    }

    body.module-facturacion .pos-catalog-heading strong { font-size: .75rem; }
    body.module-facturacion .pos-catalog-heading span { font-size: .56rem; }

    body.module-facturacion .pos-category-strip {
        margin-bottom: .58rem;
        gap: .36rem;
        padding-bottom: .18rem;
    }

    body.module-facturacion .pos-category-chip {
        min-height: 31px;
        padding: .38rem .6rem;
        font-size: .57rem;
    }

    body.module-facturacion .pos-category-chip iconify-icon { font-size: .78rem; }

    body.module-facturacion .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .5rem !important;
    }

    body.module-facturacion .product-card {
        display: grid !important;
        min-width: 0;
        min-height: 112px !important;
        padding: .52rem !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: .5rem !important;
        row-gap: 0 !important;
        align-content: start !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    body.module-facturacion .product-card:hover,
    body.module-facturacion .product-card:focus-visible {
        transform: none;
        box-shadow: none;
    }

    body.module-facturacion .product-card-image {
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        grid-column: 1;
        grid-row: 1;
        border-radius: 9px !important;
    }

    body.module-facturacion .product-card-image img {
        width: 88%;
        height: 88%;
    }

    body.module-facturacion .product-card-copy {
        min-width: 0;
        padding: 0 !important;
        grid-column: 2;
        grid-row: 1;
    }

    body.module-facturacion .product-card-copy small {
        overflow: hidden;
        font-size: .46rem !important;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.module-facturacion .product-card-copy strong {
        display: -webkit-box;
        min-height: 0 !important;
        margin-top: .12rem !important;
        overflow: hidden;
        font-size: .63rem !important;
        line-height: 1.2 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.module-facturacion .product-card-copy em {
        margin-top: .14rem !important;
        overflow: hidden;
        font-size: .48rem !important;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.module-facturacion .product-price {
        min-width: 0;
        margin-top: .48rem !important;
        padding: 0 1.25rem 0 0 !important;
        grid-column: 1 / -1;
        grid-row: 2;
        gap: .25rem;
    }

    body.module-facturacion .product-price b {
        font-size: .78rem !important;
        line-height: 1;
    }

    body.module-facturacion .product-price del { font-size: .48rem !important; }

    body.module-facturacion .product-add {
        right: .48rem !important;
        bottom: .43rem !important;
    }

    body.module-facturacion .product-add iconify-icon { font-size: 1.12rem !important; }
    body.module-facturacion .product-discount { top: .4rem; left: .4rem; font-size: .46rem; }

    /* El cierre de operación no existe visualmente hasta tocar Cobrar/Continuar. */
    body.module-facturacion .checkout-sheet[aria-hidden="true"] {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.app-page.module-facturacion .checkout-sheet:not([hidden]) {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        padding: 0 .7rem .8rem;
        border-radius: 0;
        overflow-y: auto;
    }

    body.app-page.module-facturacion .checkout-header {
        min-height: 64px;
        padding: .72rem 0;
    }

    body.app-page.module-facturacion .checkout-header h2 { font-size: 1rem; }

    body.app-page.module-facturacion .checkout-quickbar {
        display: grid;
        margin-bottom: .55rem;
        padding: .48rem;
        grid-template-columns: 1fr 1fr;
        gap: .45rem;
    }

    body.app-page.module-facturacion .checkout-seller-compact {
        width: 100%;
        margin: 0;
        grid-column: 1 / -1;
    }

    body.app-page.module-facturacion .checkout-seller-compact .form-select {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    body.app-page.module-facturacion .checkout-body {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    body.app-page.module-facturacion .checkout-workspace,
    body.app-page.module-facturacion .checkout-summary {
        min-height: 0;
        padding: .72rem;
        border-radius: 12px;
    }

    body.app-page.module-facturacion .payment-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .45rem;
    }

    body.app-page.module-facturacion .payment-method-grid button {
        min-height: 68px;
        padding: .5rem;
    }

    body.app-page.module-facturacion .checkout-summary { position: static; }
}

@media (max-width: 360px) {
    body.module-facturacion .product-card {
        min-height: 106px !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }
    body.module-facturacion .product-card-image { width: 34px !important; height: 34px !important; }
    body.module-facturacion .product-card-copy strong { font-size: .59rem !important; }
    body.module-facturacion .product-price b { font-size: .72rem !important; }
}

/* =========================================================
   Bizfera v1.0.17 · Facturación responsive + carrusel de categorías
========================================================= */
body.module-facturacion,
body.module-facturacion .main-content,
body.module-facturacion .pos-layout,
body.module-facturacion .pos-catalog,
body.module-facturacion .pos-scanner,
body.module-facturacion .product-grid,
body.module-facturacion .pos-category-nav,
body.module-facturacion .pos-category-strip {
    min-width: 0;
}

body.module-facturacion .pos-layout,
body.module-facturacion .pos-catalog,
body.module-facturacion .pos-scanner,
body.module-facturacion .product-grid,
body.module-facturacion .pos-category-nav {
    width: 100%;
    max-width: 100%;
}

.pos-category-nav {
    display: grid;
    width: 100%;
    min-width: 0;
    margin: -.05rem 0 .85rem;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .4rem;
    overflow: hidden;
}

.pos-category-nav .pos-category-strip {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: .15rem .05rem .25rem;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.pos-category-nav .pos-category-strip.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.pos-category-nav .pos-category-chip {
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}

.pos-category-arrow {
    display: inline-grid;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--biz-border);
    border-radius: 50%;
    background: var(--biz-surface);
    color: var(--bs-body-color);
    box-shadow: 0 5px 16px rgba(14, 36, 28, .07);
    transition: border-color .16s ease, color .16s ease, background .16s ease, opacity .16s ease;
}

.pos-category-arrow:hover {
    border-color: color-mix(in srgb, var(--biz-primary) 45%, var(--biz-border));
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
}

.pos-category-arrow iconify-icon { font-size: 17px; }
.pos-category-arrow[hidden] { display: none !important; }

.web-mobile-pos-dock { display: none; }

@media (max-width: 767.98px) {
    body.module-facturacion {
        overflow-x: hidden;
    }

    body.app-page.module-facturacion .main-content {
        width: 100%;
        max-width: 100%;
        padding: .72rem .65rem 5.7rem !important;
        overflow-x: clip;
    }

    body.module-facturacion .pos-heading,
    body.module-facturacion .pos-heading > div {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body.module-facturacion .pos-heading {
        margin-bottom: .45rem;
    }

    body.module-facturacion .pos-heading h1 {
        margin-bottom: .15rem;
        font-size: 1.24rem !important;
    }

    body.module-facturacion .pos-heading p {
        max-width: 100%;
        font-size: .61rem !important;
    }

    body.module-facturacion .pos-session {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 48px;
        padding: .55rem .65rem;
    }

    body.module-facturacion .pos-layout {
        display: block !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body.module-facturacion .pos-catalog {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    body.module-facturacion .pos-scanner {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: .6rem !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: .5rem !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    body.module-facturacion .scanner-icon {
        width: 34px !important;
        height: 34px !important;
    }

    body.module-facturacion .pos-scanner label {
        min-width: 0;
    }

    body.module-facturacion .pos-scanner label strong {
        font-size: .66rem !important;
    }

    body.module-facturacion .pos-scanner label span {
        overflow: hidden;
        font-size: .5rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.module-facturacion .scanner-input,
    body.module-facturacion .mobile-product-search-row {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
        grid-column: 1 / -1;
    }

    body.module-facturacion .scanner-input {
        min-height: 40px !important;
    }

    body.module-facturacion .scanner-input input {
        width: 100%;
        min-width: 0;
        font-size: .72rem !important;
    }

    body.module-facturacion .pos-catalog-heading {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 39px !important;
        padding: .48rem .08rem .32rem !important;
    }

    body.module-facturacion .pos-category-nav {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-bottom: .48rem;
        overflow: hidden;
    }

    body.module-facturacion .pos-category-arrow {
        display: none !important;
    }

    body.module-facturacion .pos-category-nav .pos-category-strip {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: .1rem .05rem .18rem;
        gap: .32rem;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-y;
        scroll-snap-type: none;
        overscroll-behavior-x: contain;
    }

    body.module-facturacion .pos-category-chip {
        min-height: 29px !important;
        padding: .34rem .55rem !important;
        font-size: .54rem !important;
        scroll-snap-align: none;
    }

    body.module-facturacion .product-grid {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .42rem !important;
    }

    body.module-facturacion .product-card {
        width: 100%;
        min-width: 0 !important;
        min-height: 104px !important;
        max-width: 100%;
        padding: .46rem !important;
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) 22px !important;
        grid-template-rows: minmax(38px, auto) auto !important;
        column-gap: .42rem !important;
        row-gap: .34rem !important;
        align-content: stretch !important;
        overflow: hidden;
        border-radius: 11px !important;
        box-sizing: border-box;
    }

    body.module-facturacion .product-card-image {
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        border-radius: 8px !important;
    }

    body.module-facturacion .product-card-copy {
        min-width: 0 !important;
        padding: 0 !important;
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;
        align-self: start;
    }

    body.module-facturacion .product-card-copy small {
        overflow: hidden;
        font-size: .42rem !important;
        line-height: 1.1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.module-facturacion .product-card-copy strong {
        display: -webkit-box !important;
        min-height: 0 !important;
        margin-top: .1rem !important;
        overflow: hidden;
        font-size: .58rem !important;
        line-height: 1.18 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.module-facturacion .product-card-copy em {
        display: block;
        margin-top: .12rem !important;
        overflow: hidden;
        font-size: .43rem !important;
        line-height: 1.1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.module-facturacion .product-price {
        min-width: 0 !important;
        min-height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: end !important;
        grid-column: 1 / 3 !important;
        grid-row: 2 !important;
        gap: .22rem;
    }

    body.module-facturacion .product-price b {
        overflow: hidden;
        max-width: 100%;
        font-size: .72rem !important;
        line-height: 1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.module-facturacion .product-price del {
        font-size: .42rem !important;
    }

    body.module-facturacion .product-add {
        position: static !important;
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center;
        grid-column: 3 !important;
        grid-row: 2 !important;
        align-self: end;
        justify-self: end;
    }

    body.module-facturacion .product-add iconify-icon {
        font-size: 18px !important;
    }

    /* Web móvil: mismo patrón que la app. El carrito sólo sube al tocar total. */
    body.app-page.module-facturacion .pos-ticket {
        position: fixed !important;
        z-index: 1044 !important;
        left: 50% !important;
        right: auto !important;
        bottom: 63px !important;
        width: min(calc(100% - 12px), 740px) !important;
        max-height: min(58dvh, 500px) !important;
        margin: 0 !important;
        padding: .75rem !important;
        overflow-y: auto !important;
        border-radius: 16px 16px 0 0 !important;
        border-bottom: 0 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(calc(100% + 80px)) !important;
        transition: transform .2s ease, opacity .16s ease, visibility .16s ease;
        box-shadow: 0 -14px 32px rgba(7, 25, 18, .16) !important;
    }

    body.web-mobile-cart-open.app-page.module-facturacion .pos-ticket {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) !important;
    }

    body.app-page.module-facturacion .ticket-submit {
        display: none !important;
    }

    .web-mobile-pos-dock {
        position: fixed;
        z-index: 1045;
        left: 50%;
        bottom: 0;
        width: min(100%, 760px);
        min-height: 64px;
        padding: .45rem .65rem calc(.45rem + env(safe-area-inset-bottom));
        display: grid;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .55rem;
        border-top: 1px solid var(--biz-border);
        background: color-mix(in srgb, var(--biz-surface) 96%, transparent);
        backdrop-filter: blur(18px);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, .06);
        transform: translateX(-50%);
    }

    .web-mobile-pos-summary {
        appearance: none;
        min-width: 0;
        padding: .1rem .15rem;
        display: grid;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .4rem;
        border: 0;
        background: transparent;
        color: var(--bs-body-color);
        text-align: left;
    }

    .web-mobile-pos-summary span { min-width: 0; }
    .web-mobile-pos-summary small { display: block; color: var(--biz-muted); font-size: .52rem; }
    .web-mobile-pos-summary strong { display: block; margin-top: .05rem; font-size: 1rem; line-height: 1.05; }
    .web-mobile-pos-summary iconify-icon { color: var(--biz-muted); font-size: 17px; }
    .web-mobile-pos-dock > .btn { min-width: 112px; min-height: 40px !important; }

    body.module-facturacion .checkout-sheet[hidden],
    body.module-facturacion .checkout-backdrop[hidden] {
        display: none !important;
    }

    body.app-page.module-facturacion .checkout-sheet:not([hidden]) {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 0 .65rem .7rem !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 360px) {
    body.module-facturacion .product-grid { gap: .34rem !important; }
    body.module-facturacion .product-card {
        min-height: 98px !important;
        padding: .4rem !important;
        grid-template-columns: 31px minmax(0, 1fr) 20px !important;
        column-gap: .34rem !important;
    }
    body.module-facturacion .product-card-image { width: 31px !important; height: 31px !important; }
    body.module-facturacion .product-card-copy strong { font-size: .54rem !important; }
    body.module-facturacion .product-price b { font-size: .66rem !important; }
}
.pos-category-arrow:disabled {
    opacity: .34;
    pointer-events: none;
}


/* =========================================================
   Bizfera v1.0.18 · carrito mobile como sheet full-screen
========================================================= */
@media (max-width: 767.98px) {
    body.web-mobile-cart-open.app-page.module-facturacion {
        overflow: hidden !important;
    }

    /* El panel nace exactamente detrás del dock inferior y se despliega hacia arriba. */
    body.app-page.module-facturacion .pos-ticket {
        position: fixed !important;
        z-index: 1044 !important;
        top: 0 !important;
        right: auto !important;
        bottom: var(--web-mobile-pos-dock-height, 64px) !important;
        left: 50% !important;
        width: min(100%, 760px) !important;
        max-width: 760px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--biz-surface) !important;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(calc(100% + var(--web-mobile-pos-dock-height, 64px))) !important;
        transition: transform .26s cubic-bezier(.22,.72,.24,1), opacity .16s ease, visibility .16s ease !important;
        box-shadow: none !important;
    }

    body.web-mobile-cart-open.app-page.module-facturacion .pos-ticket {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) !important;
    }

    body.app-page.module-facturacion .pos-ticket .ticket-heading {
        flex: 0 0 auto;
        padding: .9rem .85rem !important;
        background: var(--biz-surface);
    }

    body.app-page.module-facturacion .pos-ticket .ticket-items {
        min-height: 0 !important;
        max-height: none !important;
        flex: 1 1 auto;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    body.app-page.module-facturacion .pos-ticket .ticket-empty {
        width: 100%;
        min-height: 100% !important;
        height: 100%;
    }

    body.app-page.module-facturacion .pos-ticket .ticket-summary,
    body.app-page.module-facturacion .pos-ticket .ticket-help {
        flex: 0 0 auto;
    }

    body.app-page.module-facturacion .pos-ticket .ticket-summary {
        padding: .72rem .85rem !important;
    }

    body.app-page.module-facturacion .pos-ticket .ticket-help {
        margin: 0 !important;
        padding: .55rem .85rem .7rem !important;
        border-top: 1px solid var(--biz-border);
        background: var(--biz-surface);
    }

    .web-mobile-pos-dock {
        z-index: 1045 !important;
    }
}

/* Bizfera v1.0.19 · Dashboard humano de conversión dentro de Actividades */
.activity-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.activity-dashboard-open{overflow:hidden!important}.activity-dashboard-backdrop[hidden],.activity-dashboard-sheet[hidden]{display:none!important}.activity-dashboard-backdrop{position:fixed;inset:0;z-index:1590;background:rgba(7,20,16,.2);opacity:0;transition:opacity .2s ease}.activity-dashboard-backdrop.is-open{opacity:1}.activity-dashboard-sheet{position:fixed;inset:0;z-index:1600;display:flex;flex-direction:column;background:var(--bs-body-bg,#f6f8f7);color:var(--bs-body-color,#101a17);transform:translateY(100%);opacity:.98;transition:transform .24s cubic-bezier(.22,.72,.24,1),opacity .18s ease;overflow:hidden}.activity-dashboard-sheet.is-open{transform:translateY(0);opacity:1}.activity-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px clamp(18px,3vw,42px) 16px;border-bottom:1px solid var(--border-color,#dfe7e3);background:var(--bs-body-bg,#fff);flex:0 0 auto}.activity-dashboard-header>div{min-width:0}.activity-dashboard-header h2{font-size:clamp(24px,2.5vw,34px);line-height:1;margin:3px 0 6px}.activity-dashboard-header p{margin:0;color:var(--bs-secondary-color);font-size:12px;max-width:800px}.activity-dashboard-close{position:static!important;flex:0 0 auto;width:42px!important;height:42px!important;border-radius:13px!important;border:1px solid var(--border-color,#dfe7e3)!important;background:var(--bs-body-bg,#fff)!important;color:var(--bs-body-color,#101a17)!important;display:grid!important;place-items:center;font-size:23px;cursor:pointer}.activity-dashboard-toolbar{display:flex;align-items:end;gap:18px;padding:11px clamp(18px,3vw,42px);border-bottom:1px solid var(--border-color,#dfe7e3);background:var(--bs-body-bg,#fff);flex:0 0 auto;box-shadow:0 7px 20px rgba(12,35,28,.035);z-index:2}.activity-dashboard-filter-group{display:flex;flex-direction:column;gap:6px;min-width:0}.activity-dashboard-filter-group>span{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--bs-secondary-color)}.activity-dashboard-chips{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}.activity-dashboard-chips button{border:1px solid var(--border-color,#dce6e2);background:var(--bs-body-bg,#fff);color:var(--bs-secondary-color);height:34px;padding:0 13px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer;transition:.15s ease}.activity-dashboard-chips button:hover{border-color:rgba(7,159,116,.4);color:var(--primary,#079f74)}.activity-dashboard-chips button.is-active{background:rgba(7,159,116,.1);border-color:var(--primary,#079f74);color:var(--primary,#079f74)}.activity-dashboard-refresh{margin-left:auto;height:36px}.activity-dashboard-refresh.is-loading iconify-icon{animation:activityDashboardSpin .8s linear infinite}@keyframes activityDashboardSpin{to{transform:rotate(360deg)}}.activity-dashboard-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px clamp(18px,3vw,42px) 42px}.activity-dashboard-content{width:min(1540px,100%);margin:0 auto;display:flex;flex-direction:column;gap:16px}.activity-dashboard-loading{height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:var(--bs-secondary-color)}.activity-dashboard-loading strong{font-size:15px;color:var(--bs-body-color)}.activity-dashboard-loading small{font-size:11px}.activity-dashboard-spinner{width:30px;height:30px;border-radius:50%;border:3px solid rgba(7,159,116,.16);border-top-color:var(--primary,#079f74);animation:activityDashboardSpin .8s linear infinite}.activity-dashboard-error,.activity-dashboard-warning{width:min(1540px,100%);margin:0 auto 14px;border:1px solid rgba(196,79,66,.24);background:rgba(196,79,66,.07);border-radius:14px;padding:13px 15px;display:flex;gap:11px;align-items:flex-start;color:var(--bs-body-color)}.activity-dashboard-error iconify-icon,.activity-dashboard-warning iconify-icon{font-size:21px;color:#c44f42;flex:0 0 auto}.activity-dashboard-error strong{font-size:13px}.activity-dashboard-error p,.activity-dashboard-warning p{font-size:11px;margin:2px 0;color:var(--bs-secondary-color)}.activity-dashboard-top-metrics{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.activity-dashboard-metric{min-width:0;padding:15px;border:1px solid var(--border-color,#dfe7e3);border-radius:14px;background:var(--bs-body-bg,#fff);display:flex;flex-direction:column;gap:3px;box-shadow:0 7px 24px rgba(10,32,25,.035)}.activity-dashboard-metric>span{font-size:9px;line-height:1.3;font-weight:800;letter-spacing:.055em;text-transform:uppercase;color:var(--bs-secondary-color)}.activity-dashboard-metric strong{font-size:28px;line-height:1.05}.activity-dashboard-metric small{font-size:10px;color:var(--bs-secondary-color);white-space:normal}.activity-dashboard-metric.is-emphasis{border-color:rgba(7,159,116,.38);background:rgba(7,159,116,.055)}.activity-dashboard-metric.is-emphasis strong{color:var(--primary,#079f74)}.activity-dashboard-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.activity-dashboard-insight{display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;align-items:start;padding:13px 14px;border-radius:13px;background:var(--soft-bg,#f5f8f6);border:1px solid var(--border-color,#dfe7e3)}.activity-dashboard-insight>iconify-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:19px;background:rgba(70,91,83,.08);color:var(--bs-body-color)}.activity-dashboard-insight.is-positive>iconify-icon{background:rgba(7,159,116,.11);color:var(--primary,#079f74)}.activity-dashboard-insight.is-warning>iconify-icon{background:rgba(225,147,37,.12);color:#b7781f}.activity-dashboard-insight strong{font-size:11px;display:block;margin-bottom:3px}.activity-dashboard-insight p{font-size:10.5px;line-height:1.45;color:var(--bs-secondary-color);margin:0}.activity-dashboard-section{padding:18px;border:1px solid var(--border-color,#dfe7e3);border-radius:16px;background:var(--bs-body-bg,#fff);box-shadow:0 8px 26px rgba(10,32,25,.035);min-width:0}.activity-dashboard-section>header{margin-bottom:15px}.activity-dashboard-section>header h3{font-size:18px;margin:2px 0 4px}.activity-dashboard-section>header p{font-size:11px;color:var(--bs-secondary-color);margin:0;line-height:1.5}.activity-dashboard-section-split{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.activity-dashboard-grid{display:grid;gap:16px;min-width:0}.activity-dashboard-grid.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-dashboard-grid.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-dashboard-funnel{display:flex;align-items:stretch;justify-content:center;gap:0;min-height:250px;padding:5px 0 0}.activity-dashboard-funnel-step{flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.activity-dashboard-funnel-rate{height:32px;font-size:9px;font-weight:700;color:var(--bs-secondary-color);display:grid;place-items:center;text-align:center;padding:0 3px}.activity-dashboard-funnel-step:first-child .activity-dashboard-funnel-rate{display:none}.activity-dashboard-funnel-block{width:var(--funnel-width);min-width:82px;max-width:100%;height:calc(78px + (var(--funnel-width) * 1.2));min-height:96px;max-height:190px;border-radius:14px 14px 5px 5px;background:linear-gradient(180deg,rgba(7,159,116,.17),rgba(7,159,116,.07));border:1px solid rgba(7,159,116,.24);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:10px;position:relative}.activity-dashboard-funnel-block:after{content:"";position:absolute;right:-6px;top:50%;width:10px;height:10px;border-top:1px solid rgba(7,159,116,.28);border-right:1px solid rgba(7,159,116,.28);transform:rotate(45deg);background:var(--bs-body-bg,#fff);z-index:2}.activity-dashboard-funnel-step:last-child .activity-dashboard-funnel-block:after{display:none}.activity-dashboard-funnel-block span{font-size:10px;font-weight:700;color:var(--bs-secondary-color);line-height:1.25}.activity-dashboard-funnel-block strong{font-size:27px;margin-top:4px}.activity-dashboard-table-wrap{overflow:auto;border:1px solid var(--border-color,#e1e8e5);border-radius:12px}.activity-dashboard-table{width:100%;border-collapse:collapse;min-width:570px;font-size:11px}.activity-dashboard-table th{font-size:9px;text-transform:uppercase;letter-spacing:.055em;color:var(--bs-secondary-color);text-align:left;padding:10px 11px;background:var(--soft-bg,#f7faf8);border-bottom:1px solid var(--border-color,#e1e8e5)}.activity-dashboard-table td{padding:11px;border-bottom:1px solid var(--border-color,#e8eeeb)}.activity-dashboard-table tr:last-child td{border-bottom:0}.activity-dashboard-table td:not(:first-child),.activity-dashboard-table th:not(:first-child){text-align:right}.activity-dashboard-rate{font-weight:800;color:var(--primary,#079f74)}.activity-dashboard-bars{display:flex;flex-direction:column;gap:11px}.activity-dashboard-bar-row{display:flex;flex-direction:column;gap:5px}.activity-dashboard-bar-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10.5px}.activity-dashboard-bar-label span{font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-dashboard-bar-label strong{font-size:10.5px;white-space:nowrap}.activity-dashboard-bar-label small{font-size:9px;color:var(--bs-secondary-color);font-weight:500}.activity-dashboard-bar-track{height:6px;border-radius:99px;background:rgba(83,107,98,.09);overflow:hidden}.activity-dashboard-bar-track span{display:block;height:100%;border-radius:inherit;background:var(--primary,#079f74)}.activity-dashboard-bounce,.activity-dashboard-activation{flex:0 0 auto;min-width:165px;padding:10px 12px;border:1px solid var(--border-color,#dfe7e3);border-radius:12px;background:var(--soft-bg,#f7faf8);display:flex;flex-direction:column;align-items:flex-end}.activity-dashboard-bounce>span,.activity-dashboard-activation>span{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-bounce strong,.activity-dashboard-activation strong{font-size:23px;line-height:1.1}.activity-dashboard-bounce small{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-interest-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.activity-dashboard-interest-grid article{padding:13px;border:1px solid var(--border-color,#dfe7e3);border-radius:12px;background:var(--soft-bg,#f8faf9);display:flex;flex-direction:column;min-width:0}.activity-dashboard-interest-grid strong{font-size:22px}.activity-dashboard-interest-grid span{font-size:10px;font-weight:700;margin:3px 0;line-height:1.35}.activity-dashboard-interest-grid small{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-demo-summary>div,.activity-dashboard-rankings>div{min-width:0;padding:14px;border:1px solid var(--border-color,#e3e9e6);border-radius:13px;background:var(--soft-bg,#f8faf9)}.activity-dashboard-demo-summary h4,.activity-dashboard-rankings h4{font-size:11px;margin:0 0 13px}.activity-dashboard-demo-cta{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:145px}.activity-dashboard-demo-cta>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(7,159,116,.11);color:var(--primary,#079f74);font-size:20px}.activity-dashboard-demo-cta strong{font-size:35px;margin:4px 0}.activity-dashboard-demo-cta p{font-size:10px;color:var(--bs-secondary-color);margin:0;max-width:180px}.activity-dashboard-rankings{margin-top:12px}.activity-dashboard-stage-list{display:flex;flex-direction:column}.activity-dashboard-stage{display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--border-color,#e6ece9)}.activity-dashboard-stage:last-child{border-bottom:0}.activity-dashboard-stage-index{width:25px;height:25px;border-radius:9px;display:grid;place-items:center;background:rgba(7,159,116,.09);color:var(--primary,#079f74);font-size:10px;font-weight:800}.activity-dashboard-stage>div{display:flex;flex-direction:column;min-width:0}.activity-dashboard-stage>div strong{font-size:11px}.activity-dashboard-stage>div small{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-stage>b{font-size:20px}.activity-dashboard-company-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.activity-dashboard-company{padding:13px;border:1px solid var(--border-color,#dfe7e3);border-radius:13px;background:var(--soft-bg,#f8faf9);min-width:0}.activity-dashboard-company.is-activated{border-color:rgba(7,159,116,.27)}.activity-dashboard-company-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.activity-dashboard-company-head>div{display:flex;flex-direction:column;min-width:0}.activity-dashboard-company-head>div>span{font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;color:var(--primary,#079f74)}.activity-dashboard-company-head strong{font-size:12px;margin:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-dashboard-company-head small{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-company-status{font-size:9px!important;font-weight:800!important;padding:5px 7px;border-radius:999px;background:rgba(83,107,98,.09);color:var(--bs-secondary-color)!important;white-space:nowrap}.activity-dashboard-company.is-activated .activity-dashboard-company-status{background:rgba(7,159,116,.1);color:var(--primary,#079f74)!important}.activity-dashboard-company-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.activity-dashboard-company-actions span{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid var(--border-color,#e1e8e5);border-radius:7px;font-size:9px;color:var(--bs-secondary-color);background:var(--bs-body-bg,#fff)}.activity-dashboard-company-actions iconify-icon{color:var(--primary,#079f74)}.activity-dashboard-journeys{display:flex;flex-direction:column;gap:8px}.activity-dashboard-journey{border:1px solid var(--border-color,#dfe7e3);border-radius:13px;overflow:hidden;background:var(--soft-bg,#fafcfb)}.activity-dashboard-journey>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto 24px;gap:12px;align-items:center;padding:11px 13px}.activity-dashboard-journey>summary::-webkit-details-marker{display:none}.activity-dashboard-journey>summary>iconify-icon{font-size:17px;color:var(--bs-secondary-color);transition:transform .18s ease}.activity-dashboard-journey[open]>summary>iconify-icon{transform:rotate(180deg)}.activity-dashboard-journey-person{display:flex;gap:9px;align-items:center;min-width:0}.activity-dashboard-journey-person>span{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:rgba(7,159,116,.09);color:var(--primary,#079f74);font-size:17px;flex:0 0 auto}.activity-dashboard-journey-person>div{display:flex;flex-direction:column;min-width:0}.activity-dashboard-journey-person strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-dashboard-journey-person small{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-journey-meta{text-align:right;display:flex;flex-direction:column}.activity-dashboard-journey-meta b{font-size:11px}.activity-dashboard-journey-meta small{font-size:9px;color:var(--bs-secondary-color)}.activity-dashboard-timeline{padding:4px 15px 14px 43px;border-top:1px solid var(--border-color,#e6ece9)}.activity-dashboard-timeline-step{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;padding:9px 0 0 10px;border-left:1px solid var(--border-color,#d8e2de)}.activity-dashboard-timeline-step>span{position:absolute;left:-4px;top:13px;width:7px;height:7px;border-radius:50%;background:var(--primary,#079f74);box-shadow:0 0 0 3px var(--soft-bg,#fafcfb)}.activity-dashboard-timeline-step time{font-size:8.5px;color:var(--bs-secondary-color)}.activity-dashboard-timeline-step strong{font-size:10.5px;line-height:1.4}.activity-dashboard-timeline-step.is-pago>span{background:#7c61c9}.activity-dashboard-timeline-step.is-registro>span{background:#377ac9}.activity-dashboard-empty{padding:25px 15px;border:1px dashed var(--border-color,#d9e3df);border-radius:11px;text-align:center;color:var(--bs-secondary-color);font-size:10px}.activity-dashboard-footnote{display:flex;gap:11px;padding:14px 16px;border-radius:13px;border:1px solid var(--border-color,#dfe7e3);background:var(--soft-bg,#f7faf8);color:var(--bs-secondary-color)}.activity-dashboard-footnote>iconify-icon{font-size:20px;color:var(--primary,#079f74);flex:0 0 auto}.activity-dashboard-footnote strong{display:block;font-size:10px;color:var(--bs-body-color);margin-bottom:2px}.activity-dashboard-footnote p{font-size:9.5px;line-height:1.5;margin:2px 0}.activity-dashboard-activation{align-items:center;min-width:130px}.activity-dashboard-activation strong{color:var(--primary,#079f74)}

@media(max-width:1250px){.activity-dashboard-top-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.activity-dashboard-insights{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-dashboard-interest-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.activity-dashboard-toolbar{align-items:flex-start;flex-wrap:wrap}.activity-dashboard-refresh{margin-left:0}.activity-dashboard-grid.two-cols,.activity-dashboard-grid.three-cols{grid-template-columns:1fr}.activity-dashboard-company-list{grid-template-columns:1fr}.activity-dashboard-funnel{overflow-x:auto;justify-content:flex-start;padding-bottom:8px}.activity-dashboard-funnel-step{flex:0 0 130px}.activity-dashboard-interest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.activity-heading-actions{width:100%}.activity-heading-actions .btn{flex:1}.activity-dashboard-header{padding:14px 14px 12px}.activity-dashboard-header h2{font-size:25px}.activity-dashboard-header p{font-size:10px}.activity-dashboard-close{width:38px!important;height:38px!important}.activity-dashboard-toolbar{padding:9px 12px;gap:9px}.activity-dashboard-filter-group{width:100%;overflow:hidden}.activity-dashboard-chips{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding-bottom:1px}.activity-dashboard-chips::-webkit-scrollbar{display:none}.activity-dashboard-chips button{height:31px;padding:0 11px;font-size:10px}.activity-dashboard-refresh{display:none}.activity-dashboard-body{padding:12px 10px 28px}.activity-dashboard-content{gap:10px}.activity-dashboard-top-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.activity-dashboard-metric{padding:12px}.activity-dashboard-metric strong{font-size:25px}.activity-dashboard-metric:last-child{grid-column:1/-1}.activity-dashboard-insights{grid-template-columns:1fr;gap:7px}.activity-dashboard-section{padding:13px;border-radius:14px}.activity-dashboard-section>header h3{font-size:16px}.activity-dashboard-section-split{flex-direction:column}.activity-dashboard-bounce,.activity-dashboard-activation{width:100%;align-items:flex-start}.activity-dashboard-interest-grid{grid-template-columns:1fr 1fr;gap:7px}.activity-dashboard-interest-grid article{padding:10px}.activity-dashboard-interest-grid strong{font-size:20px}.activity-dashboard-funnel{min-height:210px}.activity-dashboard-funnel-step{flex-basis:112px}.activity-dashboard-funnel-block{min-width:74px}.activity-dashboard-table{min-width:520px}.activity-dashboard-timeline{padding-left:28px}.activity-dashboard-timeline-step{grid-template-columns:52px minmax(0,1fr)}.activity-dashboard-journey>summary{grid-template-columns:minmax(0,1fr) 24px}.activity-dashboard-journey-meta{display:none}}

/* Bizfera v1.0.20 · planes por empresa */
.subscription-plan-section{margin:0 0 1rem}.subscription-plan-section>.panel-heading{margin-bottom:.75rem}.subscription-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.subscription-plan-card{display:flex;min-width:0;padding:1rem;flex-direction:column;gap:.75rem;border:1px solid var(--biz-border);border-radius:16px;background:var(--biz-surface);box-shadow:0 6px 22px rgba(13,35,28,.035)}.subscription-plan-card.is-current{border-color:color-mix(in srgb,var(--biz-primary) 58%,var(--biz-border));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--biz-primary) 14%,transparent)}.subscription-plan-card.is-selected{border-color:color-mix(in srgb,var(--bs-warning) 48%,var(--biz-border));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bs-warning) 10%,transparent)}.subscription-plan-card.is-recommended{border-color:var(--biz-primary);background:linear-gradient(180deg,var(--biz-primary-soft),var(--biz-surface) 42%)}.subscription-plan-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}.subscription-plan-card h3{margin:.1rem 0 0;font-size:1.05rem}.subscription-plan-price{display:flex;align-items:end;gap:.3rem}.subscription-plan-price strong{font-size:1.55rem;line-height:1}.subscription-plan-price span{font-size:.62rem;color:var(--biz-muted)}.subscription-plan-card ul{display:flex;margin:0;padding:0;flex:1;flex-direction:column;gap:.55rem;list-style:none}.subscription-plan-card li{display:flex;align-items:center;gap:.45rem;font-size:.7rem;line-height:1.35}.subscription-plan-card li iconify-icon{font-size:1rem;color:var(--biz-primary);flex:0 0 auto}.subscription-plan-card>small{min-height:2.4em;color:var(--biz-muted);font-size:.58rem;line-height:1.4}.subscription-extra-user-note{display:flex;margin-top:.75rem;padding:.8rem .9rem;gap:.65rem;align-items:flex-start;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface)}.subscription-extra-user-note>iconify-icon{font-size:1.25rem;color:var(--biz-primary)}.subscription-extra-user-note div{display:flex;flex-direction:column;gap:.15rem}.subscription-extra-user-note strong{font-size:.72rem}.subscription-extra-user-note span{font-size:.61rem;color:var(--biz-muted);line-height:1.45}.subscription-company-summary{display:flex;margin-bottom:1rem;padding:1rem 1.1rem;align-items:center;justify-content:space-between;gap:1rem}.subscription-company-summary-main h2{margin:.1rem 0 .3rem;font-size:1.25rem}.subscription-company-summary-main p,.subscription-company-summary-main small{margin:0;color:var(--biz-muted);font-size:.64rem;line-height:1.5}.subscription-company-price{text-align:right;white-space:nowrap}.subscription-company-price strong{display:block;font-size:1.45rem}.subscription-company-price span{font-size:.58rem;color:var(--biz-muted)}.subscription-capacity-grid{display:grid;margin:.75rem 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.subscription-capacity-grid>div{display:flex;padding:.7rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft);flex-direction:column}.subscription-capacity-grid span{font-size:.56rem;color:var(--biz-muted)}.subscription-capacity-grid strong{margin:.12rem 0;font-size:1rem}.subscription-capacity-grid small{font-size:.53rem;color:var(--biz-muted)}.checkout-demo-notice{margin:0 0 .55rem}.checkout-upgrade-action{text-decoration:none!important;justify-content:center}.landing-plan-grid{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.landing-pricing{align-items:start}.landing-pricing-copy{grid-column:1/-1}.landing-price-card.is-featured{border-color:var(--landing-accent,#11a97d);box-shadow:0 14px 38px rgba(7,159,116,.12)}.landing-plan-note{grid-column:1/-1;margin:8px 0 0;text-align:center;font-size:12px;color:var(--landing-muted,#6a7772)}
@media(max-width:1100px){.subscription-plan-grid,.landing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.subscription-plan-grid,.landing-plan-grid{grid-template-columns:1fr}.subscription-company-summary{align-items:flex-start;flex-direction:column}.subscription-company-price{text-align:left}.subscription-capacity-grid{grid-template-columns:1fr}.subscription-plan-card{padding:.85rem}.landing-plan-note{text-align:left}}

/* =========================================================
   Bizfera v1.0.21 · planes públicos claros y responsive
========================================================= */
.landing-pricing {
    display: block !important;
    width: 100%;
    padding: 82px 0;
}

.landing-pricing-copy,
.seo-price-copy {
    max-width: 820px;
}

.landing-plan-grid {
    display: grid !important;
    width: 100%;
    margin-top: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px;
}

.landing-price-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 355px;
    padding: 20px !important;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d7e4df;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 62, 48, .055);
}

.landing-price-card.is-featured {
    padding-top: 48px !important;
    border-color: #0aa376;
    background: linear-gradient(180deg, #f0fbf7 0, #fff 35%);
    box-shadow: 0 13px 34px rgba(7, 159, 116, .1);
}

.landing-plan-featured {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    display: flex !important;
    height: 29px;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    background: #0aa376;
    color: #fff;
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
}

.landing-plan-card-head {
    display: flex !important;
    min-height: 42px;
    margin: 0 !important;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 8px !important;
}

.landing-plan-card-head > div {
    display: block !important;
    margin: 0 !important;
}

.landing-plan-card-head > div > span {
    display: block;
    color: #7b8a84;
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .09em;
}

.landing-plan-card-head h3 {
    margin: 3px 0 0;
    color: #10261f;
    font-size: 1.08rem;
    letter-spacing: -.025em;
}

.landing-price-card > .landing-plan-price {
    display: grid !important;
    min-height: 65px;
    margin: 14px 0 13px !important;
    grid-template-columns: auto auto;
    align-items: end !important;
    justify-content: start;
    gap: 0 5px !important;
}

.landing-plan-price strong {
    color: #10261f;
    font-size: clamp(1.6rem, 2.15vw, 2.15rem) !important;
    line-height: .95 !important;
    letter-spacing: -.055em !important;
    white-space: nowrap;
}

.landing-plan-price > span {
    padding-bottom: 2px;
    color: #556a62;
    font-size: .66rem;
    font-weight: 700;
}

.landing-plan-price > small {
    grid-column: 1 / -1;
    margin-top: 5px;
    color: #7b8a84 !important;
    font-size: .56rem;
}

.landing-price-card > ul {
    display: flex !important;
    margin: 0 0 16px !important;
    padding: 13px 0 0 !important;
    flex: 1;
    flex-direction: column;
    gap: 10px !important;
    border-top: 1px solid #e5ece9 !important;
    border-bottom: 0 !important;
    list-style: none !important;
}

.landing-price-card > ul > li {
    display: block;
    min-width: 0;
    padding: 0;
    color: #43574f;
    font-size: .66rem !important;
    line-height: 1.45;
}

.landing-price-card > ul > li strong {
    color: #10261f;
}

.landing-price-card > .btn {
    min-height: 40px;
    margin-top: auto;
    justify-content: center;
    border-radius: 10px;
    font-size: .64rem;
}

.landing-plan-note {
    margin: 15px auto 0 !important;
    max-width: 950px;
    text-align: center;
    line-height: 1.55;
}

.public-page-seo .seo-price-section {
    display: block !important;
}

.public-page-seo .seo-price-section .seo-plan-grid {
    margin-top: 24px;
}

.public-page-seo .seo-price-section > .btn {
    display: none !important;
}

/* La pantalla interna de Suscripción usa el mismo patrón mobile: una sola fila
   desplazable en lugar de cuatro cards interminables una debajo de otra. */
@media (max-width: 1100px) and (min-width: 768px) {
    .landing-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 767.98px) {
    .landing-pricing { padding: 54px 0 !important; }
    .landing-pricing-copy h2 { font-size: 2.18rem !important; }

    .landing-plan-grid,
    .subscription-plan-grid {
        display: flex !important;
        width: 100%;
        max-width: 100%;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        padding: 2px 2px 12px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .landing-plan-grid::-webkit-scrollbar,
    .subscription-plan-grid::-webkit-scrollbar { display: none; }

    .landing-price-card {
        flex: 0 0 min(82vw, 310px) !important;
        width: min(82vw, 310px);
        min-height: 340px;
        padding: 18px !important;
        scroll-snap-align: start;
    }

    .landing-plan-price strong { font-size: 1.9rem !important; }
    .landing-plan-note { padding: 0 2px; text-align: left !important; font-size: 10px; }

    .subscription-plan-card {
        flex: 0 0 min(82vw, 310px) !important;
        width: min(82vw, 310px);
        min-height: 310px;
        scroll-snap-align: start;
    }

    .public-page-seo .seo-price-section {
        align-items: stretch !important;
    }

    .public-page-seo .seo-price-copy h2 { font-size: 1.8rem; }
}

/* Bizfera v1.0.22 · estado sin plan pago seleccionado (compatibilidad histórica) */
.subscription-company-summary.is-no-plan{border-style:dashed;border-color:color-mix(in srgb,var(--biz-primary) 32%,var(--biz-border));background:linear-gradient(135deg,color-mix(in srgb,var(--biz-primary-soft) 48%,var(--biz-surface)),var(--biz-surface) 62%)}
.subscription-company-summary.is-no-plan .subscription-company-price strong{font-size:1.05rem;color:var(--biz-muted)}
.subscription-no-plan-capacity{display:flex;margin:.8rem 0;padding:1rem;align-items:flex-start;gap:.75rem;border:1px dashed color-mix(in srgb,var(--biz-primary) 34%,var(--biz-border));border-radius:13px;background:var(--biz-surface-soft)}
.subscription-no-plan-capacity>iconify-icon{flex:0 0 auto;font-size:1.35rem;color:var(--biz-primary)}
.subscription-no-plan-capacity>div{display:flex;min-width:0;flex-direction:column;gap:.2rem}.subscription-no-plan-capacity strong{font-size:.76rem}.subscription-no-plan-capacity span{font-size:.62rem;line-height:1.5;color:var(--biz-muted)}
.checkout-plan-required-note{display:block;margin:-.15rem 0 .55rem;text-align:center;font-size:.56rem;line-height:1.4;color:var(--biz-muted)}

/* Bizfera v1.0.24 · cambios de plan y usuarios en downgrade */
.subscription-plan-change-alert{align-items:center}.subscription-plan-change-alert>div:nth-child(2){min-width:0;flex:1}.subscription-plan-change-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex:0 0 auto}.subscription-plan-change-actions .btn{white-space:nowrap}.subscription-downgrade-sheet{width:min(760px,calc(100% - 2rem));max-height:min(88dvh,780px)}.subscription-downgrade-body{display:flex;flex-direction:column;gap:.85rem;padding-bottom:1.2rem}.subscription-downgrade-summary{display:grid;padding:.9rem 1rem;grid-template-columns:minmax(0,1fr) auto;gap:.15rem .75rem;align-items:end;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface-soft)}.subscription-downgrade-summary>span{font-size:.58rem;font-weight:800;letter-spacing:.065em;text-transform:uppercase;color:var(--biz-muted)}.subscription-downgrade-summary>strong{grid-row:1/3;grid-column:2;font-size:1.15rem;line-height:1.1}.subscription-downgrade-summary>small{font-size:.62rem;color:var(--biz-muted)}.subscription-downgrade-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.subscription-downgrade-options article{display:flex;min-width:0;padding:1rem;flex-direction:column;gap:.7rem;border:1px solid var(--biz-border);border-radius:14px;background:var(--biz-surface)}.subscription-downgrade-options article>iconify-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--biz-primary-soft);color:var(--biz-primary);font-size:20px}.subscription-downgrade-options article>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:.28rem}.subscription-downgrade-options article strong{font-size:.8rem}.subscription-downgrade-options article span{font-size:.62rem;line-height:1.45;color:var(--biz-muted)}.subscription-downgrade-options article b{margin-top:.2rem;font-size:.76rem}.subscription-downgrade-options article .btn{width:100%;margin-top:auto}.subscription-downgrade-sheet[hidden],.subscription-downgrade-backdrop[hidden]{display:none!important}
@media(max-width:767.98px){.subscription-plan-change-alert{align-items:flex-start;flex-wrap:wrap}.subscription-plan-change-actions{width:100%;margin-left:0;justify-content:stretch}.subscription-plan-change-actions .btn{flex:1}.subscription-downgrade-sheet{width:100%;max-height:92dvh;border-radius:18px 18px 0 0}.subscription-downgrade-options{grid-template-columns:1fr}.subscription-downgrade-summary{grid-template-columns:1fr}.subscription-downgrade-summary>strong{grid-row:auto;grid-column:auto}.subscription-downgrade-body{padding-left:.8rem;padding-right:.8rem}}

/* Bizfera v1.0.25 · suscripción: costo real, reglas claras y remito explícito */
.subscription-company-price small{display:block;margin-top:.22rem;max-width:340px;color:var(--biz-muted);font-size:.54rem;line-height:1.4;white-space:normal}.subscription-plan-real-total{display:flex;margin-top:.45rem;padding:.5rem .58rem;align-items:center;justify-content:space-between;gap:.55rem;border:1px solid color-mix(in srgb,var(--biz-primary) 24%,var(--biz-border));border-radius:9px;background:color-mix(in srgb,var(--biz-primary-soft) 58%,var(--biz-surface))}.subscription-plan-real-total span{font-size:.55rem;font-weight:700;color:var(--biz-muted)}.subscription-plan-real-total strong{font-size:.68rem;white-space:nowrap;color:var(--biz-text)}.subscription-plan-real-total.is-warning{border-color:color-mix(in srgb,#c47b14 38%,var(--biz-border));background:color-mix(in srgb,#fff2dc 62%,var(--biz-surface))}.subscription-plan-real-total.is-warning strong{color:#9a5d05}.subscription-plan-change-hint.is-warning{display:block;padding:.5rem .55rem;border-radius:9px;background:color-mix(in srgb,#fff2dc 68%,var(--biz-surface));color:#8a570c!important}.subscription-policy-rules{align-items:flex-start}.subscription-policy-rules>div{display:flex;min-width:0;flex-direction:column;gap:.38rem}.subscription-policy-rules p{margin:0;font-size:.66rem;line-height:1.45;color:var(--biz-muted)}.subscription-policy-rules p strong{color:var(--biz-text)}.subscription-downgrade-economic-warning{margin:0}.subscription-downgrade-economic-warning>div{display:flex;min-width:0;flex-direction:column;gap:.18rem}.subscription-downgrade-economic-warning strong{font-size:.72rem}.subscription-downgrade-economic-warning span{font-size:.61rem;line-height:1.45;color:var(--biz-muted)}.checkout-inline-action-button{appearance:none;padding:0;border:0;background:transparent;font:inherit;cursor:pointer}.checkout-inline-action-button:hover{color:color-mix(in srgb,var(--biz-primary,#12a875) 72%,#000)}
@media(max-width:767.98px){.subscription-company-price small{max-width:none}.subscription-plan-real-total{align-items:flex-start;flex-direction:column;gap:.12rem}.subscription-policy-rules p{font-size:.62rem}.subscription-downgrade-economic-warning{align-items:flex-start}}


/* Demo pública · módulos comerciales sólo de muestra (v1.0.28) */
.bizfera-demo-showcase{display:flex;align-items:center;justify-content:center;min-height:34px;margin:0;padding:7px 14px;border:0;border-bottom:1px solid #d3eee4;border-radius:0;background:#eefaf6;box-shadow:none;color:#345048;font-size:10px;line-height:1.3;text-align:center}
.bizfera-demo-showcase span{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;color:inherit;font-size:inherit;line-height:inherit}
.bizfera-demo-showcase strong{color:#20362f;font-size:inherit;font-weight:750}.bizfera-demo-showcase i{font-style:normal;color:#a5b5af}
html[data-bs-theme="dark"] .bizfera-demo-showcase{background:#07110e;border-color:#17332a;color:#9eb4ac}html[data-bs-theme="dark"] .bizfera-demo-showcase strong{color:#eef7f3}
body[data-demo-showcase="1"] .main-content>*,body[data-demo-showcase="1"] .mobile-app-main>*{pointer-events:none}
body[data-demo-showcase="1"] .main-content>.subscription-readonly-banner,body[data-demo-showcase="1"] .mobile-app-main>.subscription-readonly-banner{pointer-events:auto}

/* Integraciones necesita normalmente su JS para aplicar la clase visual del trigger.
   En la demo ese JS no se carga por seguridad, así que reproducimos únicamente el
   espaciado/altura visual de la card, sin habilitar clicks, sheets ni llamadas externas. */
body.module-integraciones[data-demo-showcase="1"] .integration-grid-v2>.integration-card-v2>.integration-card-header{min-height:98px;padding:1rem 1.05rem;cursor:default}
@media(max-width:767.98px){
    .bizfera-demo-showcase{min-height:0;padding:6px 10px;font-size:8.5px;text-align:left}
    .bizfera-demo-showcase span{justify-content:flex-start;gap:3px}
    body.module-integraciones[data-demo-showcase="1"] .integration-grid-v2>.integration-card-v2>.integration-card-header{min-height:118px;padding:.9rem}
}

/* Mi empresa: logo comercial */
.company-logo-setting {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: .9rem;
    padding: .9rem;
    align-items: center;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface-soft);
}
.company-logo-preview {
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--biz-border);
    border-radius: 16px;
    background: var(--biz-surface);
}
.company-logo-preview img {
    width: 100%;
    height: 100%;
    padding: .55rem;
    object-fit: contain;
}
.company-logo-preview > span {
    display: grid;
    justify-items: center;
    gap: .25rem;
    color: var(--biz-muted);
    font-size: .58rem;
    font-weight: 700;
}
.company-logo-preview > span iconify-icon { font-size: 1.35rem; color: var(--biz-primary); }
.company-logo-preview.is-removing { opacity: .38; }
.company-logo-copy { display: grid; gap: .55rem; min-width: 0; }
.company-logo-copy > div:first-child strong,
.company-logo-copy > div:first-child small { display: block; }
.company-logo-copy > div:first-child strong { font-size: .7rem; }
.company-logo-copy > div:first-child small { margin-top: .15rem; color: var(--biz-muted); font-size: .58rem; line-height: 1.45; }
.company-logo-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.company-logo-file-button { position: relative; overflow: hidden; cursor: pointer; }
.company-logo-file-button input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.company-logo-remove { display: inline-flex !important; margin: 0; align-items: center; gap: .35rem; color: var(--biz-muted); font-size: .58rem !important; cursor: pointer; }
.company-logo-remove input { width: 15px; height: 15px; accent-color: var(--biz-primary); }
.company-logo-remove > span { margin: 0 !important; font: inherit !important; color: inherit !important; }
.company-logo-help { color: var(--biz-muted); font-size: .55rem; }

@media (max-width: 650px) {
    .company-logo-setting { grid-template-columns: 78px minmax(0, 1fr); padding: .75rem; align-items: start; }
    .company-logo-preview { width: 78px; height: 78px; border-radius: 13px; }
    .company-logo-actions { align-items: flex-start; flex-direction: column; }
}
.company-logo-file-button > span { margin: 0 !important; font: inherit !important; color: inherit !important; }

/* Bizfera v1.0.36 · responsive de Integraciones + logo completo en sidebar mobile */
.integration-card-header {
    display: grid;
}
.integration-card-trigger {
    grid-template-columns: minmax(126px, .42fr) minmax(0, 1fr) auto auto !important;
}
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header {
    grid-template-columns: minmax(126px, .42fr) minmax(0, 1fr) auto auto !important;
}
.integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header .integration-sheet-close {
    grid-column: 4;
    grid-row: 1;
}

@media (max-width: 991.98px) {
    /* En mobile el sidebar está siempre expandido cuando se abre: no recortar la marca. */
    .sidebar:not(:hover):not(:focus-within) .sidebar-brand a,
    .sidebar-brand a {
        width: 150px;
        min-width: 150px;
        overflow: visible;
    }
    .sidebar-brand img {
        width: 150px;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 720px) {
    /* Primera fila: marca + estado + flecha. Segunda fila: explicación a todo el ancho. */
    .integration-card-header,
    .integration-card-trigger,
    .integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-rows: auto auto;
        column-gap: .5rem !important;
        row-gap: .55rem !important;
        align-items: center !important;
    }
    .integration-card-header .integration-brand-slot {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
    .integration-card-header > .status {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        white-space: nowrap;
    }
    .integration-card-header .integration-card-copy-v2 {
        grid-column: 1 / -1 !important;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }
    .integration-card-copy-v2 p {
        max-width: none;
        overflow-wrap: normal;
        word-break: normal;
    }
    .integration-card-trigger::after {
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
    }
    .integration-grid-v2 > .integration-card-v2.is-sheet-open > .integration-card-header .integration-sheet-close {
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
    }
    .integration-grid-v2 > .integration-card-v2,
    .integration-card-trigger {
        min-height: 0;
    }
    .integration-card-trigger {
        padding: .95rem;
    }
    body.module-integraciones[data-demo-showcase="1"] .integration-grid-v2 > .integration-card-v2 > .integration-card-header {
        min-height: 0;
        padding: .95rem;
    }
}


/* Bizfera v1.0.37 · importador opcional + precios públicos más limpios */
.landing-price-card > ul > li::before { content: none !important; display: none !important; }
.landing-price-card > ul > li { padding-left: 0 !important; }
@media (max-width: 767.98px) {
    .landing-price-card.is-featured { padding-top: 46px !important; }
    .landing-plan-featured { height: 28px; font-size: .52rem; }
    .importer-example-help { margin-top: -.1rem; padding: 0 .2rem; text-align: left; }
}


/* Bizfera v1.0.38 · iconos descriptivos en precios */
.landing-price-card > ul > li {
    display: grid !important;
    min-width: 0;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
}
.landing-price-card > ul > li > iconify-icon {
    margin-top: 1px;
    color: #0aa376;
    font-size: .95rem;
}
.landing-price-card > ul > li > span {
    min-width: 0;
}

/* =========================================================
   Bizfera v1.0.39 · Recuperación de cuenta y verificación
========================================================= */
.login-account-actions {
    display: flex;
    margin-top: .8rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.login-account-actions a {
    color: var(--bs-primary);
    font-size: .66rem;
    font-weight: 780;
    text-decoration: none;
}
.login-account-actions a:hover { text-decoration: underline; }

.form-inline-feedback.is-warning {
    color: #795a14;
    background: #fff8df;
}
.registration-pending-verification {
    display: grid;
    gap: .8rem;
}
.registration-pending-verification > strong { font-size: .74rem; }
.registration-pending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.public-page-recuperar-verificacion,
.public-page-recuperar-password,
.public-page-restablecer-password {
    background: radial-gradient(circle at 18% 10%, rgba(10,163,118,.11), transparent 34%), #f5f7f6;
}
.public-page-recuperar-verificacion .public-layout,
.public-page-recuperar-password .public-layout,
.public-page-restablecer-password .public-layout {
    width: 100%;
    max-width: none;
    margin: 0;
}
.account-recovery-shell {
    display: grid;
    min-height: 100vh;
    padding: 34px 20px 60px;
    justify-items: center;
    align-content: start;
}
.account-recovery-shell > .registration-brand { margin-bottom: 25px; }
.account-recovery-card {
    width: min(500px, 100%);
    padding: 32px;
    border: 1px solid #dfe7e3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(21,55,44,.10);
}
.account-recovery-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 16px;
    background: #e9f8f3;
    color: #0aa376;
}
.account-recovery-icon iconify-icon { font-size: 27px; }
.account-recovery-card h1 {
    margin: .35rem 0 .5rem;
    color: #18231f;
    font-size: 1.55rem;
    letter-spacing: -.04em;
}
.account-recovery-card > p {
    margin: 0;
    color: #64756e;
    font-size: .75rem;
    line-height: 1.6;
}
.account-recovery-card form {
    display: grid;
    margin-top: 1.25rem;
    gap: .85rem;
}
.account-recovery-card .form-field > span,
.account-recovery-card form label > span {
    display: block;
    margin-bottom: .38rem;
    color: #576a62;
    font-size: .66rem;
    font-weight: 800;
}
.account-recovery-card form > .btn { min-height: 44px; }
.account-recovery-status {
    margin-top: 1rem;
    padding: .78rem .85rem;
    border-radius: 11px;
    background: #f3f6f5;
    color: #60716a;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.5;
}
.account-recovery-status.is-success { background: #eaf8f3; color: #087556; }
.account-recovery-status.is-error { background: #fff0f2; color: #9f1f32; }
.account-recovery-privacy {
    margin-top: .75rem !important;
    color: #8b9893 !important;
    font-size: .62rem !important;
}
.account-recovery-back {
    display: inline-flex;
    margin-top: 1.2rem;
    align-items: center;
    gap: .35rem;
    color: #65766f;
    font-size: .68rem;
    font-weight: 760;
    text-decoration: none;
}
.account-recovery-primary-link { width: 100%; margin-top: 1rem; }

.email-verification-status {
    display: grid;
    gap: .3rem;
}
.email-verification-status-action {
    color: inherit;
    font-size: .64rem;
    font-weight: 650;
}
.email-verification-status-action button,
.email-verification-actions button {
    padding: 0;
    border: 0;
    background: none;
    color: #0a936c;
    font: inherit;
    font-weight: 820;
    cursor: pointer;
}
.email-verification-status.is-error .email-verification-status-action button { color: #9f1f32; }
.email-verification-change {
    margin-top: 1.2rem;
    padding: 1rem;
    border: 1px solid #dce6e2;
    border-radius: 14px;
    background: #f8fbfa;
    text-align: left;
}
.email-verification-change > div > strong { display: block; font-size: .78rem; }
.email-verification-change > div > p { margin: .2rem 0 0; color: #6d7d77; font-size: .66rem; }
.email-verification-change form { display: grid; margin-top: .9rem; gap: .75rem; }
.email-verification-change label > span { display: block; margin-bottom: .35rem; color: #576a62; font-size: .63rem; font-weight: 800; }
.email-verification-change label > small { display: block; margin-top: .3rem; color: #8b9893; font-size: .58rem; line-height: 1.4; }
.email-verification-change-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.email-verification-actions {
    display: flex;
    margin-top: 1.15rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    font-size: .66rem;
}
.email-verification-actions a {
    color: #65766f;
    font-weight: 750;
}
.email-verification-actions button:disabled { opacity: .55; cursor: default; }
.email-verification-card > small { margin-top: 14px; }

@media (max-width: 520px) {
    .login-account-actions { align-items: flex-start; flex-direction: column; }
    .account-recovery-shell { padding: 24px 14px 40px; }
    .account-recovery-card { padding: 26px 18px; border-radius: 18px; }
    .email-verification-change-actions { align-items: stretch; flex-direction: column-reverse; }
    .email-verification-change-actions .btn { width: 100%; }
    .email-verification-actions { align-items: flex-start; flex-direction: column; }
}

/* v1.0.41 · placeholders más discretos en registro */
.registration-card input.form-control::placeholder,
.registration-card input.city-search-input::placeholder {
    font-size: .82rem;
}

/* v1.0.40 · selector inteligente de ciudad */
.registration-field > label > span,
.admin-field > label > span {
    display: block;
    margin-bottom: .38rem;
    color: #576a62;
    font-size: .66rem;
    font-weight: 800;
}
.app-page .admin-field > label > span {
    margin-bottom: .35rem;
    color: var(--biz-muted);
    font-size: .7rem;
    font-weight: 600;
}
.city-search { position: relative; min-width: 0; }
.city-search-control { position: relative; }
.city-search-control .form-select { width: 100%; }
.city-search-input::-webkit-search-cancel-button { display: none; }
.city-search-results {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 250px;
    padding: 5px;
    overflow-y: auto;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface);
    box-shadow: 0 14px 36px rgba(19, 48, 39, .14);
}
.city-search-option {
    display: grid;
    width: 100%;
    padding: .62rem .7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bs-body-color);
    text-align: left;
    cursor: pointer;
}
.city-search-option:hover,
.city-search-option.is-active { background: var(--biz-primary-soft); }
.city-search-option strong { font-size: .7rem; font-weight: 750; }
.city-search-option span { margin-top: .08rem; color: var(--biz-muted); font-size: .6rem; }
.city-search-empty { padding: .72rem; color: var(--biz-muted); font-size: .64rem; text-align: center; }
.city-search-status { display: block; margin-top: .28rem; color: var(--biz-muted); font-size: .58rem; font-weight: 500; line-height: 1.35; }
.registration-grid .city-search-status { color: #83928c; }
.city-search-input-invalid { border-color: #d9576a !important; }

@media (max-width: 767.98px) {
    .city-search-results { max-height: 220px; }
}

/* v1.0.42 · Actividades > Operaciones */
body.activity-operations-open{overflow:hidden!important}.activity-operations-backdrop,.activity-operation-detail-backdrop{position:fixed;inset:0;background:rgba(9,25,20,.34);backdrop-filter:blur(2px);opacity:0;transition:opacity .2s ease;z-index:1600}.activity-operations-backdrop.is-open,.activity-operation-detail-backdrop.is-open{opacity:1}.activity-operations-sheet{position:fixed;inset:0;background:var(--bs-body-bg,#fff);z-index:1605;display:flex;flex-direction:column;transform:translateY(18px);opacity:0;transition:transform .22s ease,opacity .22s ease}.activity-operations-sheet.is-open{transform:none;opacity:1}.activity-operations-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:18px 24px 15px;border-bottom:1px solid var(--border-color,#dfe7e3);background:var(--bs-body-bg,#fff)}.activity-operations-header h2,.activity-operation-detail-header h2{font-size:28px;margin:2px 0 3px}.activity-operations-header p,.activity-operation-detail-header p{margin:0;color:var(--bs-secondary-color);font-size:10.5px;max-width:760px;line-height:1.5}.activity-operations-toolbar{display:grid;grid-template-columns:auto 190px 230px minmax(220px,1fr) auto;align-items:end;gap:10px;padding:10px 24px;border-bottom:1px solid var(--border-color,#e2e9e6);background:var(--soft-bg,#f7faf8)}.activity-operations-toolbar>label{display:flex;flex-direction:column;gap:5px;min-width:0}.activity-operations-toolbar>label>span{font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:var(--bs-secondary-color)}.activity-operations-period{display:flex;align-items:center;gap:4px;border:1px solid var(--border-color,#dce5e1);border-radius:10px;padding:3px;background:var(--bs-body-bg,#fff);height:39px}.activity-operations-period button{border:0;background:transparent;border-radius:7px;height:31px;padding:0 11px;font-size:9.5px;font-weight:700;color:var(--bs-secondary-color);cursor:pointer;white-space:nowrap}.activity-operations-period button.is-active{background:rgba(7,159,116,.11);color:var(--primary,#079f74)}.activity-operations-search>div{height:39px;display:flex;align-items:center;gap:7px;border:1px solid var(--border-color,#dce5e1);border-radius:9px;padding:0 10px;background:var(--bs-body-bg,#fff)}.activity-operations-search iconify-icon{font-size:16px;color:var(--bs-secondary-color)}.activity-operations-search input{border:0;outline:0;background:transparent;width:100%;font-size:10.5px;color:var(--bs-body-color)}.activity-operations-body{flex:1;min-height:0;overflow:auto;padding:16px 24px 32px;background:var(--soft-bg,#f7faf8)}.activity-operations-loading{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--bs-secondary-color)}.activity-operations-loading strong{font-size:11px}.activity-operations-error{display:flex;gap:10px;padding:14px;border:1px solid rgba(198,65,65,.25);border-radius:12px;background:rgba(198,65,65,.06);font-size:10px}.activity-operations-error>iconify-icon{font-size:19px}.activity-operations-error strong{display:block;font-size:11px}.activity-operations-error p{margin:3px 0 0}.activity-operations-content{max-width:1500px;margin:0 auto}.activity-operations-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:10px}.activity-operations-summary>div{display:grid;grid-template-columns:auto auto;align-items:end;gap:0 8px}.activity-operations-summary .eyebrow{grid-column:1/-1}.activity-operations-summary strong{font-size:26px;line-height:1}.activity-operations-summary small{font-size:9px;color:var(--bs-secondary-color);padding-bottom:2px}.activity-operations-summary p{font-size:9px;color:var(--bs-secondary-color);margin:0}.activity-operations-table-wrap{overflow:auto;border:1px solid var(--border-color,#dfe7e3);border-radius:14px;background:var(--bs-body-bg,#fff)}.activity-operations-table{width:100%;border-collapse:collapse;min-width:1020px}.activity-operations-table th{padding:10px 11px;text-align:left;font-size:8px;text-transform:uppercase;letter-spacing:.045em;color:var(--bs-secondary-color);background:var(--soft-bg,#f8faf9);border-bottom:1px solid var(--border-color,#e2e9e6);white-space:nowrap}.activity-operations-table td{padding:10px 11px;border-bottom:1px solid var(--border-color,#e7ecea);font-size:9.5px;vertical-align:middle}.activity-operations-table tr:last-child td{border-bottom:0}.activity-operations-table td>strong{display:block;font-size:10px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-operations-table td>small{display:block;font-size:8px;color:var(--bs-secondary-color);margin-top:2px}.activity-operations-table time{white-space:nowrap;color:var(--bs-secondary-color)}.activity-operation-kind{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}.activity-operation-kind iconify-icon{font-size:16px;color:var(--primary,#079f74)}.activity-operation-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8.5px;font-weight:750;white-space:nowrap}.activity-operation-status.is-positive{background:rgba(7,159,116,.1);color:var(--primary,#079f74)}.activity-operation-status.is-negative{background:rgba(198,65,65,.09);color:#bd4141}.activity-operation-status.is-neutral{background:rgba(95,113,106,.09);color:var(--bs-secondary-color)}.activity-operations-table .is-money{font-weight:700;white-space:nowrap}.activity-operation-actions{display:flex;justify-content:flex-end;gap:5px}.activity-operation-actions .btn{white-space:nowrap}.activity-operations-pagination,.activity-operations-count{display:flex;align-items:center;justify-content:center;gap:12px;padding:13px 0 0;font-size:9px;color:var(--bs-secondary-color)}.activity-operations-empty{padding:45px 15px;text-align:center;border:1px dashed var(--border-color,#dce5e1);border-radius:14px;background:var(--bs-body-bg,#fff);font-size:10px;color:var(--bs-secondary-color)}.activity-operation-detail-backdrop{z-index:1610}.activity-operation-detail-sheet{position:fixed;right:0;top:0;bottom:0;width:min(610px,94vw);background:var(--bs-body-bg,#fff);z-index:1615;box-shadow:-18px 0 48px rgba(8,30,22,.16);transform:translateX(100%);transition:transform .2s ease;display:flex;flex-direction:column}.activity-operation-detail-sheet.is-open{transform:none}.activity-operation-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px;border-bottom:1px solid var(--border-color,#dfe7e3)}.activity-operation-detail-header h2{font-size:22px}.activity-operation-detail-body{padding:15px 18px 30px;overflow:auto;flex:1}.activity-operation-document-cta{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid rgba(7,159,116,.22);border-radius:12px;background:rgba(7,159,116,.055);margin-bottom:13px}.activity-operation-document-cta>iconify-icon{width:36px;height:36px;display:grid;place-items:center;font-size:20px;color:var(--primary,#079f74)}.activity-operation-document-cta strong{display:block;font-size:10.5px}.activity-operation-document-cta p{font-size:8.5px;margin:2px 0;color:var(--bs-secondary-color)}.activity-operation-fields{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border-color,#dfe7e3);border-radius:13px;overflow:hidden}.activity-operation-fields>div{padding:10px 11px;border-bottom:1px solid var(--border-color,#e7ecea);min-width:0}.activity-operation-fields>div:nth-child(odd){border-right:1px solid var(--border-color,#e7ecea)}.activity-operation-fields span{display:block;font-size:8px;text-transform:uppercase;font-weight:750;color:var(--bs-secondary-color);margin-bottom:3px}.activity-operation-fields strong{display:block;font-size:9.5px;line-height:1.45;overflow-wrap:anywhere}.activity-operation-lines{margin-top:16px}.activity-operation-lines>h3{font-size:13px;margin-bottom:8px}.activity-operation-lines article{border:1px solid var(--border-color,#dfe7e3);border-radius:11px;padding:10px;margin-bottom:7px;background:var(--soft-bg,#f8faf9)}.activity-operation-lines article>strong{font-size:9px;color:var(--primary,#079f74)}.activity-operation-lines article>div{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin-top:7px}.activity-operation-lines span{font-size:8.5px;min-width:0;overflow-wrap:anywhere}.activity-operation-lines span b{display:block;font-size:7.5px;text-transform:uppercase;color:var(--bs-secondary-color);margin-bottom:2px}
@media(max-width:1050px){.activity-operations-toolbar{grid-template-columns:1fr 1fr 1fr}.activity-operations-period{grid-column:1/-1;width:max-content}.activity-operations-search{grid-column:1/3}.activity-operations-toolbar>[data-operations-refresh]{align-self:end}}
@media(max-width:767px){.activity-operations-header{padding:14px}.activity-operations-header h2{font-size:24px}.activity-operations-toolbar{display:flex;align-items:stretch;overflow-x:auto;padding:9px 10px;gap:7px}.activity-operations-period{flex:0 0 auto}.activity-operations-toolbar>label{flex:0 0 180px}.activity-operations-toolbar>.activity-operations-search{flex-basis:210px}.activity-operations-toolbar>[data-operations-refresh]{display:none}.activity-operations-body{padding:10px 8px 24px}.activity-operations-summary{padding:0 4px}.activity-operations-summary p{display:none}.activity-operation-actions .btn span{display:none}.activity-operation-detail-sheet{width:100vw}.activity-operation-detail-header{padding:14px}.activity-operation-fields{grid-template-columns:1fr}.activity-operation-fields>div:nth-child(odd){border-right:0}.activity-operation-lines article>div{grid-template-columns:1fr}.activity-operation-document-cta{grid-template-columns:34px 1fr}.activity-operation-document-cta .btn{grid-column:1/-1;width:100%}}

/* =========================================================
   Bizfera v1.0.43 · Suscripción por etapa: decidir / pagar / administrar
========================================================= */
.subscription-company-summary.is-trial,
.subscription-company-summary.is-selected {
    border-color: color-mix(in srgb,var(--biz-primary) 34%,var(--biz-border));
    background: linear-gradient(135deg,color-mix(in srgb,var(--biz-primary-soft) 56%,var(--biz-surface)),var(--biz-surface) 68%);
}
.subscription-company-summary.is-active {
    border-color: color-mix(in srgb,var(--biz-primary) 22%,var(--biz-border));
}
.subscription-company-summary.is-cancelled {
    border-color: color-mix(in srgb,#c7952e 36%,var(--biz-border));
    background: linear-gradient(135deg,#fffaf0,var(--biz-surface) 70%);
}
.subscription-company-summary-main p strong { color: var(--bs-body-color); }
.subscription-company-summary-main small strong { color: var(--biz-primary); }
.subscription-company-price small { display:block; margin-top:.22rem; color:var(--biz-muted); font-size:.53rem; }
.subscription-active-dot { display:inline-block; width:7px; height:7px; margin-right:4px; border-radius:50%; background:var(--biz-primary); vertical-align:middle; }

.subscription-checkout-hero {
    display:flex;
    margin-bottom:1rem;
    padding:1rem 1.1rem;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    border-color:color-mix(in srgb,var(--biz-primary) 35%,var(--biz-border));
    background:linear-gradient(120deg,color-mix(in srgb,var(--biz-primary-soft) 70%,var(--biz-surface)),var(--biz-surface) 72%);
}
.subscription-checkout-copy { display:flex; min-width:0; align-items:flex-start; gap:.75rem; }
.subscription-checkout-copy>iconify-icon { flex:0 0 auto; width:38px; height:38px; padding:9px; border-radius:11px; background:var(--biz-primary); color:#fff; font-size:20px; }
.subscription-checkout-copy h2 { margin:.08rem 0 .22rem; font-size:1rem; }
.subscription-checkout-copy p { margin:0; color:var(--biz-muted); font-size:.61rem; }
.subscription-checkout-button { flex:0 0 auto; min-width:280px; min-height:44px; justify-content:center; }

.subscription-plan-card .subscription-company-fit {
    display:grid;
    gap:.15rem;
    min-height:0;
    padding:.62rem .68rem;
    border-radius:10px;
    background:color-mix(in srgb,var(--biz-primary-soft) 72%,var(--biz-surface));
}
.subscription-company-fit strong { color:var(--biz-primary); font-size:.62rem; }
.subscription-company-fit span { color:var(--biz-muted); font-size:.56rem; line-height:1.4; }
.subscription-plan-card.is-recommended .panel-kicker { color:var(--biz-primary); }
.subscription-plan-card .status { white-space:nowrap; }

.subscription-trust-strip {
    display:flex;
    margin:-.15rem 0 1rem;
    padding:.82rem .95rem;
    align-items:flex-start;
    gap:.7rem;
    box-shadow:none;
}
.subscription-trust-strip>iconify-icon { flex:0 0 auto; margin-top:1px; color:var(--biz-primary); font-size:1.2rem; }
.subscription-trust-strip div { display:flex; flex-direction:column; gap:.12rem; }
.subscription-trust-strip strong { font-size:.68rem; }
.subscription-trust-strip span { color:var(--biz-muted); font-size:.58rem; line-height:1.45; }

.subscription-trial-overview { margin-bottom:1rem; }
.subscription-trial-overview .subscription-main-card { padding:1rem 1.1rem; }
.subscription-trial-overview h2 { margin:.15rem 0 .22rem; font-size:1.05rem; }
.subscription-simple-copy { margin:.2rem 0 0; color:var(--biz-muted); font-size:.66rem; line-height:1.55; }
.subscription-cancel-helper { margin:.55rem 0 0; color:var(--biz-muted); font-size:.58rem; }
.subscription-cancellation-note { display:flex; margin-top:.7rem; padding:.7rem .8rem; flex-direction:column; gap:.12rem; border:1px solid #ecd8a7; border-radius:10px; background:#fffaf0; }
.subscription-cancellation-note strong { color:#8a6720; font-size:.65rem; }
.subscription-cancellation-note span { color:#786a4e; font-size:.58rem; }
.subscription-payment-security { display:flex; margin:.2rem 0 .8rem; padding:.62rem .7rem; align-items:center; gap:.45rem; border-radius:9px; background:var(--biz-surface-soft); color:var(--biz-muted); font-size:.56rem; }
.subscription-payment-security iconify-icon { color:var(--biz-primary); font-size:1rem; }
.subscription-extra-user-note { padding:.62rem .78rem; }
.subscription-extra-user-note div { justify-content:center; }

@media(max-width:767.98px){
    .subscription-checkout-hero { align-items:stretch; flex-direction:column; }
    .subscription-checkout-button { width:100%; min-width:0; }
    .subscription-checkout-copy h2 { font-size:.9rem; }
    .subscription-trust-strip { align-items:flex-start; }
}

/* =========================================================
   Bizfera v1.0.44 · Suscripciones vencidas y pago pendiente
========================================================= */
.subscription-company-summary.is-expired {
    border-color: color-mix(in srgb,#c7952e 34%,var(--biz-border));
    background: linear-gradient(135deg,#fffaf0,var(--biz-surface) 72%);
}
.subscription-company-summary.is-expired .panel-kicker { color:#8a6720; }
.subscription-checkout-hero.is-reactivation {
    border-color: color-mix(in srgb,var(--biz-primary) 48%,var(--biz-border));
}
.subscription-checkout-hero.is-pending-payment {
    border-color: color-mix(in srgb,#c7952e 38%,var(--biz-border));
    background: linear-gradient(120deg,#fffaf0,var(--biz-surface) 74%);
}
.subscription-checkout-hero.is-pending-payment .subscription-checkout-copy>iconify-icon {
    background:#b98624;
}
.subscription-checkout-actions {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:.55rem;
}
.subscription-checkout-actions .subscription-checkout-button { min-width:190px; }
@media(max-width:767.98px){
    .subscription-checkout-actions { width:100%; align-items:stretch; flex-direction:column; }
    .subscription-checkout-actions .subscription-checkout-button { width:100%; min-width:0; }
}

/* Bizfera v1.0.45 · Combos / Kits */
.product-type-badge {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    padding: .16rem .42rem;
    border-radius: 999px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: .56rem;
    font-weight: 850;
    vertical-align: middle;
}
.product-combo-section {
    display: grid;
    gap: .7rem;
    padding: .85rem;
    border: 1px solid var(--biz-border);
    border-radius: 14px;
    background: var(--biz-surface-soft);
}
.product-combo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.product-combo-heading h3 { margin: .08rem 0 .12rem; font-size: .94rem; }
.product-combo-heading p { margin: 0; max-width: 650px; color: var(--biz-muted); font-size: .68rem; }
.product-combo-availability {
    flex: 0 0 auto;
    min-width: 118px;
    padding: .55rem .7rem;
    border: 1px solid color-mix(in srgb, var(--biz-primary) 25%, var(--biz-border));
    border-radius: 11px;
    background: var(--biz-surface);
    text-align: right;
}
.product-combo-availability span { display: block; color: var(--biz-muted); font-size: .57rem; font-weight: 700; }
.product-combo-availability strong { display: block; margin-top: .05rem; color: var(--biz-primary); font-size: 1.15rem; }
.product-combo-list { display: grid; gap: .48rem; }
.product-combo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 38px;
    gap: .55rem;
    align-items: end;
    padding: .55rem;
    border: 1px solid var(--biz-border);
    border-radius: 11px;
    background: var(--biz-surface);
}
.product-combo-row label { min-width: 0; }
.product-combo-row label > span { display: block; margin-bottom: .22rem; font-size: .62rem; font-weight: 750; }
.product-combo-remove { margin-bottom: 1px; }
.product-combo-add { justify-self: start; }
.product-combo-warning {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--biz-warning-text, #8a5a00);
    font-size: .66rem;
    font-weight: 700;
}
.product-combo-warning iconify-icon { font-size: 1rem; }
@media (max-width: 620px) {
    .product-combo-heading { align-items: flex-start; flex-direction: column; }
    .product-combo-availability { width: 100%; text-align: left; }
    .product-combo-row { grid-template-columns: minmax(0,1fr) 105px 38px; }
}
.product-combo-section[hidden],
.product-combo-warning[hidden] { display: none !important; }

.product-combo-stock-warning { color: var(--biz-warning-text, #8a5a00); }
.product-combo-stock-warning iconify-icon { font-size: .8rem; vertical-align: -.1rem; }

/* Importadores · selector de archivos de ejemplo */
.importer-template-sheet{max-width:760px}
.importer-template-list{display:grid;gap:.55rem}
.importer-template-group{padding:.25rem .1rem 0;color:var(--biz-primary);font-size:.58rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.importer-template-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding:.8rem .9rem;border:1px solid var(--biz-border);border-radius:14px;background:var(--biz-surface)}
.importer-template-item>div{display:grid;gap:.14rem;min-width:0}
.importer-template-item strong{font-size:.72rem}
.importer-template-item p{margin:0;color:var(--biz-muted);font-size:.59rem;line-height:1.45}
.importer-template-item small{color:var(--biz-muted);font-size:.53rem;line-height:1.4}
.importer-template-item .btn{white-space:nowrap}
@media(max-width:760px){.importer-template-item{grid-template-columns:1fr}.importer-template-item .btn{width:100%}}

/* v0.17.66 · promociones/sheets/facturación/presupuestos/etiquetas */
.product-form-section-title {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    margin: 0;
    padding: 1rem 0 .1rem;
    border-top: 1px solid var(--biz-border);
}
.product-sheet-grid > .product-form-section-title:first-of-type,
.promotion-sheet-grid > .product-form-section-title:first-of-type,
.presentation-sheet-grid > .product-form-section-title:first-of-type {
    padding-top: .2rem;
    border-top: 0;
}
.product-form-section-title > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--biz-primary) 18%, var(--biz-border));
    background: var(--biz-primary-soft);
    color: var(--biz-primary);
    font-size: .95rem;
}
.product-form-section-title > div {
    display: grid;
    align-content: start;
    gap: .18rem;
}
.product-form-section-title strong,
.product-form-section-title small {
    display: block;
    line-height: 1.4;
}
.product-form-section-title strong { font-size: 1.02rem; }
.product-form-section-title small { color: var(--biz-muted); font-size: .72rem; }

.promotion-scope-picker {
    display: grid;
    gap: .65rem;
    padding: 1rem;
    border: 1px solid var(--biz-border);
    border-radius: 16px;
    background: var(--biz-surface-soft);
}
.promotion-scope-search-box {
    display: grid;
    gap: .35rem;
    margin: 0;
}
.promotion-scope-search-box > span {
    color: var(--bs-body-color);
    font-size: .74rem;
    font-weight: 700;
}
.promotion-scope-search-box > small {
    color: var(--biz-muted);
    font-size: .6rem;
    line-height: 1.45;
}
.promotion-scope-suggestions {
    display: grid;
    gap: .45rem;
}
.promotion-scope-suggestion {
    display: flex;
    width: 100%;
    padding: .75rem .85rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface);
    color: inherit;
    text-align: left;
}
.promotion-scope-suggestion:hover {
    border-color: color-mix(in srgb, var(--biz-primary) 40%, var(--biz-border));
    box-shadow: var(--biz-shadow-sm);
}
.promotion-scope-suggestion > span,
.promotion-scope-chip > span {
    display: grid;
    min-width: 0;
    gap: .12rem;
}
.promotion-scope-suggestion strong,
.promotion-scope-chip strong {
    font-size: .72rem;
    line-height: 1.35;
}
.promotion-scope-suggestion small,
.promotion-scope-chip small {
    color: var(--biz-muted);
    font-size: .58rem;
    line-height: 1.35;
}
.promotion-scope-suggestion iconify-icon {
    color: var(--biz-primary);
    font-size: 1.1rem;
    flex: 0 0 auto;
}
.promotion-scope-selected {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 1.25rem;
}
.promotion-scope-chip {
    display: inline-flex;
    max-width: 100%;
    padding: .48rem .5rem .48rem .7rem;
    align-items: center;
    gap: .55rem;
    border: 1px solid color-mix(in srgb, var(--biz-primary) 18%, var(--biz-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--biz-primary) 8%, var(--biz-surface));
    color: var(--bs-body-color);
}
.promotion-scope-chip button {
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    color: var(--biz-muted);
    flex: 0 0 auto;
}
.promotion-scope-chip button:hover {
    background: rgba(0,0,0,.07);
    color: var(--biz-danger);
}
.promotion-scope-empty {
    display: block;
    color: var(--biz-muted);
    font-size: .62rem;
    line-height: 1.45;
}

.ticket-item {
    min-height: 98px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: .7rem;
}
.ticket-item-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .2rem;
}
.ticket-item-copy > strong {
    overflow: visible;
    font-size: .78rem;
    line-height: 1.35;
    white-space: normal;
}
.ticket-unit-line,
.budget-unit-line,
.ticket-promo-row,
.budget-promo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}
.ticket-unit-price-static,
.budget-unit-price-static {
    color: var(--biz-muted);
    font-size: .62rem;
}
.ticket-promotion-note,
.budget-promo-note,
.budget-product-promo {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    color: var(--biz-primary);
    font-size: .6rem;
    font-weight: 700;
    line-height: 1.35;
}
.ticket-promotion-note iconify-icon,
.budget-promo-note iconify-icon,
.budget-product-promo iconify-icon {
    font-size: .82rem;
    flex: 0 0 auto;
}
.ticket-promotion-note.is-available,
.budget-promo-note.is-available,
.budget-product-promo.is-available,
.budget-meta-note {
    color: var(--biz-muted);
}
.quantity-control {
    display: inline-flex;
    margin-top: .18rem;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    background: var(--biz-surface);
}
.quantity-control button,
.quantity-control .quantity-value,
.quantity-control input {
    min-width: 30px;
    height: 28px;
    border: 0;
    font-size: .72rem;
}
.quantity-control button {
    width: 30px;
    background: var(--biz-surface-soft);
    color: var(--bs-body-color);
}
.quantity-control .quantity-value,
.quantity-control input {
    min-width: 56px;
    padding: 0 .45rem;
    background: transparent;
    color: var(--bs-body-color);
    text-align: center;
}
.quantity-control input { outline: 0; }
.ticket-line-total { font-size: .9rem; }
.ticket-remove { top: .4rem; right: .4rem; }

.budget-product-card {
    min-height: 104px;
    align-items: start;
}
.budget-product-card span {
    display: grid;
    min-width: 0;
    gap: .14rem;
}
.budget-product-card strong { line-height: 1.35; }
.budget-product-card b { margin-top: .15rem; }
.budget-cart-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .7rem;
}
.budget-cart-copy {
    display: grid;
    min-width: 0;
    gap: .18rem;
}
.budget-cart-row strong { font-size: .7rem; line-height: 1.35; }
.budget-cart-row > b { font-size: .75rem; white-space: nowrap; }

.cash-payment-summary-title {
    margin: 1.2rem 0 .65rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

@media (max-width: 720px) {
    .product-form-section-title { grid-template-columns: 28px minmax(0, 1fr); gap: .6rem; }
    .product-form-section-title > span { width: 28px; height: 28px; border-radius: 9px; font-size: .85rem; }
    .product-form-section-title strong { font-size: .92rem; }
    .promotion-scope-picker { padding: .85rem; }
    .budget-cart-row { grid-template-columns: 1fr; }
    .budget-cart-row > b { text-align: left; }
}

/* Bizfera v1.0.50 · facturación responsive estable */
body.module-facturacion .product-card[hidden] { display:none !important; }
body.module-facturacion .ticket-item .quantity-control {
    align-self:flex-start;
    width:auto !important;
    max-width:112px;
    margin-top:.22rem;
    border:0;
    border-radius:9px;
    background:var(--biz-surface-soft);
    box-shadow:inset 0 0 0 1px var(--biz-border);
}
body.module-facturacion .ticket-item .quantity-control button,
body.module-facturacion .ticket-item .quantity-control .quantity-value {
    width:28px;
    min-width:28px;
    height:26px;
    background:transparent;
    font-size:.66rem;
}
body.module-facturacion .ticket-item .quantity-control .quantity-value {
    width:50px;
    min-width:50px;
    padding:0 .3rem;
    border-left:1px solid var(--biz-border);
    border-right:1px solid var(--biz-border);
}
.pos-show-more {
    display:flex;
    width:max-content;
    min-height:34px;
    margin:.7rem auto .1rem;
    padding:.42rem .72rem;
    align-items:center;
    justify-content:center;
    gap:.35rem;
    border:1px solid var(--biz-border);
    border-radius:999px;
    background:var(--biz-surface);
    color:var(--biz-primary);
    font-size:.62rem;
    font-weight:800;
}
.pos-show-more:hover { border-color:var(--biz-primary); background:var(--biz-primary-soft); }
.pos-show-more[hidden] { display:none !important; }
@media (max-width:767px) {
    body.module-facturacion .ticket-item { grid-template-columns:42px minmax(0,1fr) auto; }
    body.module-facturacion .ticket-item .quantity-control { max-width:108px; }
}

/* v1.0.50 · Clientes 360, crédito y CRM */
.client-360-heading .back-link { display:inline-flex; align-items:center; gap:.3rem; margin-bottom:.45rem; color:var(--biz-muted); font-size:.65rem; text-decoration:none; }
.client-360-heading .back-link:hover { color:var(--biz-primary); }
.client-360-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.7rem; margin-bottom:1rem; }
.client-360-metrics article { min-width:0; padding:1rem; border:1px solid var(--biz-border); border-radius:14px; background:var(--biz-surface); box-shadow:var(--biz-shadow-sm); }
.client-360-metrics span,.client-360-metrics strong,.client-360-metrics small { display:block; }
.client-360-metrics span { color:var(--biz-muted); font-size:.58rem; font-weight:750; }
.client-360-metrics strong { margin:.25rem 0 .14rem; font-size:1rem; line-height:1.18; }
.client-360-metrics small { color:var(--biz-muted); font-size:.54rem; line-height:1.4; }
.client-360-metrics article.is-warning { border-color:color-mix(in srgb,#d28a1f 34%,var(--biz-border)); background:color-mix(in srgb,#f59e0b 6%,var(--biz-surface)); }
.client-360-metrics article.is-warning strong { color:#b66b00; }
.client-360-tabs { margin-bottom:1rem; }
.client-360-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.client-360-span-2 { grid-column:1 / -1; }
.client-360-panel { padding:1rem; min-width:0; }
.client-condition-list { display:grid; gap:0; }
.client-condition-list > div { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .05rem; border-bottom:1px solid var(--biz-border); }
.client-condition-list > div:last-child { border-bottom:0; }
.client-condition-list span { color:var(--biz-muted); font-size:.62rem; }
.client-condition-list strong { font-size:.68rem; text-align:right; }
.client-timeline-mini { display:grid; gap:.45rem; }
.client-timeline-mini article { display:grid; grid-template-columns:34px minmax(0,1fr); gap:.6rem; align-items:center; padding:.55rem 0; border-bottom:1px solid var(--biz-border); }
.client-timeline-mini article:last-child { border-bottom:0; }
.client-timeline-icon { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; background:var(--biz-primary-soft); color:var(--biz-primary); }
.client-timeline-mini strong,.client-timeline-mini small { display:block; }
.client-timeline-mini strong { font-size:.65rem; }
.client-timeline-mini small { margin-top:.1rem; color:var(--biz-muted); font-size:.54rem; }
.client-aging-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; }
.client-aging-grid > div { padding:.8rem .9rem; border:1px solid var(--biz-border); border-radius:12px; background:var(--biz-surface-soft); }
.client-aging-grid span,.client-aging-grid strong { display:block; }
.client-aging-grid span { color:var(--biz-muted); font-size:.58rem; }
.client-aging-grid strong { margin-top:.18rem; font-size:.82rem; }
.client-promise-list,.client-record-list { display:grid; gap:.45rem; }
.client-promise-list article,.client-record-list article { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem 0; border-bottom:1px solid var(--biz-border); }
.client-promise-list article:last-child,.client-record-list article:last-child { border-bottom:0; }
.client-promise-list strong,.client-promise-list small,.client-record-list strong,.client-record-list small { display:block; }
.client-promise-list small,.client-record-list small { margin-top:.1rem; color:var(--biz-muted); font-size:.54rem; }
.client-inline-form,.client-commercial-form { display:grid; gap:.65rem; margin-top:.8rem; padding-top:.8rem; border-top:1px solid var(--biz-border); }
.client-commercial-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
.client-commercial-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; }
.client-table-name { color:inherit; text-decoration:none; }
.client-table-name:hover strong { color:var(--biz-primary); }
.client-duplicate-warning { display:grid; grid-template-columns:32px minmax(0,1fr); gap:.65rem; padding:.75rem .85rem; border:1px solid color-mix(in srgb,#f59e0b 35%,var(--biz-border)); border-radius:12px; background:color-mix(in srgb,#f59e0b 7%,var(--biz-surface)); }
.client-duplicate-warning > iconify-icon { color:#b66b00; font-size:1.25rem; }
.client-duplicate-warning > div > strong { display:block; margin-bottom:.4rem; font-size:.67rem; }
.client-duplicate-warning [data-client-duplicate-results] { display:grid; gap:.3rem; }
.client-duplicate-warning [data-client-duplicate-results] a { display:flex; justify-content:space-between; gap:.6rem; padding:.45rem .55rem; border:1px solid var(--biz-border); border-radius:9px; background:var(--biz-surface); color:inherit; text-decoration:none; }
.client-duplicate-warning [data-client-duplicate-results] a strong { font-size:.62rem; }
.client-duplicate-warning [data-client-duplicate-results] a span,.client-duplicate-warning small { color:var(--biz-muted); font-size:.54rem; }
.account-origin-link { display:inline-flex; align-items:center; gap:.25rem; color:inherit; text-decoration:none; font-weight:700; }
.account-origin-link:hover { color:var(--biz-primary); }

.client-credit-context { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; margin:.65rem 0 0; padding:.65rem; border:1px solid var(--biz-border); border-radius:12px; background:var(--biz-surface-soft); }
.client-credit-context > span { min-width:0; }
.client-credit-context small,.client-credit-context strong { display:block; }
.client-credit-context small { color:var(--biz-muted); font-size:.52rem; }
.client-credit-context strong { margin-top:.1rem; font-size:.62rem; }
.client-credit-context.has-risk { border-color:color-mix(in srgb,#f59e0b 30%,var(--biz-border)); background:color-mix(in srgb,#f59e0b 6%,var(--biz-surface)); }
.client-credit-context.has-risk [data-client-credit-overdue] { color:#b66b00; }

.crm-pipeline-section { padding:1rem; margin-bottom:1rem; overflow:hidden; }
.crm-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.crm-section-heading h2 { margin:.12rem 0 .15rem; font-size:1rem; }
.crm-section-heading p { margin:0; color:var(--biz-muted); font-size:.62rem; }
.crm-pipeline { display:grid; grid-template-columns:repeat(5,minmax(210px,1fr)); gap:.65rem; overflow-x:auto; padding-bottom:.2rem; }
.crm-pipeline-column { min-width:210px; padding:.55rem; border:1px solid var(--biz-border); border-radius:13px; background:var(--biz-surface-soft); }
.crm-pipeline-column > header { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.25rem .2rem .6rem; }
.crm-pipeline-column > header strong { font-size:.66rem; }
.crm-pipeline-column > header span { display:grid; min-width:22px; height:22px; place-items:center; border-radius:999px; background:var(--biz-surface); color:var(--biz-muted); font-size:.54rem; font-weight:800; }
.crm-pipeline-cards { display:grid; gap:.5rem; min-height:78px; }
.crm-pipeline-column.is-drag-over { border-color:var(--biz-primary); background:color-mix(in srgb,var(--biz-primary) 6%,var(--biz-surface-soft)); }
.crm-pipeline-card { display:grid; gap:.35rem; padding:.7rem; border:1px solid var(--biz-border); border-radius:11px; background:var(--biz-surface); box-shadow:0 4px 14px rgba(0,0,0,.035); cursor:grab; }
.crm-pipeline-card:active { cursor:grabbing; }
.crm-pipeline-card.is-dragging { opacity:.45; }
.crm-pipeline-card-top { display:flex; align-items:center; justify-content:space-between; gap:.45rem; }
.crm-pipeline-card-top small { overflow:hidden; color:var(--biz-muted); font-size:.52rem; text-overflow:ellipsis; white-space:nowrap; }
.crm-pipeline-card > strong { font-size:.65rem; line-height:1.35; }
.crm-pipeline-card > a { display:inline-flex; align-items:center; gap:.25rem; width:max-content; max-width:100%; color:var(--biz-primary); font-size:.54rem; text-decoration:none; }
.crm-pipeline-card footer { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:.15rem; }
.crm-pipeline-card footer b { font-size:.62rem; }
.crm-pipeline-card footer span { color:var(--biz-muted); font-size:.5rem; }
.crm-convert-form { margin:0; }
.crm-convert-form button { width:100%; padding:.38rem .5rem; border:1px solid color-mix(in srgb,var(--biz-primary) 25%,var(--biz-border)); border-radius:8px; background:var(--biz-primary-soft); color:var(--biz-primary); font-size:.54rem; font-weight:800; }
.crm-loss-summary { display:flex; flex-wrap:wrap; gap:.45rem .8rem; align-items:center; margin-top:.8rem; padding-top:.7rem; border-top:1px solid var(--biz-border); color:var(--biz-muted); font-size:.56rem; }
.crm-loss-summary strong { color:var(--bs-body-color); }

@media (max-width:1100px) {
    .client-360-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
    .client-360-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .client-360-grid { grid-template-columns:1fr; }
    .client-360-span-2 { grid-column:auto; }
    .client-aging-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .client-commercial-form { grid-template-columns:1fr; }
    .client-commercial-actions { grid-column:auto; }
    .client-credit-context { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .crm-pipeline { grid-template-columns:repeat(5,82vw); }
}
.sale-client-links { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.38rem; }
.sale-client-links a { color:var(--biz-primary); font-size:.55rem; font-weight:700; text-decoration:none; }
.sale-client-links a:hover { text-decoration:underline; }
.payment-line > a { color:inherit; text-decoration:none; }
.payment-line > a:hover { color:var(--biz-primary); }

/* Bizfera v1.0.50 · cierre visual Facturación + Balanza */
body.module-facturacion .ticket-item .quantity-control {
    display:inline-flex;
    width:max-content !important;
    max-width:none !important;
    margin-top:.18rem;
    align-items:center;
    border:0 !important;
    border-radius:8px;
    background:var(--biz-surface-soft);
    box-shadow:none !important;
    overflow:hidden;
}
body.module-facturacion .ticket-item .quantity-control button,
body.module-facturacion .ticket-item .quantity-control .quantity-value {
    flex:0 0 auto !important;
    height:25px;
    min-width:24px !important;
    padding:0 .2rem;
    border:0 !important;
    background:transparent !important;
    font-size:.64rem;
}
body.module-facturacion .ticket-item .quantity-control .quantity-value {
    width:44px !important;
    min-width:44px !important;
    color:var(--bs-body-color);
    font-weight:650;
    text-align:center;
}
body.module-facturacion .ticket-item .ticket-promotion-note {
    font-size:.56rem;
    line-height:1.25;
}
body.module-facturacion .ticket-item .ticket-unit-line { min-height:16px; }

.integration-scale-card.is-sheet-open > .integration-scale-form {
    display:grid !important;
    width:min(980px,calc(100% - 2.4rem));
    margin:0 auto 1.2rem !important;
    padding:1rem;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.8rem;
    border:1px solid var(--biz-border);
    border-radius:16px;
    background:var(--biz-surface-soft);
}
.integration-scale-form > label {
    display:grid;
    align-content:start;
    gap:.32rem;
    min-width:0;
}
.integration-scale-form > label > span {
    font-size:.64rem;
    font-weight:760;
}
.integration-scale-form > label > small,
.integration-scale-always-on small {
    color:var(--biz-muted);
    font-size:.56rem;
    line-height:1.45;
}
.integration-scale-form .integration-card-actions {
    grid-column:1 / -1;
    margin:0;
    padding-top:.15rem;
}
.integration-scale-always-on {
    grid-column:1 / -1;
    display:flex;
    align-items:flex-start;
    gap:.6rem;
    padding:.75rem .8rem;
    border:1px solid color-mix(in srgb,var(--biz-primary) 22%,var(--biz-border));
    border-radius:12px;
    background:color-mix(in srgb,var(--biz-primary) 7%,var(--biz-surface));
}
.integration-scale-always-on > iconify-icon {
    margin-top:.05rem;
    color:var(--biz-primary);
    font-size:1.05rem;
}
.integration-scale-always-on > span { display:grid; gap:.12rem; }
.integration-scale-always-on strong { font-size:.66rem; }
.scale-format-preview {
    display:grid;
    grid-template-columns:repeat(4,minmax(72px,1fr));
    gap:.45rem;
}
.scale-format-preview > span {
    display:grid;
    place-items:center;
    min-height:66px;
    padding:.55rem;
    border:1px solid var(--biz-border);
    border-radius:12px;
    background:var(--biz-surface-soft);
    color:var(--biz-muted);
    font-size:.56rem;
    text-align:center;
}
.scale-format-preview b {
    display:block;
    margin-bottom:.12rem;
    color:var(--bs-body-color);
    font-size:1rem;
}
.cash-payment-summary-title {
    margin:.85rem 0 .4rem !important;
    font-size:.82rem !important;
    line-height:1.2 !important;
    font-weight:800 !important;
}
@media print {
    .cash-payment-summary-title { font-size:12px !important; margin:10px 0 5px !important; }
}
@media (max-width:720px) {
    .integration-scale-card.is-sheet-open > .integration-scale-form { grid-template-columns:1fr; width:calc(100% - 2rem); padding:.85rem; }
    .scale-format-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* v1.0.51 UI ajustes */
.payment-client-context{margin-top:14px;padding:14px 16px;border:1px solid var(--biz-border);border-radius:18px;background:rgba(12,177,126,.06)}
.payment-client-context.has-risk,.client-credit-context.has-risk{border-color:rgba(219,68,68,.35);background:rgba(219,68,68,.06)}
.payment-client-context__head{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.payment-client-context__head strong{font-size:1rem}
.payment-client-context__head small{color:var(--biz-text-muted)}
.payment-client-context__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.payment-client-context__grid span{display:flex;flex-direction:column;gap:2px}
.payment-client-context__grid small{color:var(--biz-text-muted);font-size:.78rem}

.ticket-item{gap:10px}
.ticket-item-copy{gap:4px}
.ticket-unit-line{margin-bottom:0}
.ticket-line-total{align-self:center}
.product-card-price{margin-top:4px}
.product-card-copy{gap:4px}

.account-tabs,.crm-view-tabs,.report-view-tabs{margin:18px 0 16px}
.account-payment-block{padding:16px 0;border-top:1px solid var(--biz-border)}
.account-payment-block:first-child{border-top:0;padding-top:0}
.account-payment-total-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:16px;align-items:start}
.account-payment-totals-card{display:grid;gap:10px;padding:14px 16px;border:1px solid var(--biz-border);border-radius:16px;background:var(--biz-surface-alt)}
.account-payment-totals-card span{display:flex;justify-content:space-between;gap:12px}
.account-document-allocation-list,.account-payment-methods{display:grid;gap:12px}
.account-document-allocation-item,.account-payment-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;align-items:center}
.account-document-allocation-item small{display:block;color:var(--biz-text-muted)}
.account-payment-row{grid-template-columns:minmax(0,1.1fr) 180px minmax(0,1fr)}
.account-promise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.account-promise-note{grid-column:1/-1}
.panel-heading.compact{margin-bottom:10px}
.report-panel-only-graphs[hidden],.report-panel-only-detail[hidden],.crm-panel[hidden], [data-account-panel][hidden]{display:none !important}
.crm-detail-highlight{padding:18px;border:1px solid var(--biz-border);border-radius:18px;background:var(--biz-surface-alt);margin-bottom:16px;display:grid;gap:12px}
.crm-detail-highlight__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.crm-detail-highlight__grid span{display:flex;flex-direction:column;gap:2px}
.crm-detail-highlight__grid small{color:var(--biz-text-muted)}
.crm-detail-highlight__actions{display:flex;flex-wrap:wrap;gap:10px}

@media (max-width: 991px){
  .product-card{padding:10px}
  .product-card-copy{gap:3px}
  .product-card-price{margin-top:2px}
  .payment-client-context__grid,.crm-detail-highlight__grid,.account-payment-total-grid,.account-promise-grid{grid-template-columns:1fr}
  .account-document-allocation-item,.account-payment-row{grid-template-columns:1fr}
}

/* v1.0.52 ajustes facturación, clientes y reportes */
body.module-facturacion .product-card-footer{grid-column:1 / -1;display:flex;align-items:flex-end;justify-content:space-between;gap:.55rem;min-width:0;margin-top:.36rem}
body.module-facturacion .product-price{margin:0 !important;padding:0 !important;display:flex !important;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:.12rem;min-width:0;flex:1 1 auto;grid-column:auto !important;grid-row:auto !important}
body.module-facturacion .product-price del{font-size:.58rem;line-height:1;color:var(--biz-text-muted)}
body.module-facturacion .product-price b{display:block}
body.module-facturacion .product-add{display:flex;align-items:flex-end;justify-content:center;flex:0 0 auto;width:24px;min-width:24px;align-self:flex-end}
body.module-facturacion .product-add iconify-icon{font-size:1.3rem;color:var(--biz-primary)}
body.module-facturacion .payment-client-context{padding:10px 12px;border-radius:14px;background:var(--biz-surface-alt)}
body.module-facturacion .payment-client-context__head{margin-bottom:8px}
body.module-facturacion .payment-client-context__head strong{font-size:.98rem;line-height:1.1}
body.module-facturacion .payment-client-context__head small{font-size:.8rem}
body.module-facturacion .payment-client-context__grid{gap:8px 14px}
body.module-facturacion .payment-client-context__grid small{font-size:.72rem;text-transform:none}
body.module-facturacion .payment-client-context__grid strong{font-size:.95rem}
body.module-facturacion .payment-client-context__adjustment{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;margin-top:10px;border-top:1px solid var(--biz-border)}
body.module-facturacion .payment-client-context__adjustment small{color:var(--biz-text-muted);font-size:.75rem}
body.module-facturacion .payment-client-context__adjustment strong{font-size:.88rem}
.report-analysis-section{margin-top:0}
.report-analysis-heading{display:none}
.report-chart-panel .dashboard-panel-head h2{font-size:1.16rem}
@media (max-width: 767.98px){
  body.module-facturacion .product-card{min-height:112px !important;grid-template-columns:34px minmax(0,1fr) !important;grid-template-rows:auto auto !important;row-gap:.28rem !important}
  body.module-facturacion .product-card-copy{grid-column:2 !important;grid-row:1 !important}
  body.module-facturacion .product-card-footer{grid-column:1 / -1;grid-row:2}
  body.module-facturacion .product-add{width:22px;min-width:22px}
}
.inline-form-button{display:inline-flex;margin:0}.inline-form-button .btn{display:inline-flex;align-items:center;gap:.45rem}
.report-panel-only-detail .report-metrics{display:none}.report-analysis-heading{display:none !important}

/* v1.0.53 · Facturación móvil: tarjeta horizontal de una columna, igual a la referencia. */
@media (max-width: 767.98px) {
    body.module-facturacion .product-grid {
        grid-template-columns: 1fr !important;
        gap: .55rem !important;
    }
    body.module-facturacion .product-card {
        width: 100% !important;
        min-height: 108px !important;
        padding: .62rem .68rem !important;
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        column-gap: .72rem !important;
        row-gap: .42rem !important;
        align-items: start !important;
        align-content: stretch !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }
    body.module-facturacion .product-card-image {
        width: 64px !important;
        height: 64px !important;
        margin: 0 !important;
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        align-self: start !important;
        border-radius: 11px !important;
    }
    body.module-facturacion .product-card-copy {
        min-width: 0 !important;
        padding: 0 !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
    }
    body.module-facturacion .product-card-copy small {
        font-size: .50rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    body.module-facturacion .product-card-copy strong {
        min-height: 0 !important;
        margin-top: .14rem !important;
        font-size: .76rem !important;
        line-height: 1.18 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
    }
    body.module-facturacion .product-card-copy em {
        margin-top: .16rem !important;
        font-size: .51rem !important;
        line-height: 1.18 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    body.module-facturacion .product-card-footer {
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: end !important;
        justify-content: space-between !important;
        gap: .55rem !important;
        align-self: end !important;
    }
    body.module-facturacion .product-price {
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        gap: .12rem !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    body.module-facturacion .product-price b {
        max-width: 100% !important;
        font-size: .92rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    body.module-facturacion .product-price del { font-size: .50rem !important; }
    body.module-facturacion .product-add {
        position: static !important;
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center !important;
        align-self: end !important;
        justify-self: end !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    body.module-facturacion .product-add iconify-icon { font-size: 1.35rem !important; }
}
@media (max-width: 360px) {
    body.module-facturacion .product-card {
        min-height: 102px !important;
        padding: .56rem !important;
        grid-template-columns: 58px minmax(0, 1fr) !important;
        column-gap: .62rem !important;
    }
    body.module-facturacion .product-card-image { width: 58px !important; height: 58px !important; }
    body.module-facturacion .product-card-copy strong { font-size: .70rem !important; }
    body.module-facturacion .product-price b { font-size: .86rem !important; }
}

/* v1.0.54 · Compras, proveedores, costos y tesorería */
.purchase-tabs,.provider-tabs{margin-bottom:1rem}.purchase-summary-strip,.provider-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}.provider-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.purchase-summary-strip article,.provider-kpi-grid article{min-width:0;padding:.85rem .95rem;border:1px solid var(--biz-border);border-radius:14px;background:var(--biz-surface);box-shadow:var(--biz-shadow-sm)}.purchase-summary-strip span,.provider-kpi-grid span{display:block;color:var(--biz-muted);font-size:.56rem;font-weight:750}.purchase-summary-strip strong,.provider-kpi-grid strong{display:block;margin:.18rem 0;font-size:.95rem}.purchase-summary-strip .link-button{padding:0;border:0;background:none;color:var(--biz-primary);font-size:.55rem;font-weight:750}.purchase-progress{display:flex;align-items:center;gap:.4rem;min-width:95px}.purchase-progress>span{height:6px;flex:1;border-radius:999px;background:var(--biz-surface-soft);overflow:hidden}.purchase-progress i{display:block;height:100%;border-radius:inherit;background:var(--biz-primary)}.purchase-progress small{font-size:.52rem;color:var(--biz-muted)}.soft-badge,.warning-badge{display:inline-flex;align-items:center;padding:.25rem .45rem;border-radius:999px;background:var(--biz-surface-soft);font-size:.52rem;font-weight:750}.warning-badge{background:color-mix(in srgb,#f59e0b 10%,var(--biz-surface));color:#b06b00}.purchase-builder{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:1rem;min-height:0}.purchase-catalog{min-width:0}.purchase-cart{display:flex;flex-direction:column;gap:.65rem;padding:.9rem;border:1px solid var(--biz-border);border-radius:14px;background:var(--biz-surface-soft)}.purchase-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.purchase-fields .wide{grid-column:1/-1}.purchase-expenses{display:flex;flex-direction:column;gap:.45rem}.purchase-expense-row{display:grid;grid-template-columns:minmax(0,1fr) 130px auto auto;gap:.45rem;align-items:end}.purchase-payment-balance{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem .9rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.purchase-payment-balance span{color:var(--biz-muted);font-size:.6rem}.purchase-payment-balance strong{font-size:1.1rem}.receive-lines{display:flex;flex-direction:column;gap:.55rem}.receive-line{display:grid;grid-template-columns:minmax(0,1.2fr) 120px 150px minmax(120px,.8fr);gap:.55rem;align-items:end;padding:.7rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.receive-line>div:first-child{align-self:center}.receive-line strong,.receive-line small{display:block}.receive-line small{color:var(--biz-muted);font-size:.52rem}.replenish-qty{width:100px}.provider-summary-grid,.provider-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.provider-condition-list,.provider-due-list,.provider-credit-list{display:flex;flex-direction:column}.provider-condition-list>div,.provider-due-list>div,.provider-credit-list>article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--biz-border)}.provider-condition-list>div:last-child,.provider-due-list>div:last-child,.provider-credit-list>article:last-child{border-bottom:0}.provider-condition-list span,.provider-due-list small,.provider-credit-list small{color:var(--biz-muted);font-size:.56rem}.provider-commercial-note{padding:.75rem .85rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft);white-space:pre-wrap}.provider-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.provider-data-grid>div{padding:.65rem 0;border-bottom:1px solid var(--biz-border)}.provider-data-grid span,.provider-data-grid strong{display:block}.provider-data-grid span{font-size:.54rem;color:var(--biz-muted)}.provider-payment-debts{display:flex;flex-direction:column;gap:.45rem}.provider-payment-debt-row{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:.7rem;align-items:center;padding:.65rem .7rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft)}.provider-payment-debt-row strong,.provider-payment-debt-row small{display:block}.provider-payment-debt-row small{color:var(--biz-muted);font-size:.52rem}.product-cost-current{display:flex;align-items:baseline;gap:.65rem;margin-bottom:.8rem;padding:.75rem .85rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.product-cost-current span,.product-cost-current small{color:var(--biz-muted);font-size:.56rem}.product-cost-current strong{font-size:1.1rem}.treasury-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}.treasury-account-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem}.treasury-account-card h3{font-size:.82rem;margin:.1rem 0}.treasury-account-card small{color:var(--biz-muted);font-size:.54rem}.treasury-account-card.is-inactive{opacity:.58}.treasury-account-amount{display:flex;align-items:center;gap:.55rem}.treasury-account-amount strong{font-size:1rem;white-space:nowrap}.treasury-account-empty{display:flex;align-items:center;gap:.7rem;padding:1rem;grid-column:1/-1}.treasury-account-empty>iconify-icon{font-size:1.5rem;color:var(--biz-primary)}.treasury-account-empty strong,.treasury-account-empty span{display:block}.treasury-account-empty span{font-size:.56rem;color:var(--biz-muted)}.treasury-payables-grid{margin-top:1rem}.treasury-payables-list,.treasury-account-movements{display:flex;flex-direction:column}.treasury-payables-list>a,.treasury-account-movements>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.62rem 0;border-bottom:1px solid var(--biz-border);color:inherit;text-decoration:none}.treasury-payables-list>a:last-child,.treasury-account-movements>div:last-child{border-bottom:0}.treasury-payables-list span,.treasury-account-movements span{min-width:0}.treasury-payables-list strong,.treasury-payables-list small,.treasury-account-movements strong,.treasury-account-movements small{display:block}.treasury-payables-list small,.treasury-account-movements small{font-size:.52rem;color:var(--biz-muted)}.treasury-payables-list b,.treasury-account-movements b{font-size:.67rem;white-space:nowrap}.treasury-payables-warning{display:flex;align-items:center;gap:.35rem;margin-top:.65rem;padding:.55rem .65rem;border-radius:10px;background:color-mix(in srgb,#ef4444 8%,var(--biz-surface));color:#b83a3a;font-size:.56rem}.treasury-account-active{margin-top:.3rem}
@media(max-width:1100px){.provider-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.treasury-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-builder{grid-template-columns:1fr}.receive-line{grid-template-columns:1fr 110px 140px}.receive-line>label:last-child{grid-column:1/-1}}
@media(max-width:767px){.purchase-summary-strip,.provider-kpi-grid,.provider-summary-grid,.provider-finance-grid,.treasury-account-grid{grid-template-columns:1fr}.purchase-summary-strip{gap:.45rem}.purchase-fields{grid-template-columns:1fr}.purchase-expense-row{grid-template-columns:1fr 110px auto}.purchase-expense-row .admin-check{grid-column:1/-1}.receive-line{grid-template-columns:1fr 1fr}.receive-line>div:first-child,.receive-line>label:last-child{grid-column:1/-1}.provider-data-grid{grid-template-columns:1fr}.provider-payment-debt-row{grid-template-columns:1fr}.treasury-account-card{padding:.8rem}.product-cost-sheet{max-width:100vw}}

/* =========================================================
   Bizfera v1.0.56 · Compras / ficha de proveedor
   - El editor de compra reserva ancho real al comprobante.
   - Las filas dobles ocupan una fila completa para no generar
     cuatro campos comprimidos dentro del panel lateral.
   - KPI de proveedor en cinco tarjetas limpias y legibles.
========================================================= */
.purchase-sheet .purchase-builder {
    grid-template-columns: minmax(520px, 1fr) minmax(680px, 760px) !important;
    gap: 0 !important;
    background: var(--biz-surface);
}
.purchase-sheet .purchase-catalog {
    padding: 1.1rem 1.25rem !important;
    border-right: 0 !important;
    background: var(--biz-surface);
}
.purchase-sheet .purchase-cart {
    gap: .85rem !important;
    padding: 1.2rem 1.35rem 1.5rem !important;
    border: 0 !important;
    border-left: 1px solid var(--biz-border) !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--biz-surface-soft) 52%, var(--biz-surface)) !important;
}
.purchase-sheet .purchase-cart > .panel-heading {
    margin-bottom: .1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--biz-border);
}
.purchase-sheet .purchase-cart > .panel-heading > strong {
    font-size: 1.05rem;
    white-space: nowrap;
}
.purchase-sheet .purchase-fields {
    display: grid !important;
    margin-top: .25rem !important;
    grid-template-columns: 1fr !important;
    gap: .8rem !important;
}
.purchase-sheet .purchase-fields > .admin-form-row {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .75rem !important;
}
.purchase-sheet .purchase-fields > *,
.purchase-sheet .purchase-fields > .admin-form-row > * {
    min-width: 0 !important;
}
.purchase-sheet .purchase-fields > label,
.purchase-sheet .purchase-fields > section,
.purchase-sheet .purchase-fields > p,
.purchase-sheet .purchase-fields > button {
    width: 100%;
}
.purchase-sheet .purchase-expenses {
    padding: .8rem .9rem;
    border: 1px solid var(--biz-border);
    border-radius: 12px;
    background: var(--biz-surface);
}
.purchase-sheet .purchase-expense-row {
    grid-template-columns: minmax(180px, 1fr) 150px minmax(135px, auto) 38px !important;
}
.purchase-sheet .budget-cart-items {
    max-height: 32vh;
    overflow-y: auto;
    padding-right: .15rem;
}
.purchase-sheet .purchase-cart-line {
    grid-template-columns: minmax(170px, 1fr) 112px 145px auto 38px !important;
}

.provider-heading-copy .back-link {
    width: fit-content;
}
.provider-heading-copy .eyebrow {
    display: block;
    margin-top: .55rem;
}
.provider-heading-copy h1 {
    margin-top: .2rem;
}
.provider-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: .8rem !important;
    margin: .1rem 0 1.1rem !important;
}
.provider-kpi-grid .provider-kpi-card {
    display: grid !important;
    min-height: 118px;
    padding: 1rem !important;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    border-radius: 16px !important;
    background: var(--biz-surface) !important;
}
.provider-kpi-icon {
    display: grid !important;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--biz-primary-soft);
    color: var(--biz-primary) !important;
}
.provider-kpi-icon iconify-icon {
    font-size: 21px;
}
.provider-kpi-copy {
    min-width: 0;
}
.provider-kpi-grid .provider-kpi-copy > span {
    display: block;
    margin-bottom: .34rem;
    color: var(--biz-muted);
    font-size: .62rem !important;
    font-weight: 750;
    line-height: 1.25;
}
.provider-kpi-grid .provider-kpi-copy > strong {
    display: block;
    margin: 0 0 .24rem !important;
    overflow: hidden;
    font-size: 1.03rem !important;
    line-height: 1.18;
    text-overflow: ellipsis;
}
.provider-kpi-grid .provider-kpi-copy > small {
    display: block;
    color: var(--biz-muted);
    font-size: .57rem;
    line-height: 1.35;
}
.provider-kpi-card.is-danger .provider-kpi-icon {
    background: color-mix(in srgb, #ef4444 10%, var(--biz-surface));
    color: #d54848 !important;
}
.provider-kpi-card.is-danger .provider-kpi-copy > strong {
    color: #d54848;
}

@media (max-width: 1480px) {
    .purchase-sheet .purchase-builder {
        grid-template-columns: minmax(460px, 1fr) minmax(610px, 700px) !important;
    }
    .provider-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1120px) {
    .purchase-sheet .purchase-builder { grid-template-columns: 1fr !important; overflow-y: auto !important; }
    .purchase-sheet .purchase-catalog {
        height: auto !important;
        max-height: 42vh;
        border-bottom: 1px solid var(--biz-border);
    }
    .purchase-sheet .purchase-cart {
        height: auto !important;
        overflow: visible !important;
        border-left: 0 !important;
    }
    .purchase-sheet .budget-cart-items { max-height: none; }
}
@media (max-width: 780px) {
    .provider-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .purchase-sheet .purchase-fields > .admin-form-row { grid-template-columns: 1fr !important; }
    .purchase-sheet .purchase-cart-line { grid-template-columns: 1fr 1fr !important; }
    .purchase-sheet .purchase-cart-line > .budget-cart-main { grid-column: 1 / -1; }
    .purchase-sheet .purchase-expense-row { grid-template-columns: 1fr 120px auto !important; }
}
@media (max-width: 560px) {
    .provider-kpi-grid { grid-template-columns: 1fr !important; }
    .provider-kpi-grid .provider-kpi-card { min-height: 102px; }
    .purchase-sheet .purchase-cart { padding: .9rem !important; }
    .purchase-sheet .purchase-expense-row { grid-template-columns: 1fr 90px auto !important; }
}

/* v1.0.57 · devoluciones visibles en Compras */
.purchase-return-indicator {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: .42rem;
    margin-top: .38rem;
    padding: .34rem .48rem;
    border-radius: 9px;
    background: color-mix(in srgb, #f59e0b 10%, var(--biz-surface));
    color: #9a6500;
    line-height: 1.2;
}
.purchase-return-indicator > iconify-icon {
    flex: 0 0 auto;
    font-size: .9rem;
}
.purchase-return-indicator > span { min-width: 0; }
.purchase-return-indicator b,
.purchase-return-indicator small { display: block; }
.purchase-return-indicator b { font-size: .56rem; font-weight: 800; }
.purchase-return-indicator small { margin-top: .08rem; color: inherit; font-size: .5rem; opacity: .88; }
.purchase-return-indicator.compact { margin-top: .3rem; padding: .28rem .42rem; }

.print-return-line {
    display: block;
    margin-top: .22rem;
    color: #9a6500;
    font-size: .55rem;
    font-weight: 750;
}
.print-return-notice {
    display: flex;
    flex-direction: column;
    gap: .16rem;
    margin-top: .8rem;
    padding: .7rem .8rem;
    border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--biz-border));
    border-radius: 10px;
    background: color-mix(in srgb, #f59e0b 8%, var(--biz-surface));
}
.print-return-notice strong { font-size: .66rem; color: #8b5c00; }
.print-return-notice span { font-size: .56rem; color: #775b24; }

/* Bizfera v1.0.58 · Compras consolidadas: claridad, confianza y rendimiento visual */
.purchase-document-events{display:flex;flex-wrap:wrap;gap:.32rem;margin-top:.32rem}.purchase-event{display:inline-flex;align-items:center;gap:.25rem;padding:.22rem .42rem;border-radius:999px;font-size:.51rem;font-weight:750;line-height:1.2}.purchase-event iconify-icon{font-size:.72rem}.purchase-event.is-physical{background:color-mix(in srgb,#2563eb 8%,var(--biz-surface));color:#2457a6}.purchase-event.is-credit{background:color-mix(in srgb,var(--biz-primary) 9%,var(--biz-surface));color:var(--biz-primary)}
.order-quantity-summary{display:flex;flex-wrap:wrap;gap:.2rem .42rem;margin-top:.32rem;min-width:180px}.order-quantity-summary b,.order-quantity-summary span{font-size:.52rem;line-height:1.35}.order-quantity-summary b{color:var(--bs-body-color)}.order-quantity-summary span{color:var(--biz-muted)}.order-quantity-summary .is-warning{color:#b06b00;font-weight:750}.purchase-progress-detailed{max-width:210px}.purchase-progress-detailed+small{white-space:nowrap}
.replenishment-help,.operation-impact{display:flex;align-items:flex-start;gap:.55rem;padding:.72rem .8rem;border:1px solid color-mix(in srgb,var(--biz-primary) 20%,var(--biz-border));border-radius:12px;background:color-mix(in srgb,var(--biz-primary) 4%,var(--biz-surface));color:var(--bs-body-color)}.replenishment-help{margin:0 0 .8rem}.replenishment-help>iconify-icon,.operation-impact>iconify-icon{flex:0 0 auto;margin-top:.05rem;color:var(--biz-primary);font-size:1.05rem}.operation-impact span,.operation-impact strong,.operation-impact small{display:block}.operation-impact strong{font-size:.63rem}.operation-impact small,.replenishment-help span{margin-top:.08rem;color:var(--biz-muted);font-size:.54rem;line-height:1.45}.replenishment-numbers{display:flex;flex-wrap:wrap;gap:.22rem .5rem}.replenishment-numbers span{font-size:.52rem;color:var(--biz-muted)}.replenishment-numbers .is-suggested{color:#b06b00}.replenish-save-default{display:block;margin-top:.25rem;font-size:.5rem}.replenishment-table td{vertical-align:middle}
.receive-line{display:block!important;padding:.85rem!important}.receive-line-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.65rem}.receive-line-head strong,.receive-line-head small{display:block}.receive-line-summary{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.25rem .55rem}.receive-line-summary span{font-size:.52rem;color:var(--biz-muted)}.receive-line-summary .is-pending{color:#b06b00}.receive-line-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.receive-line-controls label>span{display:block;margin-bottom:.25rem;font-size:.54rem;font-weight:700;color:var(--biz-muted)}.receive-line-controls small{margin-top:.18rem}.receive-line-impact{margin-top:.55rem;padding:.55rem .65rem;border-radius:10px;background:var(--biz-surface);border:1px solid var(--biz-border);font-size:.54rem;line-height:1.45}.receive-line-impact strong{display:inline;font-size:inherit}.receipt-detail-sheet{width:min(1040px,96vw);max-width:1040px}.receipt-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin-bottom:.85rem}.receipt-result-grid article{padding:.72rem .8rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface-soft)}.receipt-result-grid span,.receipt-result-grid strong{display:block}.receipt-result-grid span{font-size:.52rem;color:var(--biz-muted)}.receipt-result-grid strong{margin-top:.18rem;font-size:.86rem}.receipt-detail-lines{display:flex;flex-direction:column;gap:.55rem}.receipt-detail-line{padding:.8rem;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface)}.receipt-detail-main{display:flex;align-items:baseline;justify-content:space-between;gap:.7rem}.receipt-detail-main strong{font-size:.7rem}.receipt-detail-main small{font-size:.52rem;color:var(--biz-muted)}.receipt-detail-values{display:flex;flex-wrap:wrap;gap:.35rem .8rem;margin-top:.5rem;padding:.5rem .6rem;border-radius:10px;background:var(--biz-surface-soft)}.receipt-detail-values span{font-size:.54rem;color:var(--biz-muted)}.receipt-detail-values b{color:var(--bs-body-color)}.receipt-detail-values .is-warning,.receipt-detail-values .is-warning b{color:#b06b00}.receipt-incident{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .55rem;margin-top:.55rem;padding:.55rem .6rem;border-left:3px solid #f59e0b;background:color-mix(in srgb,#f59e0b 5%,var(--biz-surface));border-radius:0 9px 9px 0}.receipt-incident>strong{font-size:.57rem}.receipt-incident>small{flex-basis:100%;font-size:.52rem;color:var(--biz-muted)}.receipt-actions{justify-content:flex-end}.btn-danger-soft{border:1px solid color-mix(in srgb,#ef4444 35%,var(--biz-border));background:color-mix(in srgb,#ef4444 6%,var(--biz-surface));color:#c23838}.btn-danger-soft:hover{background:color-mix(in srgb,#ef4444 11%,var(--biz-surface));color:#a92e2e}
/* El costo es dato secundario: legible y sin la itálica/verde invasiva anterior. */
.purchase-sheet .product-cost-caption{display:block!important;margin-top:.16rem;color:var(--biz-muted)!important;font-size:.55rem!important;font-style:normal!important;font-weight:500!important;line-height:1.3}.purchase-sheet .product-cost-caption b{display:inline!important;margin:0 .18rem 0 0!important;color:var(--biz-muted)!important;font-size:inherit!important;font-style:normal!important;font-weight:700!important}.purchase-sheet .budget-product-card>span b:not(.product-cost-caption b){font-style:normal}.purchase-sheet .budget-product-card b.product-cost-caption{color:var(--biz-muted)!important}
/* Ficha de proveedor: datos jerarquizados y operaciones físicas/económicas separadas. */
.provider-kpi-grid-clean{grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.provider-kpi-card{display:flex;align-items:flex-start;gap:.65rem;min-height:104px;padding:.78rem .82rem!important}.provider-kpi-icon{display:grid!important;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:color-mix(in srgb,var(--biz-primary) 8%,var(--biz-surface));color:var(--biz-primary)!important}.provider-kpi-icon iconify-icon{font-size:1.05rem}.provider-kpi-copy{min-width:0}.provider-kpi-copy>span{font-size:.52rem!important;text-transform:uppercase;letter-spacing:.04em}.provider-kpi-copy>strong{margin:.18rem 0!important;font-size:.88rem!important;line-height:1.1}.provider-kpi-copy>small{display:block;color:var(--biz-muted);font-size:.5rem;line-height:1.35}.provider-kpi-card.is-danger .provider-kpi-icon{background:color-mix(in srgb,#ef4444 8%,var(--biz-surface));color:#d13d3d!important}.provider-kpi-card.is-danger .provider-kpi-copy>strong{color:#d13d3d}.provider-kpi-card.is-ok .provider-kpi-icon{background:color-mix(in srgb,var(--biz-primary) 8%,var(--biz-surface))}.provider-tabs-links{overflow-x:auto;scrollbar-width:none}.provider-tabs-links::-webkit-scrollbar{display:none}.provider-tabs-links .module-tab{white-space:nowrap;text-decoration:none}.provider-overview-card{min-height:220px}.provider-condition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.provider-condition-grid>div{display:block!important;padding:.72rem!important;border:1px solid var(--biz-border)!important;border-radius:11px;background:var(--biz-surface-soft)}.provider-condition-grid>div span,.provider-condition-grid>div strong{display:block}.provider-condition-grid>div strong{margin-top:.16rem;font-size:.7rem}.provider-commercial-note{margin-top:.7rem}.provider-commercial-note strong{display:block;margin-bottom:.25rem;font-size:.58rem}.provider-commercial-note p{margin:0;font-size:.58rem;line-height:1.5}.provider-account-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:.2rem 0 .8rem}.provider-account-heading h2{margin:.1rem 0;font-size:1.05rem}.provider-account-heading p{margin:0;color:var(--biz-muted);font-size:.58rem}.provider-account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-bottom:.8rem}.provider-account-summary article{padding:.8rem .9rem;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface);box-shadow:var(--biz-shadow-sm)}.provider-account-summary span,.provider-account-summary strong,.provider-account-summary small{display:block}.provider-account-summary span{font-size:.52rem;color:var(--biz-muted)}.provider-account-summary strong{margin:.18rem 0;font-size:.92rem}.provider-account-summary small{font-size:.5rem;color:var(--biz-muted)}.provider-account-summary .is-danger strong{color:#d13d3d}.provider-account-block{margin-bottom:.8rem}.provider-operations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.provider-operation-card:first-child{grid-column:1/-1}.provider-operation-list{display:flex;flex-direction:column}.provider-operation-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:.55rem;padding:.65rem 0;border-bottom:1px solid var(--biz-border)}.provider-operation-row:last-child{border-bottom:0}.provider-operation-row.is-cancelled{opacity:.58}.provider-operation-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--biz-surface-soft);color:var(--biz-primary)}.provider-physical-card .provider-operation-icon{color:#2563eb;background:color-mix(in srgb,#2563eb 7%,var(--biz-surface))}.provider-credit-card .provider-operation-icon{color:#7c3aed;background:color-mix(in srgb,#7c3aed 7%,var(--biz-surface))}.provider-operation-row>div{min-width:0}.provider-operation-row>div>strong,.provider-operation-row>div>small{display:block}.provider-operation-row>div>strong{font-size:.61rem}.provider-operation-row>div>small{margin-top:.08rem;font-size:.5rem;color:var(--biz-muted);line-height:1.4}.provider-operation-row>b{font-size:.62rem;white-space:nowrap}.provider-operation-row .status,.provider-operation-row .soft-badge,.provider-operation-row .warning-badge{display:inline-flex;margin-top:.22rem}.provider-data-grid{margin:0}.provider-data-grid dt{font-size:.5rem;color:var(--biz-muted);font-weight:650}.provider-data-grid dd{margin:.14rem 0 0;font-size:.66rem;font-weight:650}.soft-badge.is-success{background:color-mix(in srgb,var(--biz-primary) 9%,var(--biz-surface));color:var(--biz-primary)}
@media(max-width:1100px){.provider-kpi-grid-clean{grid-template-columns:repeat(3,minmax(0,1fr))}.receive-line-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.provider-kpi-grid-clean,.provider-account-summary,.provider-condition-grid,.provider-operations-grid{grid-template-columns:1fr}.provider-operation-card:first-child{grid-column:auto}.provider-account-heading{align-items:flex-start;flex-direction:column}.provider-operation-row{grid-template-columns:32px minmax(0,1fr) auto}.provider-operation-row>.table-actions,.provider-operation-row>button.table-action{grid-column:2/-1;justify-self:start}.receive-line-head{flex-direction:column}.receive-line-summary{justify-content:flex-start}.receive-line-controls{grid-template-columns:1fr}.receipt-result-grid{grid-template-columns:1fr 1fr}.receipt-detail-main{align-items:flex-start;flex-direction:column}.receipt-actions{flex-wrap:wrap}.purchase-document-events{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.provider-kpi-grid-clean,.receipt-result-grid{grid-template-columns:1fr}}
.receipt-breakdown-strip{display:flex;flex-wrap:wrap;gap:.35rem .7rem;margin:-.25rem 0 .85rem;padding:.58rem .7rem;border:1px solid var(--biz-border);border-radius:10px;background:var(--biz-surface-soft)}.receipt-breakdown-strip span{font-size:.52rem;color:var(--biz-muted)}.receipt-breakdown-strip b{color:var(--bs-body-color)}

/* ===== Bizfera v1.0.58 · claridad de recepciones ===== */
.receipt-next-step{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border:1px solid rgba(245,158,11,.24);
    border-radius:14px;
    background:rgba(245,158,11,.07);
    margin-top:14px;
}
.receipt-next-step iconify-icon{font-size:22px;flex:0 0 auto;color:#b7791f;margin-top:1px}
.receipt-next-step strong{display:block;font-size:14px;color:var(--text-primary,#17212b)}
.receipt-next-step p{margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--text-secondary,#66756f)}
.receipt-invoice-note{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:12px 14px;
    border:1px solid var(--border-color,#e2e8e5);
    border-radius:12px;
    margin-top:10px;
    background:var(--surface-soft,#f8faf9);
}
.receipt-invoice-note strong{font-size:12px}
.receipt-invoice-note span{font-size:11px;line-height:1.45;color:var(--text-secondary,#6b7873)}
.is-muted-row{opacity:.72}
.muted-copy{color:var(--text-secondary,#6b7873);font-size:12px}
.operation-impact.is-neutral{background:var(--surface-soft,#f8faf9);border-color:var(--border-color,#e2e8e5)}
.operation-impact.is-neutral iconify-icon{color:var(--text-secondary,#6b7873)}

/* Bizfera v1.0.58 · valores de catálogo (Compras / Órdenes / Presupuestos)
   Misma tipografía limpia en todas las tarjetas; sin cursiva ni aspecto de texto auxiliar roto. */
.budget-product-card > span > b {
    font-family: inherit;
    font-style: normal;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
}

/* Bizfera v1.0.61 · Cuentas corrientes, compras, proveedores y comprobantes */
.account-operation-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:0 1rem 1rem;border-bottom:1px solid var(--border-color,#e4e8e6)}
.account-operation-tab{display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.72rem .9rem;border:1px solid #dfe5e2;border-radius:.75rem;background:#f7f9f8;color:#50605a;font-weight:700}
.account-operation-tab.is-active{border-color:#0aa376;background:#eefaf6;color:#087b5b}
.account-promise-standalone{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.cash-manual-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0}
.cash-manual-summary>div{padding:.8rem 1rem;border:1px solid #dfe5e2;border-radius:.75rem;background:#fafcfb;display:flex;justify-content:space-between;gap:1rem}
.purchase-total-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:-.25rem 0 .8rem;padding:.65rem .75rem;border-radius:.7rem;background:#f6f8f7;font-size:.76rem;color:#68736f}
.purchase-total-breakdown span{display:flex;justify-content:space-between;gap:.75rem}.purchase-total-breakdown strong{color:#17211d}
.print-associated-expenses{margin-top:1rem}.print-associated-expenses h3{margin:0 0 .45rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#5a6762}
.provider-form{display:flex!important;flex-direction:column;gap:1rem}
.provider-form-section{padding:1rem;border:1px solid #e1e6e4;border-radius:1rem;background:#fbfcfc}
.provider-form-section>header{display:flex;align-items:center;gap:.7rem;margin-bottom:.9rem}.provider-form-section>header>span{display:grid;place-items:center;width:2rem;height:2rem;border-radius:.6rem;background:#eef6f3;color:#087b5b;font-size:.72rem;font-weight:800}.provider-form-section>header strong,.provider-form-section>header small{display:block}.provider-form-section>header small{margin-top:.08rem;color:#74807c;font-size:.74rem;font-weight:400}
.provider-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.provider-form-grid .field-span-2{grid-column:span 2}.provider-form-grid .field-span-all{grid-column:1/-1}
.purchase-order-document{padding-top:0}.purchase-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;padding-bottom:1.1rem;border-bottom:2px solid #18221e}.purchase-order-brand{display:flex;align-items:flex-start;gap:.85rem}.purchase-order-brand img{max-width:42mm;max-height:14mm;object-fit:contain}.purchase-order-brand strong,.purchase-order-brand span{display:block}.purchase-order-brand strong{font-size:.9rem}.purchase-order-brand span{margin-top:.18rem;font-size:.62rem;color:#65706c}.purchase-order-number{text-align:right}.purchase-order-number span,.purchase-order-number strong,.purchase-order-number em{display:block}.purchase-order-number span{font-size:.58rem;font-weight:800;letter-spacing:.12em;color:#66716d}.purchase-order-number strong{margin-top:.2rem;font-size:1.25rem}.purchase-order-number em{display:inline-block;margin-top:.4rem;padding:.2rem .5rem;border-radius:999px;background:#eef3f1;font-size:.6rem;font-style:normal;font-weight:700}.purchase-order-meta{display:grid;grid-template-columns:1.5fr .75fr .75fr;gap:1rem;margin:1.2rem 0;padding:1rem;border:1px solid #dfe4e2;border-radius:.65rem}.purchase-order-meta span,.purchase-order-meta strong,.purchase-order-meta small{display:block}.purchase-order-meta span{font-size:.56rem;text-transform:uppercase;letter-spacing:.07em;color:#6b7672}.purchase-order-meta strong{margin-top:.2rem;font-size:.75rem}.purchase-order-meta small{margin-top:.15rem;font-size:.59rem;color:#69746f}.purchase-order-items h2{margin:0 0 .55rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em}.purchase-order-bottom{display:grid;grid-template-columns:1fr minmax(220px,34%);gap:2rem;margin-top:1.15rem}.purchase-order-note{padding:.8rem;border:1px solid #e1e5e3;border-radius:.6rem}.purchase-order-note span{font-size:.57rem;text-transform:uppercase;color:#6a7571;font-weight:700}.purchase-order-note p{margin:.35rem 0 0;font-size:.65rem;line-height:1.5}.purchase-order-totals{margin:0}.purchase-order-totals>div{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;border-bottom:1px solid #e1e5e3}.purchase-order-totals dt,.purchase-order-totals dd{font-size:.65rem}.purchase-order-totals dd{margin:0;font-weight:700}.purchase-order-totals .is-total{padding-top:.65rem;border-bottom:0}.purchase-order-totals .is-total dt,.purchase-order-totals .is-total dd{font-size:.9rem;font-weight:800}.purchase-order-legal{display:flex;gap:.55rem;margin-top:1.2rem;padding:.7rem .8rem;border-radius:.55rem;background:#f5f7f6;font-size:.58rem;line-height:1.45;color:#59645f}.purchase-order-legal strong{white-space:nowrap;color:#26342e}
@media(max-width:760px){.provider-form-grid{grid-template-columns:1fr}.provider-form-grid .field-span-2{grid-column:span 1}.account-promise-standalone{grid-template-columns:1fr}.purchase-total-breakdown{grid-template-columns:1fr}.purchase-order-meta,.purchase-order-bottom{grid-template-columns:1fr}.purchase-order-head{flex-direction:column}.purchase-order-number{text-align:left}}
@media print{.purchase-order-document{max-width:none}.purchase-order-legal{break-inside:avoid}}

/* Bizfera v1.0.62 · Compra: catálogo y productos seleccionados legibles */
.purchase-sheet .purchase-catalog-heading{margin-bottom:.85rem}
.purchase-sheet .purchase-catalog-heading h3{margin:.12rem 0 .18rem;font-size:1rem}
.purchase-sheet .purchase-catalog-heading p{max-width:680px;margin:0;color:var(--biz-muted);font-size:.63rem;line-height:1.45}
.purchase-sheet .purchase-selected-products{display:grid;gap:.55rem;padding:.75rem;border:1px solid var(--biz-border);border-radius:12px;background:var(--biz-surface)}
.purchase-sheet .purchase-selected-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:.55rem;border-bottom:1px solid var(--biz-border)}
.purchase-sheet .purchase-selected-heading strong,.purchase-sheet .purchase-selected-heading small{display:block}
.purchase-sheet .purchase-selected-heading strong{font-size:.7rem}
.purchase-sheet .purchase-selected-heading small{margin-top:.12rem;color:var(--biz-muted);font-size:.55rem}
.purchase-sheet .purchase-selected-heading>b{flex:0 0 auto;color:var(--biz-muted);font-size:.56rem}
.purchase-sheet .budget-cart-items{display:grid;gap:.5rem;max-height:34vh;overflow-y:auto;padding-right:.12rem}
.purchase-sheet .purchase-cart-line{display:grid!important;grid-template-columns:minmax(180px,1fr) 112px 145px minmax(95px,auto) 38px!important;align-items:end;gap:.55rem;padding:.62rem .15rem;border-bottom:1px solid var(--biz-border)}
.purchase-sheet .purchase-cart-line:last-child{border-bottom:0}
.purchase-sheet .purchase-cart-line>.budget-cart-main{display:grid;min-width:0;align-self:center;gap:.12rem}
.purchase-sheet .purchase-cart-line>.budget-cart-main strong{display:block;overflow:hidden;color:var(--bs-body-color);font-size:.68rem;line-height:1.3;text-overflow:ellipsis;white-space:normal}
.purchase-sheet .purchase-cart-line>.budget-cart-main small{display:block;color:var(--biz-muted);font-size:.54rem;line-height:1.3}
.purchase-sheet .purchase-cart-line label{display:grid;min-width:0;gap:.22rem;margin:0}
.purchase-sheet .purchase-cart-line label>span{display:block;margin:0;color:var(--biz-muted);font-size:.54rem;font-weight:700}
.purchase-sheet .purchase-cart-line .form-control{width:100%;min-width:0}
.purchase-sheet .purchase-line-total{align-self:center;justify-self:end;white-space:nowrap;font-size:.7rem}
.purchase-sheet .purchase-line-delete{align-self:center;justify-self:end}
.purchase-sheet .purchase-catalog .budget-product-grid:empty::after{content:'No hay productos disponibles para mostrar.';display:block;grid-column:1/-1;padding:1rem;border:1px dashed var(--biz-border);border-radius:12px;color:var(--biz-muted);font-size:.62rem;text-align:center}
@media(max-width:1120px){
  .purchase-sheet .purchase-catalog{display:block!important;visibility:visible!important;max-height:none!important;overflow:visible!important}
  .purchase-sheet .purchase-catalog .budget-product-grid{max-height:38vh;overflow-y:auto;padding-right:.15rem}
  .purchase-sheet .purchase-selected-products{margin-top:.15rem}
}
@media(max-width:780px){
  .purchase-sheet .purchase-cart-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important;grid-template-areas:'main main main' 'qty cost del' 'total total total';align-items:end}
  .purchase-sheet .purchase-cart-line>.budget-cart-main{grid-area:main!important;padding-bottom:.15rem}
  .purchase-sheet .purchase-line-qty{grid-area:qty}
  .purchase-sheet .purchase-line-cost{grid-area:cost}
  .purchase-sheet .purchase-line-total{grid-area:total;justify-self:end;padding-top:.1rem}
  .purchase-sheet .purchase-line-delete{grid-area:del}
}
@media(max-width:520px){
  .purchase-sheet .purchase-cart-line{grid-template-columns:1fr 38px!important;grid-template-areas:'main main' 'qty del' 'cost cost' 'total total'}
  .purchase-sheet .purchase-selected-heading{align-items:flex-start;flex-direction:column;gap:.3rem}
  .purchase-sheet .purchase-selected-heading>b{align-self:flex-start}
}


/* Bizfera v1.0.64 · Productos: carga opcional de stock inicial por sucursal */
.product-initial-stock{display:grid;gap:.75rem;margin-top:.15rem}
.product-initial-stock[hidden]{display:none!important}
.product-initial-stock-toggle{position:relative;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.92rem 1rem;border:1px solid #cfe2db;border-radius:16px;background:linear-gradient(180deg,#fcfefd 0%,#f7fbf9 100%);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.product-initial-stock-toggle:hover{border-color:#a7d0c3;background:linear-gradient(180deg,#fcfefd 0%,#f2faf6 100%)}
.product-initial-stock-toggle>input{width:18px;height:18px;margin:0;accent-color:#0a9d73}
.product-initial-stock-toggle-icon,.product-initial-stock-heading-icon{display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#eaf7f1;color:#0a8f68}
.product-initial-stock-toggle-icon{width:38px;height:38px;font-size:18px}
.product-initial-stock-toggle-copy{display:grid;min-width:0;gap:.18rem}
.product-initial-stock-toggle-title{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.product-initial-stock-toggle-copy strong{font-size:.84rem;line-height:1.25}
.product-initial-stock-toggle-copy em{color:#6b7772;font-size:.67rem;font-style:normal;font-weight:700}
.product-initial-stock-toggle-copy small{color:var(--biz-muted,#6f7b76);font-size:.67rem;line-height:1.45;font-weight:400}
.product-initial-stock-badge{padding:.28rem .58rem;border-radius:999px;background:#edf4f1;color:#60706a;font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.product-initial-stock-toggle:has(input:checked){border-color:#95ccb9;background:linear-gradient(180deg,#f9fefd 0%,#eff8f4 100%);box-shadow:0 0 0 3px rgba(10,157,115,.08)}
.product-initial-stock-panel{display:grid;gap:1rem;padding:1rem;border:1px solid #cfe4dc;border-radius:16px;background:#fbfefd}
.product-initial-stock-panel[hidden]{display:none!important}
.product-initial-stock-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.product-initial-stock-heading-main{display:flex;align-items:flex-start;gap:.75rem;min-width:0}
.product-initial-stock-heading-icon{width:42px;height:42px;font-size:20px}
.product-initial-stock-heading-copy{display:grid;gap:.14rem;min-width:0}
.product-initial-stock-heading h3{margin:0;font-size:1rem;line-height:1.2}
.product-initial-stock-heading p{max-width:620px;margin:0;color:var(--biz-muted,#6f7b76);font-size:.72rem;line-height:1.5}
.product-initial-stock-total{flex:0 0 auto;display:grid;min-width:132px;gap:.12rem;padding:.7rem .8rem;border:1px solid #d8e8e2;border-radius:12px;background:#fff;text-align:right}
.product-initial-stock-total span{color:var(--biz-muted,#6f7b76);font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.product-initial-stock-total strong{font-size:1.05rem;line-height:1.1}
.product-initial-stock-total small{color:var(--biz-muted,#6f7b76);font-size:.63rem}
.product-initial-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.product-initial-stock-branch{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem .85rem;border:1px solid var(--biz-border,#dfe5e2);border-radius:12px;background:#fff}
.product-initial-stock-branch-meta{display:flex;align-items:center;min-width:0;gap:.65rem}
.product-initial-stock-branch-meta>span:last-child{display:grid;min-width:0;gap:.12rem}
.product-initial-stock-branch-meta strong{overflow:hidden;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}
.product-initial-stock-branch-meta small{color:var(--biz-muted,#6f7b76);font-size:.62rem;font-weight:500}
.product-initial-stock-branch-icon{display:grid;flex:0 0 auto;place-items:center;width:34px;height:34px;border-radius:10px;background:#f2f6f4;color:#62716b;font-size:17px}
.product-initial-stock-input{display:grid;flex:0 0 160px;gap:.3rem}
.product-initial-stock-input .form-control{text-align:right;font-weight:750}
.product-initial-stock-input small{color:var(--biz-muted,#6f7b76);font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.product-initial-stock-help{display:flex;align-items:flex-start;gap:.55rem;padding:.72rem .78rem;border-radius:12px;background:#f1f8f5;color:#52645d;font-size:.68rem;line-height:1.5}
.product-initial-stock-help iconify-icon{flex:0 0 auto;margin-top:.06rem;color:#087b5b;font-size:15px}
@media(max-width:820px){.product-initial-stock-grid{grid-template-columns:1fr}.product-initial-stock-heading{align-items:stretch;flex-direction:column}.product-initial-stock-total{align-self:stretch;grid-template-columns:1fr auto;align-items:center;text-align:left}.product-initial-stock-input{flex-basis:140px}}
@media(max-width:560px){.product-initial-stock-toggle{grid-template-columns:auto auto minmax(0,1fr)}.product-initial-stock-badge{display:none}.product-initial-stock-branch{align-items:stretch;flex-direction:column}.product-initial-stock-input{width:100%;flex-basis:auto}.product-initial-stock-heading-main{align-items:center}.product-initial-stock-toggle-copy strong{font-size:.8rem}.product-initial-stock-toggle-copy small,.product-initial-stock-heading p{font-size:.66rem}}

/* Bizfera v1.0.67 · Plan Gratis permanente */
@media (min-width:1101px) {
    .landing-plan-grid,
    .subscription-plan-grid-five { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
}
.subscription-plan-card[data-plan-card="gratis"]{background:linear-gradient(180deg,color-mix(in srgb,var(--biz-primary-soft) 42%,var(--biz-surface)),var(--biz-surface) 42%)}
.subscription-plan-card[data-plan-card="gratis"].is-current{border-color:color-mix(in srgb,var(--biz-primary) 54%,var(--biz-border))}
.subscription-free-usage-grid{display:grid;margin-top:.9rem;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}
.subscription-free-usage{display:grid;gap:.45rem;padding:.8rem;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface-soft)}
.subscription-free-usage>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.subscription-free-usage>div:first-child span{font-size:.66rem;font-weight:750}
.subscription-free-usage>div:first-child strong{font-size:.78rem;white-space:nowrap}
.subscription-free-usage>small{font-size:.55rem;color:var(--biz-muted);line-height:1.35}
.subscription-free-usage.is-near{border-color:color-mix(in srgb,var(--bs-warning) 42%,var(--biz-border));background:color-mix(in srgb,var(--bs-warning) 5%,var(--biz-surface))}
.subscription-free-usage.is-limit{border-color:color-mix(in srgb,var(--bs-danger) 38%,var(--biz-border));background:color-mix(in srgb,var(--bs-danger) 5%,var(--biz-surface))}
.subscription-free-usage.is-near .subscription-usage-bar span{background:var(--bs-warning)}
.subscription-free-usage.is-limit .subscription-usage-bar span{background:var(--bs-danger)}
.subscription-company-summary.is-no-plan .subscription-company-price strong{font-size:1.45rem;color:var(--bs-body-color)}
@media(max-width:1100px){.subscription-free-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.subscription-free-usage-grid{grid-template-columns:1fr}}


/* Bizfera v1.0.68 · Plan Gratis: jerarquía comercial, suscripción y checkout */
@media (min-width:900px){
  .landing-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch}
  .landing-price-card.is-wide-plan{grid-column:1/-1;display:grid;grid-template-columns:minmax(150px,.65fr) minmax(190px,.7fr) minmax(0,1.7fr) minmax(190px,.65fr);align-items:center;column-gap:1.25rem;min-height:0!important}
  .landing-price-card.is-wide-plan .landing-plan-card-head,.landing-price-card.is-wide-plan .landing-plan-price,.landing-price-card.is-wide-plan ul,.landing-price-card.is-wide-plan>a{margin:0!important}
  .landing-price-card.is-wide-plan ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;padding:0!important;border:0!important}
  .landing-price-card.is-wide-plan>a{align-self:center}
  .landing-price-card.is-wide-plan[data-plan-code="corporativo"] ul{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.subscription-overview-single{grid-template-columns:minmax(0,1fr)!important;justify-content:stretch!important}
.checkout-action-disabled{opacity:.52!important;cursor:not-allowed!important;filter:saturate(.55)}
.checkout-action-disabled kbd{opacity:.55}
@media(max-width:899.98px){.landing-price-card.is-wide-plan{display:flex}.landing-price-card.is-wide-plan ul{display:flex}}


/* Bizfera v1.0.69 · filas comerciales de una columna realmente full width */
@media (min-width:900px){
  .landing-plan-grid{width:100%;max-width:1140px;margin-left:auto;margin-right:auto}
  .landing-price-card.is-wide-plan{width:100%!important;max-width:none!important;justify-self:stretch!important}
  .public-page-seo .seo-price-section .seo-plan-grid{width:100%;max-width:1140px}
}


/* Bizfera v1.0.70 · Planes landing: 2 arriba + 3 abajo */
@media (min-width:900px){
  .landing-plan-grid,.public-page-seo .seo-price-section .seo-plan-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;max-width:1140px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
  .landing-plan-grid>.landing-price-card,.public-page-seo .seo-plan-grid>.landing-price-card{display:flex!important;grid-column:auto!important;max-width:none!important;width:100%!important;justify-self:stretch!important;min-height:100%!important;flex-direction:column!important}
  .landing-plan-grid>.landing-price-card[data-plan-code="gratis"],.landing-plan-grid>.landing-price-card[data-plan-code="inicial"],.public-page-seo .seo-plan-grid>.landing-price-card[data-plan-code="gratis"],.public-page-seo .seo-plan-grid>.landing-price-card[data-plan-code="inicial"]{grid-column:span 3!important}
  .landing-plan-grid>.landing-price-card[data-plan-code="plus"],.landing-plan-grid>.landing-price-card[data-plan-code="pro"],.landing-plan-grid>.landing-price-card[data-plan-code="corporativo"],.public-page-seo .seo-plan-grid>.landing-price-card[data-plan-code="plus"],.public-page-seo .seo-plan-grid>.landing-price-card[data-plan-code="pro"],.public-page-seo .seo-plan-grid>.landing-price-card[data-plan-code="corporativo"]{grid-column:span 2!important}
}
@media (max-width:899.98px){
  .landing-plan-grid>.landing-price-card,.public-page-seo .seo-plan-grid>.landing-price-card{grid-column:auto!important;max-width:none!important;width:100%!important}
}

/* Bizfera v1.0.70 · Marketing interno */
.marketing-tabs{margin-bottom:1rem}.marketing-metrics{margin-bottom:1rem}.marketing-composer{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:1rem;align-items:start}.marketing-campaign-form,.marketing-live-preview,.marketing-review-summary,.marketing-preview-card,.marketing-audience-form-card{padding:1rem}.marketing-live-preview{position:sticky;top:82px}.marketing-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.75rem}.marketing-col-6{grid-column:span 6}.marketing-col-12{grid-column:1/-1}.marketing-form-grid label{display:flex;min-width:0;flex-direction:column;gap:.3rem}.marketing-form-grid label>span{font-size:.62rem;font-weight:750}.marketing-form-grid label>small{font-size:.55rem;color:var(--biz-muted);line-height:1.4}.marketing-form-actions{display:flex;justify-content:flex-end;gap:.55rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--biz-border)}.marketing-preview-frame{display:block;width:100%;height:680px;border:1px solid var(--biz-border);border-radius:14px;background:#f5f8f7}.marketing-existing-image{display:flex;align-items:center;gap:.75rem;margin-top:.45rem;padding:.5rem;border:1px solid var(--biz-border);border-radius:10px;background:var(--biz-surface-soft)}.marketing-existing-image img{width:72px;height:52px;border-radius:8px;object-fit:cover}.marketing-existing-image label{display:flex;flex-direction:row;align-items:center;gap:.35rem;font-size:.6rem}.marketing-review-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);gap:1rem;align-items:start}.marketing-review-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:.85rem 0}.marketing-review-data>div{padding:.7rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft)}.marketing-review-data dt{font-size:.54rem;color:var(--biz-muted);text-transform:uppercase;letter-spacing:.04em;font-weight:800}.marketing-review-data dd{margin:.18rem 0 0;font-size:.72rem;font-weight:750;word-break:break-word}.marketing-review-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.marketing-review-actions form{margin:0}.marketing-send-progress{display:grid;gap:.4rem;margin-top:.8rem;padding:.75rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft)}.marketing-send-progress>div:first-child{display:flex;justify-content:space-between;gap:1rem}.marketing-send-progress strong{font-size:.65rem}.marketing-send-progress span{font-size:.58rem;color:var(--biz-muted)}.marketing-detail-stack{display:grid;gap:1rem}.marketing-campaign-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;margin:.8rem 0}.marketing-campaign-metrics>div{display:flex;padding:.7rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface-soft);flex-direction:column}.marketing-campaign-metrics span{font-size:.54rem;color:var(--biz-muted)}.marketing-campaign-metrics strong{margin-top:.15rem;font-size:.9rem}.marketing-audience-form-card form{display:grid;gap:.85rem}.marketing-audience-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.marketing-audience-toolbar>.table-search{max-width:460px;flex:1}.marketing-audience-toolbar>div{display:flex;gap:.4rem}.marketing-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;max-height:560px;overflow:auto;padding:.15rem}.marketing-company-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.7rem;border:1px solid var(--biz-border);border-radius:11px;background:var(--biz-surface);cursor:pointer}.marketing-company-option:hover{border-color:color-mix(in srgb,var(--biz-primary) 35%,var(--biz-border));background:var(--biz-primary-soft)}.marketing-company-option>input{width:17px;height:17px;accent-color:var(--biz-primary)}.marketing-company-option>span{display:flex;min-width:0;flex-direction:column}.marketing-company-option strong{font-size:.68rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marketing-company-option small{font-size:.55rem;color:var(--biz-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marketing-company-option em{font-style:normal}.marketing-template-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}.marketing-template-card{display:flex;min-width:0;padding:.85rem;flex-direction:column;gap:.75rem}.marketing-template-card h2{margin:.12rem 0 .25rem;font-size:1rem}.marketing-template-card p{margin:0;color:var(--biz-muted);font-size:.6rem;line-height:1.45}.marketing-template-swatch{display:grid;height:150px;padding:15px;border-radius:12px;background:#f4f8f6;grid-template-rows:30px 1fr 24px;gap:8px;overflow:hidden}.marketing-template-swatch span,.marketing-template-swatch i,.marketing-template-swatch b{display:block;border-radius:6px;background:#fff}.marketing-template-swatch i{width:76%;height:100%}.marketing-template-swatch b{width:46%;background:#0daf82}.marketing-template-swatch.is-impacto{background:#0b8f6c}.marketing-template-swatch.is-impacto span{background:#fff3}.marketing-template-swatch.is-impacto i{width:100%;background:#fff}.marketing-template-swatch.is-minimal{background:#fff;border:1px solid var(--biz-border)}.marketing-template-swatch.is-minimal span,.marketing-template-swatch.is-minimal i{background:#eef2f0}.marketing-template-swatch.is-banner span{height:54px;background:#cadfd6}.marketing-template-swatch.is-banner{grid-template-rows:54px 1fr 24px}.marketing-template-swatch.is-card{padding:25px;background:#e8f1ed}.marketing-template-swatch.is-card span,.marketing-template-swatch.is-card i{box-shadow:0 7px 18px rgba(20,50,40,.08)}.marketing-template-actions{display:flex;margin-top:auto;gap:.4rem}.marketing-template-actions .btn{flex:1;font-size:.58rem}.marketing-template-modal{position:fixed;z-index:1400;inset:0;display:grid;place-items:center;padding:24px}.marketing-template-modal[hidden]{display:none!important}.marketing-template-modal-backdrop{position:absolute;inset:0;background:rgba(14,28,23,.5);backdrop-filter:blur(3px)}.marketing-template-modal-card{position:relative;display:grid;width:min(820px,96vw);height:min(820px,92vh);padding:1rem;grid-template-rows:auto 1fr;gap:.7rem}.marketing-template-modal-card>header{display:flex;align-items:center;justify-content:space-between}.marketing-template-modal-card h2{margin:.12rem 0 0;font-size:1rem}.marketing-template-modal-card .marketing-preview-frame{height:100%}
@media(max-width:1180px){.marketing-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.marketing-composer,.marketing-review-layout{grid-template-columns:1fr}.marketing-live-preview{position:static}.marketing-preview-frame{height:600px}}
@media(max-width:767.98px){.marketing-form-grid{grid-template-columns:1fr}.marketing-col-6,.marketing-col-12{grid-column:1}.marketing-form-actions{flex-direction:column}.marketing-form-actions .btn{width:100%}.marketing-review-data,.marketing-campaign-metrics,.marketing-company-grid,.marketing-template-grid{grid-template-columns:1fr}.marketing-audience-toolbar{align-items:stretch;flex-direction:column}.marketing-audience-toolbar>.table-search{max-width:none;width:100%}.marketing-audience-toolbar>div{width:100%}.marketing-audience-toolbar .btn{flex:1}.marketing-preview-frame{height:520px}.marketing-template-modal{padding:10px}.marketing-template-actions{flex-direction:column}}

/* v1.0.73 · Novedades globales / marquee continuo de Inicio */
.home-news-bar {
    width: 100%;
    min-height: 48px;
    flex: 0 0 auto;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--biz-border);
    background: color-mix(in srgb, var(--biz-surface) 94%, var(--biz-primary) 6%);
}
.home-news-viewport {
    width: 100%;
    min-width: 0;
    min-height: 47px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.home-news-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.home-news-track.is-ready {
    animation: bizfera-news-marquee var(--home-news-duration, 50s) linear infinite;
}
.home-news-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: max-content;
    min-width: max-content;
    padding: 0 1.1rem;
}
.home-news-item {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--biz-text);
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
a.home-news-item:hover { color: var(--biz-primary); }
.home-news-arrow { font-size: .9rem; opacity: .75; }
.home-news-separator { color: var(--biz-primary); opacity: .55; font-weight: 900; }
@keyframes bizfera-news-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--home-news-distance, -1000px), 0, 0); }
}
@media (max-width: 720px) {
    .home-news-bar { min-height: 44px; }
    .home-news-viewport { min-height: 43px; }
    .home-news-group { gap: .85rem; padding: 0 .85rem; }
    .home-news-item { min-height: 43px; font-size: .8rem; }
}

/* v1.0.72 · Administración de novedades */
.novedades-stats {
    margin-bottom: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.novedades-admin-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 1rem;
    align-items: start;
}
.novedades-editor { position: sticky; top: 1rem; }
.module-form-stack { display: grid; gap: 1rem; }
.module-form-stack .form-field { display: grid; gap: .42rem; }
.module-form-stack .form-field > span { font-size: .82rem; font-weight: 750; color: var(--biz-text); }
.module-form-stack .form-field small { color: var(--biz-muted); font-weight: 500; }
.module-form-stack input[type="text"] {
    width: 100%; min-height: 44px; border: 1px solid var(--biz-border); border-radius: 10px;
    padding: .7rem .8rem; background: var(--biz-surface); color: var(--biz-text); outline: none;
}
.module-form-stack input[type="text"]:focus { border-color: color-mix(in srgb, var(--biz-primary) 65%, var(--biz-border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--biz-primary) 12%, transparent); }
.module-form-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.novedades-admin-list { display: grid; gap: .7rem; }
.novedad-admin-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem; border: 1px solid var(--biz-border); border-radius: 13px; background: var(--biz-surface);
}
.novedad-admin-item.is-paused { opacity: .72; }
.novedad-admin-main { min-width: 0; display: grid; gap: .32rem; }
.novedad-admin-title-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.novedad-admin-title-row time { color: var(--biz-muted); font-size: .74rem; }
.novedad-admin-main > strong { font-size: .92rem; line-height: 1.35; }
.novedad-admin-main > a, .novedad-admin-main > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--biz-muted); font-size: .77rem; }
.novedad-admin-main > a:hover { color: var(--biz-primary); }
.novedad-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.novedad-admin-actions form { margin: 0; }
.novedad-admin-actions .is-danger { color: var(--biz-danger, #c53b3b); }
@media (max-width: 980px) {
    .novedades-admin-layout { grid-template-columns: 1fr; }
    .novedades-editor { position: static; }
}
@media (max-width: 640px) {
    .novedades-stats { grid-template-columns: 1fr 1fr 1fr; }
    .novedad-admin-item { align-items: flex-start; flex-direction: column; }
    .novedad-admin-actions { width: 100%; justify-content: flex-start; }
}

/* Bizfera v1.0.75 · legal, consentimiento y canales públicos */
.legal-page ul,.legal-page ol{padding-left:1.2rem;color:var(--biz-text-muted);font-size:.76rem;line-height:1.75}.legal-page a{color:var(--biz-primary)}.legal-provider-card{display:grid;gap:.4rem;padding:1.1rem 1.2rem;border:1px solid var(--biz-border);border-radius:16px;background:var(--biz-surface-soft);margin:1.5rem 0}.legal-provider-card strong{font-size:.88rem}.legal-provider-card span{font-size:.7rem;color:var(--biz-text-muted);letter-spacing:0}.legal-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1.4rem 0 2.5rem}.legal-card{display:grid;gap:.35rem;padding:1.05rem 1.1rem;border:1px solid var(--biz-border);border-radius:16px;background:var(--biz-surface);color:inherit!important}.legal-card strong{font-size:.8rem}.legal-card p{margin:0;font-size:.68rem}.legal-consumer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1.2rem 0 2.5rem}.legal-consumer-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid rgba(10,163,118,.35);border-radius:13px;background:var(--biz-primary-soft);font-size:.72rem;font-weight:800;text-align:center}.legal-request-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1.25rem;border:1px solid var(--biz-border);border-radius:18px;background:var(--biz-surface)}.legal-request-form label{display:grid;gap:.4rem;font-size:.68rem;font-weight:700}.legal-request-form label>span{letter-spacing:0;color:inherit}.legal-request-wide,.legal-request-notice,.legal-request-form>button{grid-column:1/-1}.legal-request-notice{font-size:.65rem!important;margin:0}.legal-request-result{padding:1rem 1.1rem;border-radius:14px;border:1px solid var(--biz-border);margin:0 0 1.2rem}.legal-request-result.is-ok{border-color:rgba(10,163,118,.35);background:var(--biz-primary-soft)}.legal-request-result.is-error{border-color:rgba(201,73,73,.3);background:#fff5f5}.legal-request-result strong{font-size:.78rem}.legal-request-result p{margin:.25rem 0}.legal-request-result>span{font-size:.68rem;letter-spacing:0;color:inherit}.oryo-legal-actions{max-width:1320px;margin:.45rem auto 0;padding:0 3rem;display:flex;gap:.55rem;justify-content:flex-end;flex-wrap:wrap}.oryo-legal-actions a{font-size:.58rem;font-weight:800;letter-spacing:.04em;color:var(--biz-text-muted);border:1px solid var(--biz-border);border-radius:999px;padding:.42rem .7rem;background:var(--biz-surface)}.oryo-legal-actions a:hover{color:var(--biz-primary);border-color:rgba(10,163,118,.4)}.registration-legal-consents{display:grid;gap:.55rem}.registration-consent{display:flex!important;align-items:flex-start;gap:.55rem;cursor:pointer}.registration-consent input{width:16px;height:16px;margin-top:.05rem;flex:0 0 16px;accent-color:var(--biz-primary)}.registration-consent>span{font-size:.62rem!important;line-height:1.5;color:var(--biz-text-muted)!important;font-weight:500!important}.registration-consent a{font-weight:800}.legal-public-footer{max-width:900px}.legal-public-nav{max-width:900px}
@media(max-width:620px){.legal-card-grid,.legal-consumer-actions,.legal-request-form{grid-template-columns:1fr}.legal-request-wide,.legal-request-notice,.legal-request-form>button{grid-column:auto}.oryo-legal-actions{padding:0 1.2rem;justify-content:stretch}.oryo-legal-actions a{flex:1 1 100%;text-align:center}.legal-public-nav .landing-nav-actions>a:not(.btn):not(:first-child){display:none}}

.legal-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Bizfera v1.0.77 · baja pública verificada */
.legal-cancel-confirm .legal-request-wide{display:grid;gap:.35rem}.legal-cancel-confirm .legal-request-wide>strong{font-size:.82rem}.legal-cancel-confirm .legal-request-wide>p{margin:0}.legal-company-option{grid-column:1/-1!important;display:flex!important;align-items:flex-start!important;gap:.7rem!important;padding:.9rem 1rem;border:1px solid var(--biz-border);border-radius:13px;background:var(--biz-surface-soft);cursor:pointer}.legal-company-option input{width:17px;height:17px;flex:0 0 17px;margin-top:.12rem;accent-color:var(--biz-primary)}.legal-company-option>span{display:grid;gap:.18rem;font-weight:500!important}.legal-company-option b{font-size:.76rem}.legal-company-option small{font-size:.62rem;color:var(--biz-text-muted);font-weight:500}.legal-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}.legal-confirm-actions .btn{min-width:150px}
@media(max-width:620px){.legal-confirm-actions{grid-column:auto;display:grid}.legal-confirm-actions .btn{width:100%}}
