.mav-wrapper {
    max-width: 820px;
    margin: 24px auto;
}

.mav-form {
    display: block;
}

.mav-section {
    margin: 0 0 28px;
    padding: 22px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.mav-section h3 {
    margin-top: 0;
}

.mav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.mav-field {
    margin: 0;
}

.mav-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.mav-field input,
.mav-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.mav-button,
.mav-wrapper input[type="submit"] {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.mav-notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-left: 4px solid #646970;
    background: #f6f7f7;
}

.mav-notice-success {
    border-left-color: #00a32a;
}

.mav-notice-error {
    border-left-color: #d63638;
}

.mav-notice-warning {
    border-left-color: #dba617;
}

.mav-notice ul {
    margin: 0 0 0 18px;
}

.mav-help {
    margin-bottom: 0;
    color: #646970;
    font-size: 0.92em;
}

.mav-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mav-login #loginform p {
    margin-bottom: 14px;
}

.mav-login #loginform label {
    display: block;
}

.mav-login #loginform input[type="text"],
.mav-login #loginform input[type="password"] {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 10px 12px;
}

@media (max-width: 680px) {
    .mav-grid {
        grid-template-columns: 1fr;
    }
}

.mav-security-check .mav-field {
    max-width: 260px;
}

.mav-security-check input[type="number"] {
    max-width: 160px;
}

.mav-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}


.mav-account-indicator {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.13);
}

.mav-account-floating {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    max-width: calc(100vw - 24px);
}

body.admin-bar .mav-account-floating {
    top: 44px;
}

.mav-account-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.mav-account-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dba617;
}

.mav-account-approved .mav-account-dot {
    background: #00a32a;
}

.mav-account-link {
    font-weight: 600;
    text-decoration: none;
}

.mav-account-inline {
    position: static;
    margin: 0;
}

@media (max-width: 680px) {
    .mav-account-floating {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    body.admin-bar .mav-account-floating {
        top: 56px;
    }

    .mav-account-user {
        flex-basis: 100%;
    }
}

/* Microkernel B2B Portal 1.6 */
.mav-portal {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
    box-sizing: border-box;
}

.mav-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
}

.mav-portal-brand {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.mav-portal-company {
    display: block;
    margin-top: 3px;
    color: #646970;
    font-size: 0.92rem;
}

.mav-portal-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}

.mav-portal-layout {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    gap: 24px;
    margin-top: 22px;
}

.mav-portal-sidebar,
.mav-portal-main {
    box-sizing: border-box;
}

.mav-portal-sidebar {
    align-self: start;
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
}

.mav-portal-main {
    min-width: 0;
}

.mav-intranet-nav ul {
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    list-style: none;
}

.mav-intranet-nav li {
    margin: 4px 0;
}

.mav-nav-home,
.mav-nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.mav-nav-home.is-current,
.mav-nav-link.is-current {
    font-weight: 700;
    background: #f0f6fc;
}

.mav-nav-link.is-locked {
    opacity: 0.72;
}

.mav-portal-cards,
.mav-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mav-portal-card,
.mav-product-card {
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.mav-portal-card.is-locked,
.mav-product-card.is-locked {
    background: #f6f7f7;
}

.mav-portal-card h3,
.mav-product-card h3 {
    margin-top: 0;
}

.mav-card-link {
    font-weight: 600;
}

.mav-product-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.mav-product-price {
    font-size: 1.05rem;
    font-weight: 700;
}

.mav-locked-label,
.mav-woo-price-restricted {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    background: #f6f7f7;
    font-weight: 600;
}

.mav-table-scroll {
    overflow-x: auto;
}

.mav-portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.mav-portal-table th,
.mav-portal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dcdcde;
    text-align: left;
}

.mav-portal-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.mav-portal-pagination a {
    min-width: 34px;
    padding: 6px 8px;
    border: 1px solid #dcdcde;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
}

.mav-portal-pagination a.current {
    font-weight: 700;
    background: #f0f6fc;
}

@media (max-width: 820px) {
    .mav-portal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mav-portal-user {
        justify-content: flex-start;
    }

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


/* Mi cuenta B2B */
.mav-account-form input[readonly] {
    background: #f6f7f7;
    cursor: not-allowed;
}

.mav-account-permissions {
    border-left: 4px solid #dcdcde;
}

.mav-account-permissions p {
    margin-bottom: 8px;
}

/* v1.8.0 - Menú compacto de cuenta B2B */
.mkb2b-account-menu {
    position: relative;
    box-sizing: border-box;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.35;
}

.mkb2b-account-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.12);
    user-select: none;
}

.mkb2b-account-menu > summary::-webkit-details-marker {
    display: none;
}

.mkb2b-account-menu > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mkb2b-account-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.mkb2b-account-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #dba617;
}

.mkb2b-account-approved .mkb2b-account-dot {
    background: #00a32a;
}

.mkb2b-account-chevron {
    font-size: 11px;
    transition: transform 0.15s ease;
}

.mkb2b-account-menu[open] .mkb2b-account-chevron {
    transform: rotate(180deg);
}

.mkb2b-account-panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 100000;
    width: min(290px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.mkb2b-account-company {
    margin-bottom: 3px;
    font-weight: 700;
}

.mkb2b-account-status {
    margin-bottom: 10px;
    color: #646970;
    font-size: 12px;
}

.mkb2b-account-panel nav {
    display: grid;
    gap: 2px;
}

.mkb2b-account-panel nav a {
    display: block;
    padding: 8px 9px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

.mkb2b-account-panel nav a:hover,
.mkb2b-account-panel nav a:focus-visible {
    background: #f0f0f1;
}

.mkb2b-account-panel .mkb2b-account-logout {
    margin-top: 5px;
    border-top: 1px solid #dcdcde;
    border-radius: 0 0 6px 6px;
    color: #b32d2e;
}

.mkb2b-account-auto {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
}

.mkb2b-account-inline {
    display: inline-block;
    vertical-align: middle;
}

.mkb2b-account-inline .mkb2b-account-panel {
    z-index: 99999;
}

.mkb2b-account-menu .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 680px) {
    .mkb2b-account-auto {
        top: 8px;
        right: 8px;
    }

    .mkb2b-account-name {
        max-width: 145px;
    }
}

/* ==========================================================
 * Microkernel B2B Portal 1.9.0
 * Interfaz cloud empresarial inspirada en Azure / Fluent UI.
 * Sin dependencias externas.
 * ========================================================== */

.mav-portal,
.mav-account-page,
.mkb2b-account-menu {
    --mkb2b-accent: #0078d4;
    --mkb2b-accent-hover: #106ebe;
    --mkb2b-accent-soft: #eff6fc;
    --mkb2b-accent-soft-2: #e6f2fb;
    --mkb2b-text: #242424;
    --mkb2b-muted: #616161;
    --mkb2b-subtle: #8a8886;
    --mkb2b-border: #d1d1d1;
    --mkb2b-border-soft: #e8e8e8;
    --mkb2b-canvas: #f5f7fa;
    --mkb2b-surface: #ffffff;
    --mkb2b-success: #107c10;
    --mkb2b-warning: #ca5010;
    --mkb2b-danger: #c50f1f;
    --mkb2b-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --mkb2b-shadow-2: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--mkb2b-text);
    font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.mav-icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
}

/* Portal shell */
.mav-portal {
    width: min(1360px, calc(100% - 32px));
    margin: 28px auto;
    padding: 22px;
    border-radius: 16px;
    background: var(--mkb2b-canvas);
    box-sizing: border-box;
}

.mav-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 78px;
    padding: 14px 18px;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 12px;
    background: var(--mkb2b-surface);
    box-shadow: var(--mkb2b-shadow-1);
}

.mav-portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--mkb2b-text);
    text-decoration: none;
}

.mav-portal-brand:hover,
.mav-portal-brand:focus {
    color: var(--mkb2b-text);
}

.mav-portal-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--mkb2b-accent), #005a9e);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.24);
}

.mav-portal-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.mav-portal-brand-kicker,
.mav-page-eyebrow {
    color: var(--mkb2b-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mav-portal-brand-title {
    color: var(--mkb2b-text);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.2;
}

.mav-portal-company {
    margin-top: 2px;
    color: var(--mkb2b-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mav-portal-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.mav-user-avatar,
.mav-account-hero-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mkb2b-accent-soft-2);
    color: #005a9e;
    font-weight: 700;
}

.mav-user-avatar {
    width: 38px;
    height: 38px;
    font-size: 12px;
}

.mav-user-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 120px;
}

.mav-user-copy strong {
    max-width: 210px;
    overflow: hidden;
    color: var(--mkb2b-text);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mav-user-status,
.mav-account-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mkb2b-muted);
    font-size: 11px;
}

.mav-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--mkb2b-success);
}

.mav-account-hero-status.is-pending .mav-status-dot {
    background: var(--mkb2b-warning);
}

.mav-portal-user-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.mav-portal-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 6px;
    color: var(--mkb2b-text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.mav-portal-action:hover,
.mav-portal-action:focus-visible {
    background: #f3f3f3;
    color: var(--mkb2b-text);
}

.mav-portal-action-logout {
    color: var(--mkb2b-danger);
}

.mav-portal-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.mav-portal-sidebar {
    align-self: start;
    padding: 10px;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 12px;
    background: var(--mkb2b-surface);
    box-shadow: var(--mkb2b-shadow-1);
}

.mav-portal-main {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 12px;
    background: var(--mkb2b-surface);
    box-shadow: var(--mkb2b-shadow-1);
}

.mav-page-heading {
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mkb2b-border-soft);
}

.mav-page-heading h2,
.mav-account-hero h2,
.mav-portal-main > h2 {
    margin: 5px 0 6px;
    color: var(--mkb2b-text);
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.mav-portal-intro,
.mav-account-lead {
    margin: 0;
    color: var(--mkb2b-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Left navigation */
.mav-intranet-nav {
    display: block;
}

.mav-nav-heading {
    padding: 8px 10px 6px;
    color: var(--mkb2b-subtle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mav-intranet-nav ul {
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.mav-intranet-nav li {
    margin: 2px 0;
}

.mav-nav-home,
.mav-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--mkb2b-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}

.mav-nav-home:hover,
.mav-nav-link:hover,
.mav-nav-home:focus-visible,
.mav-nav-link:focus-visible {
    background: #f3f3f3;
    color: var(--mkb2b-text);
}

.mav-nav-home.is-current,
.mav-nav-link.is-current {
    background: var(--mkb2b-accent-soft);
    color: #004578;
    font-weight: 650;
}

.mav-nav-home.is-current::before,
.mav-nav-link.is-current::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: var(--mkb2b-accent);
    content: "";
}

.mav-nav-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--mkb2b-muted);
}

.mav-nav-home.is-current .mav-nav-icon,
.mav-nav-link.is-current .mav-nav-icon {
    color: var(--mkb2b-accent);
}

.mav-nav-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mav-nav-link.is-locked {
    color: #6f6f6f;
}

.mav-nav-lock-text {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #797775;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.mav-nav-depth-1,
.mav-nav-depth-2,
.mav-nav-depth-3,
.mav-nav-depth-4 {
    margin-left: 15px !important;
    padding-left: 7px !important;
    border-left: 1px solid var(--mkb2b-border-soft);
}

/* Dashboard tiles */
.mav-portal-cards,
.mav-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.mav-portal-card,
.mav-product-card {
    position: relative;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 10px;
    background: var(--mkb2b-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
    box-sizing: border-box;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.mav-portal-card:hover,
.mav-product-card:hover {
    transform: translateY(-2px);
    border-color: #c7e0f4;
    box-shadow: var(--mkb2b-shadow-2);
}

.mav-portal-card.is-locked,
.mav-product-card.is-locked {
    background: #fafafa;
}

.mav-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.mav-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--mkb2b-accent-soft);
    color: var(--mkb2b-accent);
}

.mav-card-icon .mav-icon {
    width: 20px;
    height: 20px;
}

.mav-card-badge,
.mav-product-access {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #edf8ed;
    color: #0b6a0b;
    font-size: 10px;
    font-weight: 700;
}

.mav-portal-card.is-locked .mav-card-badge {
    background: #f3f3f3;
    color: #605e5c;
}

.mav-portal-card h3,
.mav-product-card h3 {
    margin: 0 0 7px;
    color: var(--mkb2b-text);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
}

.mav-portal-card > p,
.mav-product-card > p {
    color: var(--mkb2b-muted);
    font-size: 13px;
    line-height: 1.5;
}

.mav-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    padding-top: 15px;
    color: var(--mkb2b-accent);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.mav-card-link:hover,
.mav-card-link:focus-visible {
    color: var(--mkb2b-accent-hover);
    text-decoration: underline;
}

.mav-card-link .mav-icon {
    transition: transform .12s ease;
}

.mav-card-link:hover .mav-icon {
    transform: translateX(2px);
}

.mav-portal-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--mkb2b-muted);
    text-align: center;
}

.mav-portal-empty .mav-icon {
    width: 34px;
    height: 34px;
    color: var(--mkb2b-accent);
}

/* Product/catalog panel */
.mav-portal-products > h2,
.mav-portal-orders > h2 {
    margin-top: 0;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.mav-product-image {
    margin: -18px -18px 16px;
    overflow: hidden;
    border-bottom: 1px solid var(--mkb2b-border-soft);
    background: #fafafa;
}

.mav-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.mav-product-price {
    margin-top: 8px;
    color: var(--mkb2b-text);
    font-size: 16px;
    font-weight: 650;
}

.mav-price-hidden {
    color: var(--mkb2b-muted);
    font-size: 12px;
    font-weight: 500;
}

.mav-locked-label,
.mav-woo-price-restricted {
    padding: 5px 8px;
    border-radius: 6px;
    background: #f3f3f3;
    color: var(--mkb2b-muted);
    font-size: 11px;
    font-weight: 600;
}

/* Account page */
.mav-account-page.mav-wrapper {
    max-width: none;
    margin: 0;
}

.mav-account-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 20px;
    border: 1px solid #c7e0f4;
    border-radius: 12px;
    background: linear-gradient(105deg, #f5fbff 0%, #edf6fc 55%, #fff 100%);
}

.mav-account-hero-avatar {
    width: 54px;
    height: 54px;
    font-size: 17px;
}

.mav-account-hero-copy {
    min-width: 0;
}

.mav-account-hero-copy h2 {
    margin: 3px 0 4px;
    font-size: 27px;
}

.mav-account-hero-copy p {
    margin: 0;
    overflow: hidden;
    color: var(--mkb2b-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mav-account-hero-status {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #9fd89f;
    border-radius: 999px;
    background: #f1faf1;
    color: #0b6a0b;
    font-weight: 650;
}

.mav-account-hero-status.is-pending {
    border-color: #f3c37b;
    background: #fff8e8;
    color: #8a4b08;
}

.mav-account-lead {
    margin: 0 0 20px;
}

.mav-account-form {
    display: grid;
    gap: 16px;
}

.mav-account-page .mav-section {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 10px;
    background: var(--mkb2b-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.mav-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mkb2b-border-soft);
}

.mav-section-heading h3 {
    margin: 0 0 3px;
    color: var(--mkb2b-text);
    font-size: 17px;
    font-weight: 650;
}

.mav-section-heading p {
    margin: 0;
    color: var(--mkb2b-muted);
    font-size: 12px;
    line-height: 1.45;
}

.mav-section-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 7px;
    background: var(--mkb2b-accent-soft);
    color: var(--mkb2b-accent);
}

.mav-section-icon .mav-icon {
    width: 18px;
    height: 18px;
}

.mav-account-page .mav-grid {
    gap: 15px 18px;
}

.mav-account-page .mav-field {
    margin: 0;
}

.mav-account-page .mav-field label {
    margin-bottom: 6px;
    color: #323130;
    font-size: 12px;
    font-weight: 600;
}

.mav-account-page .mav-field input,
.mav-account-page .mav-field select {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #8a8886;
    border-radius: 4px;
    background: #fff;
    color: var(--mkb2b-text);
    font: inherit;
    font-size: 13px;
    box-shadow: none;
    transition: border-color .1s ease, box-shadow .1s ease;
}

.mav-account-page .mav-field input:hover,
.mav-account-page .mav-field select:hover {
    border-color: #605e5c;
}

.mav-account-page .mav-field input:focus,
.mav-account-page .mav-field select:focus {
    border-color: var(--mkb2b-accent);
    outline: 1px solid var(--mkb2b-accent);
    outline-offset: 0;
    box-shadow: 0 0 0 1px var(--mkb2b-accent);
}

.mav-account-page .mav-field input[readonly] {
    border-color: #d2d0ce;
    background: #f3f2f1;
    color: #605e5c;
}

.mav-account-page .mav-help {
    color: var(--mkb2b-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.mav-account-permissions {
    border-left: 1px solid var(--mkb2b-border-soft);
}

.mav-account-permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mav-account-permission-list > p:not(.mav-help) {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 7px;
    background: #fafafa;
    color: var(--mkb2b-muted);
    font-size: 12px;
}

.mav-account-permission-list > p strong {
    display: block;
    margin-bottom: 3px;
    color: var(--mkb2b-text);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mav-account-permission-list .mav-help {
    grid-column: 1 / -1;
    margin: 2px 0 0;
}

.mav-account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 2px;
}

.mav-account-actions .mav-button,
.mav-portal .mav-button,
.mav-account-page .mav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--mkb2b-accent);
    border-radius: 4px;
    background: var(--mkb2b-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.mav-account-actions .mav-button:hover,
.mav-portal .mav-button:hover,
.mav-account-page .mav-button:hover,
.mav-account-actions .mav-button:focus-visible,
.mav-portal .mav-button:focus-visible,
.mav-account-page .mav-button:focus-visible {
    border-color: var(--mkb2b-accent-hover);
    background: var(--mkb2b-accent-hover);
    color: #fff;
}

/* Notices */
.mav-portal .mav-notice,
.mav-account-page .mav-notice {
    padding: 12px 14px;
    border: 1px solid var(--mkb2b-border-soft);
    border-left: 4px solid #605e5c;
    border-radius: 5px;
    background: #fafafa;
    color: var(--mkb2b-text);
    font-size: 12.5px;
}

.mav-portal .mav-notice-success,
.mav-account-page .mav-notice-success {
    border-left-color: var(--mkb2b-success);
    background: #f1faf1;
}

.mav-portal .mav-notice-warning,
.mav-account-page .mav-notice-warning {
    border-left-color: var(--mkb2b-warning);
    background: #fff8e8;
}

.mav-portal .mav-notice-error,
.mav-account-page .mav-notice-error {
    border-left-color: var(--mkb2b-danger);
    background: #fdf3f4;
}

/* Orders table */
.mav-portal-table {
    overflow: hidden;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 8px;
    background: #fff;
    font-size: 12.5px;
}

.mav-portal-table th {
    background: #fafafa;
    color: #605e5c;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .02em;
}

.mav-portal-table th,
.mav-portal-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--mkb2b-border-soft);
}

.mav-portal-table tbody tr:hover {
    background: #f8fbfd;
}

.mav-portal-pagination a {
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    place-items: center;
    border: 1px solid var(--mkb2b-border);
    border-radius: 4px;
    background: #fff;
    color: var(--mkb2b-text);
}

.mav-portal-pagination a.current {
    border-color: var(--mkb2b-accent);
    background: var(--mkb2b-accent);
    color: #fff;
}

/* Header account dropdown */
.mkb2b-account-menu > summary {
    min-height: 38px;
    gap: 8px;
    padding: 6px 10px 6px 7px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    background: #fff;
    color: var(--mkb2b-text);
    box-shadow: var(--mkb2b-shadow-1);
}

.mkb2b-account-menu > summary:hover {
    border-color: #b3b0ad;
    background: #fafafa;
}

.mkb2b-account-avatar {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--mkb2b-accent-soft);
    color: var(--mkb2b-accent);
}

.mkb2b-account-avatar .mav-icon {
    width: 15px;
    height: 15px;
}

.mkb2b-account-name {
    font-size: 12.5px;
    font-weight: 650;
}

.mkb2b-account-chevron {
    display: inline-grid;
    place-items: center;
}

.mkb2b-account-chevron .mav-icon {
    width: 13px;
    height: 13px;
    transition: transform .15s ease;
}

.mkb2b-account-menu[open] .mkb2b-account-chevron .mav-icon {
    transform: rotate(180deg);
}

.mkb2b-account-panel {
    top: calc(100% + 6px);
    width: min(300px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid var(--mkb2b-border-soft);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}

.mkb2b-account-company {
    padding: 3px 5px 0;
    color: var(--mkb2b-text);
    font-size: 13px;
    font-weight: 650;
}

.mkb2b-account-status {
    padding: 1px 5px 9px;
    color: var(--mkb2b-muted);
    font-size: 11px;
}

.mkb2b-account-panel nav {
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--mkb2b-border-soft);
}

.mkb2b-account-panel nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 8px;
    border-radius: 5px;
    color: var(--mkb2b-text);
    font-size: 12px;
    font-weight: 500;
}

.mkb2b-account-panel nav a .mav-icon {
    width: 17px;
    height: 17px;
    color: var(--mkb2b-muted);
}

.mkb2b-account-panel nav a:hover,
.mkb2b-account-panel nav a:focus-visible {
    background: #f3f3f3;
}

.mkb2b-account-panel .mkb2b-account-logout {
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px solid var(--mkb2b-border-soft);
    border-radius: 0 0 5px 5px;
    color: var(--mkb2b-danger);
}

/* Responsive */
@media (max-width: 1040px) {
    .mav-portal {
        width: min(100% - 20px, 1200px);
        padding: 14px;
    }

    .mav-portal-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 14px;
    }

    .mav-portal-user-actions .mav-portal-action span {
        display: none;
    }

    .mav-portal-action {
        width: 34px;
        padding: 6px;
        justify-content: center;
    }
}

@media (max-width: 820px) {
    .mav-portal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mav-portal-user {
        width: 100%;
        justify-content: flex-start;
    }

    .mav-portal-user-actions {
        margin-left: auto;
    }

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

    .mav-portal-sidebar {
        position: relative;
        overflow-x: auto;
    }

    .mav-nav-heading {
        display: none;
    }

    .mav-intranet-nav {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .mav-intranet-nav > ul {
        display: flex;
        gap: 5px;
        margin: 0;
    }

    .mav-intranet-nav li {
        display: contents;
    }

    .mav-nav-home,
    .mav-nav-link {
        min-width: max-content;
    }

    .mav-nav-level ul,
    .mav-nav-depth-1,
    .mav-nav-depth-2,
    .mav-nav-depth-3,
    .mav-nav-depth-4 {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: 0;
    }

    .mav-account-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mav-account-hero-status {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width: 680px) {
    .mav-portal {
        width: 100%;
        margin: 12px 0;
        padding: 8px;
        border-radius: 0;
    }

    .mav-portal-header,
    .mav-portal-main,
    .mav-portal-sidebar {
        border-radius: 8px;
    }

    .mav-portal-header {
        padding: 12px;
    }

    .mav-portal-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .mav-portal-brand-kicker {
        display: none;
    }

    .mav-user-copy {
        min-width: 0;
    }

    .mav-user-copy strong {
        max-width: 145px;
    }

    .mav-portal-main {
        padding: 16px;
    }

    .mav-portal-cards,
    .mav-product-grid {
        grid-template-columns: 1fr;
    }

    .mav-account-hero {
        padding: 16px;
    }

    .mav-account-hero-avatar {
        width: 46px;
        height: 46px;
    }

    .mav-account-hero-copy h2 {
        font-size: 23px;
    }

    .mav-account-page .mav-section {
        padding: 16px;
    }

    .mav-account-page .mav-grid,
    .mav-account-permission-list {
        grid-template-columns: 1fr;
    }

    .mav-account-permission-list .mav-help {
        grid-column: auto;
    }

    .mav-account-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .mav-account-actions .mav-button {
        width: 100%;
    }

    .mkb2b-account-auto {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mav-portal-card,
    .mav-product-card,
    .mav-card-link .mav-icon,
    .mkb2b-account-chevron .mav-icon {
        transition: none;
    }
}

/* Microkernel B2B Portal 2.0 — Empresa, equipo, comercial y mensajería */
.mkb2b-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 26px;
}

.mkb2b-dashboard-widgets .mav-portal-card {
    min-height: 142px;
}

.mkb2b-company-page,
.mkb2b-messages {
    display: grid;
    gap: 18px;
}

.mkb2b-data-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.mkb2b-data-list > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--mkb2b-border-soft, #e8e8e8);
}

.mkb2b-data-list dt {
    margin: 0 0 4px;
    color: var(--mkb2b-muted, #605e5c);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.mkb2b-data-list dd {
    margin: 0;
    color: var(--mkb2b-text, #242424);
    font-weight: 600;
}

.mkb2b-sales-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 8px;
    background: #fff;
}

.mkb2b-sales-name {
    font-size: 18px;
    font-weight: 700;
}

.mkb2b-members {
    display: grid;
    gap: 8px;
}

.mkb2b-member {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, .7fr) minmax(150px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--mkb2b-border-soft, #e8e8e8);
    border-radius: 6px;
    background: #fff;
}

.mkb2b-member strong,
.mkb2b-member span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mkb2b-invite,
.mkb2b-new-message {
    padding: 18px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 8px;
    background: #fff;
}

.mkb2b-message-list {
    display: grid;
    gap: 7px;
}

.mkb2b-message-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.mkb2b-message-tabs a {
    padding: 8px 13px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 999px;
    color: var(--mkb2b-text, #242424);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mkb2b-message-tabs a.is-active {
    border-color: var(--mkb2b-primary, #0078d4);
    background: var(--mkb2b-primary, #0078d4);
    color: #fff;
}

.mkb2b-message-row-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.mkb2b-message-archive-form { margin: 0; }
.mkb2b-message-archive-form.is-compact .mav-button { min-height: 38px; padding: 8px 12px; }
.mkb2b-message-thread-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.mkb2b-message-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--mkb2b-border-soft, #e8e8e8);
    border-radius: 7px;
    background: #fff;
    color: var(--mkb2b-text, #242424);
    text-decoration: none;
}

.mkb2b-message-row:hover,
.mkb2b-message-row:focus-visible {
    border-color: var(--mkb2b-primary, #0078d4);
    box-shadow: 0 0 0 1px var(--mkb2b-primary, #0078d4);
}

.mkb2b-message-row.is-unread {
    background: #f5faff;
}

.mkb2b-message-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c8c6c4;
}

.mkb2b-message-row.is-unread .mkb2b-message-dot {
    background: var(--mkb2b-primary, #0078d4);
}

.mkb2b-message-main {
    display: grid;
    gap: 3px;
}

.mkb2b-message-main strong {
    font-size: 14px;
}

.mkb2b-message-meta {
    color: var(--mkb2b-muted, #605e5c);
    font-size: 12px;
}

.mkb2b-message-thread {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.mkb2b-message-bubble {
    max-width: 78%;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f2f1;
}

.mkb2b-message-bubble.is-client {
    justify-self: end;
    background: #e8f3ff;
}

.mkb2b-message-bubble.is-microkernel {
    justify-self: start;
}

.mkb2b-message-bubble p:last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .mkb2b-dashboard-widgets {
        grid-template-columns: 1fr;
    }
    .mkb2b-data-list {
        grid-template-columns: 1fr;
    }
    .mkb2b-member {
        grid-template-columns: 1fr;
    }
    .mkb2b-message-bubble {
        max-width: 94%;
    }
    .mkb2b-message-row-wrap {
        grid-template-columns: 1fr;
    }
    .mkb2b-message-row-wrap .mkb2b-message-archive-form .mav-button {
        width: 100%;
    }
}


/* Microkernel B2B Portal 2.1 — Centro de privacidad */
.mav-privacy-registration .mav-privacy-check,.mav-privacy-center .mav-privacy-inline-form{padding:12px 14px;border:1px solid #e1e6eb;border-radius:6px;background:#f8fafc}.mav-privacy-center .mav-privacy-inline-form{margin:12px 0}.mav-privacy-center .mav-privacy-rights{margin-top:20px;padding-top:16px;border-top:1px solid #e5e7eb}.mav-privacy-center textarea{width:100%}.mav-privacy-center h4{margin:0 0 10px}.mav-privacy-history{margin-top:18px}
.mav-button.mav-button-secondary{background:#fff;color:#0f6cbd;border:1px solid #0f6cbd;box-shadow:none}.mav-button.mav-button-secondary:hover,.mav-button.mav-button-secondary:focus{background:#eff6fc;color:#0b5cab}

/* Microkernel B2B Portal 2.2 — Privacidad, mensajería y avisos */
.mav-privacy-registration {
    display: grid;
    gap: 18px;
}

.mav-privacy-first-layer {
    padding: 16px 18px;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    background: #fff;
}

.mav-privacy-first-layer h4 {
    margin: 0 0 12px;
    color: #0f4c81;
    font-size: 16px;
}

.mav-privacy-first-layer dl {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
}

.mav-privacy-first-layer dl > div {
    display: grid;
    grid-template-columns: minmax(105px, .28fr) minmax(0, 1fr);
    gap: 12px;
}

.mav-privacy-first-layer dt {
    font-weight: 700;
    color: #323130;
}

.mav-privacy-first-layer dd {
    margin: 0;
    color: #605e5c;
}

.mav-privacy-registration .mav-privacy-check {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #d8e1e8;
    border-radius: 8px;
    background: #f8fafc;
}

.mav-privacy-registration .mav-privacy-check label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    color: #0f4c81;
    font-weight: 650;
    line-height: 1.55;
    cursor: pointer;
}

.mav-privacy-registration .mav-privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
}

.mkb2b-new-message {
    margin: 4px 0 18px;
}

.mkb2b-new-message > summary {
    display: inline-flex;
    margin: 0 0 18px;
    cursor: pointer;
    list-style: none;
}

.mkb2b-new-message > summary::-webkit-details-marker {
    display: none;
}

.mkb2b-new-message-panel {
    display: grid;
    gap: 16px;
    padding-top: 4px;
}

.mkb2b-new-message-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mkb2b-border-soft, #e8e8e8);
}

.mkb2b-new-message-heading h3,
.mkb2b-new-message-heading p {
    margin: 0;
}

.mkb2b-new-message-heading p {
    margin-top: 5px;
    color: var(--mkb2b-muted, #605e5c);
}

.mkb2b-message-compose {
    display: grid;
    gap: 16px;
}

.mkb2b-message-compose .mav-field,
.mkb2b-message-submit {
    margin: 0;
}

.mkb2b-message-compose .mav-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
}

.mav-card-icon,
.mkb2b-widget-title {
    position: relative;
}

.mkb2b-widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mav-unread-badge,
.mav-nav-unread {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: #d13438;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.mav-card-icon .mav-unread-badge {
    position: absolute;
    top: -8px;
    right: -10px;
}

.mav-nav-unread {
    margin-left: auto;
}

.has-unread {
    border-color: #9cc9ee !important;
    box-shadow: 0 0 0 1px rgba(0, 120, 212, .12);
}

@keyframes mkb2bUnreadPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(209, 52, 56, .28); }
    50% { box-shadow: 0 0 0 6px rgba(209, 52, 56, 0); }
}

.mav-unread-pulse {
    animation: mkb2bUnreadPulse 1.8s ease-out 3;
}

@media (max-width: 680px) {
    .mav-privacy-first-layer dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mav-unread-pulse {
        animation: none;
    }
}


/* Microkernel B2B Portal 2.2.1 — widgets de inicio y contacto comercial */
.mkb2b-dashboard-widgets .mkb2b-dashboard-widget {
    display: flex;
    min-height: 205px;
    padding: 24px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
}

.mkb2b-dashboard-widgets .mkb2b-dashboard-widget h3,
.mkb2b-dashboard-widgets .mkb2b-dashboard-widget p {
    margin: 0;
}

.mkb2b-dashboard-widgets .mkb2b-dashboard-widget .mav-card-link {
    margin-top: 5px;
    align-self: center;
}

.mkb2b-dashboard-widgets .mkb2b-widget-title {
    width: 100%;
    min-height: 24px;
    justify-content: center;
}

.mkb2b-dashboard-widgets .mkb2b-widget-title .mav-unread-badge {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.mkb2b-sales-contact-list {
    display: grid;
    width: 100%;
    gap: 7px;
    justify-items: center;
    margin: 3px 0;
}

.mkb2b-sales-contact-line {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mkb2b-text, #242424);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mkb2b-sales-contact-line:hover,
.mkb2b-sales-contact-line:focus-visible {
    color: var(--mkb2b-primary, #0078d4);
    text-decoration: underline;
}

.mkb2b-contact-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    color: var(--mkb2b-primary, #0078d4);
}

.mkb2b-contact-svg {
    display: block;
    width: 18px;
    height: 18px;
}

@media (max-width: 860px) {
    .mkb2b-dashboard-widgets .mkb2b-dashboard-widget {
        min-height: 0;
    }
}

/* Microkernel B2B Portal 2.3.0 — gestor de proyectos */
.mkb2b-projects,
.mkb2b-project-detail,
.mkb2b-project-editor {
    display: grid;
    gap: 20px;
}

.mkb2b-project-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.mkb2b-project-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mkb2b-project-summary > div {
    display: grid;
    min-height: 92px;
    place-items: center;
    padding: 16px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.mkb2b-project-summary strong {
    color: var(--mkb2b-primary, #0078d4);
    font-size: 26px;
    line-height: 1;
}

.mkb2b-project-summary span {
    color: var(--mkb2b-muted, #605e5c);
    font-size: 13px;
}

.mkb2b-project-summary .needs-attention {
    border-color: #e3b341;
    background: #fffaf0;
}

.mkb2b-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mkb2b-project-card {
    display: flex;
    min-height: 220px;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .035);
}

.mkb2b-project-card.needs-attention {
    border-color: #e3b341;
    box-shadow: inset 4px 0 0 #e3b341;
}

.mkb2b-project-card-top,
.mkb2b-project-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mkb2b-project-ref {
    color: var(--mkb2b-muted, #605e5c);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}

.mkb2b-project-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6fc;
    color: #0f4c81;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.mkb2b-project-card h3,
.mkb2b-project-hero h2 {
    margin: 0;
}

.mkb2b-project-meta,
.mkb2b-project-updated {
    margin: 0;
    color: var(--mkb2b-muted, #605e5c);
    font-size: 13px;
}

.mkb2b-project-attention {
    margin: 0;
    padding: 9px 11px;
    border-radius: 7px;
    background: #fff4ce;
    color: #5f4700;
    font-size: 13px;
    font-weight: 650;
}

.mkb2b-project-card .mav-card-link {
    margin-top: auto;
}

.mkb2b-project-hero {
    padding: 22px 24px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f6fafd 100%);
}

.mkb2b-project-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    border: 1px solid var(--mkb2b-border, #d1d1d1);
    border-radius: 10px;
    background: #fff;
}

.mkb2b-project-tabs a {
    padding: 9px 13px;
    border-radius: 7px;
    color: var(--mkb2b-text, #242424);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.mkb2b-project-tabs a:hover,
.mkb2b-project-tabs a:focus-visible {
    background: #f3f6f9;
    color: var(--mkb2b-primary, #0078d4);
}

.mkb2b-project-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 22px;
}

.mkb2b-project-facts > div {
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
}

.mkb2b-project-facts span,
.mkb2b-project-facts strong {
    display: block;
}

.mkb2b-project-facts span {
    margin-bottom: 4px;
    color: var(--mkb2b-muted, #605e5c);
    font-size: 11px;
    text-transform: uppercase;
}

.mkb2b-project-description h4 {
    margin-bottom: 6px;
}

.mkb2b-project-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.mav-button-secondary {
    border-color: #8a8886 !important;
    background: #fff !important;
    color: #323130 !important;
}

.mkb2b-project-message-list,
.mkb2b-project-files {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.mkb2b-project-message {
    max-width: 86%;
    padding: 13px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #f7f7f7;
}

.mkb2b-project-message.is-mine {
    margin-left: auto;
    border-color: #b7d8f0;
    background: #eff6fc;
}

.mkb2b-project-message header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--mkb2b-muted, #605e5c);
    font-size: 12px;
}

.mkb2b-project-message p {
    margin: 0;
}

.mkb2b-project-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
}

.mkb2b-project-file span,
.mkb2b-project-file small {
    display: block;
}

.mkb2b-project-file small {
    margin-top: 3px;
    color: var(--mkb2b-muted, #605e5c);
}

.mkb2b-project-activity {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.mkb2b-project-activity li {
    position: relative;
    padding: 0 0 12px 20px;
    border-left: 2px solid #d9e8f5;
}

.mkb2b-project-activity li::before {
    position: absolute;
    top: 2px;
    left: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mkb2b-primary, #0078d4);
    content: "";
}

.mkb2b-project-activity span {
    color: var(--mkb2b-muted, #605e5c);
    font-size: 12px;
}

.mkb2b-project-activity strong,
.mkb2b-project-activity p {
    display: block;
    margin: 2px 0 0;
}

@media (max-width: 900px) {
    .mkb2b-project-grid,
    .mkb2b-project-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .mkb2b-project-heading,
    .mkb2b-project-hero,
    .mkb2b-project-file {
        align-items: stretch;
        flex-direction: column;
    }
    .mkb2b-project-summary {
        grid-template-columns: 1fr;
    }
    .mkb2b-project-message {
        max-width: 100%;
    }
}

.mkb2b-participant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.mkb2b-participant-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
}
.mkb2b-participant-option span,
.mkb2b-participant-option small { display: block; }
.mkb2b-participant-option small { margin-top: 2px; color: var(--mkb2b-muted, #605e5c); }
@media (max-width: 680px) { .mkb2b-participant-grid { grid-template-columns: 1fr; } }


/* Microkernel B2B Portal 2.3.3 - estado real de validacion */
.mav-user-status.is-pending .mav-status-dot {
    background: var(--mkb2b-warning, #ca5010);
}
.mav-user-status.is-approved .mav-status-dot {
    background: var(--mkb2b-success, #107c10);
}


/* Portal 2.7.11: indicadores de dropshipping en pedidos B2B. */
.mav-order-dropshipping-badge{display:inline-flex;align-items:center;margin-left:5px;padding:3px 7px;border:1px solid #f0c49e;border-radius:999px;background:#fff4e8;color:#9a3f00;font-size:10px;font-weight:850;line-height:1;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.mav-order-dropshipping-badge.is-large{padding:5px 9px;font-size:11px;vertical-align:4px}
.mav-order-dropshipping-banner{display:flex;gap:7px;flex-direction:column;margin:0 0 18px;padding:14px 16px;border:1px solid #efc08e;border-left:4px solid #ca5010;border-radius:10px;background:#fff7ed;color:#71350f}
.mav-order-dropshipping-banner strong{font-size:12px;letter-spacing:.055em}
.mav-order-dropshipping-banner span{font-size:13px;line-height:1.45}


/* Portal 2.7.13: carrito persistente en la cabecera B2B. */
.mav-portal-cart{position:relative;padding-right:8px!important}
.mav-portal-cart .mav-icon{width:18px;height:18px}
.mav-cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#156da9;color:#fff;font-size:10px;font-weight:850;line-height:1;box-shadow:0 0 0 2px #fff}
.mav-portal-cart:hover .mav-cart-count,.mav-portal-cart:focus-visible .mav-cart-count{background:#0e5d93}
@media(max-width:1040px){.mav-portal-cart{width:auto!important;min-width:38px!important}.mav-portal-cart>span{display:none!important}.mav-cart-count{position:absolute;right:-2px;top:-4px;min-width:17px;height:17px;padding:0 4px;font-size:9px}}

/* Portal 2.7.14: acceso flotante al carrito fuera de la intranet. */
.mav-b2b-floating-cart{position:fixed;right:22px;bottom:22px;z-index:9998;display:grid;grid-template-columns:38px auto auto;gap:9px;align-items:center;min-width:154px;padding:9px 11px;border:1px solid #d9e4ec;border-radius:14px;background:#fff;color:#18354d!important;text-decoration:none!important;box-shadow:0 14px 36px rgba(16,42,67,.18);transition:transform .15s ease,box-shadow .15s ease}
.mav-b2b-floating-cart:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(16,42,67,.23)}
.mav-b2b-floating-cart__icon{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:10px;background:#edf6fc;color:#156da9}
.mav-b2b-floating-cart__icon .mav-icon{width:19px;height:19px}
.mav-b2b-floating-cart__copy{display:flex;min-width:0;flex-direction:column;line-height:1.15}
.mav-b2b-floating-cart__copy strong{font-size:12px}.mav-b2b-floating-cart__copy small{margin-top:3px;color:#6b7f90;font-size:10px}
.mav-b2b-floating-cart__count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#156da9;color:#fff;font-size:10px;font-weight:850}
@media(max-width:680px){.mav-b2b-floating-cart{right:12px;bottom:12px;grid-template-columns:36px auto;min-width:0;padding:8px}.mav-b2b-floating-cart__copy{display:none}.mav-b2b-floating-cart__count{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;padding:0 4px;font-size:9px}}
