/* ========================================
   Layout — PrintX Reference Match
   ======================================== */

.app-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.app-header {
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-color);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.app-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Header — NO card border, open layout like reference */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.header-logo-placeholder {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

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

.header-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-separator {
  width: 2px;
  height: 28px;
  background: var(--border-color);
}

.header-subtitle {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-phone {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}

/* Responsive */
@media (max-width: 768px) {
  .app-wrapper { 
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .app-grid { 
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .app-col {
    gap: 16px;
    width: 100%;
  }
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduced from 12px */
    text-align: center;
    width: 100%;
  }
  .header-brand { 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .header-text { 
    flex-direction: column; 
    gap: var(--space-xs); 
  }
  .header-separator { display: none; }
  .header-actions { 
    width: 100%; 
    display: flex;
    margin-top: 12px;
  }
  .header-actions > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }
  .header-actions .btn {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
    border-radius: 10px;
    width: auto;
  }
  .header-actions .btn-admin-toggle {
    width: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .header-actions .btn-whatsapp {
    flex: 1;
    max-width: none;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}
