/* AppSite Plans — module-specific styles only. Shared system from layout.css */

:root {
  --primary: #0f766e;
  --primary-hover: #0d6460;
  --primary-light: #edf7f6;
  --sidebar-w: 220px;
}

body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Plans-specific layout overrides ─────────────────────────────────────── */
.workspace { overflow: hidden; }
.order-list { overflow-y: auto; }
.order-list-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; border-bottom: 1px solid var(--line, #d9dee7); flex-shrink: 0;
}
.order-list-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.order-list-footer { margin-top: auto; border-top: 1px solid var(--line, #d9dee7); flex-shrink: 0; }
.order-item { padding: 11px 14px; border-bottom: 1px solid var(--line, #d9dee7); cursor: pointer; font-size: 13px; }
.order-item:hover { background: var(--bg); }
.order-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.order-item.plan-inactive { opacity: 0.6; }
.order-item:last-child { border-bottom: 0; }
.order-item-nav { text-decoration: none; display: block; }
.workspace-title { font-size: 15px; font-weight: 700; }
.workspace-subtitle { font-size: 12px; color: var(--muted); }

/* ── Status badges ────────────────────────────────────────────────────────── */
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef9c3; color: #92400e; }
.badge-danger  { background: var(--danger-light, #fef2f2); color: var(--danger, #dc2626); }
.event-type-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--muted); }

/* ── Amounts ─────────────────────────────────────────────────────────────── */
.amount-debit  { color: var(--ink); }
.amount-credit { color: var(--success, #16a34a); }

/* ── View tabs (Billing / Team) ──────────────────────────────────────────── */
.plans-view-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 600; font-family: inherit;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); cursor: pointer; margin-bottom: -1px;
}
.plans-view-tab:hover { color: var(--ink); }
.plans-view-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Role badges ─────────────────────────────────────────────────────────── */
.role-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.role-owner  { background: #fef3c7; color: #92400e; }
.role-admin  { background: #dbeafe; color: #1e40af; }
.role-tech   { background: #d1fae5; color: #065f46; }
.role-viewer { background: #f1f5f9; color: #64748b; }
.status-active  { color: #065f46; font-weight: 600; }
.status-pending { color: #92400e; font-weight: 600; }

/* ── Checkbox field ──────────────────────────────────────────────────────── */
label.checkbox-field { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; text-transform: none; letter-spacing: 0; }
label.checkbox-field input { width: auto; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Pricing page workspace ──────────────────────────────────────────────── */
#pricingPageWorkspace { flex: 1; overflow: hidden; }
.pricing-plan-row { background: var(--panel); border: 1px solid var(--line, #d9dee7); border-radius: var(--radius, 8px); padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pricing-plan-row .plan-row-name { flex: 1; font-weight: 600; }
.pricing-plan-row .plan-row-price { color: var(--muted); font-size: 12px; }
.pricing-plan-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--primary-light); color: var(--primary); }
.pricing-preview-page { min-height: 100%; background: radial-gradient(circle at top left, rgba(15,118,110,.16), transparent 34%), #090c11; color: #f4f4f5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.pricing-preview-shell { max-width: 1120px; margin: 0 auto; padding: 44px 24px; }
.pricing-preview-hero { text-align: center; margin-bottom: 28px; }
.pricing-preview-kicker { margin: 0 0 8px; color: #2dd4bf; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.pricing-preview-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
.pricing-preview-hero p { margin: 0 auto; max-width: 720px; color: #a1a1aa; font-size: 15px; }
.pricing-preview-prelaunch { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 18px 20px; border: 1px solid rgba(251,191,36,.35); border-radius: 18px; background: rgba(251,191,36,.08); }
.pricing-preview-prelaunch > span { flex-shrink: 0; border: 1px solid rgba(251,191,36,.5); border-radius: 999px; background: rgba(251,191,36,.18); color: #fcd34d; padding: 4px 10px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pricing-preview-prelaunch strong { color: #fef3c7; font-size: 14px; }
.pricing-preview-prelaunch p { margin: 4px 0 0; color: rgba(253,230,138,.78); font-size: 13px; }
.pricing-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pricing-preview-card { position: relative; display: flex; flex-direction: column; min-height: 560px; padding: 28px 24px; border: 1px solid rgba(63,63,70,.8); border-radius: 18px; background: rgba(24,24,27,.72); }
.pricing-preview-card.highlighted { border-color: rgba(45,212,191,.65); background: rgba(15,118,110,.16); box-shadow: 0 0 0 2px rgba(45,212,191,.18); }
.pricing-preview-pill { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); border-radius: 999px; background: #2dd4bf; color: #06201d; padding: 5px 12px; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.pricing-preview-logo { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 24px; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #ecfeff; font-size: 13px; font-weight: 900; text-align: center; }
.pricing-preview-logo span { font-size: 9px; vertical-align: super; }
.pricing-preview-card h3 { min-height: 52px; margin: 0 0 8px; text-align: center; font-size: 20px; }
.pricing-preview-desc { min-height: 44px; margin: 0 0 16px; color: #a1a1aa; text-align: center; font-size: 13px; }
.pricing-preview-price { margin: 0 0 12px; text-align: center; color: #fff; font-size: 26px; font-weight: 850; }
.pricing-preview-lines { margin: 0 0 16px; text-align: center; }
.pricing-preview-lines p { margin: 3px 0; color: #d4d4d8; font-size: 11px; }
.pricing-preview-button { margin: 0 auto 18px; width: 100%; max-width: 240px; border: 0; border-radius: 10px; background: #2dd4bf; color: #06201d; padding: 10px 14px; font-size: 13px; font-weight: 850; }
.pricing-preview-section-label { margin: 18px 0 12px; padding-top: 16px; border-top: 1px solid rgba(63,63,70,.85); color: #71717a; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pricing-preview-features { display: flex; flex-direction: column; gap: 10px; }
.pricing-preview-features div { display: flex; gap: 9px; color: #d4d4d8; font-size: 12px; line-height: 1.35; }
.pricing-preview-features span { color: #2dd4bf; font-weight: 900; }
.pricing-preview-note { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(251,191,36,.26); border-radius: 16px; background: rgba(251,191,36,.08); text-align: center; color: #fef3c7; }
.pricing-preview-note p { margin: 6px 0 0; color: rgba(251,191,36,.65); font-size: 12px; }
@media (max-width: 1100px) { .pricing-preview-grid { grid-template-columns: 1fr; } }

/* ── Scrollbars ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line, #d9dee7); border-radius: 4px; }

@media print {
  .order-list, header.topbar, #appsite-topnav { display: none !important; }
  body { height: auto; overflow: visible; }
  .workspace { overflow: visible; }
}
