/* ==========================================================================
   SEEYOUSOON SUPER-APP — B2B & CORPORATE PORTAL STYLES
   Section 8 Compliant: Zero CDN, strictly < 500 lines.
   ========================================================================== */

.b2b-portal-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b2b-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

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

.b2b-icon-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.b2b-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-title {
  font-size: 18px;
  font-weight: 900;
  color: #FFF;
}

.b2b-pro-badge {
  font-size: 9.5px;
  font-weight: 900;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60A5FA;
  padding: 1px 6px;
  border-radius: 999px;
}

.b2b-subtitle {
  font-size: 11.5px;
  color: var(--paper-muted);
}

.b2b-close-btn {
  background: none;
  border: none;
  color: var(--paper-muted);
  font-size: 22px;
  cursor: pointer;
}

/* Navigation Chips */
.b2b-nav-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.b2b-nav-chips::-webkit-scrollbar { display: none; }

.b2b-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--paper-dim);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.b2b-tab-btn.active {
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

/* Overview Tab */
.b2b-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.b2b-identity-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.b2b-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.b2b-badge-pre {
  font-size: 10px;
  font-weight: 900;
  color: #60A5FA;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.b2b-card-company {
  font-size: 18px;
  font-weight: 900;
  color: #FFF;
  margin-top: 2px;
}

.b2b-card-org {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.b2b-fskatt-badge {
  font-size: 11px;
  font-weight: 800;
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.b2b-progress-wrap {
  margin-top: 14px;
}

.b2b-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.b2b-progress-meta-label {
  color: var(--paper-muted);
  font-weight: 700;
}

.b2b-progress-meta-val {
  font-family: var(--font-mono);
  color: #FFF;
  font-weight: 900;
}

.b2b-progress-fill-blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.b2b-progress-bottom-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--paper-muted);
  margin-top: 6px;
}

.b2b-credit-remaining {
  color: var(--kr-green);
  font-weight: 800;
}

/* Metric Boxes */
.b2b-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.b2b-metric-box {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.b2b-metric-label {
  font-size: 11px;
  color: var(--paper-muted);
  font-weight: 800;
  text-transform: uppercase;
}

.b2b-metric-val-cyan {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan);
  margin-top: 4px;
}

.b2b-metric-val-amber {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--amber);
  margin-top: 4px;
}

.b2b-metric-sub {
  font-size: 11px;
  color: var(--paper-muted);
  margin-top: 2px;
}

/* Actions Row */
.b2b-actions-row {
  display: flex;
  gap: 8px;
}

.b2b-btn-action {
  flex: 1;
  height: 44px;
  font-size: 13px;
}

.b2b-btn-green {
  background: linear-gradient(135deg, #059669, #10b981) !important;
}

/* Employees Tab */
.b2b-emp-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2b-emp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.b2b-section-h3 {
  font-size: 15px;
  font-weight: 900;
  color: #FFF;
}

.b2b-btn-add {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60A5FA;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.b2b-emp-form {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  flex-direction: column;
  gap: 10px;
}

.b2b-input {
  background: var(--ink-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #FFF;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.b2b-emp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-emp-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}

.b2b-emp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.b2b-emp-name {
  font-size: 14px;
  font-weight: 900;
  color: #FFF;
}

.b2b-emp-role {
  font-size: 11.5px;
  color: var(--paper-muted);
}

.b2b-emp-spend-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

/* Invoices Tab */
.b2b-invoice-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.b2b-invoice-badge {
  font-size: 10px;
  font-weight: 900;
  color: var(--amber);
  text-transform: uppercase;
}

.b2b-invoice-total {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--kr-green);
}

.b2b-invoice-details {
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.b2b-invoice-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.b2b-btn-sie4 {
  background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
}

.b2b-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* Partners Tab */
.b2b-partner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b2b-partner-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.b2b-partner-empty {
  text-align: center;
  padding: 24px;
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
