/* ═══════════════════════════════════════════════════════════
   APP.CSS — Kronari
   Solo estilos globales. Cada página tiene su propio bloque
   dentro de este archivo al ser una app pequeña y coherente.
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Variables globales ──────────────────────────────────── */
:root {
    /* Shell */
    --header-h: 48px;
    /* Sidebar */
    --sb-bg: #111827;
    --sb-accent: #3b82f6;
    --sb-text: #f3f4f6;
    --sb-muted: #9ca3af;
    --sb-hover: #1f2937;
    /* Superficie */
    --body-bg: #f4f5f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    /* Texto */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    /* Acento */
    --accent: #3b82f6;
    --accent-light: #eff6ff;
    --accent-dark: #1d4ed8;
    /* Semánticos */
    --ok: #15803d;
    --ok-bg: #dcfce7;
    --warn: #854d0e;
    --warn-bg: #fef9c3;
    --err: #b91c1c;
    --err-bg: #fee2e2;
    --info: #1d4ed8;
    --info-bg: #dbeafe;
    /* Tipografía */
    --font-ui: 'DM Sans', 'Segoe UI', sans-serif;
    /* Radios */
    --r-sm: 5px;
    --r-md: 8px;
    --r-lg: 10px;
    --r-xl: 14px;
}

/* ── Reset mínimo ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* sin scroll global */
    font-family: var(--font-ui);
    background: var(--body-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ── Blazor: errores y carga ─────────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }

.blazor-error-boundary {
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbmsiPjxnPjxwYXRoIGQ9Ik0yNjMuNTA2IDUxQzI2NC43MTcgNTEgMjY1LjgxMyA1MS40ODM3IDI2Ni42MDYgNTIuMjY1OEwyNjcuMDUyIDUyLjc5ODcgMjY3LjUzOSA1My42MjgzIDI5MC4xODUgOTIuMTgzMSAyOTAuNTQ1IDkyLjc5NSAyOTAuNjU2IDkyLjk5NkMyOTAuODc3IDkzLjUxMyAyOTEgOTQuMDgxNSAyOTEgOTQuNjc4MiAyOTEgOTcuMDY1MSAyODkuMDM4IDk5IDI4Ni42MTcgOTlMMjQwLjM4MyA5OUMyMzcuOTYzIDk5IDIzNiA5Ny4wNjUxIDIzNiA5NC42NzgyIDIzNiA5NC4zNzk5IDIzNi4wMzEgOTQuMDg4NiAyMzYuMDg5IDkzLjgwNzJMMjM2LjMzOCA5My4wMTYyIDIzNi44NTggOTIuMTMxNCAyNTkuNDczIDUzLjYyOTQgMjU5Ljk2MSA1Mi43OTg1IDI2MC40MDcgNTIuMjY1OEMyNjEuMiA1MS40ODM3IDI2Mi4yOTYgNTEgMjYzLjUwNiA1MVoiIGZpbGw9IiNGRkU1MDAiLz48L2c+PC9zdmc+") no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: .6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray .05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto .2rem;
}

    .loading-progress-text::after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ═══════════════════════════════════════════════════════════
   APP SHELL — MainLayout
   ═══════════════════════════════════════════════════════════ */

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.app-header {
    height: var(--header-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: var(--body-bg);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 500;
}

.bc-root {
    color: var(--text-faint);
}

.bc-sep {
    color: var(--border);
    font-size: .9rem;
}

.bc-current {
    color: var(--text-primary);
    font-weight: 700;
}

.app-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — NavMenu
   ═══════════════════════════════════════════════════════════ */

.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    background: var(--sb-bg);
    color: var(--sb-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--sb-accent);
    color: #fff;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -.03em;
}

/* Logo as SVG image in sidebar */
.sidebar-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sb-accent);
    letter-spacing: .02em;
}

/* Login page styles */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #f4f5f7 100%);
}

.login-card {
    width: 420px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 40px rgba(2,6,23,.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

/* Make the login logo span the full width of the card (matching the select/input width)
   while keeping its aspect ratio. */
.login-logo {
    width: 100%;
    height: auto;
    max-height: 160px; /* prevents it from growing too tall */
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.login-title,
.login-subtitle {
    text-align: center;
    margin: 0;
}

.menu-section {
    padding: 1.25rem .75rem .5rem;
}

.section-title {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: #4b5563;
    padding: 0 .5rem;
    margin: 0 0 .5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: var(--r-md);
    color: var(--sb-muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s, transform .15s;
}

    .sidebar a:hover {
        background: var(--sb-hover);
        color: var(--sb-text);
        transform: translateX(3px);
    }

    .sidebar a.active {
        background: var(--sb-accent);
        color: #fff;
    }

        .sidebar a.active .nav-icon {
            filter: brightness(1.3);
        }

.nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem .75rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .6rem;
    border-radius: var(--r-md);
    transition: background .15s;
    cursor: default;
}

    .user-pill:hover {
        background: var(--sb-hover);
    }

.avatar {
    width: 30px;
    height: 30px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #d1d5db;
    flex-shrink: 0;
    letter-spacing: .03em;
}

.user-name {
    font-size: .85rem;
    font-weight: 600;
    color: #d1d5db;
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTES COMPARTIDOS
   (tabla, badges, paginación, modal — usados en varias páginas)
   ═══════════════════════════════════════════════════════════ */

/* ── Topbar de página ────────────────────────────────────── */
.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.02em;
    margin: 0;
}

/* ── Botón primario ──────────────────────────────────────── */
.btn-new {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--text-primary);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .12s;
    letter-spacing: .01em;
    font-family: inherit;
}

    .btn-new:hover {
        background: #1e293b;
        transform: translateY(-1px);
    }

.btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Tabla ───────────────────────────────────────────────── */
.table-wrap {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .table-wrap table {
        width: 100%;
        border-collapse: collapse;
        font-size: .82rem;
        table-layout: fixed;
    }

    .table-wrap thead {
        background: var(--surface-soft);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .table-wrap th {
        padding: .6rem .85rem;
        text-align: left;
        font-size: .67rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

    .table-wrap td {
        padding: .55rem .85rem;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-soft);
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table-wrap tbody tr {
        cursor: pointer;
        transition: background .12s;
    }

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

        .table-wrap tbody tr.selected {
            background: var(--accent-light);
            border-left: 3px solid var(--accent);
        }

            .table-wrap tbody tr.selected td {
                color: var(--accent-dark);
            }

.td-empty {
    text-align: center;
    color: var(--text-faint);
    font-style: italic;
    padding: 2rem !important;
}

.td-nombre {
    font-weight: 600;
    color: var(--text-primary);
}

.td-desc {
    color: var(--text-muted);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    background: var(--surface-soft);
    color: var(--text-muted);
    border-radius: var(--r-sm);
    padding: .15rem .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.badge-estado.badge-activo {
    background: var(--ok-bg);
    color: var(--ok);
}

.badge-estado.badge-en-pausa {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge-estado.badge-completado {
    background: var(--info-bg);
    color: var(--info);
}

.badge-estado.badge-archivado {
    background: var(--surface-soft);
    color: var(--text-muted);
}

.badge-estado.badge-cancelado {
    background: var(--err-bg);
    color: var(--err);
}

/* ── Botones de acción en tabla ──────────────────────────── */
.td-actions {
    display: flex;
    gap: .4rem;
}

.btn-edit, .btn-del {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    transition: all .14s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-edit {
    color: var(--accent);
    border-color: #bfdbfe;
}

    .btn-edit:hover {
        background: var(--accent-light);
    }

.btn-del {
    color: var(--err);
    border-color: #fecaca;
}

    .btn-del:hover {
        background: var(--err-bg);
    }

/* ── Paginación ──────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .1rem 0;
}

.page-info {
    font-size: .78rem;
    color: var(--text-faint);
}

.page-btns {
    display: flex;
    gap: .3rem;
    align-items: center;
}

.pg-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-md);
    padding: .3rem .65rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .14s;
    font-family: inherit;
}

    .pg-btn:hover:not(:disabled) {
        background: var(--surface-soft);
        border-color: #cbd5e1;
    }

    .pg-btn.active {
        background: var(--text-primary);
        color: #fff;
        border-color: var(--text-primary);
        font-weight: 700;
    }

    .pg-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

/* ── Modal / overlay ─────────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.dialog {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(15,23,42,.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dlg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dlg-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-faint);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

    .btn-close:hover {
        color: var(--text-muted);
    }

.field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .field label {
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: var(--text-muted);
    }

    .field input,
    .field textarea,
    .field select {
        border: 1px solid var(--border);
        border-radius: 7px;
        padding: .5rem .75rem;
        font-size: .88rem;
        color: var(--text-primary);
        background: var(--surface-soft);
        outline: none;
        transition: border-color .15s, box-shadow .15s;
        font-family: inherit;
        resize: none;
        width: 100%;
    }

        .field input:focus,
        .field textarea:focus,
        .field select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(59,130,246,.12);
            background: var(--surface);
        }

    .field textarea {
        min-height: 72px;
    }

.dlg-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding-top: .25rem;
}

.btn-cancel {
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .14s;
    font-family: inherit;
}

    .btn-cancel:hover {
        background: var(--surface-soft);
    }

.btn-submit {
    background: var(--text-primary);
    border: none;
    border-radius: 7px;
    padding: .5rem 1.2rem;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background .18s, transform .12s;
    font-family: inherit;
}

    .btn-submit:hover {
        background: #1e293b;
        transform: translateY(-1px);
    }

/* ═══════════════════════════════════════════════════════════
   PROYECTOS — layout de página
   ═══════════════════════════════════════════════════════════ */

.proy-wrap {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    height: 100%;
    padding: 1.25rem 2rem 1rem;
    gap: .75rem;
    box-sizing: border-box;
    overflow: hidden;
}

.proy-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.proy-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.02em;
    margin: 0;
}

/* Panel detalle */
.detail-panel {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.detail-bar {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    padding: .45rem 1rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-empty {
    margin: 0;
    padding: .75rem 1rem;
    color: var(--text-faint);
    font-size: .85rem;
    font-style: italic;
}

.detail-body {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding: .75rem 1rem;
}

.df {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 130px;
}

    .df.full {
        flex: 1 1 100%;
    }

    .df label {
        font-size: .65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: var(--text-faint);
    }

    .df p {
        margin: 0;
        font-size: .85rem;
        color: #1e293b;
        font-weight: 500;
    }


/* ═══════════════════════════════════════════════════════════
   TAREA DETALLE — acciones de flujo
   ═══════════════════════════════════════════════════════════ */

.flujo-acciones {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

/* Base de todos los botones de flujo */
.btn-flujo {
    width: 100%;
    padding: .45rem .85rem;
    border-radius: var(--r-md);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s, transform .12s, opacity .15s;
    font-family: inherit;
    text-align: left;
    border: 1px solid transparent;
}

    .btn-flujo:hover:not(:disabled) {
        filter: brightness(.93);
        transform: translateY(-1px);
    }

    .btn-flujo:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
    }

/* Variantes por acción */
.btn-asignarme {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-estado-confirmada {
    background: var(--info-bg);
    color: var(--info);
    border-color: #bfdbfe;
}

.btn-estado-resuelta {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: #bbf7d0;
}

.btn-estado-cerrada {
    background: var(--surface-soft);
    color: var(--text-muted);
    border-color: var(--border);
}

/* Reapertura: de cerrada a nueva */
.btn-estado-nueva {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: #fde68a;
}

.btn-estado-asignada {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: #fde68a;
}

.btn-reasignar {
    background: var(--surface);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-confirmar {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
    padding: .3rem .7rem;
    width: auto;
}

.btn-cancelar-inline {
    background: none;
    color: var(--text-faint);
    border-color: transparent;
    padding: .3rem .5rem;
    width: auto;
    font-size: .85rem;
}

.reasignar-inline {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

    .reasignar-inline select {
        flex: 1;
        min-width: 0;
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        padding: .35rem .65rem;
        font-size: .82rem;
        color: var(--text-primary);
        background: var(--surface-soft);
        outline: none;
        font-family: inherit;
    }

.field-hint {
    font-size: .72rem;
    color: var(--text-faint);
    margin: .1rem 0 0;
    font-style: italic;
}

/* Cajas de solo lectura en detalle */
.detail-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .5rem .75rem;
    font-size: .88rem;
    color: var(--text-primary);
    min-height: 36px;
}

.title-box {
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid var(--border);
    border-radius: 0;
    background: transparent;
    padding: .25rem 0;
    letter-spacing: -.01em;
}

.desc-box {
    min-height: 80px;
    line-height: 1.65;
    font-size: .9rem;
    color: var(--text-secondary);
}

.error-box {
    background: var(--err-bg);
    color: var(--err);
    border: 1px solid rgba(185,28,28,.2);
    border-radius: var(--r-md);
    padding: .55rem .85rem;
    font-size: .82rem;
    font-weight: 500;
}

.empty-text {
    color: var(--text-faint);
    font-style: italic;
    font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════
   TAREA DETALLE — Timeline unificado
   ═══════════════════════════════════════════════════════════ */

/* Contenedor de toda la sección de actividad */
.timeline-section {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.timeline-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin: 0;
}

/* Caja de nuevo comentario */
.comentario-new {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: .85rem 1rem;
}

.comentario-input {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .5rem .75rem;
    font-size: .88rem;
    color: var(--text-primary);
    background: var(--surface-soft);
    outline: none;
    font-family: inherit;
    line-height: 1.55;
    transition: border-color .15s, box-shadow .15s;
    min-height: 72px;
}

    .comentario-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(59,130,246,.1);
        background: var(--surface);
    }

.comentario-new-actions {
    display: flex;
    justify-content: flex-end;
}

/* Lista del timeline */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.timeline-empty {
    color: var(--text-faint);
    font-size: .85rem;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 0;
}

/* Ítem genérico del timeline */
.timeline-item {
    display: flex;
    gap: .85rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-soft);
}

    .timeline-item:last-child {
        border-bottom: none;
    }

/* Avatar circular del ítem */
.tl-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.tl-avatar-hist {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-size: .7rem;
}

/* Contenido del ítem */
.tl-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* Fila de metadatos */
.tl-meta {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.tl-autor {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tl-fecha {
    font-size: .73rem;
    color: var(--text-faint);
}

.tl-editado {
    font-size: .72rem;
    color: var(--text-faint);
    font-style: italic;
}

/* Texto del comentario */
.tl-texto {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Descripción del ítem de historial */
.tl-desc {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

/* Ítem historial más sutil */
.tl-historial .tl-texto,
.tl-historial .tl-autor {
    color: var(--text-muted);
    font-weight: 500;
}

/* Botones de acción del comentario propio */
.tl-acciones {
    display: flex;
    gap: .6rem;
    margin-top: .15rem;
}

.tl-edit-actions {
    display: flex;
    gap: .5rem;
    margin-top: .4rem;
    align-items: center;
}

/* Botones estilo link */
.btn-link {
    background: none;
    border: none;
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color .15s;
}

    .btn-link:hover {
        color: var(--accent-dark);
    }

.btn-link-danger {
    color: var(--text-faint);
}

    .btn-link-danger:hover {
        color: var(--err);
    }

/* nt-wrap con 3 filas cuando hay timeline */
.nt-wrap-timeline {
    grid-template-rows: auto 1fr auto;
}

/* Loading genérico */
.loading-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-faint);
    font-size: .9rem;
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   TIEMPO — estilos específicos
   Añadir en app.css sustituyendo el bloque de comentario
   ═══════════════════════════════════════════════════════════ */

.tiempo-wrap {
    display: grid;
    grid-template-rows: auto auto 1fr; /* topbar / detail / tabla */
    height: 100%;
    padding: 1.25rem 2rem 1rem;
    gap: .75rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Indicador de sesión activa en tabla */
.tiempo-live {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ok);
    font-variant-numeric: tabular-nums;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex-shrink: 0;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

.tiempo-idle {
    color: var(--text-faint);
    font-size: .82rem;
}

/* Botones iniciar / parar (variantes de los botones de tabla) */
.btn-start {
    border: 1px solid var(--ok-bg);
    border-radius: var(--r-sm);
    padding: .2rem .6rem;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--ok-bg);
    color: var(--ok);
    transition: all .14s;
    white-space: nowrap;
    font-family: inherit;
}

    .btn-start:hover {
        filter: brightness(.93);
    }

.btn-stop {
    border: 1px solid var(--err-bg);
    border-radius: var(--r-sm);
    padding: .2rem .6rem;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--err-bg);
    color: var(--err);
    transition: all .14s;
    white-space: nowrap;
    font-family: inherit;
}

    .btn-stop:hover {
        filter: brightness(.93);
    }

    /* ═══════════════════════════════════════════════════════════
   TAREAS — lista con filtros
   ═══════════════════════════════════════════════════════════ */

.tareas-wrap {
    display: grid;
    grid-template-rows: auto auto 1fr;   /* topbar / filtros / tabla */
    height: 100%;
    padding: 1.25rem 2rem 1rem;
    gap: .75rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Panel de filtros ────────────────────────────────────── */
.filtros-panel {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.filtros-bar {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    padding: .45rem 1rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filtros-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .65rem 1rem;
}

.f-input {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .35rem .65rem;
    font-size: .82rem;
    color: var(--text-primary);
    background: var(--surface-soft);
    outline: none;
    width: 130px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.f-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
    background: var(--surface);
}
.f-input::placeholder { color: var(--text-faint); }

.f-select-wrap { position: relative; }
.f-select-wrap::after {
    content: '▾';
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
    font-size: .75rem;
}

.f-select {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .35rem 1.75rem .35rem .65rem;
    font-size: .82rem;
    color: var(--text-primary);
    background: var(--surface-soft);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.f-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
    background: var(--surface);
}

.filtros-actions { display: flex; gap: .4rem; margin-left: auto; }

.btn-filter {
    border: none;
    border-radius: var(--r-md);
    padding: .35rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--text-primary);
    color: #fff;
    font-family: inherit;
    transition: background .15s;
}
.btn-filter:hover { background: #1e293b; }

.btn-filter-clear {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .35rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit;
    transition: background .15s;
}
.btn-filter-clear:hover { background: var(--surface-soft); }

/* ── Badges de prioridad ─────────────────────────────────── */
.badge-prio               { border-radius: var(--r-sm); }
.badge-prio-baja          { background: var(--ok-bg);   color: var(--ok); }
.badge-prio-media         { background: var(--warn-bg); color: var(--warn); }
.badge-prio-alta          { background: var(--err-bg);  color: var(--err); }
.badge-prio-critica       { background: #fdf2f8;        color: #9d174d; }

/* Estados del flujo */
.badge-nueva {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.badge-asignada {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge-confirmada {
    background: var(--info-bg);
    color: var(--info);
}

.badge-resuelta {
    background: var(--ok-bg);
    color: var(--ok);
}

.badge-cerrada {
    background: var(--surface-soft);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ── Tags inline en tabla ────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag {
    display: inline-block;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: .1rem .5rem;
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   NUEVA TAREA — página completa, sin card
   ═══════════════════════════════════════════════════════════ */

.nt-wrap {
    display: grid;
    grid-template-rows: auto 1fr;   /* header fijo / cuerpo que llena */
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Header de página ────────────────────────────────────── */
.nt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--body-bg);
    gap: 1rem;
    flex-shrink: 0;
}

.nt-header-left {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.btn-back {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color .15s;
    white-space: nowrap;
}
.btn-back:hover { color: var(--text-muted); }

.nt-header-right {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.nt-alert {
    font-size: .78rem;
    font-weight: 600;
    color: var(--err);
    background: var(--err-bg);
    border: 1px solid rgba(185,28,28,.2);
    border-radius: var(--r-md);
    padding: .3rem .75rem;
}

/* Pills de estado para TareasNueva (flujo) */
.pill-p-critica     { border-color: #9d174d; background: #fdf2f8; color: #9d174d; }

/* ── Cuerpo: dos columnas ────────────────────────────────── */
.nt-body {
    display: grid;
    grid-template-columns: 1fr 300px;   /* descripción grande / meta estrecho */
    overflow: hidden;
}

/* Columna principal — título + descripción */
.nt-col-main {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

/* El título es grande y sin borde inferior de card */
.nt-title-input {
    border: none !important;
    border-bottom: 2px solid var(--border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    padding: .25rem 0 !important;
    box-shadow: none !important;
    letter-spacing: -.01em;
}
.nt-title-input:focus {
    border-bottom-color: var(--accent) !important;
    box-shadow: none !important;
    background: transparent !important;
}
.nt-title-input::placeholder { color: var(--text-faint); font-weight: 400; }

/* El campo de descripción ocupa todo el espacio restante */
.nt-desc-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.nt-desc-input {
    flex: 1;
    width: 100%;
    resize: none;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: .25rem 0;
    outline: none;
    font-family: inherit;
    box-shadow: none !important;
}
.nt-desc-input::placeholder { color: var(--text-faint); }

/* Columna meta — campos secundarios con scroll si hacen falta */
.nt-col-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.5rem;
    overflow-y: auto;
    background: var(--surface-soft);
}

/* Ajuste de los .field dentro de la columna meta */
.nt-col-meta .field label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
    margin-bottom: .2rem;
}

.nt-col-meta .field input,
.nt-col-meta .field select {
    font-size: .85rem;
}

.nt-divider {
    height: 1px;
    background: var(--border);
    margin: .1rem 0;
}

.req { color: var(--accent); }

/* Mensajes de error de campo */
.field-err {
    border-color: var(--err) !important;
    box-shadow: 0 0 0 3px rgba(185,28,28,.1) !important;
}
.field-msg-err {
    font-size: .72rem;
    color: var(--err);
    margin-top: .15rem;
}

/* ── Pills estado / prioridad ────────────────────────────── */
.nt-pills { display: flex; gap: .4rem; }

.nt-pill {
    flex: 1;
    padding: .4rem .3rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .74rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    font-family: inherit;
}
.nt-pill:hover { border-color: var(--text-muted); color: var(--text-primary); }

.pill-e-nueva       { border-color: var(--accent);  background: var(--accent-light); color: var(--accent-dark); }
.pill-e-en_progreso { border-color: var(--warn);    background: var(--warn-bg);     color: var(--warn); }
.pill-e-terminado   { border-color: var(--ok);      background: var(--ok-bg);       color: var(--ok); }

.pill-p-baja        { border-color: var(--ok);      background: var(--ok-bg);       color: var(--ok); }
.pill-p-media       { border-color: var(--warn);    background: var(--warn-bg);     color: var(--warn); }
.pill-p-alta        { border-color: var(--err);     background: var(--err-bg);      color: var(--err); }
.pill-p-critica {
    border-color: #9d174d;
    background: #fdf2f8;
    color: #9d174d;
}

/* ── Tags / etiquetas ────────────────────────────────────── */
.nt-tags { display: flex; flex-wrap: wrap; gap: .35rem; }

.nt-tag {
    padding: .22rem .65rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .74rem;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.nt-tag:hover { border-color: var(--accent); color: var(--accent); }
.nt-tag.sel   { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   PROYECTO TIEMPO — detalle de sesiones de un proyecto
   ═══════════════════════════════════════════════════════════ */

.pt-wrap {
    display: grid;
    grid-template-rows: auto auto 1fr; /* topbar / kpis / tabla */
    height: 100%;
    padding: 1.25rem 2rem 1rem;
    gap: .75rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Topbar ──────────────────────────────────────────────── */
.pt-title-group {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.pt-subtitle {
    margin: .15rem 0 0;
    font-size: .8rem;
    color: var(--text-faint);
}

.btn-back {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .btn-back:hover {
        color: var(--text-muted);
    }

/* Indicador sesión activa en topbar */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ok);
    background: var(--ok-bg);
    border: 1px solid rgba(21,128,61,.2);
    border-radius: 99px;
    padding: .3rem .85rem;
}

/* ── KPI cards ───────────────────────────────────────────── */
.pt-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.kpi-label {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
}

.kpi-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

/* ── Faint text ──────────────────────────────────────────── */
.td-faint {
    color: var(--text-faint);
}


/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

.dash-wrap {
    display: grid;
    grid-template-rows: auto 1fr; /* kpis / paneles */
    height: 100%;
    padding: 1.25rem 2rem 1rem;
    gap: .75rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Fila KPIs ───────────────────────────────────────────── */
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

    /* Primera card con acento */
    .kpi-card.kpi-accent {
        background: var(--text-primary);
        border-color: var(--text-primary);
    }

.kpi-accent .kpi-label,
.kpi-accent .kpi-sub {
    color: rgba(255,255,255,.5);
}

.kpi-accent .kpi-value {
    color: #fff;
}

.kpi-label {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.kpi-sub {
    font-size: .74rem;
    color: var(--text-faint);
    margin-top: .1rem;
}

/* ── Fila paneles ────────────────────────────────────────── */
.dash-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    min-height: 0; /* permite que los paneles respeten el 1fr del padre */
}

.dash-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Cabecera del panel */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
    flex-shrink: 0;
}

.panel-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.panel-link {
    background: none;
    border: none;
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color .15s;
}

    .panel-link:hover {
        color: var(--accent-dark);
    }

/* Cuerpo del panel — scroll interno si hace falta */
.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: .35rem 0;
}

.panel-empty {
    padding: 1rem;
    color: var(--text-faint);
    font-size: .82rem;
    font-style: italic;
    margin: 0;
}

/* Fila de item dentro del panel */
.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1rem;
    gap: .75rem;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid var(--border-soft);
}

    .panel-row:last-child {
        border-bottom: none;
    }

    .panel-row:hover {
        background: var(--surface-soft);
    }

.panel-row-main {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.panel-row-name {
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-row-sub {
    font-size: .72rem;
    color: var(--text-faint);
}

.panel-row-badges {
    display: flex;
    gap: .3rem;
    flex-shrink: 0;
}

/* Sesión activa — píldora verde pequeña */
.live-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--ok);
    background: var(--ok-bg);
    border: 1px solid rgba(21,128,61,.2);
    border-radius: 99px;
    padding: .2rem .6rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════ */
.login-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15,23,42,.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Usuario sidebar ─────────────────────────────────────── */

.user-meta {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.user-label {
    font-size: .65rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.user-name {
    font-size: .84rem;
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Botón logout ────────────────────────────────────────── */

.btn-logout {
    width: 100%;
    margin-top: .75rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md);
    background: transparent;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s, color .15s;
}

    .btn-logout:hover {
        background: rgba(255,255,255,.05);
        border-color: rgba(255,255,255,.12);
        color: #fff; 
        transform: translateY(-1px);
    }

.logout-icon {
    font-size: .95rem;
    opacity: .8;
}