/* TareasRB — UI minimalista */
:root {
    --vh-black: #0a0a0a;
    --vh-white: #ffffff;
    --vh-bg: #f6f3f0;
    --vh-surface: #ffffff;
    --vh-sidebar: #14110f;
    --vh-sidebar-border: #2a221c;
    --vh-sidebar-text: #b9aea3;
    --vh-sidebar-text-active: #ffffff;
    --vh-accent: #6b4423;
    --vh-accent-hover: #8b5a2b;
    --vh-accent-muted: rgba(107, 68, 35, 0.12);
    --vh-navy: #1a120c;
    --vh-border: #e6e0da;
    --vh-border-strong: #cfc5bb;
    --vh-muted: #6b6560;
    --vh-text: #14110f;
    --vh-radius: 10px;
    --vh-radius-sm: 6px;
    --vh-shadow: 0 1px 2px rgba(20, 17, 15, 0.05);
    --vh-shadow-md: 0 4px 24px rgba(20, 17, 15, 0.08);
    --vh-sidebar-width: 260px;
    --vh-font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --vh-transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.vh-app {
    margin: 0;
    font-family: var(--vh-font);
    font-size: 0.9375rem;
    color: var(--vh-text);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(139, 90, 43, 0.08), transparent 55%),
        linear-gradient(180deg, #f8f4ef 0%, var(--vh-bg) 38%);
    -webkit-font-smoothing: antialiased;
}

/* ——— Shell & Sidebar ——— */
.vh-shell {
    display: flex;
    min-height: 100vh;
}

.vh-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: var(--vh-sidebar-width);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background:
        radial-gradient(520px 280px at 0% 0%, rgba(139, 90, 43, 0.22), transparent 60%),
        linear-gradient(180deg, #1a1512 0%, #14110f 55%, #100e0c 100%);
    border-right: 1px solid var(--vh-sidebar-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--vh-transition);
}

.vh-sidebar__brand {
    flex-shrink: 0;
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--vh-sidebar-border);
}

.vh-brand {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vh-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.35;
    word-break: break-word;
}

.vh-brand:hover {
    color: var(--vh-white);
    opacity: 0.92;
}

.vh-sidebar__label {
    display: block;
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vh-sidebar-text);
    opacity: 0.6;
}

.vh-sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vh-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 2px;
    border-radius: var(--vh-radius-sm);
    color: var(--vh-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background var(--vh-transition), color var(--vh-transition);
}

.vh-nav-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    opacity: 0.85;
}

.vh-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--vh-sidebar-text-active);
}

.vh-nav-link.active {
    background: linear-gradient(135deg, #8b5a2b 0%, #6b4423 100%);
    color: var(--vh-white);
    box-shadow: 0 10px 22px rgba(107, 68, 35, 0.28);
}

.vh-nav-link.active i {
    opacity: 1;
}

.vh-sidebar__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1rem 0.75rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--vh-sidebar-border);
    background: var(--vh-sidebar);
}

.vh-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.85rem 0.85rem;
    margin: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: var(--vh-radius-sm);
    transition: background var(--vh-transition);
}

.vh-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

.vh-user__chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--vh-sidebar-text);
    opacity: 0.6;
}

.vh-user__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vh-accent);
    color: var(--vh-white);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vh-user__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vh-user__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vh-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vh-user__role {
    font-size: 0.75rem;
    color: var(--vh-sidebar-text);
}

.vh-nav-link--logout {
    color: var(--vh-sidebar-text);
    font-size: 0.85rem;
}

.vh-nav-link--logout:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.vh-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--vh-transition);
}

.vh-sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
}

/* ——— Main content ——— */
.vh-main {
    flex: 1;
    margin-left: var(--vh-sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.vh-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.75rem;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(230, 224, 218, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

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

.vh-topbar__toggle {
    display: none;
    border: 1px solid var(--vh-border);
    background: var(--vh-white);
    border-radius: var(--vh-radius-sm);
    width: 40px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--vh-text);
    cursor: pointer;
}

.vh-topbar__toggle:hover {
    background: var(--vh-bg);
}

.vh-topbar__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--vh-black);
}

.vh-content {
    flex: 1;
    padding: 1.5rem 1.75rem 2.25rem;
    max-width: 1280px;
    width: 100%;
}

/* ——— Page header ——— */
.vh-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.vh-page-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vh-black);
}

.vh-page-header p {
    margin: 0;
    color: var(--vh-muted);
    font-size: 0.9rem;
}

.vh-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.vh-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.vh-export-panel {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--vh-border);
    background: linear-gradient(135deg, var(--vh-accent-muted) 0%, var(--vh-surface) 45%);
}

.vh-export-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vh-export-panel__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.vh-export-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--vh-accent);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vh-export-panel__title {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 700;
}

.vh-export-panel__subtitle {
    font-size: 0.8125rem;
    color: var(--vh-muted);
}

.vh-export-panel__modes {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: var(--vh-radius);
    background: var(--vh-bg);
    border: 1px solid var(--vh-border);
    gap: 0.2rem;
}

.vh-export-panel__mode {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: calc(var(--vh-radius-sm) + 2px);
    background: transparent;
    color: var(--vh-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--vh-transition), color var(--vh-transition);
}

.vh-export-panel__mode.is-active {
    background: var(--vh-surface);
    color: var(--vh-accent);
    box-shadow: var(--vh-shadow);
}

.vh-export-panel__body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.vh-export-panel__pane {
    flex: 1 1 18rem;
    min-width: min(100%, 16rem);
}

.vh-export-panel__field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius);
    box-shadow: var(--vh-shadow);
}

.vh-export-panel__field:focus-within {
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 3px var(--vh-accent-muted);
}

.vh-export-panel__field > i {
    color: var(--vh-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.vh-export-panel__input {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    font-weight: 500;
    color: var(--vh-text);
}

.vh-export-panel__input:focus {
    outline: none;
}

.vh-export-panel__hint {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: var(--vh-muted);
}

.vh-export-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .vh-export-panel__body {
        flex-direction: column;
        align-items: stretch;
    }

    .vh-export-panel__actions {
        width: 100%;
    }

    .vh-export-panel__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ——— Cards & panels ——— */
.card-panel,
.stat-card {
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius);
    box-shadow: var(--vh-shadow);
}

.card-panel .card-header {
    background: transparent;
    border-bottom: 1px solid var(--vh-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-panel .card-body {
    padding: 1.25rem;
}

.stat-card {
    transition: border-color var(--vh-transition), box-shadow var(--vh-transition);
}

.stat-card:hover {
    border-color: var(--vh-border-strong);
    box-shadow: var(--vh-shadow-md);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--vh-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
}

.stat-card .text-muted {
    font-size: 0.8125rem;
    color: var(--vh-muted) !important;
}

.stat-card .fs-3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vh-black);
}

/* ——— Buttons (override Bootstrap in app) ——— */
.vh-app .btn-primary {
    --bs-btn-bg: var(--vh-accent);
    --bs-btn-border-color: var(--vh-accent);
    --bs-btn-hover-bg: var(--vh-accent-hover);
    --bs-btn-hover-border-color: var(--vh-accent-hover);
    --bs-btn-active-bg: var(--vh-navy);
    --bs-btn-active-border-color: var(--vh-navy);
    font-weight: 600;
    border-radius: var(--vh-radius-sm);
    padding: 0.5rem 1rem;
}

.vh-app .btn-outline-primary {
    --bs-btn-color: var(--vh-accent);
    --bs-btn-border-color: var(--vh-border-strong);
    --bs-btn-hover-bg: var(--vh-accent);
    --bs-btn-hover-border-color: var(--vh-accent);
    font-weight: 500;
    border-radius: var(--vh-radius-sm);
}

.vh-app .btn-outline-secondary,
.vh-app .btn-outline-warning,
.vh-app .btn-light {
    border-radius: var(--vh-radius-sm);
    font-weight: 500;
}

.vh-app .btn-ghost {
    background: transparent;
    border: 1px solid var(--vh-border);
    color: var(--vh-text);
    font-weight: 500;
    border-radius: var(--vh-radius-sm);
    padding: 0.45rem 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    transition: background var(--vh-transition), border-color var(--vh-transition);
}

.vh-app .btn-ghost:hover {
    background: var(--vh-bg);
    border-color: var(--vh-border-strong);
    color: var(--vh-black);
}

.vh-app .btn-ghost--accent {
    border-color: var(--vh-accent);
    color: var(--vh-accent);
}

.vh-app .btn-ghost--accent:hover {
    background: var(--vh-accent-muted);
    color: var(--vh-accent-hover);
}

/* ——— Tables ——— */
.vh-app .table {
    --bs-table-bg: transparent;
    font-size: 0.9rem;
}

.vh-app .table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vh-muted);
    border-bottom: 1px solid var(--vh-border);
    background: var(--vh-bg);
    padding: 0.75rem 1rem;
}

.vh-app .table tbody td {
    padding: 0.85rem 1rem;
    border-color: var(--vh-border);
    vertical-align: middle;
}

.vh-app .table-hover tbody tr:hover {
    background: var(--vh-accent-muted);
}

.task-row-link {
    cursor: pointer;
    transition: background var(--vh-transition);
}

/* ——— Badges ——— */
.vh-badge {
    display: inline-block;
    padding: 0.28em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.vh-status--abierta { background: #f0eeeb; color: #525252; }
.vh-status--en_progreso { background: #efe6dc; color: var(--vh-accent); }
.vh-status--pendiente_aprobacion { background: #f5f0e6; color: #7c5e10; }
.vh-status--finalizada { background: var(--vh-accent-muted); color: var(--vh-accent-hover); }

.vh-priority--baja { background: #e5e5e5; color: #525252; }
.vh-priority--media { background: #fef3c7; color: #92400e; }
.vh-priority--urgente { background: #fee2e2; color: #b91c1c; }

.vh-role--owner {
    background: #1a1a1a;
    color: #fff;
}

.vh-protected {
    background: #f5f5f4;
    color: var(--vh-muted);
    font-weight: 500;
    font-size: 0.6875rem;
}

/* Modal Mi cuenta — estilo tarjetas con avatar */
.vh-profile-modal__dialog {
    max-width: 520px;
    width: calc(100% - 2rem);
}

.vh-profile-modal__content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
}

.vh-profile-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    opacity: 0.45;
}

.vh-profile-modal__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.vh-profile-modal__avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.vh-profile-modal__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8eeec 0%, #d4e0db 100%);
    color: var(--vh-accent);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--vh-white);
    box-shadow: 0 4px 16px rgba(45, 74, 62, 0.15);
}

.vh-profile-modal__title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--vh-black);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.vh-profile-field {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    background: var(--vh-white);
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.vh-profile-field--static {
    cursor: default;
}

.vh-profile-field--input {
    margin-bottom: 0;
    cursor: text;
    transition: border-color var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-profile-field--input:focus-within {
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 3px var(--vh-accent-muted);
}

.vh-profile-field__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.vh-profile-field__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vh-profile-field__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vh-muted);
}

.vh-profile-field__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--vh-black);
    line-height: 1.3;
    word-break: break-word;
}

.vh-profile-field__input {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--vh-black);
    background: transparent;
    outline: none;
    font-family: var(--vh-font);
}

.vh-profile-field__input::placeholder {
    color: #c4c4c4;
    font-weight: 400;
}

.vh-profile-modal__passwords {
    width: 100%;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.vh-profile-modal__passwords .vh-profile-field {
    height: 100%;
    margin-bottom: 0;
}

.vh-profile-modal__passwords .vh-profile-field__label {
    font-size: 0.6875rem;
    line-height: 1.25;
    white-space: normal;
}

.vh-profile-modal__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--vh-accent);
    color: var(--vh-white);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--vh-font);
    cursor: pointer;
    transition: background var(--vh-transition), transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(45, 74, 62, 0.25);
}

.vh-profile-modal__submit:hover {
    background: var(--vh-accent-hover);
}

.vh-profile-modal__submit:active {
    transform: scale(0.99);
}

/* Cerrar sesión en modal — solo visible en móvil (ver media query) */
.vh-profile-modal__logout-wrap {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.25rem;
}

.vh-profile-modal .vh-profile-modal__logout,
.vh-profile-modal .vh-profile-modal__logout:link,
.vh-profile-modal .vh-profile-modal__logout:visited {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #dc2626 !important;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--vh-font);
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    cursor: pointer;
    transition: background-color var(--vh-transition), border-color var(--vh-transition), color var(--vh-transition);
}

.vh-profile-modal .vh-profile-modal__logout:hover,
.vh-profile-modal .vh-profile-modal__logout:focus,
.vh-profile-modal .vh-profile-modal__logout:active {
    background-color: #fee2e2;
    border-color: #f87171;
    color: #b91c1c !important;
    text-decoration: none !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.vh-profile-modal .vh-profile-modal__logout i {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .vh-profile-modal__passwords .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ——— Progress & bars ——— */
.progress-thin {
    height: 4px;
    border-radius: 2px;
    background: var(--vh-border);
}

.vh-progress--abierta { background: #9ca3af; }
.vh-progress--en_progreso { background: var(--vh-accent); }
.vh-progress--pendiente_aprobacion { background: #a68b4b; }
.vh-progress--finalizada { background: var(--vh-accent-hover); }

.area-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--vh-border);
    overflow: hidden;
}

.area-bar-fill {
    height: 100%;
    background: var(--vh-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ——— Forms ——— */
.vh-app .form-control,
.vh-app .form-select {
    border-radius: var(--vh-radius-sm);
    border-color: var(--vh-border-strong);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}

.vh-app .form-control:focus,
.vh-app .form-select:focus {
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 3px var(--vh-accent-muted);
}

.vh-app .form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--vh-text);
    margin-bottom: 0.35rem;
}

.vh-app .input-group-text {
    background: var(--vh-bg);
    border-color: var(--vh-border-strong);
    color: var(--vh-muted);
}

/* ——— Alerts ——— */
.vh-alert {
    border-radius: var(--vh-radius-sm);
    border-width: 1px;
    font-size: 0.9rem;
}

.vh-alert--success {
    background: #f4f9f6;
    border-color: #c5d9ce;
    color: var(--vh-accent);
}

.vh-alert--danger {
    background: #fafafa;
    border-color: #e5e5e5;
    color: #991b1b;
}

/* ——— Comments & timeline ——— */
.comment-bubble {
    background: var(--vh-bg);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-sm);
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--vh-accent);
}

.timeline-item {
    position: relative;
    padding-left: 1.25rem;
    padding-bottom: 1rem;
    border-left: 1px solid var(--vh-border);
    margin-left: 0.35rem;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vh-accent);
}

/* Detalle de tarea */
.vh-task-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--vh-muted);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
}

.vh-task-back:hover {
    color: var(--vh-accent);
}

.vh-task-hero {
    padding: 1.5rem 1.5rem 1.25rem;
}

.vh-task-hero__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--vh-border);
}

.vh-task-hero__id {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vh-muted);
    margin-bottom: 0.35rem;
}

.vh-task-hero__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vh-black);
    line-height: 1.25;
}

.vh-task-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.vh-task-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: var(--vh-radius-lg);
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
}

.vh-task-action-bar__info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: min(100%, 18rem);
}

.vh-task-action-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #1d4ed8;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.vh-task-action-bar__title {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a8a;
}

.vh-task-action-bar__text {
    margin: 0;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.45;
}

.vh-task-action-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.vh-task-action-bar__approve-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: min(100%, 16rem);
}

.vh-task-action-bar__comment-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.vh-task-action-bar__comment {
    font-size: 0.8125rem;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    resize: vertical;
    min-height: 2.5rem;
}

.vh-task-action-bar__comment:focus {
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 3px var(--vh-accent-muted);
}

.vh-task-action-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-task-action-bar__btn:hover {
    transform: translateY(-1px);
}

.vh-task-action-bar__btn--approve {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}

.vh-task-action-bar__btn--approve:hover {
    background: #15803d;
}

.vh-task-action-bar__btn--correct {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.08);
}

.vh-task-action-bar__btn--correct:hover {
    background: #fef2f2;
}

.vh-task-reopen {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--vh-border);
    box-shadow: var(--vh-shadow-md);
}

.vh-task-reopen__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, var(--vh-accent-muted) 0%, var(--vh-surface) 42%);
    border-left: 4px solid var(--vh-accent);
}

.vh-task-reopen__info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 16rem;
    min-width: 0;
}

.vh-task-reopen__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--vh-radius);
    background: var(--vh-surface);
    color: var(--vh-accent);
    font-size: 1.05rem;
    box-shadow: var(--vh-shadow);
    flex-shrink: 0;
}

.vh-task-reopen__title {
    margin: 0 0 0.2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--vh-text);
}

.vh-task-reopen__text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--vh-muted);
    line-height: 1.45;
}

.vh-task-reopen__text strong {
    color: var(--vh-accent);
    font-weight: 600;
}

.vh-task-reopen__form {
    flex-shrink: 0;
}

.vh-task-reopen__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--vh-radius);
}

.vh-task-meta--past-due .vh-task-meta__value {
    color: #b91c1c;
    font-weight: 700;
}

.vh-task-meta--past-due {
    border-color: #fecaca;
    background: #fef2f2;
}

.vh-task-meta--due-today .vh-task-meta__value {
    color: #c2410c;
    font-weight: 700;
}

.vh-task-meta--due-today {
    border-color: #fed7aa;
    background: #fff7ed;
}

.vh-task-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .vh-task-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .vh-task-meta-grid {
        grid-template-columns: 1fr;
    }

    .vh-task-reopen__body {
        flex-direction: column;
        align-items: stretch;
    }

    .vh-task-reopen__btn {
        width: 100%;
        justify-content: center;
    }

    .vh-task-approvals__row {
        flex-direction: column;
        align-items: stretch;
    }

    .vh-task-approvals__finalize-form {
        margin-left: 0;
    }

    .vh-task-approvals__finalize-btn {
        width: 100%;
        justify-content: center;
    }
}

.vh-task-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--vh-bg);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-sm);
}

.vh-task-meta__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.vh-task-meta__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.vh-task-meta__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vh-muted);
}

.vh-task-meta__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--vh-black);
    line-height: 1.3;
    word-break: break-word;
}

.vh-task-meta__sub {
    font-size: 0.75rem;
    color: var(--vh-muted);
    font-weight: 400;
}

.vh-task-approvals {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--vh-border);
}

.vh-task-approvals__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.vh-task-approvals__pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vh-task-approvals__finalize-form {
    flex-shrink: 0;
    margin-left: auto;
}

.vh-task-approvals__finalize-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: var(--vh-radius);
    background: #dc2626;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-task-approvals__finalize-btn:hover {
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.vh-task-approval-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 100px;
    background: var(--vh-white);
    border: 1px solid var(--vh-border);
    color: var(--vh-muted);
}

.vh-task-approval-pill.is-done {
    background: var(--vh-accent-muted);
    border-color: transparent;
    color: var(--vh-accent);
}

.vh-task-description {
    padding: 1.25rem 1.5rem;
}

.vh-task-description__heading {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vh-muted);
}

.vh-task-description__body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--vh-text);
    margin: 0;
}

/* Panel gestión admin en tarea */
.vh-task-admin {
    padding: 1.35rem 1.5rem;
}

.vh-task-admin__header {
    margin-bottom: 1.25rem;
}

.vh-task-admin__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vh-task-admin__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--vh-muted);
}

.vh-field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vh-muted);
    margin-bottom: 0.4rem;
}

.vh-field-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem;
    background: var(--vh-bg);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-sm);
}

.vh-field-box > i {
    color: var(--vh-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vh-field-box--textarea {
    align-items: flex-start;
    padding-top: 0.65rem;
}

.vh-field-box--textarea > i {
    margin-top: 0.35rem;
}

.vh-field-box .form-select,
.vh-field-box .form-control {
    background: transparent;
    padding-left: 0;
}

.vh-task-admin__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--vh-radius-sm);
    background: var(--vh-accent);
    color: var(--vh-white);
    font-weight: 600;
    font-family: var(--vh-font);
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-task-admin__submit:hover {
    background: var(--vh-accent-hover);
}

.vh-task-admin__divider {
    height: 1px;
    background: var(--vh-border);
    margin: 1.25rem 0;
}

.vh-assignee-picker {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vh-assignee-picker__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 2rem;
    align-items: center;
}

.vh-assignee-picker__empty {
    font-size: 0.8125rem;
    color: var(--vh-muted);
}

.vh-assignee-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem 0.3rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background var(--vh-transition), color var(--vh-transition);
}

.vh-assignee-chip:hover {
    background: var(--vh-accent);
    color: #fff;
}

.vh-assignee-chip i {
    font-size: 0.65rem;
    opacity: 0.85;
}

.vh-assignee-picker__search .form-control {
    font-size: 0.875rem;
}

.vh-assignee-picker__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-sm);
    background: var(--vh-white);
}

.vh-assignee-picker__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: var(--vh-radius-sm);
    cursor: pointer;
    transition: background var(--vh-transition);
    user-select: none;
}

.vh-assignee-picker__option:hover {
    background: var(--vh-bg);
}

.vh-assignee-picker__option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.vh-assignee-picker__box {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--vh-border);
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    font-size: 0.85rem;
    transition: border-color var(--vh-transition), background var(--vh-transition), color var(--vh-transition);
}

.vh-assignee-picker__option input:checked + .vh-assignee-picker__box {
    background: var(--vh-accent);
    border-color: var(--vh-accent);
    color: #fff;
}

.vh-assignee-picker__option input:focus-visible + .vh-assignee-picker__box {
    outline: 2px solid var(--vh-accent);
    outline-offset: 2px;
}

.vh-assignee-picker__name {
    font-size: 0.9375rem;
    color: var(--vh-text);
}

.vh-assignee-picker__hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--vh-muted);
}

/* Feed de actividad */
.vh-activity-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vh-activity-card__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vh-border);
}

.vh-activity-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--vh-black);
}

.vh-activity-card__subtitle {
    font-size: 0.8125rem;
    color: var(--vh-muted);
}

/* Layout detalle tarea: columna derecha fija al scroll */
.vh-task-layout {
    align-items: flex-start;
}

.vh-task-layout__main {
    min-width: 0;
}

.vh-task-layout__aside {
    min-width: 0;
}

.vh-activity-sticky {
    position: sticky;
    top: 5.25rem;
    z-index: 10;
}

.vh-activity-sticky .vh-activity-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 6.5rem);
}

.vh-activity-sticky .vh-activity-card__body {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .vh-activity-sticky {
        position: static;
        max-height: none;
        margin-bottom: 1rem;
    }

    .vh-activity-sticky .vh-activity-card {
        max-height: none;
    }

}

.vh-activity-card__body {
    padding: 0.75rem 1rem 0.5rem;
    max-height: 420px;
    overflow-y: auto;
}

.vh-activity-sticky .vh-activity-card__body {
    max-height: none;
}

.vh-activity-card__body--full {
    max-height: none;
    padding: 1rem 1.25rem 1.25rem;
}

.vh-activity-card__footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--vh-border);
}

.vh-activity-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vh-accent);
    text-decoration: none;
}

.vh-activity-card__link:hover {
    color: var(--vh-accent-hover);
    text-decoration: underline;
}

.vh-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vh-activity-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--vh-border);
}

.vh-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.vh-activity-item__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.vh-activity-item__body {
    flex: 1;
    min-width: 0;
}

.vh-activity-item__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.vh-activity-item__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--vh-black);
}

.vh-activity-item__time {
    font-size: 0.6875rem;
    color: var(--vh-muted);
    white-space: nowrap;
}

.vh-activity-item__user {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--vh-muted);
}

.vh-activity-item__message {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--vh-text);
}

.vh-activity-item__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.vh-activity-item__chip,
.vh-activity-item__status {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: var(--vh-bg);
    color: var(--vh-text);
    border: 1px solid var(--vh-border);
    line-height: 1.3;
}

.vh-activity-feed__empty {
    margin: 0;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--vh-muted);
}

/* Dashboard — bloque secundario (usuarios al final) */
.vh-card-secondary {
    opacity: 0.95;
}

.vh-card-secondary .card-header {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.vh-user-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vh-user-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vh-black);
    letter-spacing: -0.02em;
}

.vh-user-stat__label {
    font-size: 0.75rem;
    color: var(--vh-muted);
    font-weight: 500;
}

/* Filter pills */
.vh-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.vh-filter-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid var(--vh-border);
    background: var(--vh-white);
    color: var(--vh-muted);
    text-decoration: none;
    transition: all var(--vh-transition);
}

.vh-filter-pill:hover {
    border-color: var(--vh-border-strong);
    color: var(--vh-black);
}

.vh-filter-pill.active {
    background: var(--vh-black);
    border-color: var(--vh-black);
    color: var(--vh-white);
}

.vh-filter-pill--priority.vh-filter-pill--baja.active {
    background: #525252;
    border-color: #525252;
}

.vh-filter-pill--priority.vh-filter-pill--media.active {
    background: #92400e;
    border-color: #92400e;
}

.vh-filter-pill--priority.vh-filter-pill--urgente.active {
    background: #b91c1c;
    border-color: #b91c1c;
}

.vh-task-list-toolbar {
    padding: 1.15rem 1.25rem;
}

.vh-task-list-toolbar__form .vh-field-box {
    padding: 0.45rem 0.75rem;
}

.vh-task-list-toolbar__form .vh-field-box .form-control {
    font-size: 0.875rem;
}

.vh-area-extra,
.vh-cm-fields {
    padding: 0.25rem 0 0.5rem;
    margin-bottom: 0.25rem;
    border-left: 3px solid var(--vh-accent, #3d4f3f);
    padding-left: 1rem;
}

.vh-attachment-list__item + .vh-attachment-list__item {
    margin-top: 0.5rem;
}

.vh-attachment-list__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-sm);
    background: var(--vh-white);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-attachment-list__link:hover {
    border-color: var(--vh-accent);
    box-shadow: var(--vh-shadow-md);
    color: inherit;
}

.vh-attachment-list__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vh-attachment-list__name {
    display: block;
    font-weight: 600;
    color: var(--vh-text);
    word-break: break-word;
}

.vh-attachment-list__meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--vh-muted);
    margin-top: 0.15rem;
}

.vh-attachment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vh-attachment-card {
    position: relative;
    width: 132px;
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-sm);
    background: var(--vh-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vh-attachment-card__delete-form {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
}

.vh-attachment-card__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #b91c1c;
    box-shadow: var(--vh-shadow);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background var(--vh-transition), color var(--vh-transition), transform var(--vh-transition);
}

.vh-attachment-card__delete:hover {
    background: #fef2f2;
    color: #991b1b;
    transform: scale(1.04);
}

.vh-attachment-card__thumb {
    display: block;
    width: 100%;
    height: 96px;
    padding: 0;
    margin: 0;
    border: none;
    background: #eef0ee;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.vh-attachment-card__thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 96px;
    object-fit: cover;
    display: block;
    transition: transform var(--vh-transition);
}

.vh-attachment-card__thumb:hover img {
    transform: scale(1.05);
}

.vh-attachment-card__zoom {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--vh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.vh-attachment-card__file {
    width: 100%;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vh-accent-muted);
    color: var(--vh-accent);
    font-size: 1.75rem;
    text-decoration: none;
    transition: background var(--vh-transition);
}

.vh-attachment-card__file:hover {
    background: var(--vh-accent);
    color: #fff;
}

.vh-attachment-card__file--locked {
    cursor: not-allowed;
    color: #9ca3af;
    background: #f3f4f6;
}

.vh-attachment-card__name:not(a):not(button) {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--vh-muted);
}

.vh-attachment-card__body {
    padding: 0.5rem 0.55rem 0.6rem;
}

.vh-attachment-card__name {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--vh-text);
    text-decoration: none;
    word-break: break-word;
    line-height: 1.3;
    text-align: left;
}

.vh-attachment-card__name--btn {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.vh-attachment-card__name:hover,
.vh-attachment-card__name--btn:hover {
    color: var(--vh-accent);
}

.vh-attachment-card__meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--vh-muted);
    margin-top: 0.25rem;
    line-height: 1.35;
}

.vh-attachment-modal__body {
    position: relative;
    padding: 0.75rem 3.25rem;
    background: #f3f4f2;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vh-attachment-modal__header {
    align-items: center;
    gap: 0.75rem;
}

.vh-attachment-modal__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.vh-attachment-modal__counter {
    font-size: 0.75rem;
    color: var(--vh-muted);
    font-weight: 600;
}

.vh-attachment-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--vh-accent);
    box-shadow: var(--vh-shadow-md);
    cursor: pointer;
    z-index: 2;
    transition: background var(--vh-transition), transform var(--vh-transition);
}

.vh-attachment-modal__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.vh-attachment-modal__nav--prev {
    left: 0.75rem;
}

.vh-attachment-modal__nav--next {
    right: 0.75rem;
}

.vh-attachment-modal__img {
    max-width: 100%;
    max-height: min(70vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--vh-radius-sm);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.vh-attachment-modal .modal-footer {
    justify-content: space-between;
}

/* ——— Login (modern split) ——— */
.login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(139, 90, 43, 0.16), transparent 55%),
        radial-gradient(900px 500px at 100% 110%, rgba(20, 17, 15, 0.08), transparent 50%),
        linear-gradient(180deg, #f8f4ef 0%, #efe7df 100%);
    font-family: var(--vh-font);
    color: var(--vh-text);
    overflow-x: hidden;
}

.login-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.login-ambient__orb--a {
    width: 280px;
    height: 280px;
    top: 8%;
    left: -4%;
    background: rgba(107, 68, 35, 0.28);
}

.login-ambient__orb--b {
    width: 340px;
    height: 340px;
    right: -6%;
    bottom: 4%;
    background: rgba(20, 17, 15, 0.12);
}

.login-ambient__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 17, 15, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 17, 15, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 25%, transparent 78%);
    opacity: 0.7;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100% - 2rem));
    margin: 2rem auto;
}

.login-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 30px 80px rgba(20, 17, 15, 0.14),
        0 8px 24px rgba(107, 68, 35, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2.6rem 2.5rem 2.35rem;
    color: #fff;
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(139, 90, 43, 0.45), transparent 55%),
        radial-gradient(700px 360px at 100% 100%, rgba(107, 68, 35, 0.35), transparent 50%),
        linear-gradient(160deg, #1c1612 0%, #0f0d0b 55%, #171310 100%);
    overflow: hidden;
}

.login-brand__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -40px;
    top: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 90, 43, 0.55), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.login-brand__top,
.login-brand__body,
.login-brand__foot {
    position: relative;
    z-index: 1;
}

.login-brand__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, #8b5a2b 0%, #6b4423 100%);
    box-shadow: 0 10px 24px rgba(107, 68, 35, 0.35);
}

.login-brand__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.login-brand__eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 205, 170, 0.85);
}

.login-brand__title {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: #fff;
}

.login-brand__title span {
    color: #d2a679;
}

.login-brand__lead {
    margin: 0 0 1.75rem;
    max-width: 28ch;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.login-brand__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.login-brand__points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86);
}

.login-brand__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #f0d7b8;
    background: rgba(139, 90, 43, 0.28);
    border: 1px solid rgba(210, 166, 121, 0.28);
}

.login-brand__check svg {
    width: 14px;
    height: 14px;
}

.login-brand__foot {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-brand__avatars {
    display: flex;
    align-items: center;
}

.login-brand__avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #171310;
    background: linear-gradient(145deg, #a06a3c, #6b4423);
}

.login-brand__avatars span:nth-child(2) {
    margin-left: -8px;
    background: linear-gradient(145deg, #3a312b, #1c1612);
}

.login-brand__avatars span:nth-child(3) {
    margin-left: -8px;
    background: linear-gradient(145deg, #d2a679, #8b5a2b);
}

.login-brand__foot p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.75rem 2.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 252, 248, 0.96) 100%);
}

.login-form-panel__intro {
    margin-bottom: 1.65rem;
}

.login-form-panel__eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vh-accent);
}

.login-form-panel h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.55rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vh-black);
}

.login-form-panel__sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--vh-muted);
}

.login-alert {
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    color: #7a1f1f;
    background: #f8eaea;
    border: 1px solid #ebc9c9;
}

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

.login-field__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #3d3833;
}

.login-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.login-field__icon {
    position: absolute;
    left: 0.95rem;
    width: 18px;
    height: 18px;
    color: #9a8f84;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-field__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.login-field__input {
    width: 100%;
    height: 52px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid #ddd4cb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--vh-text);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field__input::placeholder {
    color: #b0a69c;
}

.login-field__input:hover {
    border-color: #c9b8a6;
}

.login-field__input:focus {
    border-color: var(--vh-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(107, 68, 35, 0.14);
}

.login-field__control:focus-within .login-field__icon {
    color: var(--vh-accent);
}

.login-submit {
    margin-top: 0.35rem;
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5a2b 0%, #6b4423 55%, #59371d 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(107, 68, 35, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.18s ease;
}

.login-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(107, 68, 35, 0.34);
}

.login-submit:hover svg {
    transform: translateX(3px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-form-panel__footnote {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a3988d;
}

/* Mobile */
@media (max-width: 991.98px) {
    .vh-sidebar {
        transform: translateX(-100%);
    }

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

    .vh-sidebar__brand {
        padding: 1rem 1rem 0.85rem;
    }

    .vh-brand {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .vh-sidebar__label {
        padding-top: 0.85rem;
    }

    .vh-sidebar__footer {
        padding: 0.65rem 0.75rem 0.85rem;
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    }

    .vh-user {
        padding: 0.4rem 0.75rem 0.45rem;
    }

    .vh-sidebar__logout--desktop {
        display: none !important;
    }

    .vh-profile-modal__logout-wrap {
        display: block;
    }

    .vh-main {
        margin-left: 0;
    }

    .vh-topbar__toggle {
        display: flex;
    }

    .login-shell {
        width: min(480px, calc(100% - 1.25rem));
        margin: 1.25rem auto;
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 22px;
    }

    .login-brand {
        padding: 1.5rem 1.4rem 1.35rem;
        gap: 1rem;
    }

    .login-brand__eyebrow,
    .login-brand__lead,
    .login-brand__points,
    .login-brand__foot {
        display: none;
    }

    .login-brand__title {
        margin: 0;
        font-size: 1.55rem;
    }

    .login-form-panel {
        padding: 1.75rem 1.4rem 1.85rem;
    }
}

@media (max-width: 575.98px) {
    .vh-content {
        padding: 1rem;
    }

    .vh-topbar {
        padding: 0.85rem 1rem;
    }
}

/* @mentions */
.vh-nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #6b4423;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.vh-mention {
    display: inline;
    padding: 0.05rem 0.35rem;
    border-radius: 6px;
    background: rgba(107, 68, 35, 0.12);
    color: #5a3820;
    font-weight: 600;
}

.vh-mention-editor {
    position: relative;
}

.vh-mention-editor__hint {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--vh-muted);
}

.vh-mention-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 30;
    max-height: 14rem;
    overflow: auto;
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 26, 23, 0.12);
}

.vh-mention-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-mention-dropdown__item:last-child {
    border-bottom: none;
}

.vh-mention-dropdown__item:hover,
.vh-mention-dropdown__item:focus {
    background: #f5efe8;
    outline: none;
}

.vh-mention-dropdown__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #6b4423;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.vh-mention-dropdown__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vh-mention-dropdown__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vh-black);
}

.vh-mention-dropdown__role {
    font-size: 0.75rem;
    color: var(--vh-muted);
}

.vh-mentions-panel {
    padding: 1.15rem 1.25rem;
    border: 1px solid #e6d8c8;
    background: linear-gradient(135deg, #faf6f1 0%, #ffffff 55%);
    border-radius: 18px;
}

.vh-mentions-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vh-mentions-panel__header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
}

.vh-mentions-panel__dismiss {
    border: none;
    background: transparent;
    color: var(--vh-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vh-mentions-panel__dismiss:hover {
    color: var(--vh-accent-hover);
}

.vh-mentions-panel__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.vh-mentions-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #8b5a2b, #6b4423);
    color: #fff;
    font-size: 1.15rem;
}

.vh-mentions-panel__title {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 700;
}

.vh-mentions-panel__subtitle {
    font-size: 0.8125rem;
    color: var(--vh-muted);
}

.vh-mentions-panel__badge {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--vh-accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.75rem;
    text-align: center;
}

.vh-mentions-panel__empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vh-muted);
}

.vh-mentions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-mentions-list__item {
    border-radius: 12px;
    border: 1px solid var(--vh-border);
    background: #fff;
    transition: border-color var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-mentions-list__item.is-unread {
    border-color: #c4b5fd;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.vh-mentions-list__link {
    display: block;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
}

.vh-mentions-list__link:hover {
    background: #faf5ff;
}

.vh-mentions-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.vh-mentions-list__new {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vh-mentions-list__task {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vh-black);
    margin-bottom: 0.2rem;
}

.vh-mentions-list__excerpt {
    display: block;
    font-size: 0.8125rem;
    color: var(--vh-muted);
    line-height: 1.45;
}

.comment-body .vh-mention {
    font-size: inherit;
}

/* Campana: alertas de entrega pendiente */
@keyframes vh-notify-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    8% {
        transform: rotate(12deg);
    }
    16% {
        transform: rotate(-10deg);
    }
    24% {
        transform: rotate(8deg);
    }
    32% {
        transform: rotate(0deg);
    }
}

.vh-notify {
    position: relative;
}

.vh-notify__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    background: var(--vh-white);
    color: var(--vh-text);
    cursor: pointer;
    transition: background var(--vh-transition), border-color var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-notify__trigger:hover {
    background: #fff7f7;
    border-color: #fecaca;
}

.vh-notify__trigger[aria-expanded="true"] {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
}

.vh-notify__trigger .bi-bell {
    font-size: 1.125rem;
}

.vh-notify:has(.vh-notify__badge) .vh-notify__trigger .bi-bell {
    animation: vh-notify-ring 4s ease-in-out infinite;
    transform-origin: top center;
}

.vh-notify__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--vh-surface);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.vh-notify__panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    border-radius: 16px;
    border: 1px solid #f3d0d0;
    background: #fff;
    box-shadow:
        0 24px 48px rgba(15, 26, 23, 0.12),
        0 0 0 1px rgba(220, 38, 38, 0.04);
    overflow: hidden;
    z-index: 1200;
}

.vh-notify__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
    border-bottom: 1px solid #fee2e2;
}

.vh-notify__panel-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b91c1c;
}

.vh-notify__panel-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--vh-black);
}

.vh-notify__mark-all {
    border: none;
    background: transparent;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.vh-notify__mark-all:hover {
    color: #991b1b;
}

.vh-notify__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: 22rem;
    overflow-y: auto;
}

.vh-notify__item {
    border-radius: 12px;
    margin-bottom: 0.25rem;
}

.vh-notify__item:last-child {
    margin-bottom: 0;
}

.vh-notify__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: background var(--vh-transition);
}

.vh-notify__link:hover {
    background: #fff7f7;
}

.vh-notify__item.is-unread .vh-notify__link {
    background: #fffafa;
}

.vh-notify__item.is-unread .vh-notify__link:hover {
    background: #fff1f1;
}

.vh-notify__item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.vh-notify__item.is-overdue .vh-notify__item-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.vh-notify__item.is-today .vh-notify__item-icon {
    background: #ffedd5;
    color: #c2410c;
}

.vh-notify__item-body {
    flex: 1;
    min-width: 0;
}

.vh-notify__item-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.vh-notify__item-flag {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b45309;
}

.vh-notify__item.is-overdue .vh-notify__item-flag {
    color: #b91c1c;
}

.vh-notify__item-new {
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vh-notify__item-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--vh-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vh-notify__item-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--vh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vh-notify__item-chevron {
    flex-shrink: 0;
    color: #d1d5db;
    font-size: 0.75rem;
}

.vh-notify__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--vh-muted);
    font-size: 0.8125rem;
}

.vh-notify__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.25rem;
}

.vh-notify__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--vh-border);
    background: #fafafa;
    text-align: center;
}

.vh-notify__footer-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--vh-accent);
    text-decoration: none;
}

.vh-notify__footer-link:hover {
    color: var(--vh-accent-hover);
    text-decoration: underline;
}

/* ——— Modern Dashboard ——— */
.dash {
    display: grid;
    gap: 1.25rem;
}

.dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem 1.25rem;
    padding: 1.35rem 1.45rem;
    border-radius: 22px;
    background:
        radial-gradient(680px 220px at 100% 0%, rgba(139, 90, 43, 0.14), transparent 55%),
        linear-gradient(145deg, #1c1612 0%, #14110f 58%, #1a1512 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(20, 17, 15, 0.16);
}

.dash-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(210, 166, 121, 0.9);
}

.dash-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.dash-hero__sub {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.68);
}

.dash-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.dash-chip strong {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.75rem;
}

.dash-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.dash-chip--warn {
    border-color: rgba(210, 166, 121, 0.35);
    background: rgba(139, 90, 43, 0.28);
}

.dash-chip--solid {
    background: linear-gradient(135deg, #8b5a2b, #6b4423);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(107, 68, 35, 0.35);
}

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

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

.dash-kpi {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1.1rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(230, 224, 218, 0.95);
    box-shadow: 0 10px 28px rgba(20, 17, 15, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dash-kpi:hover {
    transform: translateY(-2px);
    border-color: #d8c7b5;
    box-shadow: 0 16px 34px rgba(20, 17, 15, 0.08);
    color: inherit;
}

.dash-kpi__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    background: #f1ebe4;
    color: #6b4423;
}

.dash-kpi--accent .dash-kpi__icon { background: rgba(107, 68, 35, 0.14); color: #6b4423; }
.dash-kpi--warn .dash-kpi__icon { background: #f5efe2; color: #8a6418; }
.dash-kpi--danger .dash-kpi__icon { background: #f8ecec; color: #9b2c2c; }
.dash-kpi--ok .dash-kpi__icon { background: #edf5ef; color: #2f6b45; }
.dash-kpi--neutral .dash-kpi__icon { background: #efebe7; color: #4d463f; }

.dash-kpi__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vh-muted);
}

.dash-kpi__value {
    display: block;
    margin-top: 0.1rem;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--vh-black);
}

.dash-kpi__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #9a9087;
}

.dash-kpi__arrow {
    color: #c2b5a8;
    font-size: 0.95rem;
}

.dash-grid {
    display: grid;
    gap: 0.9rem;
}

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

.dash-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 224, 218, 0.95);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(20, 17, 15, 0.04);
    padding: 1.15rem 1.2rem 1.2rem;
}

.dash-panel--flush {
    padding: 0;
    overflow: hidden;
}

.dash-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-panel__head--pad {
    padding: 1.15rem 1.2rem 0;
    margin-bottom: 0.85rem;
}

.dash-panel__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vh-black);
}

.dash-panel__sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--vh-muted);
}

.dash-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--vh-accent);
    text-decoration: none;
}

.dash-link:hover {
    color: var(--vh-accent-hover);
    text-decoration: underline;
}

.dash-status-list,
.dash-area-list,
.dash-actions,
.dash-task-list {
    display: grid;
    gap: 0.7rem;
}

.dash-status,
.dash-action,
.dash-task-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    border: 1px solid #ebe4dc;
    background: #fcfbf9;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dash-status:hover,
.dash-action:hover,
.dash-task-item:hover {
    background: #fff;
    border-color: #d9c8b5;
    transform: translateY(-1px);
    color: inherit;
}

.dash-status__icon,
.dash-action__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #efe7de;
    color: #6b4423;
    flex-shrink: 0;
}

.dash-status--accent .dash-status__icon { background: rgba(107,68,35,.14); }
.dash-status--warn .dash-status__icon { background: #f5efe2; color: #8a6418; }
.dash-status--ok .dash-status__icon { background: #edf5ef; color: #2f6b45; }

.dash-status__body {
    flex: 1;
    min-width: 0;
}

.dash-status__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
}

.dash-status__row span {
    color: var(--vh-muted);
    white-space: nowrap;
}

.dash-status__track,
.dash-area__track {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: #ece5dd;
    overflow: hidden;
}

.dash-status__fill,
.dash-area__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5a2b, #6b4423);
}

.dash-area__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.dash-area__name {
    color: #3d3833;
    font-weight: 600;
}

.dash-action__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-action__copy strong {
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.dash-action__copy small {
    color: var(--vh-muted);
    font-size: 0.75rem;
}

.dash-action > .bi-chevron-right {
    color: #c2b5a8;
}

.dash-action--primary {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.12), rgba(255,255,255,0.9));
    border-color: #e0ceb8;
}

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

.dash-team {
    padding: 1rem 0.9rem;
    border-radius: 14px;
    border: 1px solid #ebe4dc;
    background: #fcfbf9;
    text-align: center;
}

.dash-team__value {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--vh-black);
}

.dash-team__label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vh-muted);
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.dash-table th {
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94897e;
    background: #faf7f3;
    border-bottom: 1px solid #ebe4dc;
    white-space: nowrap;
}

.dash-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f0ebe5;
    font-size: 0.875rem;
    vertical-align: middle;
}

.dash-table__row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.dash-table__row:hover {
    background: #faf7f3;
}

.dash-table__title {
    font-weight: 600;
    color: var(--vh-black);
}

.dash-table__muted {
    color: var(--vh-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.dash-cards-mobile {
    display: none;
    gap: 0.7rem;
    padding: 0 1rem 1rem;
}

.dash-mobile-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid #ebe4dc;
    background: #fcfbf9;
    text-decoration: none;
    color: inherit;
}

.dash-mobile-card__top,
.dash-mobile-card__meta,
.dash-mobile-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.dash-mobile-card__meta,
.dash-mobile-card__foot {
    font-size: 0.78rem;
    color: var(--vh-muted);
}

.dash-mobile-card__top strong {
    font-size: 0.92rem;
    color: var(--vh-black);
}

.dash-task-item__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-task-item__main strong {
    font-size: 0.92rem;
}

.dash-task-item__main small {
    color: var(--vh-muted);
    font-size: 0.75rem;
}

.dash-empty {
    margin: 0;
    color: var(--vh-muted);
    font-size: 0.9rem;
}

.dash-empty--block {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 2rem 1rem;
    text-align: center;
}

.dash-empty--block i {
    font-size: 1.6rem;
    color: #b7a89a;
}

.dash-empty--block .dash-chip {
    color: #fff;
}

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

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

    .dash-table-wrap {
        display: none;
    }

    .dash-cards-mobile {
        display: grid;
    }

    .dash-hero {
        padding: 1.15rem 1.1rem;
    }

    .dash-hero__actions {
        width: 100%;
    }

    .dash-chip {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .dash-kpi-grid,
    .dash-kpi-grid--3,
    .dash-team-grid {
        grid-template-columns: 1fr;
    }

    .vh-content {
        padding: 1rem 1rem 1.5rem;
    }
}

/* ——— Tasks page ——— */
.tasks-page {
    display: grid;
    gap: 1.15rem;
}

.tasks-export.dash-panel {
    padding: 1.15rem 1.2rem 1.2rem;
}

.tasks-filters {
    display: grid;
    gap: 1.1rem;
}

.tasks-filters__group {
    display: grid;
    gap: 0.55rem;
}

.tasks-filters__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94897e;
}

.tasks-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tasks-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e4dbd1;
    background: #fcfbf9;
    color: #4d463f;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tasks-pill:hover {
    background: #fff;
    border-color: #d2c0ad;
    color: var(--vh-black);
    transform: translateY(-1px);
}

.tasks-pill.is-active {
    background: #14110f;
    border-color: #14110f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(20, 17, 15, 0.14);
}

.tasks-pill--urgente.is-active {
    background: #9b2c2c;
    border-color: #9b2c2c;
}

.tasks-pill--media.is-active {
    background: #8a6418;
    border-color: #8a6418;
}

.tasks-pill--baja.is-active {
    background: #5a6b58;
    border-color: #5a6b58;
}

.tasks-search {
    display: grid;
    gap: 0.95rem;
    padding-top: 0.25rem;
    border-top: 1px solid #efe8e0;
}

.tasks-search__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.tasks-search__submit {
    min-width: 8.5rem;
}

.tasks-search__submit .btn {
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
}

.tasks-search__clear a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vh-muted);
    text-decoration: none;
}

.tasks-search__clear a:hover {
    color: var(--vh-accent);
    text-decoration: underline;
}

.tasks-table__id {
    color: #9a9087;
    font-weight: 600;
    white-space: nowrap;
}

.tasks-table__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #dfd2c4;
    background: #fff;
    color: var(--vh-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.tasks-table__view:hover {
    background: var(--vh-accent);
    border-color: var(--vh-accent);
    color: #fff;
}

.tasks-cards-mobile {
    display: none;
}

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

    .tasks-search__submit {
        min-width: 0;
    }

    .tasks-table-wrap {
        display: none;
    }

    .tasks-cards-mobile {
        display: grid;
        gap: 0.7rem;
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .tasks-pills {
        gap: 0.4rem;
    }

    .tasks-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ——— Create task ——— */
.create-task {
    display: grid;
    gap: 1.15rem;
}

.create-task__alert {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid #ebc9c9;
    background: #f8eaea;
    color: #7a1f1f;
    font-size: 0.9rem;
}

.create-task__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.create-task__fields {
    display: grid;
    gap: 1rem;
}

.create-task__row {
    display: grid;
    gap: 0.9rem;
}

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

.create-task__field {
    display: grid;
    gap: 0.45rem;
}

.create-task__label {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #3d3833;
}

.create-task__input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    border: 1px solid #ddd4cb;
    border-radius: 14px;
    background: #fff;
    color: var(--vh-text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.create-task__input:hover {
    border-color: #c9b8a6;
}

.create-task__input:focus {
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 4px rgba(107, 68, 35, 0.14);
}

.create-task__textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.55;
}

.create-task__select-wrap {
    position: relative;
}

.create-task__select {
    appearance: none;
    padding-right: 2.4rem;
}

.create-task__select-wrap > i {
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9a8f84;
    pointer-events: none;
}

.create-task__hint {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--vh-muted);
    line-height: 1.4;
}

.create-task__side {
    display: grid;
    gap: 1rem;
}

.create-task__upload {
    display: grid;
    gap: 0.65rem;
}

.create-task__upload-box {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 1.25rem 1rem;
    border: 1.5px dashed #d7c8b7;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfaf7 0%, #f7f1ea 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.create-task__upload-box:hover {
    border-color: var(--vh-accent);
    background: #fff;
    transform: translateY(-1px);
}

.create-task__upload-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(107, 68, 35, 0.12);
    color: var(--vh-accent);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.create-task__upload-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vh-black);
}

.create-task__upload-sub {
    font-size: 0.78rem;
    color: var(--vh-muted);
}

.create-task__file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.create-task__upload {
    position: relative;
}

.create-task__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 224, 218, 0.95);
    box-shadow: 0 12px 28px rgba(20, 17, 15, 0.04);
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
}

.create-task__footer-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--vh-muted);
}

.create-task__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.create-task__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding-inline: 1.15rem;
    font-weight: 700;
}

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

    .create-task__row--2 {
        grid-template-columns: 1fr;
    }

    .create-task__footer {
        position: static;
    }

    .create-task__footer-actions {
        width: 100%;
    }

    .create-task__footer-actions .btn {
        flex: 1 1 auto;
    }
}

/* ——— Task show (detalle) ——— */
.task-show {
    display: grid;
    gap: 1.15rem;
}

.task-show__hero .dash-hero__title {
    margin-bottom: 0.65rem;
}

.task-show__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.task-show__badges .vh-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.task-show__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.task-show__main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.task-show__aside {
    min-width: 0;
}

.task-show__overview.dash-panel {
    padding: 0;
    overflow: hidden;
}

.task-show__overview .dash-panel__head--pad {
    padding: 1.15rem 1.2rem 0;
}

.task-show__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem 1.2rem 1.15rem;
    border-top: 1px solid #efe8e0;
}

.task-show__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.65rem;
    border-bottom: 1px solid #f3ede6;
}

.task-show__meta:nth-last-child(-n+2) {
    border-bottom: none;
}

.task-show__meta-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f5efe8;
    color: #6b4423;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
}

.task-show__meta-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.task-show__meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9a9087;
}

.task-show__meta-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--vh-black);
    line-height: 1.35;
    word-break: break-word;
}

.task-show__meta--past-due .task-show__meta-value {
    color: #9b2c2c;
}

.task-show__meta--past-due .task-show__meta-icon {
    background: #f8ecec;
    color: #9b2c2c;
}

.task-show__meta--due-today .task-show__meta-value {
    color: #8a6418;
}

.task-show__meta--due-today .task-show__meta-icon {
    background: #f5efe2;
    color: #8a6418;
}

.task-show__approvals {
    padding: 1rem 1.2rem 1.15rem;
    border-top: 1px solid #efe8e0;
    background: #fcfbf9;
}

.task-show__approvals-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.task-show__approval-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.task-show__approval-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4dbd1;
    color: #7a7268;
}

.task-show__approval-pill.is-done {
    background: rgba(107, 68, 35, 0.1);
    border-color: rgba(107, 68, 35, 0.2);
    color: #6b4423;
}

.task-show__approval-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid #d8c7b5;
    background:
        linear-gradient(135deg, rgba(107, 68, 35, 0.08) 0%, rgba(255, 255, 255, 0.95) 55%),
        #fcfbf9;
    box-shadow: 0 10px 26px rgba(107, 68, 35, 0.08);
}

.task-show__approval-bar-info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 18rem;
    min-width: 0;
}

.task-show__approval-bar-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5a2b, #6b4423);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.task-show__approval-bar-title {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d2f24;
}

.task-show__approval-bar-text {
    margin: 0;
    font-size: 0.82rem;
    color: #6b6258;
    line-height: 1.45;
}

.task-show__approval-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: flex-end;
}

.task-show__approval-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: min(100%, 16rem);
}

.task-show__approval-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a7268;
}

.task-show__approval-comment {
    font-size: 0.84rem;
    border-radius: 10px;
    border: 1px solid #dfd2c4;
    resize: vertical;
    min-height: 2.5rem;
}

.task-show__approval-comment:focus {
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 3px rgba(107, 68, 35, 0.12);
}

.task-show__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: none;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--vh-font);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.task-show__btn:hover {
    transform: translateY(-1px);
}

.task-show__btn--approve {
    background: linear-gradient(135deg, #2f6b45, #245a38);
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 107, 69, 0.22);
}

.task-show__btn--approve:hover {
    background: linear-gradient(135deg, #245a38, #1d4a2e);
}

.task-show__btn--correct {
    background: #fff;
    color: #9b2c2c;
    border: 1px solid #ebc9c9;
    box-shadow: 0 4px 12px rgba(155, 44, 44, 0.08);
}

.task-show__btn--correct:hover {
    background: #f8ecec;
}

.task-show__btn--finalize {
    background: #9b2c2c;
    color: #fff;
    box-shadow: 0 6px 16px rgba(155, 44, 44, 0.2);
}

.task-show__btn--finalize:hover {
    background: #7a1f1f;
}

.task-show__btn--outline {
    background: #fff;
    color: #6b4423;
    border: 1px solid #d8c7b5;
}

.task-show__btn--outline:hover {
    background: #f5efe8;
    border-color: #c4a88a;
}

.task-show__btn--primary {
    background: linear-gradient(135deg, #8b5a2b, #6b4423);
    color: #fff;
    box-shadow: 0 10px 22px rgba(107, 68, 35, 0.28);
}

.task-show__btn--primary:hover {
    background: linear-gradient(135deg, #6b4423, #5a3820);
}

.task-show__btn--success {
    background: linear-gradient(135deg, #2f6b45, #245a38);
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 107, 69, 0.22);
}

.task-show__btn--block {
    width: 100%;
}

.task-show__reopen {
    padding: 0;
    overflow: hidden;
}

.task-show__reopen-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(90deg, rgba(107, 68, 35, 0.08) 0%, #fff 48%);
    border-left: 4px solid #6b4423;
}

.task-show__reopen-info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 16rem;
}

.task-show__reopen-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #fff;
    color: #6b4423;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(20, 17, 15, 0.06);
}

.task-show__reopen-title {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--vh-black);
}

.task-show__reopen-text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--vh-muted);
    line-height: 1.45;
}

.task-show__reopen-text strong {
    color: #6b4423;
}

.task-show__description.dash-panel,
.task-show__attachments.dash-panel,
.task-show__admin.dash-panel {
    padding: 0;
    overflow: hidden;
}

.task-show__description .dash-panel__head--pad,
.task-show__attachments .dash-panel__head--pad,
.task-show__admin .dash-panel__head--pad {
    padding: 1.15rem 1.2rem 0;
}

.task-show__description-body {
    padding: 0.35rem 1.2rem 1.2rem;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--vh-text);
}

.task-show__attachments .vh-attachment-grid,
.task-show__attachments .task-show__empty,
.task-show__attachments .task-show__upload {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.task-show__attachments .vh-attachment-grid {
    padding-top: 0.35rem;
}

.task-show__attachments .task-show__upload {
    padding-bottom: 1.2rem;
}

.task-show__empty {
    margin: 0;
    padding: 0.35rem 1.2rem 1.2rem;
    font-size: 0.88rem;
    color: var(--vh-muted);
}

.task-show__upload {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #efe8e0;
}

.task-show__upload-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.task-show__upload-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a9087;
}

.task-show__upload-hint {
    margin: 0.45rem 0 0;
    font-size: 0.76rem;
    color: var(--vh-muted);
}

.task-show__admin .vh-task-admin__form {
    padding: 0.35rem 1.2rem 1.2rem;
}

.task-show__action-card {
    padding: 1.1rem 1.2rem;
}

.task-show__action-card-text {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--vh-muted);
}

.task-show__comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #efe8e0;
}

.task-show__comments-body {
    padding: 1rem 1.2rem 1.2rem;
}

.task-show__comment {
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: #faf7f3;
    border: 1px solid #efe8e0;
    border-left: 3px solid #6b4423;
}

.task-show__comment:last-of-type {
    margin-bottom: 0;
}

.task-show__comment-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    color: var(--vh-muted);
}

.task-show__comment-head strong {
    color: var(--vh-black);
    font-size: 0.84rem;
}

.task-show__comment-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #efe8e0;
}

.task-show__comment-hint {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--vh-muted);
}

.task-show__link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b4423;
    text-decoration: none;
}

.task-show__link:hover {
    color: #5a3820;
    text-decoration: underline;
}

.task-show__activity-sticky {
    position: sticky;
    top: 5.25rem;
    z-index: 10;
}

.task-show__activity-head {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #efe8e0;
}

.task-show__activity-body {
    padding: 0.35rem 1.2rem;
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.task-show__activity-footer {
    padding: 0.85rem 1.2rem 1.1rem;
    border-top: 1px solid #efe8e0;
}

.task-show__activity .vh-activity-item {
    padding: 0.8rem 0;
}

.task-show__activity .vh-activity-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f5efe8;
    color: #6b4423;
}

@media (min-width: 992px) {
    .task-show__meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .task-show__meta:nth-last-child(-n+3) {
        border-bottom: none;
    }

    .task-show__meta:nth-last-child(-n+2) {
        border-bottom: 1px solid #f3ede6;
    }
}

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

    .task-show__activity-sticky {
        position: static;
    }

    .task-show__activity-body {
        max-height: none;
    }

    .task-show__aside {
        order: -1;
    }
}

@media (max-width: 575.98px) {
    .task-show__meta-grid {
        grid-template-columns: 1fr;
    }

    .task-show__meta {
        border-bottom: 1px solid #f3ede6;
    }

    .task-show__meta:last-child {
        border-bottom: none;
    }

    .task-show__approval-bar {
        flex-direction: column;
    }

    .task-show__approval-bar-actions {
        width: 100%;
    }

    .task-show__approval-form {
        width: 100%;
    }

    .task-show__approvals-row {
        flex-direction: column;
        align-items: stretch;
    }

    .task-show__btn--finalize {
        width: 100%;
    }

    .task-show__reopen-body {
        flex-direction: column;
        align-items: stretch;
    }

    .task-show__upload-row {
        grid-template-columns: 1fr;
    }

    .task-show__upload-row .task-show__btn {
        width: 100%;
    }
}
