/**
 * Mobile Pages Header - Gemensam styling för alla kundsidor
 * App-first minimalistisk design för mobilvy
 */

@media (max-width: 768px) {
  /* Dölj desktop headers */
  .page-header,
  .page-hero,
  .gradient-header {
    display: none !important;
  }
  
  /* Mobile page header container */
  #mobilePageHeader {
    order: -100; /* Längst upp på sidan */
    padding: 1rem 0;
    margin-bottom: 1rem;
  }
  
  /* Page title */
  .mobile-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
  }
  
  /* Count badge */
  .page-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    min-width: 28px;
    line-height: 1;
  }
  
  /* Compact cards */
  .mobile-compact-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
  }
  
  .mobile-compact-card:active {
    transform: scale(0.98);
  }
  
  /* Touch targets */
  .mobile-action-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  /* Sticky elements */
  .mobile-sticky-filters {
    position: sticky;
    top: calc(60px + env(safe-area-inset-top));
    z-index: 90;
    background: white;
    padding: 0.75rem 0;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid #e2e8f0;
  }
  
  /* Filter pills */
  .mobile-filter-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-filter-pills::-webkit-scrollbar {
    display: none;
  }
  
  .filter-pill {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
  }
  
  .filter-pill.active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
  }
  
  /* Empty state */
  .mobile-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
  }
  
  .mobile-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  .mobile-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
  }
  
  .mobile-empty-state p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
}
