/*
 * Lighthouse Visuals - Main Stylesheet
 * Colors and styles matching lighthousevisuals.com
 */

:root {
  /* Colors matching lighthousevisuals.com exactly */
  --navy: #283155;
  --navy-dark: #1e2640;
  --navy-darker: #171d33;
  --gold: #a89632;
  --gold-hover: #978728;
  --white: #ffffff;
  --off-white: #f4f4f4;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #cccccc;
  --gray-400: #999999;
  --gray-500: #666666;
  --gray-600: #444444;
  --text-dark: #333333;
  --text-light: rgba(255,255,255,0.9);
  --text-muted: rgba(255,255,255,0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Header - Two-row structure like LHV */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Top Bar - Dark navy */
.top-bar {
  background: var(--navy-dark);
  padding: 8px 0;
}

.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.top-bar-left svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
}

.top-bar-left span {
  color: var(--white);
}

.top-bar-left strong {
  color: var(--white);
  font-weight: 700;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.top-bar-right a:hover {
  opacity: 0.8;
}

/* Main Header - White */
.header-main {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 82px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a:hover {
  color: var(--gold);
}

.nav-menu .has-dropdown a svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Hero Section - Photo background with overlay */
.page-hero {
  padding: 180px 40px 100px;
  background: linear-gradient(rgba(31, 41, 55, 0.75), rgba(31, 41, 55, 0.75)),
              url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&h=800&fit=crop') center/cover no-repeat;
  text-align: center;
  position: relative;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--white);
}

.page-hero h1 span {
  color: var(--gold);
}

.page-hero h1 .nowrap {
  white-space: nowrap;
  color: inherit;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 400;
}

/* Gold Divider Bar */
.gold-bar {
  background: var(--gold);
  padding: 18px 40px;
}

.gold-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.gold-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.gold-bar-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy-dark);
  stroke-width: 2.5;
}

/* Main Order Section */
.order-section {
  padding: 60px 40px 80px;
  background: var(--off-white);
}

.order-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

/* Order Form */
.order-form {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.form-header {
  background: var(--navy);
  padding: 22px 30px;
  color: white;
}

.form-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-header h2 span {
  color: var(--gold);
}

.form-section {
  padding: 28px 30px;
  border-bottom: 1px solid var(--gray-100);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-label .required {
  color: #dc3545;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark);
  transition: all 0.2s;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(168, 150, 50, 0.15);
}

.form-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Service Selection - Card Style */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.service-option {
  position: relative;
  display: flex;
  min-width: 0;
}

.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card {
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.service-card-image {
  height: 100px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-option input:checked + .service-card,
.service-card.selected {
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(168, 150, 50, 0.25);
}

.service-card-body {
  padding: 14px;
  text-align: center;
  background: var(--navy);
  color: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.service-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}

.service-price span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.service-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}

.service-include-item {
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.popular-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 1;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  border: 1px dashed var(--border-color);
}

/* Package Grid - Column Layout */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.package-option {
  display: flex;
}

.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-card {
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.package-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(168, 150, 50, 0.15);
}

.package-option input:checked + .package-card,
.package-card.selected {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(168, 150, 50, 0.25);
}

.package-image {
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
  transform: scale(1.05);
}

.package-header {
  background: var(--navy);
  padding: 12px 10px;
  text-align: center;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.package-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.package-includes {
  min-height: 80px;
  max-height: 180px;
  padding: 12px 10px;
  background: var(--gray-50);
  overflow-y: auto;
  flex-grow: 1;
}

.package-includes:empty {
  display: none;
}

.package-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.package-includes li {
  font-size: 0.7rem;
  color: var(--gray-600);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.3;
}

.package-includes li::before {
  content: "-";
  position: absolute;
  left: 4px;
  color: var(--gray-400);
}

.package-price {
  background: var(--navy);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsive packages */
@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

/* Add-ons Grid */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.addon-item:hover {
  border-color: var(--gray-300);
}

.addon-item.selected {
  border-color: var(--gold);
  background: rgba(168, 150, 50, 0.05);
}

.addon-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.addon-item.selected .addon-checkbox {
  background: var(--gold);
  border-color: var(--gold);
}

.addon-checkbox svg {
  width: 12px;
  height: 12px;
  stroke: var(--navy-dark);
  stroke-width: 3;
  opacity: 0;
}

.addon-item.selected .addon-checkbox svg {
  opacity: 1;
}

.addon-info {
  flex: 1;
}

.addon-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.addon-desc {
  font-size: 0.7rem;
  color: var(--gray-400);
}

.addon-price {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
}

/* Sidebar Summary */
.order-sidebar {
  position: sticky;
  top: 140px;
}

.summary-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.summary-header {
  background: var(--navy);
  padding: 18px 22px;
}

.summary-header h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

.summary-header h3 span {
  color: var(--gold);
  font-style: italic;
}

.summary-body {
  padding: 20px 22px;
  background: var(--gray-50);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}

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

.summary-item-label {
  color: var(--gray-500);
}

.summary-item-value {
  font-weight: 600;
  color: var(--text-dark);
}

.summary-package {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.summary-package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.summary-package-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
  padding-right: 10px;
}

.summary-package-price {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.summary-package-includes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-package-includes li {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 2px 0;
  padding-left: 12px;
  position: relative;
}

.summary-package-includes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.summary-addons-list {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 10px;
}

.summary-addon-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding: 4px 0;
}

.hidden {
  display: none !important;
}

/* Cart items list */
.summary-items-list {
  min-height: 60px;
}

.empty-cart-message {
  color: var(--gray-400);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

.summary-item-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.summary-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.summary-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.summary-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.summary-item-includes {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.summary-item-includes li {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 2px 0 2px 14px;
  position: relative;
}

.summary-item-includes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.summary-addons-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-addons-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.summary-addon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
  padding: 3px 0;
}

.summary-addon-row span:first-child {
  flex: 1;
}

.summary-addon-row .summary-addon-price {
  color: var(--gold);
  font-weight: 600;
}

.summary-remove-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.summary-remove-btn:hover {
  color: var(--error-color, #dc2626);
}

.summary-remove-btn svg {
  width: 16px;
  height: 16px;
}

.summary-remove-btn-small svg {
  width: 14px;
  height: 14px;
}

/* Square footage required modal */
.sqft-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.sqft-modal {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.sqft-modal-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  color: var(--gold);
}

.sqft-modal-icon svg {
  width: 100%;
  height: 100%;
}

.sqft-modal h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

.sqft-modal p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.sqft-modal-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sqft-modal-btn:hover {
  background: var(--gold-dark);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 0;
  margin-top: 10px;
  border-top: 2px solid var(--navy);
}

.summary-total-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
}

.summary-total-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
}

.summary-footer {
  padding: 20px 22px;
  background: var(--white);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.submit-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 14px;
  line-height: 1.5;
}

/* Sidebar Info Box */
.sidebar-info {
  background: var(--navy);
  border-radius: 4px;
  padding: 20px;
  margin-top: 16px;
}

.sidebar-info-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.sidebar-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.sidebar-info-item:last-child {
  margin-bottom: 0;
}

.sidebar-info-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Banner */
.cta-banner {
  background: var(--gold);
  padding: 45px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-dark);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.cta-banner h2 span {
  color: var(--navy);
}

.cta-banner p {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cta-banner .btn {
  background: var(--navy);
  color: white;
}

.cta-banner .btn:hover {
  background: var(--navy-dark);
}

/* Footer */
footer {
  background: var(--navy-darker);
  color: white;
  padding: 50px 40px 25px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
}

.footer-brand img {
  height: 40px;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  color: var(--gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1000px) {
  .order-container {
    grid-template-columns: 1fr;
  }
  .order-sidebar {
    position: static;
  }
}

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gold-bar-inner {
    flex-wrap: wrap;
    gap: 15px;
  }
  .gold-bar-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    padding: 0 20px;
  }
  .top-bar-right {
    gap: 12px;
  }
  .top-bar-right a {
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .top-bar {
    display: none;
  }
  .header-inner {
    padding: 0 20px;
    height: 70px;
  }
  .logo img {
    height: 40px;
  }
  .nav-menu {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn {
    padding: 10px 16px;
    font-size: 0.7rem;
  }
  .page-hero {
    padding-top: 100px;
  }
  .page-hero,
  .order-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .form-section {
    padding: 22px 20px;
  }
  .form-grid,
  .addons-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mapbox Address Autofill Styles */
mapbox-address-autofill {
  display: block;
  width: 100%;
}

mapbox-address-autofill input {
  width: 100%;
}

/* Minimap container */
.minimap-container {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #f0f0f0;
}

#address-map {
  width: 100%;
  height: 200px;
  border-radius: 8px 8px 0 0;
}

#address-map .mapboxgl-canvas {
  border-radius: 8px 8px 0 0;
}

/* Mapbox marker styling */
.mapboxgl-marker {
  cursor: grab;
}

.mapboxgl-marker:active {
  cursor: grabbing;
}

.minimap-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  padding: 8px;
  background: var(--gray-50);
  margin: 0;
}

/* Override Mapbox autofill dropdown styling */
.mapboxgl-ctrl-geocoder {
  font-family: 'Montserrat', sans-serif !important;
}

.mapboxgl-ctrl-geocoder--suggestion {
  font-size: 14px !important;
}

/* =============================================
   Address Checks Page Styles
   ============================================= */

.address-checks-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Performance Report */
.performance-report {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
}

.performance-header {
  margin-bottom: 1rem;
}

.performance-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.performance-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #166534 !important;
}

.performance-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: #16a34a;
}

.performance-year-form {
  display: flex;
  align-items: center;
}

.performance-year-select {
  min-width: 100px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #86efac;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  color: #166534;
  font-weight: 600;
  cursor: pointer;
}

.performance-year-select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.performance-table-container {
  overflow-x: auto;
  margin: 0 -1.5rem -1.5rem -1.5rem;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 800px;
}

.performance-table th,
.performance-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #bbf7d0;
  text-align: left;
}

.performance-table th {
  background: rgba(22, 101, 52, 0.1);
  font-weight: 600;
  color: #166534;
  text-transform: uppercase;
  font-size: 0.7rem;
  text-align: left;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.performance-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

.performance-table tfoot {
  background: rgba(22, 101, 52, 0.08);
}

.performance-table tfoot td {
  border-bottom: none;
  border-top: 2px solid #86efac;
}

.month-cell {
  font-weight: 600;
  color: #166534;
}

.currency-cell {
  color: #166534;
  font-weight: 500;
}

.ftc-cell {
  color: #7c3aed;
  font-weight: 600;
}

.product-count-cell {
  color: #0369a1;
}

.no-performance-data {
  text-align: center;
  padding: 2rem;
  color: #4ade80;
}

.no-performance-data p {
  margin: 0;
}

/* Pay Period Selector */
.pay-period-selector h2 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a2a3a !important;
}

.pay-period-form .form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.pay-period-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pay-period-form .form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
}

.pay-period-form .form-group:first-child {
  min-width: 100px;
}

.pay-period-form .form-group:nth-child(2) {
  min-width: 220px;
}

/* Orders Summary - Override global lhv.css .summary-header styles */
.orders-summary .summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: transparent !important;
  padding: 0 !important;
}

.summary-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.orders-summary h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a2a3a !important;
}

.summary-stats {
  display: flex;
  gap: 1.5rem;
}

.summary-stats .stat {
  font-size: 0.9375rem;
  color: #374151 !important;
}

.summary-stats .stat strong {
  color: #1a2a3a !important;
  font-weight: 700;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #16a34a;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-download:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-download-commission {
  background: #7c3aed;
}

.btn-download-commission:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-download svg {
  flex-shrink: 0;
}

/* Orders Table */
.orders-table-container {
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 700px;
}

.orders-table th,
.orders-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.orders-table tbody tr:hover {
  background: #f9fafb;
}

.orders-table tfoot td {
  background: #f9fafb;
  border-bottom: none;
}

.date-cell {
  white-space: nowrap;
  color: #6b7280;
}

.address-cell {
  max-width: 280px;
}

.address-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-cell {
  color: #6b7280;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-cell {
  width: 250px;
  min-width: 200px;
}

.product-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 0.125rem 0.25rem 0.125rem 0;
  vertical-align: middle;
}

.payout-cell {
  white-space: nowrap;
  font-weight: 500;
  color: #16a34a;
}

.actions-cell {
  text-align: center;
}

.support-ticket-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #6b7280;
  transition: all 0.15s ease;
}

.support-ticket-link:hover {
  background: #f3f4f6;
  color: #4a9eff;
}

.support-ticket-link svg {
  width: 18px;
  height: 18px;
}

.view-order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #6b7280;
  transition: all 0.15s ease;
}

.view-order-link:hover {
  background: #dbeafe;
  color: #2563eb;
}

.view-order-link svg {
  width: 18px;
  height: 18px;
}

/* Empty/Initial States */
.no-orders,
.initial-state {
  padding: 3rem;
}

.no-orders-content,
.initial-state-content {
  text-align: center;
  color: #6b7280;
}

.no-orders-content svg,
.initial-state-content svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-orders-content h3,
.initial-state-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151 !important;
}

.no-orders-content p,
.initial-state-content p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Team Orders Section */
.team-orders-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.team-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1px solid #bae6fd;
}

.team-summary .summary-header {
  background: transparent !important;
  padding: 0 !important;
}

.team-summary h2 {
  color: #0369a1 !important;
}

.summary-stats .stat.commission strong {
  color: #7c3aed !important;
}

.photographer-cell {
  font-weight: 500;
  color: #1a2a3a;
}

.zipcode-cell {
  color: #6b7280;
  white-space: nowrap;
}

.tier-cell {
  white-space: nowrap;
}

.tier-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-tag.commission-tier {
  background: #ede9fe;
  color: #7c3aed;
}

.commission-cell {
  white-space: nowrap;
  font-weight: 500;
  color: #7c3aed;
}

/* Team table has more columns, adjust widths */
.team-orders-table {
  min-width: 850px;
}

.team-orders-table .address-cell {
  max-width: 200px;
}

.team-orders-table .client-cell {
  max-width: 120px;
}

@media (max-width: 768px) {
  .pay-period-form .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-summary .summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .orders-table {
    font-size: 0.8rem;
  }

  .orders-table th,
  .orders-table td {
    padding: 0.625rem 0.5rem;
  }

  .address-cell,
  .client-cell,
  .products-cell {
    max-width: 120px;
  }

  .team-orders-table {
    font-size: 0.7rem;
  }

  .team-orders-table .address-cell {
    max-width: 100px;
  }

  .summary-stats {
    flex-wrap: wrap;
  }
}

/* =============================================
   Company Performance Page Styles
   ============================================= */
.company-performance-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.company-performance-page .card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

/* Header */
.performance-header-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}

.performance-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.performance-header-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af !important;
}

.performance-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: #3b82f6;
}

.performance-year-form {
  display: flex;
  align-items: center;
}

.performance-year-select {
  min-width: 100px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  color: #1e40af;
  font-weight: 600;
  cursor: pointer;
}

.performance-year-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Report Sections */
.company-performance-page .report-section {
  padding: 0;
  overflow: hidden;
}

.company-performance-page .section-title {
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2a3a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.company-performance-page .table-container {
  overflow-x: auto;
}

/* Tables */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 1800px;
}

.company-table th,
.company-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.company-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.3px;
}

.company-table tbody tr:hover {
  background: #f8fafc;
}

.company-table tfoot {
  background: #f1f5f9;
}

.company-table tfoot td {
  border-bottom: none;
  border-top: 2px solid #cbd5e1;
}

/* Sticky columns */
.company-table .sticky-col {
  position: sticky;
  left: 0;
  background: white;
  z-index: 10;
  box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.company-table thead .sticky-col {
  background: #f1f5f9;
  z-index: 11;
}

.company-table tfoot .sticky-col {
  background: #f1f5f9;
}

/* Column widths */
.company-table .market-col {
  min-width: 140px;
  max-width: 180px;
}

.company-table .photog-col {
  width: 50px;
}

.company-table .month-header {
  border-left: 1px solid #cbd5e1;
  background: #e2e8f0;
}

.company-table .metric-col {
  width: 45px;
  font-size: 0.5625rem;
}

.company-table .total-col {
  width: 55px;
  border-left: 2px solid #cbd5e1;
}

/* Cell styles */
.company-table .market-cell {
  font-weight: 600;
  color: #1e40af;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-table .photog-cell {
  color: #6b7280;
}

.company-table .count-cell {
  color: #1a2a3a;
  font-weight: 500;
}

.company-table .avg-cell {
  color: #16a34a;
  font-size: 0.6875rem;
}

.company-table .max-cell {
  color: #b45309;
  font-size: 0.6875rem;
}

.company-table .total-cell {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.05);
}

.company-table .zero-value {
  color: #d1d5db !important;
}

.company-table .text-right {
  text-align: right;
}

.company-table .text-center {
  text-align: center;
}

/* Alternating month backgrounds */
.company-table tbody td:nth-child(3n+3),
.company-table tbody td:nth-child(3n+4),
.company-table tbody td:nth-child(3n+5) {
  /* Every other month group gets subtle background */
}

/* No data state */
.company-performance-page .no-data {
  padding: 3rem;
}

.company-performance-page .no-data-content {
  text-align: center;
  color: #6b7280;
}

.company-performance-page .no-data-content svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.company-performance-page .no-data-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151 !important;
}

.company-performance-page .no-data-content p {
  margin: 0;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .company-performance-page .performance-title-row {
    flex-direction: column;
  }

  .company-table {
    font-size: 0.6875rem;
  }

  .company-table th,
  .company-table td {
    padding: 0.375rem;
  }
}

/* =============================================
   Dashboard Layout Styles
   ============================================= */
.dashboard-layout {
  --dashboard-navy: #283155;
  --dashboard-navy-dark: #1e2640;
  --dashboard-gold: #a89632;
  --dashboard-gold-hover: #978728;
  --dashboard-sidebar-width: 260px;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
  width: var(--dashboard-sidebar-width, 260px);
  background: var(--dashboard-navy, #283155);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.dashboard-sidebar .sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dashboard-sidebar .sidebar-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.dashboard-sidebar .sidebar-logo span {
  color: var(--dashboard-gold, #a89632);
  font-weight: 300;
}

.dashboard-sidebar .sidebar-logo-img {
  max-width: 180px;
  height: auto;
  display: block;
}

.dashboard-sidebar .sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: white;
  transition: background 0.2s;
}

.dashboard-sidebar .sidebar-user:hover {
  background: rgba(255,255,255,0.1);
}

.dashboard-sidebar .user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dashboard-gold, #a89632) 0%, var(--dashboard-gold-hover, #978728) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

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

.dashboard-sidebar .user-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-sidebar .user-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  background: var(--dashboard-gold, #a89632);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
}

.dashboard-sidebar .sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.dashboard-sidebar .nav-section {
  margin-bottom: 25px;
}

.dashboard-sidebar .nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  padding: 0 20px;
  margin-bottom: 10px;
}

.dashboard-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.dashboard-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.dashboard-sidebar .nav-link.active {
  background: rgba(168, 150, 50, 0.2);
  color: var(--dashboard-gold, #a89632);
  border-left: 3px solid var(--dashboard-gold, #a89632);
}

.dashboard-sidebar .nav-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dashboard-sidebar .nav-badge {
  margin-left: auto;
  background: var(--dashboard-gold, #a89632);
  color: var(--dashboard-navy, #283155);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.dashboard-sidebar .sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.dashboard-sidebar .logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.dashboard-sidebar .logout-btn:hover {
  background: rgba(255,255,255,0.2);
}

.dashboard-sidebar .logout-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Dashboard Main Content */
.dashboard-main {
  flex: 1;
  margin-left: var(--dashboard-sidebar-width, 260px);
  min-height: 100vh;
}

.dashboard-header {
  background: white;
  padding: 20px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-layout .page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--dashboard-navy, #283155);
}

.dashboard-layout .header-actions {
  display: flex;
  gap: 10px;
}

.dashboard-content {
  padding: 30px;
}

/* Dashboard Flash Messages */
.dashboard-layout .flash-messages {
  padding: 0 30px;
  margin-top: 20px;
}

.dashboard-layout .flash {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.dashboard-layout .flash-notice {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.dashboard-layout .flash-alert {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Dashboard Buttons */
.dashboard-layout .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.dashboard-layout .btn-primary {
  background: var(--dashboard-gold, #a89632);
  color: white;
}

.dashboard-layout .btn-primary:hover {
  background: var(--dashboard-gold-hover, #978728);
}

.dashboard-layout .btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.dashboard-layout .btn-secondary:hover {
  background: #d1d5db;
}

.dashboard-layout .btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.dashboard-layout .btn-outline:hover {
  background: #f3f4f6;
}

.dashboard-layout .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.dashboard-layout .btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Dashboard Cards */
.dashboard-layout .card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-layout .card-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-layout .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dashboard-navy, #283155);
}

.dashboard-layout .card-body {
  padding: 20px;
}

/* Dashboard Stats */
.dashboard-layout .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-layout .stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-layout .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin-bottom: 8px;
}

.dashboard-layout .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--dashboard-navy, #283155);
}

.dashboard-layout .stat-change {
  font-size: 12px;
  margin-top: 5px;
}

.dashboard-layout .stat-change.positive { color: #16a34a; }
.dashboard-layout .stat-change.negative { color: #dc2626; }

/* Dashboard Tables */
.dashboard-layout .table-container {
  overflow-x: auto;
}

.dashboard-layout table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-layout th,
.dashboard-layout td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-layout th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 600;
  background: #f9fafb;
}

.dashboard-layout td {
  font-size: 14px;
  color: #374151;
}

.dashboard-layout tr:hover {
  background: #f9fafb;
}

/* Dashboard Status Badges */
.dashboard-layout .status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-layout .status-pending { background: #fef3c7; color: #92400e; }
.dashboard-layout .status-scheduled { background: #e0e7ff; color: #3730a3; }
.dashboard-layout .status-in_progress { background: #fce7f3; color: #9d174d; }
.dashboard-layout .status-completed { background: #d1fae5; color: #065f46; }
.dashboard-layout .status-cancelled { background: #f3f4f6; color: #6b7280; }

/* Dashboard Empty State */
.dashboard-layout .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.dashboard-layout .empty-state svg {
  width: 48px;
  height: 48px;
  stroke: #d1d5db;
  margin-bottom: 15px;
}

.dashboard-layout .empty-state h3 {
  font-size: 16px;
  color: #374151;
  margin-bottom: 5px;
}

.dashboard-layout .empty-state p {
  font-size: 14px;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-main {
    margin-left: 0;
  }
}

/* =============================================
   Photographers Portal Layout Styles
   ============================================= */
/* Reset inherited styles from application.css */
.photographers-portal,
.photographers-portal * {
  box-sizing: border-box;
}

.photographers-portal {
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  background: #f5f7fa;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
}

/* Hide any global header/footer from main app */
.photographers-portal .site-header,
.photographers-portal .site-footer,
.photographers-portal > header:not(.portal-header),
.photographers-portal > footer {
  display: none !important;
}

.photographers-portal .portal-container {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Photographers Sidebar */
.photographers-portal .portal-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1a2a3a 0%, #0d1520 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.photographers-portal .sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.photographers-portal .sidebar-logo {
  max-width: 160px;
  height: auto;
  display: block;
  padding: 0.5rem;
  background: linear-gradient(135deg, #1a3a5f 0%, #1e4a6f 100%);
  border-radius: 8px;
}

.photographers-portal .portal-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.photographers-portal .sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
  min-height: 0; /* Required for flex child to be scrollable */
}

.photographers-portal .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.photographers-portal .nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.photographers-portal .nav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
  border-left-color: #4a9eff;
}

/* Collapsible nav sections */
.photographers-portal .nav-section {
  margin: 0;
}

.photographers-portal .nav-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.photographers-portal .nav-section-header:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.photographers-portal .nav-section-header span {
  flex: 1;
}

.photographers-portal .nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.photographers-portal .nav-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  background: rgba(0,0,0,0.15);
}

.photographers-portal .nav-subitem {
  display: flex;
  align-items: center;
  padding: 0.625rem 1.5rem 0.625rem 3.25rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.photographers-portal .nav-subitem:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.photographers-portal .nav-subitem.active {
  background: rgba(255,255,255,0.08);
  color: white;
  border-left-color: #4a9eff;
}

.photographers-portal .sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.photographers-portal .user-info-link {
  display: block;
  text-decoration: none;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
  color: inherit;
}

.photographers-portal .user-info-link:visited {
  color: inherit;
}

.photographers-portal .user-info-link:hover {
  background: rgba(255,255,255,0.05);
  color: inherit;
}

.photographers-portal .user-info-link .user-name {
  color: white;
}

.photographers-portal .user-info-link .user-role {
  color: rgba(255,255,255,0.5);
}

.photographers-portal .user-info-link:hover .profile-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.photographers-portal .user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin: -0.5rem;
}

.photographers-portal .profile-arrow {
  margin-left: auto;
  opacity: 0.5;
  transition: all 0.2s;
  color: rgba(255,255,255,0.6);
}

.photographers-portal .user-avatar {
  width: 36px;
  height: 36px;
  background: #4a9eff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.photographers-portal .user-avatar.admin-avatar {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.photographers-portal .user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.photographers-portal .user-details {
  display: flex;
  flex-direction: column;
}

.photographers-portal .user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.photographers-portal .user-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.photographers-portal .logout-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.photographers-portal .logout-link:hover {
  color: #ff6b6b;
}

/* Photographers Main Content */
.photographers-portal .portal-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  overflow-x: hidden;
}

.photographers-portal .portal-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  z-index: auto !important;
  background: white;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e1e5eb;
}

.photographers-portal .page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a2a3a;
}

.photographers-portal .portal-content {
  padding: 2rem;
  overflow-x: hidden;
}

.photographers-portal .alert {
  padding: 1rem 2rem;
  margin: 0;
}

.photographers-portal .alert-success {
  background: #d4edda;
  color: #155724;
}

.photographers-portal .alert-danger {
  background: #f8d7da;
  color: #721c24;
}

/* Photographers Cards */
.photographers-portal .card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.photographers-portal .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a2a3a;
  margin: 0 0 1rem 0;
}

/* Photographers Buttons */
.photographers-portal .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.photographers-portal .btn-primary {
  background: #1a2a3a;
  color: white;
}

.photographers-portal .btn-primary:hover {
  background: #2d4356;
}

.photographers-portal .btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.photographers-portal .btn-outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.photographers-portal .mockup-notice {
  background: #fff3cd;
  border: 1px dashed #ffc107;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #856404;
}

.photographers-portal .mockup-notice h3 {
  margin: 0 0 0.5rem 0;
}

.photographers-portal .mockup-notice p {
  margin: 0;
  opacity: 0.8;
}

/* Impersonation Banner */
.photographers-portal .impersonation-banner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.photographers-portal .impersonation-banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.photographers-portal .impersonation-banner-content strong {
  font-weight: 600;
}

.photographers-portal .impersonation-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.photographers-portal .banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.photographers-portal .banner-btn-switch {
  background: rgba(255,255,255,0.2);
  color: white;
}

.photographers-portal .banner-btn-switch:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

.photographers-portal .banner-btn-stop {
  background: rgba(0,0,0,0.2);
  color: white;
}

.photographers-portal .banner-btn-stop:hover {
  background: rgba(220,38,38,0.8);
  color: white;
}

/* =============================================
   User Search Autocomplete Styles
   ============================================= */
.user-search-container {
  position: relative;
  max-width: 500px;
  margin-bottom: 8px;
}

.user-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-search-input:focus {
  outline: none;
  border-color: #a89632;
  box-shadow: 0 0 0 3px rgba(168, 150, 50, 0.1);
}

.user-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2;
}

.user-search-spinner {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #a89632;
  border-radius: 50%;
  animation: user-search-spin 0.6s linear infinite;
  display: none;
}

.user-search-spinner.active {
  display: block;
}

@keyframes user-search-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.user-search-hint {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

/* Autocomplete Results (shared with client search) */
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
  display: none;
}

.autocomplete-results.active {
  display: block;
}

.autocomplete-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s;
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: #f9fafb;
}

.autocomplete-item-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.autocomplete-item-details {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.autocomplete-empty {
  padding: 16px;
  text-align: center;
  color: #6b7280;
}

/* User role badges in autocomplete */
.user-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-role-badge.role-admin {
  background: #fef3c7;
  color: #92400e;
}

.user-role-badge.role-manager {
  background: #dbeafe;
  color: #1e40af;
}

.user-role-badge.role-photographer {
  background: #d1fae5;
  color: #065f46;
}

.user-photographer {
  color: #6b7280;
  font-size: 12px;
}

/* Role badges (for table) */
.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-admin {
  background: #fef3c7;
  color: #92400e;
}

.role-manager {
  background: #dbeafe;
  color: #1e40af;
}

.role-photographer {
  background: #d1fae5;
  color: #065f46;
}

/* Utility classes */
.text-muted {
  color: #9ca3af;
}

.btn-danger {
  color: #dc2626 !important;
}

/* =============================================
   Confirm Modal Styles
   ============================================= */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.confirm-modal.active .confirm-modal-content {
  transform: scale(1);
}

.confirm-modal-header {
  padding: 20px 24px 0;
}

.confirm-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.confirm-modal-body {
  padding: 12px 24px 24px;
}

.confirm-modal-message {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.confirm-modal-footer {
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal .btn-cancel {
  padding: 10px 20px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.confirm-modal .btn-cancel:hover {
  background: #f3f4f6;
}

.confirm-modal .btn-confirm-delete {
  padding: 10px 20px;
  background: #dc2626;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.confirm-modal .btn-confirm-delete:hover {
  background: #b91c1c;
}

/* =============================================
   Accordion Styles
   ============================================= */
.accordion-header {
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  background: var(--gray-50);
  margin: -28px -30px;
  padding: 28px 30px;
}

.accordion-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.accordion-toggle:hover {
  background: var(--gray-200);
}

.accordion-toggle svg {
  color: var(--gray-500);
}

.accordion-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

/* Addon items within accordion use existing .addons-grid styles */
.addon-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.addon-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: var(--white);
}

.addon-item input:checked ~ .addon-check,
.addon-item.selected .addon-check {
  background: var(--gold);
  border-color: var(--gold);
}

.addon-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.addon-item input:checked ~ .addon-check svg,
.addon-item.selected .addon-check svg {
  opacity: 1;
}

/* =============================================
   Mobile Menu Styles (Hamburger)
   ============================================= */

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

/* Hamburger button - hidden by default */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn svg {
  stroke: #374151;
}

/* Dashboard mobile styles */
@media (max-width: 768px) {
  .dashboard-layout .mobile-overlay {
    display: block;
    pointer-events: none;
  }

  .dashboard-layout .mobile-overlay.active {
    pointer-events: auto;
  }

  .dashboard-layout .mobile-menu-btn {
    display: flex;
  }

  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-header {
    display: flex;
    align-items: center;
  }

  .dashboard-header .page-title {
    flex: 1;
  }
}

/* Photographer Portal mobile styles */
@media (max-width: 768px) {
  .photographers-portal .mobile-overlay {
    display: block;
    pointer-events: none;
  }

  .photographers-portal .mobile-overlay.active {
    pointer-events: auto;
  }

  .photographers-portal .mobile-menu-btn {
    display: flex;
  }

  .photographers-portal .mobile-menu-btn svg {
    stroke: #1a2a3a;
  }

  .photographers-portal .portal-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .photographers-portal .portal-sidebar.mobile-open {
    transform: translateX(0);
  }

  .photographers-portal .portal-main {
    margin-left: 0;
  }

  .photographers-portal .portal-header {
    display: flex;
    align-items: center;
  }

  .photographers-portal .portal-header .page-title {
    flex: 1;
  }

  /* Mobile content adjustments */
  .photographers-portal .portal-content {
    padding: 1rem;
  }

  .photographers-portal .portal-header {
    padding: 1rem;
  }

  /* Make all cards fit on mobile */
  .photographers-portal .card {
    padding: 1rem;
  }

  /* Table containers - allow horizontal scroll */
  .photographers-portal .performance-table-container,
  .photographers-portal .orders-table-container,
  .photographers-portal .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  /* Minimum width for tables to ensure readability */
  .photographers-portal .performance-table,
  .photographers-portal .orders-table,
  .photographers-portal .company-table {
    min-width: 600px;
  }

  /* Performance report adjustments */
  .photographers-portal .performance-header {
    flex-direction: column;
    gap: 1rem;
  }

  .photographers-portal .performance-title-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .photographers-portal .performance-year-form {
    width: 100%;
  }

  .photographers-portal .performance-year-select {
    width: 100%;
  }

  /* Pay period selector */
  .photographers-portal .pay-period-form .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .photographers-portal .pay-period-form .form-group {
    width: 100%;
  }

  .photographers-portal .pay-period-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* Orders summary adjustments */
  .photographers-portal .orders-summary .summary-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .photographers-portal .orders-summary .summary-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .photographers-portal .btn-download {
    width: 100%;
    justify-content: center;
  }

  /* Team summary */
  .photographers-portal .team-summary .summary-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  /* Performance table - convert to card layout on mobile */
  .photographers-portal .performance-table-container {
    margin: 0;
    overflow: visible;
  }

  .photographers-portal .performance-table {
    min-width: 0;
    display: block;
  }

  .photographers-portal .performance-table thead {
    display: none;
  }

  .photographers-portal .performance-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .photographers-portal .performance-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #d1fae5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  .photographers-portal .performance-table tbody td {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
    border: none;
  }

  .photographers-portal .performance-table tbody td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
  }

  .photographers-portal .performance-table tbody td.month-cell {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    color: white;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: -0.25rem -0.25rem 0.5rem -0.25rem;
  }

  .photographers-portal .performance-table tbody td.month-cell::before {
    display: none;
  }

  .photographers-portal .performance-table tfoot {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #86efac;
  }

  .photographers-portal .performance-table tfoot tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .photographers-portal .performance-table tfoot td {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
    border: none;
  }

  .photographers-portal .performance-table tfoot td:first-child {
    grid-column: 1 / -1;
    font-size: 1rem;
    padding-bottom: 0.5rem;
  }

  .photographers-portal .performance-table tfoot td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
  }

  .photographers-portal .performance-table tfoot td:first-child::before {
    display: none;
  }

  /* Orders table - convert to card layout on mobile */
  .photographers-portal .orders-table-container {
    overflow: visible;
  }

  .photographers-portal .orders-table {
    min-width: 0;
    display: block;
  }

  .photographers-portal .orders-table thead {
    display: none;
  }

  .photographers-portal .orders-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .photographers-portal .orders-table tbody tr {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    gap: 0.5rem;
  }

  .photographers-portal .orders-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.25rem 0;
    border: none;
  }

  .photographers-portal .orders-table tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    margin-right: 1rem;
  }

  .photographers-portal .orders-table tbody td.date-cell {
    order: -2;
    background: #f3f4f6;
    margin: -1rem -1rem 0.5rem -1rem;
    padding: 0.625rem 1rem;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #374151;
  }

  .photographers-portal .orders-table tbody td.date-cell::before {
    display: none;
  }

  .photographers-portal .orders-table tbody td.address-cell {
    order: -1;
    font-weight: 600;
    color: #1a2a3a;
    font-size: 0.95rem;
  }

  .photographers-portal .orders-table tbody td.address-cell::before {
    display: none;
  }

  .photographers-portal .orders-table tbody td.address-cell .address-text {
    white-space: normal;
  }

  .photographers-portal .orders-table tbody td.products-cell {
    flex-wrap: wrap;
  }

  .photographers-portal .orders-table tbody td.products-cell::before {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .photographers-portal .orders-table tbody td.payout-cell {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .photographers-portal .orders-table tbody td.actions-cell {
    justify-content: flex-end;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e5e7eb;
  }

  .photographers-portal .orders-table tbody td.actions-cell::before {
    display: none;
  }

  .photographers-portal .orders-table tfoot {
    display: block;
    margin-top: 1rem;
  }

  .photographers-portal .orders-table tfoot tr {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
    gap: 0 !important;
  }

  .photographers-portal .orders-table tfoot td {
    border: none !important;
    padding: 0 !important;
    display: none !important;
    background: transparent !important;
    flex-direction: row !important;
  }

  .photographers-portal .orders-table tfoot td::before {
    display: none !important;
  }

  .photographers-portal .orders-table tfoot td.total-label {
    display: block !important;
    font-size: 0.875rem;
    color: white;
  }

  .photographers-portal .orders-table tfoot td.total-label strong {
    color: white;
  }

  .photographers-portal .orders-table tfoot td.payout-cell,
  .photographers-portal .orders-table tfoot td.commission-cell {
    display: block !important;
    font-size: 1.5rem;
    color: white;
  }

  .photographers-portal .team-orders-table tfoot tr {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  }

  /* Team orders table specific adjustments */
  .photographers-portal .team-orders-table tbody td.photographer-cell {
    order: -1;
    font-weight: 600;
    color: #1a2a3a;
  }

  .photographers-portal .team-orders-table tbody td.photographer-cell::before {
    display: none;
  }

  .photographers-portal .team-orders-table tbody td.commission-cell {
    font-size: 1.1rem;
    font-weight: 600;
  }
}

/* Additional mobile styles for photographer portal - smaller screens */
@media (max-width: 480px) {
  .photographers-portal .portal-content {
    padding: 0.75rem;
  }

  .photographers-portal .card {
    padding: 0.875rem;
    border-radius: 6px;
  }

  /* Table containers on small screens */
  .photographers-portal .performance-table-container,
  .photographers-portal .orders-table-container,
  .photographers-portal .table-container {
    margin: 0 -0.875rem;
    padding: 0 0.875rem;
  }

  /* Make page titles smaller */
  .photographers-portal .portal-header .page-title {
    font-size: 1.125rem;
  }

  /* Address checks page specific */
  .address-checks-page h2 {
    font-size: 1rem;
  }

  .address-checks-page .performance-subtitle {
    font-size: 0.75rem;
  }

  /* Reduce button size */
  .photographers-portal .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .photographers-portal .btn-download {
    padding: 0.5rem 0.75rem;
  }

  .photographers-portal .btn-download svg {
    width: 16px;
    height: 16px;
  }
}

/* =============================================
   Job Ticket Page Mobile Styles
   ============================================= */
@media (max-width: 768px) {
  /* Job ticket page layout */
  .job-ticket-page {
    max-width: 100%;
    padding: 0;
  }

  .job-ticket-page .page-header h1 {
    font-size: 1.25rem;
  }

  /* Drafts section */
  .job-ticket-page .drafts-section {
    margin-bottom: 1.5rem;
  }

  .job-ticket-page .draft-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .job-ticket-page .draft-info {
    width: 100%;
  }

  .job-ticket-page .draft-address {
    white-space: normal;
    font-size: 0.9375rem;
  }

  .job-ticket-page .draft-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .job-ticket-page .draft-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Form layout */
  .job-ticket-page .form-row,
  .job-ticket-form-container .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .job-ticket-page .form-row > .form-group,
  .job-ticket-form-container .form-row > .form-group {
    width: 100% !important;
  }

  /* Product rows */
  .job-ticket-page .product-row-main,
  .job-ticket-form-container .product-row-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .job-ticket-page .product-select-group,
  .job-ticket-form-container .product-select-group {
    width: 100%;
  }

  .job-ticket-page .quantity-group,
  .job-ticket-page .hdr-count-group,
  .job-ticket-form-container .quantity-group,
  .job-ticket-form-container .hdr-count-group {
    width: 100%;
  }

  .job-ticket-page .btn-remove-product,
  .job-ticket-form-container .btn-remove-product {
    align-self: flex-end;
    margin-top: 0.5rem;
  }

  /* Form actions */
  .job-ticket-page .form-actions,
  .job-ticket-form-container .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .job-ticket-page .form-actions .btn,
  .job-ticket-form-container .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Autocomplete dropdown */
  .job-ticket-page .autocomplete-results,
  .job-ticket-form-container .autocomplete-results {
    max-height: 200px;
  }

  /* Map */
  .job-ticket-page #job-ticket-map,
  .job-ticket-form-container #job-ticket-map {
    height: 200px;
  }

  /* Selected zipcode */
  .job-ticket-page .selected-zipcode,
  .job-ticket-form-container .selected-zipcode {
    font-size: 0.8125rem;
    padding: 0.5rem 0.625rem;
  }
}

/* =============================================
   Job Ticket Show/Edit Page Mobile Styles
   ============================================= */
@media (max-width: 768px) {
  /* Show page layout */
  .job-ticket-show .two-column-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .job-ticket-show .detail-column,
  .job-ticket-show .main-column {
    width: 100%;
  }

  .job-ticket-show .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .job-ticket-show .status-badge {
    align-self: flex-start;
  }

  .job-ticket-show .action-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .job-ticket-show .action-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Line items table on show page */
  .job-ticket-show .line-items-table {
    display: block;
  }

  .job-ticket-show .line-items-table thead {
    display: none;
  }

  .job-ticket-show .line-items-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .job-ticket-show .line-items-table tbody tr {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    gap: 0.5rem;
  }

  .job-ticket-show .line-items-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border: none;
  }

  .job-ticket-show .line-items-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
  }
}

/* =============================================
   Queue Page Mobile Styles
   ============================================= */
@media (max-width: 768px) {
  .queue-page .queue-summary {
    flex-wrap: wrap;
  }

  .queue-page .form-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .queue-page .form-group.flex-grow {
    width: 100%;
  }

  .queue-page .schedule-form .btn,
  .queue-page .assign-form .btn {
    width: 100%;
    justify-content: center;
  }

  .queue-page .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .queue-page .scheduled-info {
    align-items: flex-start;
  }
}

/* =============================================
   Support Tickets Page Mobile Styles
   ============================================= */
@media (max-width: 768px) {
  .support-tickets-page .ticket-card {
    flex-direction: column;
  }

  .support-tickets-page .ticket-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .support-tickets-page .ticket-actions {
    width: 100%;
    margin-top: 0.75rem;
  }

  .support-tickets-page .ticket-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   Profile Page Mobile Styles
   ============================================= */
@media (max-width: 768px) {
  .profile-page .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-page .profile-avatar {
    margin: 0 auto;
  }

  .profile-page .profile-form .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-page .profile-form .form-group {
    width: 100%;
  }

  .profile-page .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .profile-page .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   Global Mobile Fixes - Prevent Overflow
   ============================================= */
@media (max-width: 768px) {
  /* Ensure nothing causes horizontal scroll */
  .photographers-portal .portal-content {
    overflow-x: hidden;
  }

  /* All cards should fit */
  .photographers-portal .card {
    max-width: 100%;
    overflow: hidden;
  }

  /* All form inputs should fit */
  .photographers-portal input,
  .photographers-portal select,
  .photographers-portal textarea {
    max-width: 100%;
  }

  /* Fix any table that might overflow */
  .photographers-portal table {
    max-width: 100%;
  }

  /* Ensure buttons don't overflow */
  .photographers-portal .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
