/* =====================================================================
   Full Ecus - Dashboard claro (solo presentación)
   Todo está acotado a #feDash para no afectar modales ni otras páginas.
   ===================================================================== */
:root {
    --fe-navy: #0b1a3a;
    --fe-navy-2: #0f2350;
    --fe-blue: #1d5fe0;
    --fe-blue-soft: #e6eefc;
    --fe-ink: #0f1f45;
    --fe-text: #475569;
    --fe-muted: #64748b;
    --fe-line: #e3e9f3;
    --fe-bg: #f4f7fc;
    --fe-card: #ffffff;
    --fe-green: #10b981;
    --fe-amber: #f59e0b;
    --fe-red: #ef4444;
    --cyan: #1d5fe0;
    /* usado por estilos inline de los mensajes del canal */
    --muted: #64748b;
    --amber: #f59e0b;
    --fe-sidebar-w: 236px;
}

body.fe-dash-body {
    background: var(--fe-bg);
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--fe-ink);
    line-height: 1.5;
}

#feDash {
    display: flex;
    min-height: 100vh;
}

#feDash a {
    text-decoration: none;
}

/* ---------------------------- SIDEBAR ---------------------------- */
#feDash .fe-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--fe-sidebar-w);
    background: linear-gradient(180deg, #0b1a3a 0%, #0a1630 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 22px 12px 16px;
    z-index: 900;
    transition: transform .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

#feDash .fe-sidebar::-webkit-scrollbar {
    width: 5px;
}

#feDash .fe-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#feDash .fe-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

#feDash .fe-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#feDash .fe-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 22px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

#feDash .fe-brand img {
    width: 52px;
    height: auto;
}

#feDash .fe-side-label {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8da2c7;
    padding: 8px 12px 10px;
    font-weight: 600;
}

#feDash .fe-sidebar .nav-menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    list-style: none;
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

#feDash .fe-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #d6e0f2 !important;
    font-weight: 500;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}

#feDash .fe-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

#feDash .fe-nav-item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

#feDash .fe-nav-item.is-active {
    background: var(--fe-blue);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(29, 95, 224, .35);
}

#feDash .fe-nav-sep {
    height: 1px;
    background: rgba(255, 255, 255, .12);
    margin: 14px 10px;
    list-style: none;
}

#feDash .fe-side-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 500;
    background: transparent;
    border: 0;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: .95rem;
}

#feDash .fe-side-user:hover {
    background: rgba(255, 255, 255, .07);
}

#feDash .fe-side-user .fe-side-name {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#feDash .fe-side-user .fa-chevron-down {
    font-size: .75rem;
    opacity: .7;
}

#feDash .fe-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--fe-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

/* ---------------------------- MAIN ---------------------------- */
#feDash .fe-main {
    margin-left: var(--fe-sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#feDash .fe-topbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 950 !important;
    height: 60px;
    background: #ffffff !important;
    border-bottom: 1px solid var(--fe-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

#feDash .fe-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Marca en fe-topbar (Logo + Full Ecus en azul) */
#feDash .fe-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s;
}

#feDash .fe-topbar-brand:hover {
    opacity: 0.9;
}

.fe-topbar-logo,
#feDash .fe-topbar-logo,
.fe-topbar-brand img,
#feDash .fe-topbar-brand img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 80px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

#feDash .fe-topbar-title {
    color: #2563eb !important;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    white-space: nowrap;
}

#feDash .fe-topbar-sep {
    width: 1px;
    height: 20px;
    background: #e3e9f3;
    margin: 0 2px;
    flex-shrink: 0;
}

#feDash .fe-crumbs {
    color: var(--fe-muted);
    font-size: .88rem;
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

#feDash .fe-crumbs strong {
    color: var(--fe-blue);
    font-weight: 600;
}

#feDash .fe-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

#feDash .hamburger,
#feDash .fe-hamburger {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--fe-line);
    background: #fff;
    margin-right: 12px;
}

#feDash .hamburger span,
#feDash .fe-hamburger span {
    width: 18px;
    height: 2px;
    background: var(--fe-ink);
    margin: 2px 0;
    display: block;
}

#feDash .fe-top-left {
    display: flex;
    align-items: center;
}

#feDash .notification-bell {
    position: relative;
    cursor: pointer;
}

#feDash .notification-bell>i {
    font-size: 1.15rem !important;
    color: var(--fe-ink) !important;
}

#feDash .fe-notif-wrapper {
    margin-left: 0;
}

#feDash .fe-notif-bell-btn {
    background: #fff;
    border-color: var(--fe-line);
}

#feDash .user-dropdown {
    list-style: none;
}

#feDash .user-btn {
    background: transparent;
    color: var(--fe-ink);
    padding: 0;
    gap: 6px;
}

#feDash .user-btn:hover {
    transform: none;
}

#feDash .user-btn .fa-chevron-down {
    font-size: .72rem;
    color: var(--fe-muted);
}

#feDash .fe-login-btn {
    background: var(--fe-blue);
    color: #fff;
    border: 0;
    padding: 9px 20px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

#feDash .fe-content {
    padding: 28px 32px 40px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#feDash .fe-view {
    display: none;
    animation: feFade .35s ease;
}

#feDash .fe-view.is-active {
    display: block;
}

@keyframes feFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

#feDash .fe-h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--fe-ink);
    line-height: 1.15;
    margin: 0 0 6px;
}

#feDash .fe-sub {
    color: var(--fe-text);
    font-size: 1.02rem;
    margin-bottom: 22px;
}

#feDash .fe-h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--fe-ink);
    margin: 0;
}

#feDash .fe-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 16px;
}

/* ---------------------------- HERO VIN ---------------------------- */
#feDash .showcase-container {
    display: block;
    width: 100%;
}

#feDash .promo-card.card-vin {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 140% at 85% 20%, #14388a 0%, #0b1f4d 55%, #09163a 100%);
    border-radius: 14px;
    padding: 34px 38px;
    color: #fff;
    min-height: 168px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(11, 26, 58, .25);
}

#feDash .card-vin::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

#feDash .card-vin .fe-vin-car {
    position: absolute;
    right: 28px;
    bottom: 20px;
    font-size: 8.5rem;
    color: rgba(130, 170, 255, .22);
    pointer-events: none;
    line-height: 1;
}

#feDash .card-vin .fe-vin-bars {
    position: absolute;
    right: 34px;
    bottom: 14px;
    font-size: .72rem;
    letter-spacing: .12em;
    color: rgba(190, 210, 255, .65);
    font-family: monospace;
    text-align: right;
    pointer-events: none;
}

#feDash .card-vin .fe-vin-bars i {
    display: block;
    font-size: 2rem;
    margin-bottom: 2px;
}

#feDash .fe-vin-eyebrow {
    position: relative;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5ea0ff;
    font-weight: 700;
    margin-bottom: 8px;
}

#feDash .fe-vin-title {
    position: relative;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

#feDash .fe-vin-desc {
    position: relative;
    font-size: 1.05rem;
    color: #dbe6ff;
    margin-bottom: 20px;
    max-width: 520px;
}

#feDash .fe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2b6cf0;
    color: #fff;
    border: 0;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .2s;
}

#feDash .fe-btn:hover {
    background: #1f58cf;
    transform: translateY(-1px);
}

#feDash .fe-btn-outline {
    background: #fff;
    color: var(--fe-blue);
    border: 1.5px solid var(--fe-blue);
}

#feDash .fe-btn-outline:hover {
    background: var(--fe-blue-soft);
}

#feDash .fe-btn[disabled] {
    cursor: not-allowed;
}

#feDash .vin-interface {
    display: none;
    position: relative;
    animation: feFade .5s forwards;
}

#feDash .vin-interface .fe-vin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

#feDash .btn-regresar {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

#feDash .btn-regresar:hover {
    background: rgba(255, 255, 255, .12);
}

#feDash .vin-interface .fe-vin-title {
    margin: 0;
}

#feDash .vin-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

#feDash .vin-input {
    width: 100%;
    max-width: 420px;
    padding: 13px 20px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    outline: none;
}

#feDash .vin-input:focus {
    border-color: #fff;
}

#feDash .vin-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

#feDash .vin-data-card {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

#feDash .vin-data-card h4 {
    color: #c7d6f5;
    font-size: .8rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

#feDash .vin-data-card p {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

#feDash .vin-error {
    color: #ffb4b4;
    background: rgba(255, 77, 77, .12);
    border: 1px solid #ff6b6b;
    padding: 12px;
    border-radius: 10px;
    margin-top: 14px;
    display: none;
    text-align: center;
}

/* Estado "interfaz VIN abierta" (lo activan las funciones JS existentes) */
#feDash .catalog-hidden .card-vin {
    cursor: default;
}

#feDash .catalog-hidden .fe-vin-car,
#feDash .catalog-hidden .fe-vin-bars {
    display: none;
}

/* ---------------------------- TARJETAS GENERICAS ---------------------------- */
#feDash .fe-card {
    background: var(--fe-card);
    border: 1px solid var(--fe-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 31, 69, .04);
}

#feDash .fe-info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-top: 8px;
}

#feDash .fe-about {
    padding: 26px 28px;
}

#feDash .fe-about h3 {
    font-size: 1.15rem;
    color: var(--fe-ink);
    margin-bottom: 10px;
}

#feDash .fe-about p {
    color: var(--fe-text);
    margin-bottom: 10px;
}

#feDash .fe-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

#feDash .fe-stat {
    background: var(--fe-blue-soft);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

#feDash .fe-stat h4 {
    font-size: 1.5rem;
    color: var(--fe-blue);
    font-weight: 800;
}

#feDash .fe-stat p {
    font-size: .8rem;
    color: var(--fe-text);
    margin: 0;
}

#feDash .fe-contact {
    padding: 22px 24px;
}

#feDash .fe-contact h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

#feDash .fe-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--fe-line);
}

#feDash .fe-contact-item:first-of-type {
    border-top: 0;
}

#feDash .fe-ic {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--fe-blue-soft);
    color: var(--fe-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

#feDash .fe-contact-item h4 {
    font-size: .95rem;
    color: var(--fe-ink);
    margin: 0;
}

#feDash .fe-contact-item p {
    margin: 0;
    color: var(--fe-text);
    font-size: .88rem;
}

#feDash .fe-contact-item a {
    color: var(--fe-blue);
    font-weight: 600;
}

#feDash .fe-forum-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

#feDash .fe-forum-strip .fe-card {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#feDash .fe-forum-strip h4 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--fe-ink);
}

#feDash .fe-forum-strip p {
    margin: 0;
    font-size: .82rem;
    color: var(--fe-text);
}

/* banner soporte */
#feDash .fe-help-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    background: #eaf1fd;
    border: 1px solid #d5e2f8;
    border-radius: 12px;
    padding: 18px 24px;
}

#feDash .fe-help-banner>i {
    font-size: 2rem;
    color: var(--fe-ink);
    padding-right: 18px;
    border-right: 1px solid #c3d3ee;
}

#feDash .fe-help-banner .fe-help-txt {
    flex: 1;
}

#feDash .fe-help-banner h4 {
    font-size: 1.02rem;
    color: var(--fe-ink);
    margin: 0 0 2px;
}

#feDash .fe-help-banner p {
    margin: 0;
    color: var(--fe-text);
    font-size: .9rem;
}

/* ---------------------------- HERRAMIENTAS ---------------------------- */
#feDash .fe-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#feDash .fe-chip {
    border: 0;
    background: #e9eef7;
    color: var(--fe-ink);
    padding: 8px 22px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

#feDash .fe-chip.is-active {
    background: var(--fe-blue);
    color: #fff;
}

#feDash .fe-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

#feDash .promo-card.fe-tool {
    background: #fff;
    border: 1px solid var(--fe-line);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

#feDash .promo-card.fe-tool:hover {
    box-shadow: 0 10px 24px rgba(29, 95, 224, .12);
    transform: translateY(-2px);
    border-color: #c9d8f3;
}

#feDash .fe-tool .fe-tile {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--fe-blue-soft);
    color: var(--fe-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

#feDash .fe-tool .fe-tile img {
    width: 36px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
}

#feDash .fe-tool h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--fe-ink);
    margin: 0 0 6px;
}

#feDash .fe-tool p {
    font-size: .88rem;
    color: var(--fe-text);
    margin: 0 0 14px;
    line-height: 1.45;
}

#feDash .fe-tool .fe-link {
    color: var(--fe-blue) !important;
    font-weight: 700;
    font-size: .88rem;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

#feDash .fe-tool .fe-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--fe-blue-soft);
    color: var(--fe-blue);
    font-size: .64rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: .04em;
}

#feDash .fe-tool.is-hidden {
    display: none;
}

/* ---------------------------- ARCHIVOS ---------------------------- */
#feDash .fe-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

#feDash .fe-search {
    flex: 1;
    min-width: 220px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid var(--fe-line);
    background: #fff;
    font-family: inherit;
    font-size: .92rem;
    outline: none;
}

#feDash .fe-search:focus {
    border-color: var(--fe-blue);
}

#feDash .fe-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#feDash .fe-file-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

#feDash .fe-file-row .fe-file-info {
    flex: 1;
    min-width: 0;
}

#feDash .fe-file-row h4 {
    font-size: .98rem;
    color: var(--fe-ink);
    margin: 0 0 3px;
    font-weight: 600;
}

#feDash .fe-file-row .fe-meta {
    font-size: .8rem;
    color: var(--fe-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

#feDash .fe-service-tag {
    background: var(--fe-blue-soft);
    color: var(--fe-blue);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

#feDash .fe-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--fe-blue);
    background: #fff;
    color: var(--fe-blue) !important;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
}

#feDash .fe-file-btn:hover {
    background: var(--fe-blue-soft);
}

#feDash .fe-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--fe-muted);
}

#feDash .fe-empty>i {
    font-size: 2.6rem;
    color: var(--fe-blue);
    opacity: .55;
    display: block;
    margin-bottom: 12px;
}

#feDash .fe-empty h3 {
    color: var(--fe-ink);
    margin-bottom: 6px;
}

#feDash .fe-empty p {
    margin-bottom: 16px;
}

/* ---------------------------- SOLICITUDES ---------------------------- */
#feDash .fe-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--fe-line);
}

#feDash .fe-tab {
    background: none;
    border: 0;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--fe-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    font-size: .92rem;
}

#feDash .fe-tab.is-active {
    color: var(--fe-blue);
    border-bottom-color: var(--fe-blue);
}

#feDash .fe-tabpane {
    display: none;
}

#feDash .fe-tabpane.is-active {
    display: block;
}

#feDash .cases-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#feDash .case-card {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--fe-line);
    border-radius: 12px;
}

#feDash .case-left {
    flex: 1;
    min-width: 260px;
}

#feDash .case-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
}

#feDash .case-top-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

#feDash .case-id {
    font-weight: 800;
    color: var(--fe-ink);
}

#feDash .case-service-tag {
    background: var(--fe-blue-soft);
    color: var(--fe-blue);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

#feDash .case-vehicle {
    font-weight: 600;
    color: var(--fe-ink);
    margin-bottom: 6px;
}

#feDash .case-comments {
    color: var(--fe-text);
    font-size: .9rem;
    background: #f6f8fc;
    border-radius: 8px;
    padding: 10px 12px;
}

#feDash .specialist-pill {
    background: #fff7e6;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .8rem;
}

#feDash .u-status {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
}

#feDash .u-status.pending {
    background: #fff7e6;
    color: #b45309;
}

#feDash .u-status.in_progress {
    background: var(--fe-blue-soft);
    color: var(--fe-blue);
}

#feDash .u-status.resolved {
    background: #e3f8ef;
    color: #047857;
}

#feDash .btn-open-user-channel {
    border: 0;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
}

#feDash .btn-open-user-channel.open {
    background: var(--fe-green);
}

#feDash .btn-open-user-channel.closed {
    background: #64748b;
}

#feDash .fe-client-frame {
    width: 100%;
    height: 78vh;
    border: 1px solid var(--fe-line);
    border-radius: 12px;
    background: #fff;
}

/* Modal canal directo (claro) */
#userChannelModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 26, 58, .55);
    z-index: 10010;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#userChannelModal.open {
    display: flex;
}

#userChannelModal .u-ch-window {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
}

#userChannelModal .u-ch-hdr {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fe-line);
}

#userChannelModal .u-ch-hdr h3 {
    color: var(--fe-ink) !important;
}

#userChannelModal .u-ch-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    background: #f4f7fc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px;
}

#userChannelModal .u-ch-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--fe-line);
    background: #fff;
}

#userChannelModal .u-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .9rem;
    background: #fff;
    border: 1px solid var(--fe-line);
    color: var(--fe-ink);
}

#userChannelModal .u-msg.mine {
    align-self: flex-end;
    background: var(--fe-blue);
    color: #fff;
    border-color: var(--fe-blue);
}

#userChannelModal .u-msg.theirs {
    align-self: flex-start;
}

#userChannelModal .u-msg.system {
    align-self: center;
    background: transparent;
    border: 0;
    color: var(--fe-muted);
    font-size: .78rem;
}

#userChannelModal .u-msg-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 31, 69, .07);
    font-size: .82rem;
}

#userChannelModal .u-msg.mine .u-msg-file {
    background: rgba(255, 255, 255, .18);
}

#userChannelModal .u-msg-file a {
    color: inherit;
    font-weight: 700;
}

#userChannelModal #uChTextInput {
    background: #fff !important;
    color: var(--fe-ink) !important;
}

/* ---------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 1100px) {
    #feDash .fe-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #feDash .fe-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {

    html,
    body.fe-dash-body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #feDash {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #feDash .fe-sidebar {
        transform: translateX(-100%);
        z-index: 10001 !important;
    }

    body.fe-sidebar-open #feDash .fe-sidebar {
        transform: none !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, .5) !important;
    }

    #feDash .fe-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #feDash .fe-topbar {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 56px !important;
        padding: 0 12px !important;
        z-index: 950 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(15, 31, 69, 0.08) !important;
        box-sizing: border-box !important;
    }

    #feDash .fe-top-left {
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    #feDash .fe-topbar-brand {
        gap: 6px !important;
    }

    #feDash .fe-topbar-logo {
        height: 28px !important;
    }

    #feDash .fe-topbar-title {
        font-size: 1.05rem !important;
    }

    #feDash .fe-topbar-sep {
        display: none !important;
    }

    #feDash .fe-crumbs {
        display: none !important;
        /* Ocultar migas en móvil para evitar que se desborde */
    }

    #feDash .hamburger,
    #feDash .fe-hamburger {
        display: flex !important;
        flex-direction: column;
        margin-right: 6px !important;
        width: 34px !important;
        height: 34px !important;
        flex-shrink: 0 !important;
    }

    #feDash .fe-content {
        padding: 18px 14px 26px;
    }

    #feDash .fe-h1 {
        font-size: 1.6rem;
    }

    #feDash .card-vin .fe-vin-car,
    #feDash .card-vin .fe-vin-bars {
        display: none;
    }

    #feDash .promo-card.card-vin {
        padding: 22px 18px;
    }

    #feDash .fe-forum-strip {
        grid-template-columns: 1fr;
    }

    #feDash .fe-help-banner {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    #feDash .fe-tools-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Base / reset acotado (para páginas que no cargan styles.css) ---------- */
#feDash,
#feDash *,
#feDash *::before,
#feDash *::after {
    box-sizing: border-box;
}

#feDash ul {
    margin: 0;
    padding: 0;
}

#feDash .fe-sidebar,
#feDash .fe-topbar {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

/* Menú de usuario (avatar) */
#feDash .user-dropdown {
    position: relative;
}

#feDash .user-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}

#feDash .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--fe-line);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 31, 69, .15);
    min-width: 220px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 1000;
    margin-top: 8px;
}

#feDash .user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#feDash .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--fe-ink) !important;
    font-size: .9rem;
    font-weight: 500;
}

#feDash .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--fe-muted);
}

#feDash .dropdown-item:hover {
    background: var(--fe-blue-soft);
    color: var(--fe-blue) !important;
}

#feDash .dropdown-divider {
    border: 0;
    height: 1px;
    background: var(--fe-line);
    margin: 6px 0;
}

#feDash .fe-topbar .fe-top-right {
    position: relative;
}

/* ---------- Blindaje estricto de menú desplegable de usuario ---------- */
.user-dropdown,
#feDash .user-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dropdown-menu,
#feDash .dropdown-menu,
#feUserMenu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e3e9f3 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(15, 31, 69, 0.18) !important;
    min-width: 220px !important;
    padding: 8px !important;
    z-index: 10005 !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    list-style: none !important;
}

.user-dropdown:hover .dropdown-menu,
.user-dropdown.open .dropdown-menu,
#feDash .user-dropdown:hover .dropdown-menu,
#feDash .user-dropdown:hover #feUserMenu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.dropdown-item,
#feDash .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    color: var(--fe-ink) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.2s, color 0.2s !important;
}

.dropdown-item:hover,
#feDash .dropdown-item:hover {
    background: var(--fe-blue-soft) !important;
    color: var(--fe-blue) !important;
}

.dropdown-item i,
#feDash .dropdown-item i {
    width: 18px !important;
    text-align: center !important;
    font-size: 1rem !important;
    color: var(--fe-muted) !important;
}

.dropdown-item:hover i,
#feDash .dropdown-item:hover i {
    color: var(--fe-blue) !important;
}

.dropdown-divider,
#feDash .dropdown-divider {
    border: 0 !important;
    height: 1px !important;
    background: #e3e9f3 !important;
    margin: 6px 0 !important;
}