/**
 * Mobile Optimizations for All Customer Pages
 * Kompakt CSS för alla återstående sidor
 */

/* ========== PROJECT DETAILS ========== */
@media (max-width: 768px) {
  .project-details-container {
    padding: 1rem !important;
  }

  .project-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    gap: 0.5rem;
  }

  .project-actions {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--ios-safari-vv-gap, 0px));
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* ========== QUOTE DETAILS ========== */
@media (max-width: 768px) {
  .quote-summary {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--ios-safari-vv-gap, 0px));
    background: white;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .quote-line-items {
    max-height: none;
  }

  .quote-line-item {
    padding: 0.75rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* ========== QUOTES LIST ========== */
@media (max-width: 768px) {
  .quotes-filters {
    position: sticky;
    top: calc(60px + env(safe-area-inset-top));
    z-index: 100;
    background: white;
    padding: 0.75rem 1rem;
    overflow-x: auto;
  }

  .quotes-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========== COMPANIES ========== */
@media (max-width: 768px) {
  .companies-filters {
    position: sticky;
    top: calc(60px + env(safe-area-inset-top));
  }

  .companies-grid {
    grid-template-columns: 1fr !important;
  }

  .company-card {
    padding: 1rem !important;
  }
}

/* ========== COMPANY PROFILE ========== */
@media (max-width: 768px) {
  .company-profile-hero {
    padding: 1.5rem 1rem !important;
  }

  .company-profile-tabs {
    overflow-x: auto;
    display: flex;
  }

  .company-cta-bar {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--ios-safari-vv-gap, 0px));
  }
}

/* ========== FAVORITES ========== */
@media (max-width: 768px) {
  .favorites-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========== CUSTOMER PROFILE ========== */
@media (max-width: 768px) {
  .profile-form {
    padding: 1rem !important;
  }

  .profile-section {
    margin-bottom: 1.5rem;
  }

  .profile-save-btn {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--ios-safari-vv-gap, 0px));
  }
}

/* ========== HELP CENTER ========== */
@media (max-width: 768px) {
  .help-search {
    position: sticky;
    top: calc(60px + env(safe-area-inset-top));
    background: white;
    z-index: 100;
    padding: 1rem;
  }

  .faq-item {
    padding: 1rem !important;
  }
}

/* ========== INDEX (LANDING) ========== */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem !important;
    min-height: 60vh !important;
  }

  .hero-cta-btn {
    min-height: 56px !important;
    font-size: 1.125rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }
}

