/* assets/css/components.css */

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 100;
}

.sidebar-header {
    height: auto;
    min-height: var(--topbar-height);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.sidebar-logo img {
    width: 100%;
    max-width: 180px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
    /* Elimina fondo blanco del PNG sobre fondo oscuro */
    mix-blend-mode: screen;
    filter: brightness(1.05);
}

.sidebar-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.sidebar-logo-sub {
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-border) transparent;
}

.nav-section {
    margin-bottom: var(--space-sm);
}

.nav-section-title {
    padding: var(--space-xs) var(--space-lg);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sidebar-text);
    opacity: 0.5;
    margin-bottom: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem var(--space-lg);
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
    position: relative;
    margin: 1px 0;
    border-left: 3px solid transparent;
}

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

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
}
.nav-item:hover .nav-item-icon { opacity: 1; }

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
    border-left-color: var(--sidebar-accent);
    font-weight: 500;
}
.nav-item.active .nav-item-icon { opacity: 1; }

.sidebar-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-500), var(--green-800));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-info { min-width: 0; }

.sidebar-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sidebar-text-hover);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.6875rem;
    color: var(--sidebar-text);
    opacity: 0.6;
}

.btn-logout {
    width: 100%;
    padding: 0.4rem var(--space-sm);
    background: transparent;
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-align: center;
}
.btn-logout:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.top-header {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search input {
    width: 220px;
    padding: 0.375rem 0.75rem 0.375rem 2.25rem;
    background: var(--surface-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition);
}

.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--primary);
    width: 280px;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.topbar-search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition);
    position: relative;
}
.topbar-icon-btn:hover {
    background: var(--surface-secondary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-300), var(--green-800));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-action {
    padding: 0.875rem var(--space-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    transition: background var(--transition);
}
.card-action:last-child { border-bottom: none; }
.card-action:hover { background: var(--surface-secondary); }

.card-action-info h4 {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-primary);
}
.card-action-info p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   KPI CARDS
═══════════════════════════════════════════ */
.kpi-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.5));
    pointer-events: none;
}

.kpi-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
    display: block;
}

.kpi-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kpi-card.kpi-primary { background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%); border-color: transparent; }
.kpi-card.kpi-primary .kpi-title,
.kpi-card.kpi-primary .kpi-value,
.kpi-card.kpi-primary .kpi-sub { color: rgba(255,255,255,0.9); }
.kpi-card.kpi-primary .kpi-title { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-800) 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(61, 170, 71, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
    box-shadow: 0 4px 14px rgba(61, 170, 71, 0.45);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-color: transparent;
}
.btn-secondary:hover { background: var(--green-100); }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: var(--surface-secondary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--surface-secondary); color: var(--text-primary); }

.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    padding: 0.4rem;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════
   BADGES / PILLS
═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.badge-success  { background: var(--success-bg);  color: var(--success-text); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning-text); }
.badge-danger   { background: var(--danger-bg);   color: var(--danger-text); }
.badge-info     { background: var(--info-bg);     color: var(--info-text); }
.badge-neutral  { background: var(--neutral-bg);  color: var(--neutral); }
.badge-primary  { background: #E0F2FE; color: #0369A1; }

/* ═══════════════════════════════════════════
   MODALS & DRAWERS
═══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 31, 45, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.modal-close {
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    padding: 4px; border-radius: 4px;
}
.modal-close:hover { background: var(--surface-secondary); color: var(--text-primary); }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-radius: 0 0 12px 12px;
}

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-group { margin-bottom: var(--space-md); }

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all var(--transition);
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}
.form-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════
   TABLES
═══════════════════════════════════════════ */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background: var(--surface-secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
    vertical-align: middle;
}

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

.table tbody tr {
    transition: background var(--transition);
    cursor: pointer;
}
.table tbody tr:hover { background: var(--surface-secondary); }

/* ═══════════════════════════════════════════
   SKELETON LOADERS
═══════════════════════════════════════════ */
@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: #DDE3EA;
    background-image: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%);
    background-size: 600px 100%;
    background-repeat: no-repeat;
    border-radius: var(--radius-sm);
    animation: skeleton-shimmer 1.6s infinite linear;
}

.skeleton-text  { height: 13px; margin-bottom: 8px; width: 100%; }
.skeleton-title { height: 18px; width: 55%; margin-bottom: 12px; }
.skeleton-kpi   { height: 40px; width: 55%; }

/* ═══════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}
.empty-state-emoji { font-size: 2rem; margin-bottom: var(--space-sm); }
.empty-state-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.empty-state-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
.timeline { position: relative; padding-left: 24px; }

.timeline-item {
    position: relative;
    padding-bottom: var(--space-md);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 10px;
    bottom: -4px;
    width: 1.5px;
    background: var(--border);
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    border: 2.5px solid var(--surface);
    box-shadow: 0 0 0 2px var(--primary-bg);
}

.timeline-time {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.timeline-content {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.timeline-content strong { color: var(--text-primary); font-weight: 500; }

/* ═══════════════════════════════════════════
   UTILITY COLORS
═══════════════════════════════════════════ */
.text-primary-color { color: var(--primary); }
.text-danger   { color: var(--danger); }
.text-warning  { color: var(--warning); }
.text-success  { color: var(--success); }
.text-info     { color: var(--info); }
.text-muted    { color: var(--text-muted); }

/* ═══════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════ */
.divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-md) 0;
}

/* ═══════════════════════════════════════════
   AVATAR
═══════════════════════════════════════════ */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-300), var(--green-800));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════ */
.progress {
    height: 6px;
    background: var(--surface-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-xs) 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-500), var(--green-800));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

/* ═══════════════════════════════════════════
   STATUS DOT
═══════════════════════════════════════════ */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.active   { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.status-dot.warning  { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-bg); }
.status-dot.inactive { background: var(--text-muted); }

/* ═══════════════════════════════════════════
   WEEK STRIP
═══════════════════════════════════════════ */
.week-strip {
    display: flex;
    gap: var(--space-xs);
}

.week-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--surface-secondary);
    min-width: 0;
}
.week-day:hover { border-color: var(--primary); background: var(--primary-bg); }
.week-day.today { border-color: var(--primary); background: var(--primary-bg); }

.week-day-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.week-day-num {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.week-day-count {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}
.week-day.today .week-day-label,
.week-day.today .week-day-num { color: var(--primary-dark); }
.week-day.today .week-day-count { color: var(--primary); }

/* ═══════════════════════════════════════════
   ALERT ITEM (Requiere Atención)
═══════════════════════════════════════════ */
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 0.875rem var(--space-md);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.alert-item:last-child { border-bottom: none; }
.alert-item:hover { background: var(--surface-secondary); }

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.alert-icon.danger  { background: var(--danger-bg);  color: var(--danger); }
.alert-icon.warning { background: var(--warning-bg); color: var(--warning); }
.alert-icon.info    { background: var(--info-bg);    color: var(--info); }
.alert-icon.success { background: var(--success-bg); color: var(--success); }

.alert-body { flex: 1; min-width: 0; }
.alert-body-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1px;
}
.alert-body-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   TECH ROW (Equipo en Terreno)
═══════════════════════════════════════════ */
.tech-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.625rem var(--space-md);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.tech-row:last-child { border-bottom: none; }
.tech-row:hover { background: var(--surface-secondary); }

.tech-info { flex: 1; min-width: 0; }
.tech-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tech-status {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1280px) {
    .grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
    .main-grid   { grid-template-columns: 1fr !important; }
}

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }
    .sidebar { display: none; }
    .grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-2 { grid-template-columns: 1fr; }
    .page-wrapper { padding: var(--space-md); }
    .topbar-search { display: none; }
    
    /* Table → cards on mobile */
    .table-responsive-cards thead { display: none; }
    .table-responsive-cards tr {
        display: block;
        margin-bottom: var(--space-sm);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: var(--space-sm);
        background: var(--surface);
    }
    .table-responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-xs) 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.8125rem;
    }
    .table-responsive-cards td:last-child { border-bottom: none; }
    .table-responsive-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.625rem;
        letter-spacing: 0.06em;
        color: var(--text-muted);
    }
}
