/* ===============================================
   COMPONENTS.CSS - Standard UI Components
   Sidebar, Top Nav, Buttons, Cards, Forms
   =============================================== */

/* ===============================================
   TOP NAVIGATION
   =============================================== */

.top-nav {
    background-color: var(--bg-white);
    padding: var(--space-sm) 24px var(--space-sm) 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    margin-bottom: var(--sidebar-gap);
    box-shadow: var(--shadow-xs);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.notifications {
    position: relative;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    transition: background-color 0.2s var(--ease-out);
}

.notifications:hover {
    background-color: var(--bg-secondary);
}

.notification-icon {
    color: var(--text-muted);
    transition: color 0.2s var(--ease-out);
}

.notifications:hover .notification-icon {
    color: var(--text-body);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--color-error);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* ===============================================
   SIDEBAR NAVIGATION - Bootstrap-aligned
   =============================================== */

/* Sidebar visual styling (layout is in base.css) */
.sidebar {
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-light);
    transition: var(--sidebar-transition);
    border-top-right-radius: var(--radius-2xl);
    border-bottom-right-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 50;
}

.sidebar-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0 var(--space-lg) 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hamburger Menu Toggle - At Top of Sidebar */
.sidebar-toggle {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-sm);
}

.sidebar-toggle .nav-label {
    display: none;
}

.sidebar-toggle .nav-icon {
    transition: none;
}

/* CRITICAL: Hamburger stays at same position - doesn't center */
.sidebar[data-state="collapsed"] .sidebar-toggle {
    justify-content: flex-start;
    padding: 4px 8px 4px 12px;
}

.sidebar[data-state="collapsed"] .sidebar-toggle .nav-icon {
    margin-right: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* ============= TOP-LEVEL NAV ITEMS ============= */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px var(--space-sm) 4px 12px;  /* Fixed left padding */
    margin: 0 var(--space-xs) 2px var(--space-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    position: relative;
    height: 32px;
    text-decoration: none;
    outline: none;
    border: none;
    background: none;
    width: calc(100% - 8px);  /* Account for margins */
    text-align: left;
    font-family: inherit;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.075);  /* More visible */
    color: var(--text-secondary);
}

.nav-item.active {
    background-color: rgba(22, 163, 74, 0.1);  /* Slightly stronger */
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.nav-item.active .nav-icon {
    color: var(--color-primary);
}

.nav-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);  /* Green focus ring */
    z-index: 10;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    pointer-events: none;
    font-size: 18px;
    transition: none;
}

.nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--text-base);
    line-height: 1.4;
    pointer-events: none;
    min-width: 0;  /* Allows text-overflow to work */
}

.sidebar[data-state="collapsed"] .nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar[data-state="collapsed"] .nav-item {
    justify-content: center;
    padding: 4px;
}

.sidebar[data-state="collapsed"] .nav-icon {
    margin-right: 0;
}

/* ===============================================
   HIERARCHICAL NAVIGATION (Collapsible Locations)
   =============================================== */

/* Location group container */
.nav-group {
    display: flex;
    flex-direction: column;
}

/* Location toggle (parent item) */
.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 12px 4px 12px;  /* Fixed padding - same as nav-item */
    margin: 0 var(--space-xs) 2px var(--space-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    position: relative;
    height: 32px;
    text-decoration: none;
    outline: none;
    background: none;
    border: none;
    width: calc(100% - 8px);
    text-align: left;
    font-family: inherit;
}

.nav-group-toggle:hover {
    background-color: rgba(0, 0, 0, 0.075);
    color: var(--text-secondary);
}

.nav-group-toggle:hover .nav-expand-icon {
    color: var(--text-body);
}

.nav-group-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);
    z-index: 10;
}

/* Location metadata badge */
.nav-meta {
    font-size: 11px;
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;  /* Fixed spacing */
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Expand/collapse chevron - FIXED RIGHT POSITION */
.nav-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;  /* Fixed width */
    height: 16px;
    margin-left: auto;  /* Push to right */
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-out);
    color: var(--text-muted);
    pointer-events: none;
}

.nav-group-toggle[aria-expanded="true"] .nav-expand-icon {
    transform: rotate(90deg);  /* Right arrow → Down arrow */
}

/* ============= BOOTSTRAP COLLAPSE CLASSES ============= */
.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.collapsing {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;  /* Bootstrap standard */
}

/* ============= SUBMENU CONTAINER ============= */
.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-submenu.show {
    padding: 4px 0;
    margin: 2px 0 4px 0;
}

/* ============= SUBMENU ITEMS ============= */
.nav-subitem {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px var(--space-sm) 4px 32px;  /* Moderate indent: 32px */
    margin: 0 var(--space-xs) 1px var(--space-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: 13px;  /* Slightly smaller than parent */
    height: 30px;  /* Slightly shorter than parent */
    text-decoration: none;
    outline: none;
    border: none;
    background: none;
    width: calc(100% - 8px);
    text-align: left;
    font-family: inherit;
}

.nav-subitem:hover {
    background-color: rgba(0, 0, 0, 0.075);
    color: var(--text-secondary);
}

.nav-subitem.active {
    background-color: rgba(22, 163, 74, 0.12);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.nav-subitem.active .nav-icon {
    color: var(--color-primary);
}

.nav-subitem:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);
    z-index: 10;
}

.nav-subitem .nav-icon {
    font-size: 16px;
    width: 20px;  /* Same as parent - prevents shift */
    height: 20px;
    margin-right: 12px;  /* Same as parent */
    flex-shrink: 0;
}

/* ============= COLLAPSED SIDEBAR ============= */
.sidebar[data-state="collapsed"] .nav-meta,
.sidebar[data-state="collapsed"] .nav-expand-icon {
    display: none;
}

/* ===============================================
   BREADCRUMB BUTTON STYLES
   =============================================== */

.breadcrumb-item {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    padding: 0;
    transition: color 0.2s var(--ease-out);
}

.breadcrumb-item:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.breadcrumb-item:active {
    color: var(--color-primary-hover);
}

/* ===============================================
   BUTTONS
   =============================================== */

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    line-height: var(--line-height-tight);
    min-height: 40px;
    box-shadow: var(--shadow-xs);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-body);
    border: 1px solid var(--border-medium);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    line-height: var(--line-height-tight);
    min-height: 40px;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--border-focus);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===============================================
   ACTION ICONS - Inline clickable icons
   =============================================== */

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.action-icon:hover {
    background-color: rgba(0, 0, 0, 0.075);
    color: var(--text-secondary);
}

.action-icon:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.action-icon:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Action icon group for multiple icons together */
.action-icon-group {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

/* ===============================================
   CARDS
   =============================================== */

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);  /* Smaller radius for consistency */
    padding: var(--space-md);  /* More compact */
    box-shadow: none;  /* Flat design */
    border: 1px solid var(--border-light);
    transition: all 0.2s var(--ease-out);
}

.card:hover {
    transform: translateY(-1px);  /* Subtle lift */
    box-shadow: var(--shadow-xs);  /* Very subtle shadow on hover only */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.card-content {
    font-size: var(--text-sm);
    color: var(--text-body);
    line-height: var(--line-height-normal);
}

/* ===============================================
   METRIC CARDS - Two-Row Compact Layout
   =============================================== */

.metric-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);  /* 12px */
    box-shadow: none;
    border: 1px solid var(--border-light);
    transition: all 0.2s var(--ease-out);
    min-height: 60px;  /* Reduced from 100px */
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);  /* 4px gap between rows */
    position: relative;
}

.metric-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
    border-color: var(--color-primary);
}

.metric-card.interactive {
    cursor: pointer;
}

/* Row 1: Icon + Title + Value */
.metric-card-row-1 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);  /* 8px */
    min-height: 24px;
}

.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    line-height: 1;
}

.metric-title {
    font-size: var(--text-xs);  /* 12px */
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    flex: 1;  /* Take available space */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-value {
    font-size: var(--text-lg);  /* 18px */
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;  /* Don't shrink */
    margin-left: auto;  /* Push to right */
}

/* Row 2: Subtitle + Stats */
.metric-card-row-2 {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-left: 28px;  /* Align with title (icon width + gap) */
}

.metric-card-row-1:not(:has(.metric-icon)) + .metric-card-row-2 {
    padding-left: 0;  /* No icon, no indent */
}

.metric-subtitle {
    font-size: var(--text-sm);  /* 13px */
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.card-stats {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* Card Actions (corner buttons) */
.card-actions {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    display: flex;
    gap: var(--space-xs);
    opacity: 0;
    transition: opacity 0.2s var(--ease-out);
}

.metric-card:hover .card-actions {
    opacity: 1;
}

.icon-action {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-action:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===============================================
   STATUS BADGES
   =============================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: capitalize;
    line-height: 1.2;
    gap: var(--space-xs);
}

.status-badge.status-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-badge.status-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-badge.status-error,
.status-badge.status-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-badge.status-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===============================================
   FORMS & INPUTS (Claude-Inspired Design)
   =============================================== */

.form-group {
    margin-bottom: var(--space-comfortable);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-control,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    font-size: var(--text-base);
    min-height: 48px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    line-height: var(--line-height-normal);
}

.form-control::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
}

.form-control:hover,
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--input-border-hover);
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-control:disabled,
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    background: var(--input-bg-disabled);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: var(--line-height-relaxed);
}

/* ===============================================
   DATA TABLES - Compact Layout
   =============================================== */

.data-table {
    display: flex;
    flex-direction: column;
    gap: 1px;  /* Reduced from 8px - hairline separator between rows */
    width: 100%;
}

.data-row {
    display: grid;
    align-items: center;
    padding: 6px var(--space-md);  /* Reduced from 8px to 6px vertical padding */
    border-radius: var(--radius-sm);
    min-height: 34px;  /* Reduced from 40px */
    gap: var(--space-sm);
    transition: all 0.2s var(--ease-out);
    background: var(--bg-white);  /* White rows */
    border: 1px solid var(--border-light);
}

.data-row:hover {
    background: var(--bg-secondary);  /* #fafaf9 on hover */
    transform: none;  /* No lift - keep flat */
    box-shadow: none;  /* No shadow */
    border-color: var(--border-medium);  /* Slightly stronger border */
}

.data-row.header {
    background: var(--bg-secondary);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    border-bottom: 2px solid var(--border-light);
}

.data-row[data-clickable="true"],
.data-row.interactive {
    cursor: pointer;
}

/* ===============================================
   GRID LAYOUTS
   =============================================== */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.three-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
}

/* ===============================================
   MODALS
   =============================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    max-width: 600px;
    width: 90vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s var(--ease-out);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.modal-header h2 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* ===============================================
   UTILITY CLASSES FOR INLINE STYLE REPLACEMENT
   =============================================== */

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
}

.card-subtitle {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-width-collapsed);
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
    
    .two-col-grid,
    .three-col-grid {
        grid-template-columns: 1fr;
    }
    
    /* Metric cards - maintain two-row layout on mobile */
    .metric-card-row-1 {
        gap: var(--space-xs);  /* Slightly tighter on mobile */
    }
    
    .metric-title {
        font-size: 11px;  /* Slightly smaller for long names */
    }
    
    .metric-value {
        font-size: var(--text-base);  /* Slightly smaller on mobile */
    }
}

