/* ==========================================================================
   QuoteMaker.lk - Business Workspace & User Profile Pages
   Contiant Neo-Fintech Minimalist Design System (StanVision Webflow Inspired)
   Bento-Grid Component Cards, Manrope Editorial Typography, Pastel Theming,
   Atmospheric Ambient Glows, and Tactile Pill Interactions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CANVAS & ATMOSPHERIC GLOW
   -------------------------------------------------------------------------- */
.page-workspace {
  background-color: #F8FAFC !important;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(124, 58, 237, 0.045) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(61, 68, 233, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(223, 243, 246, 0.3) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
  color: #0D0D0C;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page-workspace .site-header .container {
  max-width: 100% !important;
  padding-left: 36px !important;
  padding-right: 36px !important;
}

.page-workspace .main-content {
  flex: 1 0 auto;
  background: transparent;
}

.saas-workspace-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 24px 36px 64px !important;
  box-sizing: border-box;
}

.saas-workspace-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   EXECUTIVE CONTIANT COMMAND BAR
   -------------------------------------------------------------------------- */
.ws-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.ws-header::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.ws-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1;
}

.ws-company-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ws-company-avatar-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7C3AED 0%, #3D44E9 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 6px 16px -3px rgba(124, 58, 237, 0.28);
  border: 2px solid #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
}

.ws-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-avatar-initial {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ws-company-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-company-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ws-company-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0D0D0C;
  margin: 0;
  letter-spacing: -0.03em;
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
}

/* Contiant Pastel Badges */
.ws-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DFD1F4;
  color: #3F27AC;
  border: 1px solid #D1BDEB;
  border-radius: 9999px;
  padding: 3px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ws-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.ws-company-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #52606D;
}

.ws-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   CONTIANT PILL BUTTONS (ct-btn-pill style)
   -------------------------------------------------------------------------- */
.ws-btn,
.ws-topbar-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
  white-space: nowrap;
}

.ws-btn-primary,
.ws-topbar-btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #3D44E9 100%);
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.35);
}

.ws-btn-primary:hover,
.ws-topbar-btn-primary:hover,
.ws-btn-primary:focus,
.ws-topbar-btn-primary:focus,
.ws-btn-primary:active,
.ws-topbar-btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -3px rgba(124, 58, 237, 0.45);
  background: linear-gradient(135deg, #6D28D9 0%, #353BC7 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.ws-btn-primary svg,
.ws-topbar-btn-primary svg {
  transition: transform 0.2s ease;
}

.ws-btn-primary:hover svg,
.ws-topbar-btn-primary:hover svg {
  transform: scale(1.1);
}

.ws-btn-outline {
  background: #FFFFFF;
  color: #1F2933;
  border-color: #CBD2D9;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ws-btn-outline:hover {
  background: #F8FAFC;
  border-color: #7C3AED;
  color: #7C3AED;
  transform: translateY(-1px);
}

.ws-btn-subtle {
  background: transparent;
  color: #52606D;
  border-color: transparent;
  border-radius: 9999px;
}

.ws-btn-subtle:hover {
  background: #F1F5F9;
  color: #0D0D0C;
}

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

.ws-btn-danger:hover {
  background: #FEF2F2 !important;
  border-color: #FECDD3 !important;
}

.ws-btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.ws-btn-lg {
  padding: 12px 26px;
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   BENTO-GRID INSPIRED KPI METRIC CARDS
   -------------------------------------------------------------------------- */
.ws-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ws-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ws-kpi-card:hover {
  transform: translateY(-3px);
  border-color: #CBD2D9;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
}

.ws-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ws-kpi-card:hover .ws-kpi-icon {
  transform: scale(1.05);
}

/* Contiant signature section pastels */
.ws-kpi-blue   { background: #DFF3F6; color: #23596D; border: 1px solid #BCE5E9; }
.ws-kpi-green  { background: #D1FAE5; color: #047857; border: 1px solid #A7F3D0; }
.ws-kpi-amber  { background: #F8F3E7; color: #6D5400; border: 1px solid #EDE2C3; }
.ws-kpi-purple { background: #DFD1F4; color: #3F27AC; border: 1px solid #D1BDEB; }

.ws-kpi-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ws-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #7B8794;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ws-kpi-number-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0D0D0C;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  font-family: 'Manrope', sans-serif;
}

.ws-kpi-subtext {
  font-size: 0.82rem;
  color: #52606D;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   SEGMENTED NAVIGATION TABS (Contiant Capsule Bar)
   -------------------------------------------------------------------------- */
.ws-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 9999px;
  padding: 6px;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.03);
  overflow-x: auto;
}

.ws-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #52606D;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.ws-tab-btn:hover {
  color: #0D0D0C;
  background: #F8FAFC;
}

.ws-tab-btn.active {
  background: #0D0D0C;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px -2px rgba(13, 13, 12, 0.25);
}

.ws-tab-counter {
  background: #F1F5F9;
  color: #52606D;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.ws-tab-btn.active .ws-tab-counter {
  background: #7C3AED;
  color: #FFFFFF;
}

.ws-badge-pill {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #A7F3D0;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ws-tab-btn.active .ws-badge-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: transparent;
}

.ws-tab-link {
  margin-left: auto;
  color: #7B8794;
}

.ws-tab-link:hover {
  color: #7C3AED;
}

/* --------------------------------------------------------------------------
   PANELS, TOOLBAR & SEARCH
   -------------------------------------------------------------------------- */
.ws-panel-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ws-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}

.ws-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9AA5B1;
  pointer-events: none;
}

.ws-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 40px;
  border: 1px solid #CBD2D9;
  border-radius: 9999px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0D0D0C;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.ws-search-box input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ws-status-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 9999px;
  padding: 4px;
  overflow-x: auto;
}

.ws-pill {
  border: none;
  background: transparent;
  color: #52606D;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ws-pill:hover {
  color: #0D0D0C;
  background: #F1F5F9;
}

.ws-pill.active {
  background: #7C3AED;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* --------------------------------------------------------------------------
   BENTO RECORDS CONTAINER & DATA TABLES
   -------------------------------------------------------------------------- */
.ws-records-container {
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

.ws-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.ws-table thead {
  background: #F8FAFC;
  border-bottom: 1px solid #E4E7EB;
}

.ws-table th {
  padding: 14px 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #7B8794;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ws-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.15s ease;
}

.ws-table tbody tr:hover {
  background-color: #FAF5FF;
}

.ws-table tbody tr:last-child {
  border-bottom: none;
}

.ws-table td {
  padding: 16px 20px;
  vertical-align: middle;
  color: #3E4C59;
}

.ws-quote-title {
  font-weight: 700;
  color: #0D0D0C;
  display: block;
  font-size: 0.94rem;
  font-family: 'Manrope', sans-serif;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ws-quote-title:hover {
  color: #7C3AED;
}

.ws-quote-sub {
  font-size: 0.78rem;
  color: #7B8794;
  margin-top: 3px;
}

.ws-amount-cell {
  font-weight: 800;
  color: #0D0D0C;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
}

/* Status Badges with Contiant Pastels */
.ws-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.ws-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-draft    { background: #F1F5F9; color: #52606D; border: 1px solid #E4E7EB; }
.status-draft .ws-status-dot { background: #7B8794; }

.status-sent     { background: #DFF3F6; color: #23596D; border: 1px solid #BCE5E9; }
.status-sent .ws-status-dot { background: #0284C7; }

.status-accepted { background: #D1FAE5; color: #047857; border: 1px solid #A7F3D0; }
.status-accepted .ws-status-dot { background: #10B981; }

.status-paid     { background: #DFD1F4; color: #3F27AC; border: 1px solid #D1BDEB; }
.status-paid .ws-status-dot { background: #7C3AED; }

.status-declined { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECDD3; }
.status-declined .ws-status-dot { background: #EF4444; }

.status-expired  { background: #F8F3E7; color: #6D5400; border: 1px solid #EDE2C3; }
.status-expired .ws-status-dot { background: #D97706; }

/* Interactive Status Selector inside Table */
.ws-status-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ws-status-select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 5px 24px 5px 10px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 9px;
}

.ws-status-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ws-status-select:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

/* Manage Modal Executive SaaS Design (Matching User Profile UI) */
.ws-manage-quote-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  align-items: center;
}

.ws-manage-micro-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ws-manage-client-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-manage-client-name {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.ws-manage-client-email {
  display: block;
  font-size: 0.8rem;
  color: #64748B;
  word-break: break-all;
  line-height: 1.3;
}

.ws-manage-quote-amount-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.ws-manage-amount {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #4F46E5;
  letter-spacing: -0.02em;
}

.ws-manage-currency-pill {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
}

.ws-manage-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ws-manage-section-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
}

.ws-manage-section-tip {
  font-size: 0.74rem;
  color: #64748B;
}

.ws-manage-status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.ws-status-action-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-status-action-btn svg {
  stroke-width: 2.2;
  transition: transform 0.16s ease;
}

.ws-status-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.ws-status-action-btn:hover svg {
  transform: scale(1.1);
}

/* Status variants */
.ws-status-action-btn.ws-btn-status-draft:hover {
  border-color: #94A3B8;
  color: #1E293B;
  background: #F8FAFC;
}
.ws-status-action-btn.ws-btn-status-draft.active {
  background: #F1F5F9;
  border-color: #64748B;
  color: #0F172A;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25);
  font-weight: 700;
}

.ws-status-action-btn.ws-btn-status-sent:hover {
  border-color: #60A5FA;
  color: #1D4ED8;
  background: #EFF6FF;
}
.ws-status-action-btn.ws-btn-status-sent.active {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  font-weight: 700;
}

.ws-status-action-btn.ws-btn-status-accepted:hover {
  border-color: #34D399;
  color: #047857;
  background: #ECFDF5;
}
.ws-status-action-btn.ws-btn-status-accepted.active {
  background: #ECFDF5;
  border-color: #10B981;
  color: #047857;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  font-weight: 700;
}

.ws-status-action-btn.ws-btn-status-paid:hover {
  border-color: #A78BFA;
  color: #6D28D9;
  background: #F5F3FF;
}
.ws-status-action-btn.ws-btn-status-paid.active {
  background: #F5F3FF;
  border-color: #8B5CF6;
  color: #6D28D9;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
  font-weight: 700;
}

.ws-status-action-btn.ws-btn-status-declined:hover {
  border-color: #F87171;
  color: #BE123C;
  background: #FFF1F2;
}
.ws-status-action-btn.ws-btn-status-declined.active {
  background: #FFF1F2;
  border-color: #EF4444;
  color: #BE123C;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
  font-weight: 700;
}

/* Modal Action Rows */
.ws-manage-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
}

.ws-manage-main-btn {
  flex: 1;
  min-width: 150px;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none !important;
}

.ws-manage-secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.ws-manage-subtle-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.ws-manage-subtle-btn:hover {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

/* Status Badge Pills */
.ws-badge-pill-draft {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}
.ws-badge-pill-sent {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.ws-badge-pill-accepted {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.ws-badge-pill-paid {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}
.ws-badge-pill-declined {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

/* Table Action Buttons (Refined Modern SaaS) */
.ws-actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.ws-action-btn-subtle,
.ws-row-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: #344054;
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ws-action-btn-subtle:hover,
.ws-row-action-btn:hover {
  background: #F9FAFB;
  border-color: #98A2B3;
  color: #101828;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06);
}

.ws-action-btn-wa {
  color: #344054;
  background: #FFFFFF;
  border-color: #D0D5DD;
}

.ws-action-btn-wa:hover {
  background: #ECFDF3 !important;
  border-color: #A6F4C5 !important;
  color: #027A48 !important;
}

.ws-action-btn-download {
  color: #344054;
  background: #FFFFFF;
  border-color: #D0D5DD;
}

.ws-action-btn-download:hover {
  background: #F5F3FF !important;
  border-color: #DDD6FE !important;
  color: #7C3AED !important;
}

.ws-action-btn-manage {
  color: #344054;
  background: #FFFFFF;
  border-color: #D0D5DD;
}

.ws-action-btn-manage:hover {
  background: #F2F4F7 !important;
  border-color: #98A2B3 !important;
  color: #101828 !important;
}

.ws-status-select {
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid #CBD2D9;
  background: #FFFFFF;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  color: #3E4C59;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.ws-status-select:focus {
  outline: none;
  border-color: #7C3AED;
}

/* --------------------------------------------------------------------------
   CUSTOMERS & SERVICES BENTO DIRECTORY
   -------------------------------------------------------------------------- */
.ws-panel-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.ws-subhead-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: #0F172A;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.ws-subhead-desc {
  margin: 5px 0 0;
  font-size: 0.86rem;
  color: #64748B;
}

.ws-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  padding: 20px;
}

.ws-entity-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 3px 8px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-entity-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 8px 22px -4px rgba(15, 23, 42, 0.08);
}

.ws-entity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ws-entity-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.015em;
}

.ws-entity-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin: 3px 0 0;
}

.ws-entity-details {
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.ws-entity-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   WORKSPACE HELP & SUPPORT CENTER
   -------------------------------------------------------------------------- */
.ws-help-guide-item {
  display: block;
  padding: 20px;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  text-decoration: none;
  background: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.03);
}

.ws-help-guide-item:hover {
  transform: translateY(-3px);
  border-color: #7C3AED;
  box-shadow: 0 10px 24px -4px rgba(124, 58, 237, 0.1);
}

.ws-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ws-faq-item:hover {
  border-color: #CBD5E1;
}

.ws-faq-item[open] {
  border-color: #A855F7;
  box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.08);
}

.ws-faq-item summary {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0F172A;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.ws-faq-item summary::-webkit-details-marker {
  display: none;
}

.ws-faq-item[open] summary span:last-child {
  transform: rotate(180deg);
}

.ws-faq-item summary span:last-child {
  transition: transform 0.2s ease;
}

.ws-help-feedback-banner {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border: 1px solid #C7D2FE;
  border-radius: 20px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   DEDICATED COMPANY PROFILE BENTO SUITE
   -------------------------------------------------------------------------- */
.ws-profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 24px;
  padding: 26px 30px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.ws-profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #7C3AED 0%, #3D44E9 100%);
}

.ws-profile-hero-left {
  flex: 1;
  min-width: 280px;
}

.ws-profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.ws-card {
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
}

.ws-card:hover {
  border-color: #CBD2D9;
}

.ws-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #FAFBFC;
  border-bottom: 1px solid #E4E7EB;
}

.ws-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #F5EEFC;
  color: #7C3AED;
  border: 1px solid #D1BDEB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0D0D0C;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}

.ws-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ws-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3E4C59;
  letter-spacing: 0.01em;
}

.ws-opt {
  color: #9AA5B1;
  font-weight: 400;
}

.ws-input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD2D9;
  border-radius: 12px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0D0D0C;
  transition: all 0.2s ease;
}

.ws-input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ws-field-hint {
  font-size: 0.74rem;
  color: #7B8794;
  line-height: 1.4;
}

/* Contiant Logo Uploader Dropzone */
.ws-logo-uploader-row,
.ws-logo-upload-box {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  padding: 18px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  flex-wrap: wrap;
}

.ws-logo-preview-box {
  width: 104px;
  height: 84px;
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
}

.ws-logo-preview-box:hover {
  border-color: #6366F1;
  background: #F5F3FF;
  transform: scale(1.02);
}

.ws-logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ws-logo-placeholder,
.ws-logo-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  padding: 4px;
  line-height: 1.3;
}

.ws-logo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.ws-logo-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-logo-actions .ws-btn-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  margin: 0;
}

.ws-profile-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 28px;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 20px;
  box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.05);
}

.ws-profile-saved-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 700;
  background: #D1FAE5;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
}

/* --------------------------------------------------------------------------
   EMPTY STATES & LOADING
   -------------------------------------------------------------------------- */
.ws-empty-box {
  padding: 64px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ws-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #F5EEFC;
  color: #7C3AED;
  border: 1px solid #D1BDEB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.ws-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0D0D0C;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}

.ws-empty-desc {
  font-size: 0.88rem;
  color: #52606D;
  max-width: 400px;
  margin: 0;
  line-height: 1.6;
}

.ws-loading-box {
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #52606D;
  font-size: 0.9rem;
}

.ws-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E4E7EB;
  border-top-color: #7C3AED;
  border-radius: 50%;
  animation: ws-spin 0.8s linear infinite;
}

@keyframes ws-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   MODALS (Neo-Fintech Dialogs)
   -------------------------------------------------------------------------- */
dialog.ws-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 540px;
  width: min(calc(100vw - 32px), 540px);
  margin: auto;
  outline: none;
  overflow: visible;
  box-sizing: border-box;
}

dialog.ws-modal.ws-modal-lg {
  max-width: 640px;
  width: min(calc(100vw - 32px), 640px);
}

dialog.ws-modal.ws-modal-md {
  max-width: 560px;
  width: min(calc(100vw - 32px), 560px);
}

dialog.ws-modal::backdrop {
  background: rgba(13, 13, 12, 0.55);
  backdrop-filter: blur(6px);
}

.ws-modal-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 20px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
  animation: ws-modal-enter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 600px) {
  dialog.ws-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
  .ws-modal-card {
    border-radius: 16px;
    max-height: 92vh;
    max-height: 92dvh;
  }
  .ws-modal-header {
    padding: 16px 18px !important;
  }
  .ws-modal-form {
    padding: 18px 16px !important;
    gap: 14px !important;
    overflow-y: auto;
  }
  .ws-modal-body {
    padding: 16px 18px !important;
  }
}

@keyframes ws-modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ws-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px;
  border-bottom: 1px solid #E4E7EB;
  background: #FAFBFC;
}

.ws-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0D0D0C;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}

.ws-modal-sub {
  font-size: 0.84rem;
  color: #7B8794;
  margin: 4px 0 0;
}

.ws-modal-close {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #9AA5B1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.ws-modal-close:hover {
  background: #F1F5F9;
  color: #0D0D0C;
}

.ws-modal-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ws-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ws-modal-fields label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3E4C59;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-modal-fields input,
.ws-modal-fields textarea,
.ws-modal-fields select {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD2D9;
  border-radius: 12px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0D0D0C;
}

.ws-modal-fields input:focus,
.ws-modal-fields textarea:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ws-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.ws-modal-body {
  padding: 22px 28px;
  max-height: 60vh;
  overflow-y: auto;
}

.ws-modal-error {
  color: #DC2626;
  font-size: 0.84rem;
  margin: 0;
}

.ws-revision-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-revision-item {
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E4E7EB;
  border-radius: 12px;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-revision-item a {
  color: #7C3AED;
  text-decoration: none;
  font-weight: 700;
}

.ws-revision-item a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   MINIMAL SAAS WORKSPACE FOOTER
   -------------------------------------------------------------------------- */
.saas-workspace-footer {
  background: #FFFFFF;
  border-top: 1px solid #E4E7EB;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: #7B8794;
  margin-top: auto;
}

.saas-workspace-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.saas-workspace-footer-links {
  display: flex;
  gap: 20px;
}

.saas-workspace-footer-links a {
  color: #7B8794;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.saas-workspace-footer-links a:hover {
  color: #7C3AED;
}

/* --------------------------------------------------------------------------
   PRICING PAGE STYLES (Preserved for /pricing)
   -------------------------------------------------------------------------- */
.pricing-intro { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.pricing-intro h1 span { color: #0284C7; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1120px; margin: auto; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; } }
.price-card { padding: 32px; border: 1px solid #E4E7EB; border-radius: 24px; background: #FFFFFF; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04); display: flex; flex-direction: column; position: relative; }
.price-card.featured-pro { border: 2px solid #0284C7; box-shadow: 0 12px 35px -8px rgba(2, 132, 199, 0.25); }
.price-card.featured-trial { border: 1.5px solid #38BDF8; }
.price-card .plan-badge-highlight { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #0284C7; color: #FFFFFF; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; padding: 4px 14px; border-radius: 9999px; letter-spacing: 0.05em; }
.price-card h2 { font-size: 26px; margin: 15px 0 5px; font-family: 'Manrope', sans-serif; font-weight: 800; color: #0F172A; }
.price-card p { font-size: 14px; color: #52606D; margin: 0 0 16px 0; }
.plan-price { font-size: 36px; font-weight: 800; margin: 16px 0; color: #0F172A; font-family: 'Manrope', sans-serif; }
.plan-price small { font-size: 13px; font-weight: 500; color: #64748B; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 0; }
.price-card li { padding: 10px 0 10px 24px; position: relative; font-size: 13.5px; border-bottom: 1px solid #F1F5F9; color: #334155; }
.price-card li:before { content: '✓'; position: absolute; left: 0; color: #10B981; font-weight: 800; }
.pricing-answers { max-width: 780px; margin: 60px auto 0; }
.pricing-answers details { border-bottom: 1px solid #E4E7EB; padding: 18px 0; }
.pricing-answers summary { font-weight: 700; cursor: pointer; color: #0F172A; }

/* Quota pill in Generator Topbar */
.header-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.80rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  user-select: none;
}
.header-quota-pill .quota-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.header-quota-pill.quota-pro {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.header-quota-pill.quota-pro .quota-dot {
  background: #10b981;
}
.header-quota-pill.quota-business {
  background: linear-gradient(135deg, rgba(162, 28, 175, 0.12), rgba(124, 58, 237, 0.12));
  color: #86198f;
  border: 1px solid rgba(162, 28, 175, 0.3);
}
.header-quota-pill.quota-business .quota-dot {
  background: #a21caf;
  box-shadow: 0 0 0 2px rgba(162, 28, 175, 0.15);
}
.header-quota-pill.quota-trial {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}
.header-quota-pill.quota-trial .quota-dot {
  background: #0284c7;
}
.header-quota-pill.quota-free {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.header-quota-pill.quota-free .quota-dot {
  background: #f59e0b;
}
.header-quota-pill .quota-upgrade-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}
.header-quota-pill .quota-upgrade-link:hover {
  color: #0369a1;
}

/* ==========================================================================
   MODERN SAAS SIDEBAR DASHBOARD (Sign it Now Style / QuoteMaker Palette)
   ========================================================================== */
.main-content-workspace {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
}

.page-workspace {
  background-color: #F8F9FA !important;
  background-image: none !important;
  color: #101828;
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Full-Bleed Modern SaaS App Frame (Pinned 100vh layout on desktop) */
.ws-app-frame {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #F8F9FA;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  position: relative;
}

@media (min-width: 901px) {
  html.html-workspace,
  body.page-workspace {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }

  body.page-workspace .main-content-workspace {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.page-workspace .ws-app-frame {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 1024px) {
  .page-workspace {
    padding: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR NAVIGATION (PERMANENTLY PINNED & INTERNALLY SCROLLABLE)
   -------------------------------------------------------------------------- */
.ws-sidebar {
  width: 236px;
  min-width: 236px;
  background: #FFFFFF;
  border-right: 1px solid #EAECF0;
  padding: 20px 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  z-index: 40;
  overflow: hidden;
}

.ws-sidebar-top {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  flex: 1 1 auto;
  min-height: 0;
}

.ws-sidebar-brand {
  display: flex;
  align-items: center;
  padding: 4px 8px 16px;
  text-decoration: none;
}

.ws-sidebar-logo-img {
  height: 34px;
  width: auto;
  max-width: 155px;
  aspect-ratio: 168 / 38;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ws-sidebar-brand:hover .ws-sidebar-logo-img {
  transform: scale(1.02);
}

/* Quick Search in Sidebar (Matching Image 1) */
.ws-sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F9FAFB;
  border: 1px solid #EAECF0;
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 16px;
  color: #667085;
  transition: all 0.15s ease;
}

.ws-sidebar-search:focus-within {
  background: #FFFFFF;
  border-color: #D0D5DD;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: #101828;
}

.ws-sidebar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
  color: #101828;
  font-family: inherit;
}

.ws-sidebar-search input::placeholder {
  color: #98A2B3;
}

.ws-brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
}

.ws-brand-accent {
  color: #6366F1;
}

.ws-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475467;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.ws-nav-item:hover {
  background: #F9FAFB;
  color: #101828;
}

.ws-nav-item.active {
  background: #F2F4F7; /* Modern subtle capsule active state (Image 1) */
  color: #101828;
  font-weight: 600;
  box-shadow: none;
}

.ws-nav-item.active .ws-nav-icon-wrap {
  color: #101828;
}

.ws-nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: color 0.18s ease;
}

.ws-nav-label {
  flex: 1;
}

.ws-nav-counter {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #E2E8F0;
  color: #334155;
  transition: all 0.15s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ws-nav-item.active .ws-nav-counter {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  font-weight: 800;
}

.ws-nav-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #ECFDF5;
  color: #059669;
}

.ws-nav-item.active .ws-nav-badge {
  background: #D1FAE5;
  color: #047857;
}

.ws-sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.ws-nav-logout {
  color: #94A3B8;
}

.ws-nav-logout:hover {
  background: #FEF2F2;
  color: #EF4444;
}

/* --------------------------------------------------------------------------
   MAIN CANVAS & TOP BAR
   -------------------------------------------------------------------------- */
.ws-main-canvas {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
  padding: 28px 36px 80px 36px;
  scroll-behavior: smooth;
}

.ws-pane {
  flex-direction: column;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
}

.ws-pane[style*="display: none"] {
  display: none !important;
}

#panel-quotes:not([style*="display: none"]),
#panel-proposal:not([style*="display: none"]) {
  display: flex !important;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
}

.ws-bento-kpi-row,
.ws-usage-card,
.ws-files-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .ws-main-canvas {
    padding: 20px 16px 80px 16px;
  }
}

.ws-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 16px;
}

.ws-topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0;
}

/* ==========================================================================
   INTERNATIONAL SAAS WORKSPACE TOPBAR & USER MENU
   ========================================================================== */
.ws-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-topbar-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Subtle chip buttons (Language & Website) */
.ws-topbar-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-topbar-chip-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

.ws-chip-flag {
  font-size: 14px;
  line-height: 1;
}

.ws-chip-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
}

.ws-chip-chevron {
  color: #94A3B8;
  transition: transform 0.2s ease;
}

/* Round utility buttons (Theme & Notifications) */
.ws-topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-topbar-icon-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.ws-bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366F1;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* Vertical divider */
.ws-topbar-sep {
  width: 1px;
  height: 22px;
  background: #E2E8F0;
  margin: 0 2px;
}

/* Standout Primary CTA */
.ws-topbar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF !important;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-topbar-cta-btn span,
.ws-topbar-cta-btn svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.ws-topbar-cta-btn:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(124, 58, 237, 0.42);
}

.ws-topbar-cta-secondary {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.ws-topbar-cta-secondary span,
.ws-topbar-cta-secondary svg {
  color: #7C3AED !important;
  stroke: #7C3AED !important;
}

.ws-topbar-cta-secondary:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme='dark'] .ws-topbar-cta-secondary {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
  box-shadow: none !important;
}

[data-theme='dark'] .ws-topbar-cta-secondary:hover {
  background: #273549 !important;
  border-color: #475569 !important;
}

/* User Profile Trigger Pill */
.ws-user-dropdown-wrap {
  position: relative;
}

.ws-user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 2px 10px 2px 3px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ws-user-pill-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.ws-user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.ws-user-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ws-user-avatar-pro-dot {
  position: absolute;
  bottom: -3px;
  right: -5px;
  background: linear-gradient(135deg, #7C3AED, #6366F1);
  color: #FFFFFF;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 1px 3.5px;
  border-radius: 999px;
  border: 1.5px solid #FFFFFF;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ws-user-pill-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ws-user-pill-name {
  font-size: 0.82rem;
  font-weight: 650;
  color: #0F172A;
  max-width: 105px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-user-chevron {
  color: #94A3B8;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-user-pill-btn[aria-expanded="true"] .ws-user-chevron {
  transform: rotate(180deg);
}

/* User Dropdown Flyout Menu */
.ws-user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 18px 50px -10px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.ws-user-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-user-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ws-user-profile-card:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
}

.ws-user-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-user-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ws-user-card-meta {
  flex: 1;
  min-width: 0;
}

.ws-user-card-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ws-user-card-email {
  font-size: 0.74rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.ws-user-card-action {
  font-size: 0.74rem;
  font-weight: 600;
  color: #7C3AED;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ws-user-menu-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 6px 4px;
}

.ws-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.ws-user-menu-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.ws-user-menu-item svg {
  color: #64748B;
  flex-shrink: 0;
}

.ws-user-menu-item:hover svg {
  color: #7C3AED;
}

.ws-user-menu-logout {
  color: #DC2626 !important;
}

.ws-user-menu-logout svg {
  color: #DC2626 !important;
}

.ws-user-menu-logout:hover {
  background: #FEF2F2 !important;
  color: #B91C1C !important;
}

/* Notifications Dropdown */
.ws-notif-wrap {
  position: relative;
}

.ws-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 18px 45px -8px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.ws-notif-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
}

.ws-notif-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 999px;
}

.ws-notif-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-notif-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: #F8FAFC;
  align-items: flex-start;
}

.ws-notif-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.ws-notif-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
}

.ws-notif-item-desc {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.4;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   1. 4-CARD UNIFIED SAAS KPI ROW (MODERN INTERNATIONAL SAAS GRADE)
   -------------------------------------------------------------------------- */
.ws-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .ws-kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ws-kpi-grid-4 {
    grid-template-columns: 1fr;
  }
}

.ws-stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 3px 8px -2px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.ws-stat-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 22px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

.ws-stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-stat-card-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ws-stat-card-menu-wrap {
  position: relative;
}

.ws-stat-card-menu-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 13px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ws-stat-card-menu-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.ws-stat-card-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 4px 0;
}

.ws-stat-card-val {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ws-stat-card-denom {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
}

.ws-stat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding-top: 4px;
}

.ws-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.ws-trend-up {
  background: #ECFDF5;
  color: #059669;
}

.ws-trend-amber {
  background: #FFFBEB;
  color: #D97706;
}

.ws-trend-brand {
  background: #F5F3FF;
  color: #7C3AED;
}

.ws-stat-card-meta {
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 500;
}

.ws-stat-badge-pro {
  background: #F5F3FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
  font-size: 0.66rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.ws-stat-badge-trial {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
  font-size: 0.66rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 9999px;
}

.ws-stat-badge-free {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  font-size: 0.66rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Card 3: QuoteMaker Brand Violet Card */
.ws-bento-brand {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -6px rgba(99, 102, 241, 0.32);
}

.ws-bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-bento-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-badge-emerald {
  background: #27272A;
  color: #34D399;
}

.ws-badge-slate {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
}

.ws-badge-translucent {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.ws-bento-menu-wrap {
  position: relative;
}

.ws-bento-menu-btn {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.65;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.ws-bento-menu-btn:hover,
.ws-bento-menu-btn[aria-expanded="true"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
}

.ws-bento-light .ws-bento-menu-btn:hover,
.ws-bento-light .ws-bento-menu-btn[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.08);
}

.ws-bento-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 215px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  animation: wsDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-bento-dropdown.active {
  display: flex;
}

@keyframes wsDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ws-bento-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 550;
  color: #334155;
  background: transparent;
  border: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.ws-bento-dropdown-item svg {
  flex-shrink: 0;
  color: #64748B;
  transition: color 0.15s ease;
}

.ws-bento-dropdown-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.ws-bento-dropdown-item:hover svg {
  color: #4F46E5;
}

.ws-bento-dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 4px 0;
}

.ws-bento-body {
  margin: 12px 0 6px;
}

.ws-bento-label {
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.8;
  display: block;
  margin-bottom: 4px;
}

.ws-bento-stat-wrap {
  display: flex;
  align-items: baseline;
}

.ws-bento-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ws-bento-delta {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 6px;
}

.ws-delta-positive {
  color: #34D399;
}

.ws-delta-light {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 8px;
  vertical-align: middle;
}

.ws-bento-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-bento-sub {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
}

.ws-sub-light {
  color: rgba(255, 255, 255, 0.82);
}

.ws-bento-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #27272A;
  border: none;
  color: #FFFFFF;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ws-bento-light .ws-bento-arrow-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}

.ws-bento-brand .ws-bento-arrow-btn {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.ws-bento-arrow-btn:hover {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   2. PLAN & USAGE BENTO CARD
   -------------------------------------------------------------------------- */
.ws-usage-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .ws-usage-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* ==========================================================================
   PROJECT PROFIT — QUIET PROFESSIONAL SAAS LAYOUT
   Keeps the existing workspace functionality while creating a clearer
   information hierarchy and reducing the previous "card on card" treatment.
   ========================================================================== */
.ws-profit-page {
  --profit-ink: #172033;
  --profit-muted: #667085;
  --profit-line: #e6e9ef;
  --profit-soft: #f7f8fb;
  --profit-brand: #6d42df;
  --profit-positive: #16825d;
  --profit-negative: #d34a5d;
}

.ws-profit-page .ws-profit-header {
  align-items: flex-end;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--profit-line);
  margin-bottom: 20px;
}

.ws-profit-header-copy { max-width: 680px; }

.ws-profit-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--profit-brand);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

.ws-profit-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-profit-page .ws-subhead-title {
  color: var(--profit-ink);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -.035em;
}

.ws-profit-page .ws-subhead-desc {
  margin-top: 7px;
  color: var(--profit-muted);
  font-size: .87rem;
}

.ws-profit-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d8dce5;
  border-radius: 7px;
  background: #fff;
  color: #596174;
  font-size: .69rem;
  font-weight: 700;
}

.ws-profit-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a875;
  box-shadow: 0 0 0 3px #dcf7ec;
}

.ws-profit-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.ws-profit-header-actions .ws-btn,
.ws-profit-header-actions .ws-topbar-cta-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: none;
}

.ws-profit-page .ws-profit-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--profit-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
}

.ws-profit-page .ws-profit-metric {
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--profit-line);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.ws-profit-page .ws-profit-metric:last-child { border-right: 0; }
.ws-profit-page .ws-profit-metric-margin { display: none; }
.ws-profit-page .ws-profit-metric:hover { transform: none; box-shadow: none; }
.ws-profit-page .ws-stat-card-top { margin-bottom: 11px; }
.ws-profit-page .ws-stat-card-label {
  color: #667085;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .055em;
}

.ws-profit-page .ws-stat-badge-pro {
  padding: 3px 6px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #f1f3f7 !important;
  color: #697386 !important;
  font-size: .61rem !important;
  letter-spacing: .045em;
}

.ws-profit-page .ws-stat-card-val {
  color: var(--profit-ink) !important;
  font-size: 1.48rem;
  font-weight: 760;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.ws-profit-page .ws-profit-metric-net .ws-stat-card-val { color: var(--profit-positive) !important; }
.ws-profit-page .ws-stat-card-footer { margin-top: 12px; }
.ws-profit-page .ws-stat-trend,
.ws-profit-page .ws-stat-card-meta { color: #7a8497 !important; font-size: .7rem; }
.ws-profit-page .ws-stat-trend svg { display: none; }

.ws-profit-page .ws-profit-charts-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 16px;
  margin-bottom: 18px;
}

.ws-profit-page .ws-profit-secondary-insights { display: none; }

.ws-expense-dialog .ws-modal-card { max-width: 520px; }
.ws-expense-dialog .ws-card-icon { width: 36px !important; height: 36px !important; border-radius: 9px !important; }
.ws-expense-dialog .ws-card-icon svg { width: 18px; height: 18px; }
.ws-expense-form-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 72vh;
  overflow-y: auto;
  padding: 20px 24px;
}
.ws-expense-form-body label,
.ws-expense-more-fields label {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: .77rem;
  font-weight: 700;
}
.ws-expense-form-body input,
.ws-expense-form-body select,
.ws-expense-form-body textarea { border-width: 1px !important; border-color: #d0d5dd !important; border-radius: 8px !important; }
.ws-expense-form-body input:focus,
.ws-expense-form-body select:focus,
.ws-expense-form-body textarea:focus { border-color: #8b6be8 !important; box-shadow: 0 0 0 3px rgba(109, 66, 223, .10); }
.ws-expense-more {
  border-top: 1px solid #eaecf0;
  padding-top: 13px;
}
.ws-expense-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475467;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.ws-expense-more summary::-webkit-details-marker { display: none; }
.ws-expense-more summary::after { content: '+'; color: #667085; font-size: 1rem; }
.ws-expense-more[open] summary::after { content: '−'; }
.ws-expense-more summary span {
  margin-left: auto;
  margin-right: 10px;
  color: #98a2b3;
  font-size: .68rem;
  font-weight: 600;
}
.ws-expense-more-fields { display: flex; flex-direction: column; gap: 14px; padding-top: 15px; }
.ws-expense-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

[data-theme='dark'] .ws-expense-more { border-color: #2d2637; }
[data-theme='dark'] .ws-expense-form-body label,
[data-theme='dark'] .ws-expense-more-fields label { color: #d7d0df; }
[data-theme='dark'] .ws-expense-more summary { color: #bcb3c6; }

.ws-profit-page .ws-profit-chart-card,
.ws-profit-page .ws-files-card {
  border: 1px solid var(--profit-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
  background: #fff;
}

.ws-profit-page .ws-profit-chart-card { padding: 20px; }
.ws-profit-page .ws-chart-card-header { margin-bottom: 18px; }
.ws-profit-page .ws-chart-title {
  margin-top: 4px;
  font-size: .98rem;
  font-weight: 740;
  letter-spacing: -.018em;
}
.ws-profit-page .ws-chart-subtitle { font-size: .75rem; line-height: 1.45; }
.ws-profit-page .ws-chart-body { min-height: 172px; gap: 20px; }
.ws-profit-page .ws-donut-chart-container { width: 148px; height: 148px; }
.ws-profit-page .ws-donut-slice { stroke-width: 18; }
.ws-profit-page .ws-donut-slice:hover { stroke-width: 21; }
.ws-profit-page .ws-donut-legend-item {
  padding: 7px 8px;
  border-bottom: 1px solid #eef0f4;
  border-radius: 0;
  background: transparent;
}
.ws-profit-page .ws-donut-legend-item:last-child { border-bottom: 0; }
.ws-profit-page .ws-donut-legend-item:hover { background: var(--profit-soft); }
.ws-profit-page .ws-donut-legend-pct { background: #f0f2f6; }
.ws-profit-page .ws-split-stat-card {
  padding: 13px;
  border-color: #eaecf0;
  border-radius: 9px;
  background: #fafbfc;
}

.ws-profit-page .ws-files-header { padding: 19px 22px !important; }
.ws-profit-page .ws-files-title { font-size: 1rem; letter-spacing: -.015em; }
.ws-profit-page .ws-files-subtitle { margin-top: 3px; font-size: .76rem; }
.ws-profit-page .ws-files-toolbar {
  padding: 12px 22px !important;
  background: #fafbfc;
}
.ws-profit-page .ws-status-pills {
  gap: 3px;
  padding: 3px;
  border: 1px solid #e3e6ec;
  border-radius: 9px;
  background: #f0f2f6;
}
.ws-profit-page .ws-pill {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  font-size: .72rem;
  box-shadow: none;
}
.ws-profit-page .ws-pill.active {
  background: #fff;
  color: #31394b;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
}
.ws-profit-page .ws-files-search { min-height: 36px; border-radius: 8px; background: #fff; }
.ws-profit-page .ws-projects-container { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.ws-profit-page .ws-project-card {
  gap: 13px;
  padding: 18px;
  border-color: var(--profit-line);
  border-radius: 12px;
  box-shadow: none;
}
.ws-profit-page .ws-project-card:hover {
  transform: translateY(-1px);
  border-color: #cfd4de;
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}
.ws-profit-page .ws-pcard-title { font-size: .98rem; font-weight: 730; }
.ws-profit-page .ws-pcard-metrics-grid { padding: 11px; border-radius: 9px; background: #fafbfc; }
.ws-profit-page .ws-pcard-status { border-radius: 6px; font-size: .65rem; }

[data-theme='dark'] .ws-profit-page {
  --profit-ink: #f3f0f8;
  --profit-muted: #a39aac;
  --profit-line: #2d2637;
  --profit-soft: #211a2b;
}
[data-theme='dark'] .ws-profit-page .ws-profit-overview,
[data-theme='dark'] .ws-profit-page .ws-profit-metric,
[data-theme='dark'] .ws-profit-page .ws-profit-live-badge,
[data-theme='dark'] .ws-profit-page .ws-profit-chart-card,
[data-theme='dark'] .ws-profit-page .ws-files-card { background: #171320 !important; border-color: var(--profit-line) !important; }
[data-theme='dark'] .ws-profit-page .ws-files-toolbar,
[data-theme='dark'] .ws-profit-page .ws-pcard-metrics-grid { background: #1d1728 !important; }
[data-theme='dark'] .ws-profit-page .ws-stat-card-val { color: var(--profit-ink) !important; }

@media (max-width: 1100px) {
  .ws-profit-page .ws-profit-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-profit-page .ws-profit-metric:nth-child(2) { border-right: 1px solid var(--profit-line); }
  .ws-profit-page .ws-profit-metric:nth-child(-n+2) { border-bottom: 0; }
  .ws-profit-page .ws-profit-charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .ws-profit-page .ws-profit-header { align-items: stretch; }
  .ws-profit-header-actions { width: 100%; }
  .ws-profit-header-actions > * { flex: 1; justify-content: center; }
  .ws-profit-page .ws-profit-overview { grid-template-columns: 1fr !important; }
  .ws-profit-page .ws-profit-metric,
  .ws-profit-page .ws-profit-metric:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--profit-line); }
  .ws-profit-page .ws-profit-metric:last-child { border-bottom: 0; }
  .ws-profit-page .ws-files-toolbar { align-items: stretch !important; }
  .ws-profit-page .ws-files-toolbar > div:last-child { justify-content: flex-start !important; }
  .ws-profit-page .ws-files-search { min-width: 100% !important; max-width: none !important; }
  .ws-profit-page #ws-project-status-pills { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .ws-expense-two-col { grid-template-columns: 1fr; }
}

/* ========================================================================== 
   QUOTATIONS — FOCUSED DOCUMENT LIST
   ========================================================================== */
.ws-quotes-page { gap: 0 !important; }
.ws-quotes-page > .ws-files-card {
  padding: 0;
  border-color: #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
}
.ws-quotes-page > .ws-files-card > .ws-files-header {
  margin: 0 !important;
  padding: 14px 16px !important;
  border-bottom-color: #eaecf0 !important;
  background: #fff;
}
.ws-quotes-page .ws-files-toolbar { gap: 10px !important; }
.ws-quotes-page .ws-files-search {
  min-height: 36px;
  padding: 0 11px;
  border-color: #dfe3e8;
  border-radius: 8px;
  background: #fff;
}
.ws-quotes-page .ws-status-pills {
  gap: 2px;
  padding: 3px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f5f6f8;
}
.ws-quotes-page .ws-pill { min-height: 28px; padding: 0 11px; font-size: .71rem; }
.ws-quotes-page .ws-pill.active { box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.ws-quotes-page .ws-files-table-container {
  overflow: visible;
  border: 0;
  border-radius: 0 0 12px 12px;
}
.ws-quotes-page .ws-table-wrap {
  overflow: visible;
}
.ws-quotes-page .ws-table th {
  padding: 10px 16px;
  border-bottom-color: #e4e7ec;
  background: #fafbfc;
  color: #7b8495;
  font-size: .66rem;
  font-weight: 700;
}
.ws-quotes-page .ws-table td { padding: 13px 16px; border-bottom-color: #edf0f3; }
.ws-quotes-page .ws-table tbody tr:last-child td { border-bottom: 0; }
.ws-quotes-page .ws-table tr:hover td { background: #fbfbfc; }
.ws-quotes-page .ws-doc-badge {
  border: 0;
  border-radius: 5px;
  background: #f0f2f5;
  color: #667085;
}
.ws-quotes-page .ws-doc-name { font-size: .82rem; font-weight: 700; }
.ws-quotes-page .ws-doc-meta,
.ws-quotes-page .ws-td-date,
.ws-quotes-page .ws-email-cell { color: #7c8595; font-size: .72rem; }
.ws-quotes-page .ws-client-mini-avatar { width: 26px; height: 26px; font-size: .68rem; }
.ws-quotes-page .ws-client-name { font-size: .79rem; font-weight: 650; }
.ws-quotes-page .ws-status-select { min-width: 116px; height: 32px; border-radius: 7px; font-size: .72rem; }

.ws-row-more { position: relative; display: inline-block; }
.ws-row-more > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  list-style: none;
}
.ws-row-more > summary::-webkit-details-marker { display: none; }
.ws-row-more > summary:hover { border-color: #c8cdd6; background: #f8f9fb; color: #344054; }
.ws-row-more[open] > summary { border-color: #b9aae9; box-shadow: 0 0 0 3px rgba(109, 66, 223, .09); }
.ws-row-more-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  grid-template-columns: 1fr;
  width: 190px;
  padding: 6px;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
  text-align: left;
}
.ws-row-more.ws-row-more--open-up .ws-row-more-menu {
  top: auto;
  bottom: calc(100% + 6px);
}
.ws-row-more-menu .ws-action-btn-subtle {
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467 !important;
  font-size: .75rem;
  font-weight: 600 !important;
  text-decoration: none;
}
.ws-row-more-menu .ws-action-btn-subtle:hover { background: #f4f5f7; color: #1d2939 !important; }
.ws-row-more-menu .ws-btn-danger { color: #d92d20 !important; }
.ws-row-more-menu .ws-btn-danger:hover { background: #fff1f0; color: #b42318 !important; }

[data-theme='dark'] .ws-quotes-page > .ws-files-card,
[data-theme='dark'] .ws-quotes-page > .ws-files-card > .ws-files-header,
[data-theme='dark'] .ws-row-more > summary,
[data-theme='dark'] .ws-row-more-menu { background: #171320 !important; border-color: #2d2637 !important; }
[data-theme='dark'] .ws-quotes-page .ws-files-search { background: #1d1728; border-color: #352b42; }

@media (max-width: 1100px) {
  .ws-quotes-page .ws-files-table-container { overflow-x: auto; overflow-y: visible; }
  .ws-quotes-page .ws-table-wrap { overflow-x: auto; overflow-y: visible; }
}

.ws-usage-left {
  flex: 1;
}

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

.ws-usage-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
}

.ws-usage-pill-btn {
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 2px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #FFFFFF;
}

.ws-usage-tier-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  margin: 8px 0 10px;
}

.ws-usage-progress-container {
  width: 100%;
}

.ws-usage-bar-track {
  height: 14px;
  border-radius: 9999px;
  background: repeating-linear-gradient(45deg, #E2E8F0, #E2E8F0 6px, #F1F5F9 6px, #F1F5F9 12px);
  overflow: hidden;
  position: relative;
  max-width: 520px;
  width: 100%;
}

.ws-usage-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: #8B5CF6;
  transition: width 0.4s ease;
}

.ws-usage-right {
  display: flex;
  gap: 36px;
  align-items: center;
}

.ws-usage-metric-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748B;
  display: block;
  margin-bottom: 2px;
}

.ws-usage-metric-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ws-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}

.ws-stat-denom {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   3. LAST FILES CARD & DATA TABLE
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   3. LAST FILES CARD & DATA TABLE (MATCHING IMAGE 1)
   -------------------------------------------------------------------------- */
.ws-files-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 3px 8px -2px rgba(15, 23, 42, 0.02);
  box-sizing: border-box;
}

.ws-files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.ws-files-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.015em;
}

.ws-files-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 3px;
  display: block;
  font-weight: 400;
}

.ws-files-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-btn-create-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #0F172A;
  color: #FFFFFF !important;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ws-btn-create-quote:hover {
  background: #1E293B;
  color: #FFFFFF !important;
}

.ws-files-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-files-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 7px 12px;
  width: 240px;
  color: #64748B;
  transition: all 0.15s ease;
}

.ws-files-search:focus-within {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  color: #0F172A;
}

.ws-files-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
  color: #0F172A;
  font-family: inherit;
}

.ws-files-search input::placeholder {
  color: #94A3B8;
}

.ws-status-pills {
  display: flex;
  gap: 4px;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 8px;
}

.ws-pill {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 550;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.ws-pill:hover {
  color: #0F172A;
}

.ws-pill.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ws-all-files-btn {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ws-all-files-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
}

/* File Table Rows (Modern International SaaS Grade) */
.ws-files-table-container {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
}

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

.ws-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.ws-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.84rem;
  vertical-align: middle;
}

.ws-table tr:hover td {
  background: #F8FAFC;
}

.ws-td-date {
  color: #64748B;
  font-size: 0.78rem;
  font-family: 'Roboto Mono', monospace;
  white-space: nowrap;
}

.ws-doc-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-doc-badge,
.ws-pdf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ws-doc-badge-pdf,
.ws-pdf-badge {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.ws-doc-badge-pkg {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

.ws-proposal-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.ws-doc-name {
  font-weight: 600;
  color: #0F172A;
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}

.ws-doc-name:hover {
  color: #7C3AED;
}

.ws-doc-meta {
  font-size: 0.74rem;
  color: #64748B;
  display: block;
}

.ws-client-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-client-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #E0E7FF;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ws-client-name {
  font-weight: 600;
  color: #0F172A;
}

.ws-email-cell {
  color: #64748B;
  font-size: 0.82rem;
}

/* Status Badges with Leading Dots */
.ws-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ws-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-sent {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.status-sent .ws-status-dot {
  background: #3B82F6;
}

.status-accepted, .status-paid {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.status-accepted .ws-status-dot, .status-paid .ws-status-dot {
  background: #10B981;
}

.status-draft {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}
.status-draft .ws-status-dot {
  background: #94A3B8;
}

.status-declined, .status-expired {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECDD3;
}
.status-declined .ws-status-dot, .status-expired .ws-status-dot {
  background: #EF4444;
}

.ws-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ws-action-btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ws-action-btn-subtle:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
}

.ws-action-btn-download {
  color: #4F46E5;
  border-color: #E0E7FF;
  background: #EEF2FF;
}

.ws-action-btn-download:hover {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #4F46E5;
}

.ws-action-btn-danger,
.ws-action-btn-subtle.ws-btn-danger {
  color: #DC2626 !important;
  border-color: #FEE2E2 !important;
  background: #FEF2F2 !important;
}

.ws-action-btn-danger:hover,
.ws-action-btn-subtle.ws-btn-danger:hover {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border-color: #DC2626 !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. IDENTITY BENTO CARD & SETTINGS TABS (Account Page)
   -------------------------------------------------------------------------- */
.ws-identity-bento {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 22px 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.ws-identity-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ws-identity-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.ws-identity-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ws-identity-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 50%;
}

.ws-identity-provider {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ws-identity-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-identity-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ws-identity-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.025em;
}

.ws-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ws-badge-pill-success {
  background: #ECFDF5;
  color: #059669;
}

.ws-badge-pill-free {
  background: #EEF2FF;
  color: #4F46E5;
}

.ws-badge-pill-google {
  background: #F1F5F9;
  color: #475569;
}

.ws-identity-subtext {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
}

.ws-settings-tabs-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 9999px;
  width: fit-content;
}

.ws-settings-tabs-bar .ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}

/* --------------------------------------------------------------------------
   5. FLOATING BOTTOM PROMPT BANNER
   -------------------------------------------------------------------------- */
.ws-floating-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 8px 14px 8px 20px;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 999;
  max-width: 680px;
  width: calc(100% - 48px);
  animation: wsSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wsSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.ws-floating-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-floating-icon {
  color: #6366F1;
  flex-shrink: 0;
  display: flex;
}

.ws-floating-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
}

.ws-floating-bold {
  font-weight: 700;
  color: #0F172A;
  margin-right: 4px;
}

.ws-floating-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ws-floating-cta {
  background: #18181B;
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 7px 16px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ws-floating-cta:hover {
  background: #000000;
}

.ws-floating-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.ws-floating-close:hover {
  color: #0F172A;
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT FOR SIDEBAR DASHBOARD
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .ws-app-frame {
    flex-direction: column;
  }
  .ws-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #F1F5F9;
    padding: 12px 14px;
    height: auto;
  }
  .ws-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }
  .ws-sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  .ws-nav-item {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .ws-sidebar-bottom {
    display: none;
  }
  .ws-floating-banner {
    display: none;
  }
  #btn-visit-website {
    display: none !important;
  }
  .ws-filter-group {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ws-filter-group::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 540px) {
  .ws-topbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .ws-topbar-cta-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .ws-topbar-cta-btn svg {
    width: 12px;
    height: 12px;
  }
  .ws-topbar-right {
    gap: 6px;
  }
  .ws-user-name {
    display: none;
  }
  .ws-lang-label {
    display: none;
  }
}

/* ==========================================================================
   WORKSPACE LANGUAGE SWITCHER & REGIONAL PREFERENCE CARDS
   ========================================================================== */
.ws-lang-wrap {
  position: relative;
  display: inline-flex;
}

.ws-topbar-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ws-topbar-lang-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ws-lang-flag {
  font-size: 14px;
  line-height: 1;
}

.ws-lang-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: #0F172A;
}

.ws-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 40px -6px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ws-lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-lang-dropdown-header {
  padding: 6px 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ws-lang-option:hover {
  background: #F8FAFC;
}

.ws-lang-option.active {
  background: #EEF2FF;
}

.ws-lang-opt-flag {
  font-size: 16px;
  line-height: 1;
}

.ws-lang-opt-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ws-lang-opt-name {
  font-size: 0.84rem;
  font-weight: 650;
  color: #0F172A;
}

.ws-lang-option.active .ws-lang-opt-name {
  color: #4F46E5;
}

.ws-lang-opt-sub {
  font-size: 0.72rem;
  color: #64748B;
}

.ws-lang-opt-check {
  font-weight: 800;
  color: #4F46E5;
  font-size: 0.88rem;
}

/* Settings Language Cards Grid */
.ws-lang-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 840px) {
  .ws-lang-cards-grid {
    grid-template-columns: 1fr;
  }
}

.ws-lang-choice-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-lang-choice-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.ws-lang-choice-card.selected {
  border-color: #4F46E5;
  background: #FBFBFF;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 8px 24px -4px rgba(79, 70, 229, 0.1);
}

.ws-lang-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ws-lang-card-flag {
  font-size: 24px;
  line-height: 1;
}

.ws-lang-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ws-lang-choice-card.selected .ws-lang-radio-circle {
  border-color: #4F46E5;
  background: #4F46E5;
}

.ws-lang-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.ws-lang-choice-card.selected .ws-lang-radio-inner {
  opacity: 1;
  transform: scale(1);
}

.ws-lang-card-name {
  font-size: 1rem;
  font-weight: 750;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.ws-lang-choice-card.selected .ws-lang-card-name {
  color: #4F46E5;
}

.ws-lang-card-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.45;
  flex: 1;
}

.ws-lang-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  width: fit-content;
  background: #F1F5F9;
  color: #64748B;
  transition: all 0.2s ease;
}

.ws-lang-choice-card.selected .ws-lang-card-badge {
  background: #EEF2FF;
  color: #4F46E5;
}

/* --------------------------------------------------------------------------
   WHATSAPP SHARE BUTTONS & PRO INTEGRATION
   -------------------------------------------------------------------------- */
.gen-btn-whatsapp-share {
  background: rgba(37, 211, 102, 0.09) !important;
  color: #047857 !important;
  border: 1px solid rgba(37, 211, 102, 0.35) !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gen-btn-whatsapp-share:hover {
  background: #25D366 !important;
  color: #000000 !important;
  border-color: #25D366 !important;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35) !important;
  transform: translateY(-1px);
}

.gen-btn-whatsapp-share:hover svg {
  fill: #000000 !important;
}

[data-theme='dark'] .gen-btn-whatsapp-share {
  background: rgba(37, 211, 102, 0.15) !important;
  color: #34D399 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

[data-theme='dark'] .gen-btn-whatsapp-share:hover {
  background: #25D366 !important;
  color: #000000 !important;
}

.ws-btn-whatsapp {
  background: #25D366 !important;
  color: #000000 !important;
  border: 1px solid rgba(37, 211, 102, 0.5) !important;
  font-weight: 750 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ws-btn-whatsapp:hover {
  background: #22C55E !important;
  color: #000000 !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
  transform: translateY(-1px);
}

.ws-action-btn-wa {
  color: #344054 !important;
  border-color: #D0D5DD !important;
  background: #FFFFFF !important;
}

.ws-action-btn-wa:hover {
  background: #ECFDF3 !important;
  color: #027A48 !important;
  border-color: #A6F4C5 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05);
}

.ws-action-btn-wa:hover svg {
  fill: #027A48 !important;
}

[data-theme='dark'] .ws-action-btn-wa {
  color: #94A3B8 !important;
  background: #111827 !important;
  border-color: #1F2937 !important;
}

[data-theme='dark'] .ws-action-btn-wa:hover {
  background: #064E3B !important;
  color: #34D399 !important;
  border-color: #059669 !important;
}

[data-theme='dark'] .ws-action-btn-wa:hover svg {
  fill: #34D399 !important;
}

/* ==========================================================================
   MOBILE APP-STYLE WORKSPACE LAYOUT (≤900px) — OVERRIDES OLDER TABLET RULES
   All desktop (≥901px) styles are 100% untouched.
   These styles complement the rules in mobile-app.css, adding workspace-specific
   overrides that sit in business.css for the SaaS dashboard.
   ========================================================================== */
@media (max-width: 900px) {

  /* The outer page wrapper has no padding on mobile */
  .page-workspace {
    padding: 0 !important;
    background-color: #F3F4F8 !important;
    background-image: none !important;
  }

  /* App frame: full-screen single column — sidebar hidden by mobile-app.css */
  .ws-app-frame {
    flex-direction: column !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Sidebar: completely hidden on mobile (replaced by mobile bottom nav) */
  .ws-sidebar {
    display: none !important;
  }

  /* Topbar: completely hidden on mobile (replaced by mobile hero) */
  .ws-topbar {
    display: none !important;
  }

  /* Main canvas: takes full width with generous bottom padding for nav */
  .ws-main-canvas {
    padding: 0 0 calc(76px + env(safe-area-inset-bottom, 16px)) 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Bento KPI row: hidden on mobile (mobile hero shows KPI cards instead) */
  .ws-bento-kpi-row {
    display: none !important;
  }

  /* Usage card: mobile-friendly stacked layout */
  .ws-usage-card {
    flex-direction: column !important;
    margin: 12px 14px 0 !important;
    padding: 16px !important;
    border-radius: 16px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  .ws-usage-left {
    width: 100% !important;
    border-right: none !important;
    padding-right: 0 !important;
  }

  .ws-usage-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    border-top: 1px solid #F1F5F9 !important;
    padding-top: 14px !important;
  }

  [data-theme='dark'] .ws-usage-right {
    border-top-color: #261F32 !important;
  }

  /* Files / recent activity card on mobile */
  .ws-files-card {
    margin: 12px 14px 14px !important;
    padding: 16px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .ws-files-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Panel subhead (per-view header like "Manage Quotations") */
  .ws-panel-subhead {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px 14px 10px !important;
    margin: 0 !important;
  }

  .ws-panel-subhead > a,
  .ws-panel-subhead > button.ws-topbar-btn-primary {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Records containers: horizontal padding for cards */
  .ws-records-container {
    padding: 0 14px 14px !important;
  }

  /* Quotes panel files card */
  #panel-quotes > .ws-files-card {
    margin: 0 14px 14px !important;
  }

  /* Search + filter toolbar wraps nicely on small screens */
  .ws-files-toolbar {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .ws-files-search {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Status filter pills scroll horizontally */
  .ws-status-pills {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .ws-status-pills::-webkit-scrollbar {
    display: none !important;
  }

  /* Floating action banners: hide on mobile */
  .ws-floating-banner {
    display: none !important;
  }

  /* Settings identity bento: stack on mobile */
  .ws-identity-bento {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .ws-identity-right {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid #F1F5F9 !important;
    padding-top: 20px !important;
    width: 100% !important;
  }

  [data-theme='dark'] .ws-identity-right {
    border-top-color: #261F32 !important;
  }

  /* Settings form sections: full width */
  .ws-settings-section {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .ws-field-row {
    grid-template-columns: 1fr !important;
  }

  /* Billings list on mobile: card style */
  .ws-payment-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 14px !important;
  }

  /* Notifications dropdown: full-width on mobile */
  .ws-notif-dropdown,
  .ws-user-menu-dropdown,
  .ws-lang-dropdown {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   PROJECT PROFIT & COST MANAGEMENT MODULE (SAAS BENTO FINTECH)
   ========================================================================== */

/* Top 4-Column KPI Grid */
.ws-profit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.ws-profit-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ws-profit-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: #CBD5E1;
}

.ws-pkpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ws-pkpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ws-pkpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-pkpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.ws-pkpi-sub {
  font-size: 0.78rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ws-pkpi-progress-wrap {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ws-pkpi-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #3B82F6);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Charts Bento Grid */
.ws-profit-charts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.ws-profit-chart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.ws-chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.ws-chart-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.ws-chart-subtitle {
  margin: 4px 0 0;
  font-size: 0.80rem;
  color: #64748B;
}

.ws-chart-body {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Interactive Donut Chart */
.ws-donut-chart-container {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-donut-chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94A3B8;
  text-align: center;
}

.ws-donut-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ws-donut-slice {
  fill: transparent;
  stroke-width: 22;
  transition: stroke-width 0.25s ease, stroke 0.25s ease, opacity 0.2s ease;
  cursor: pointer;
}

.ws-donut-slice:hover {
  stroke-width: 27;
  opacity: 0.92;
}

.ws-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.ws-donut-center-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  display: block;
  line-height: 1.15;
}

.ws-donut-center-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Category Legend */
.ws-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.ws-donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: #F8FAFC;
  font-size: 0.80rem;
  transition: background 0.15s ease;
}

.ws-donut-legend-item:hover {
  background: #F1F5F9;
}

.ws-donut-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ws-donut-legend-name {
  font-weight: 600;
  color: #334155;
}

.ws-donut-legend-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-donut-legend-amount {
  font-weight: 700;
  color: #0F172A;
}

.ws-donut-legend-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  background: #E2E8F0;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Revenue & Cost Distribution Split Summary */
.ws-profit-summary-split {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.ws-split-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-split-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.80rem;
  font-weight: 700;
}

.ws-split-track {
  width: 100%;
  height: 10px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.ws-split-segment-rev {
  background: linear-gradient(90deg, #7C3AED, #6366F1);
}

.ws-split-segment-exp {
  background: #E11D48;
}

.ws-split-segment-net {
  background: #059669;
}

.ws-split-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.ws-split-stat-card {
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.ws-split-stat-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ws-split-stat-number {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0F172A;
}

/* Projects Grid Container */
.ws-projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 6px;
}

/* Project Bento Card */
.ws-project-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  position: relative;
}

.ws-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.ws-pcard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ws-pcard-title-wrap {
  flex: 1;
}

.ws-pcard-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}

.ws-pcard-client {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ws-pcard-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.ws-pstatus-in_progress {
  background: #EDE9FE;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.ws-pstatus-completed {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.ws-pstatus-on_hold {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.ws-pstatus-planning {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* Project Financial Bento Numbers */
.ws-pcard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  gap: 8px;
}

.ws-pcard-metric-col {
  display: flex;
  flex-direction: column;
}

.ws-pcard-metric-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.ws-pcard-metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Project Profit Margin Bar */
.ws-pcard-margin-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-pcard-margin-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748B;
}

.ws-pcard-margin-track {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}

.ws-pcard-margin-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Project Linked Document Chips */
.ws-pcard-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ws-pcard-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.ws-pcard-chip-quote {
  background: #EEF2FF;
  color: #4338CA;
  border-color: #E0E7FF;
}

.ws-pcard-chip-invoice {
  background: #ECFDF5;
  color: #047857;
  border-color: #D1FAE5;
}

.ws-pcard-chip-expense {
  background: #FFF1F2;
  color: #BE123C;
  border-color: #FFE4E6;
}

/* Project Action Buttons Row */
.ws-pcard-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  margin-top: 4px;
}

/* Project Detail Drawer Styles */
.ws-pdetail-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ws-pdetail-stat-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.ws-pdetail-stat-label {
  font-size: 0.70rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ws-pdetail-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.ws-pdetail-stat-sub {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 4px;
}

.ws-pdetail-list-wrap {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}

.ws-pdetail-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.84rem;
  transition: background 0.15s ease;
}

.ws-pdetail-item-row:last-child {
  border-bottom: none;
}

.ws-pdetail-item-row:hover {
  background: #F8FAFC;
}

/* Category Color Badges */
.ws-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ws-cat-materials {
  background: #EDE9FE;
  color: #6D28D9;
}
.ws-cat-labour {
  background: #EFF6FF;
  color: #1D4ED8;
}
.ws-cat-subcontractor {
  background: #ECFDF5;
  color: #047857;
}
.ws-cat-equipment {
  background: #FFFBEB;
  color: #B45309;
}
.ws-cat-logistics {
  background: #F0F9FF;
  color: #0369A1;
}
.ws-cat-overheads {
  background: #FFF1F2;
  color: #BE123C;
}
.ws-cat-other {
  background: #F1F5F9;
  color: #475569;
}

/* Dark Mode Overrides for Projects & Profit */
[data-theme='dark'] .ws-profit-kpi-card,
[data-theme='dark'] .ws-profit-chart-card,
[data-theme='dark'] .ws-project-card {
  background: #171320 !important;
  border-color: #261F32 !important;
}

[data-theme='dark'] .ws-profit-kpi-card:hover,
[data-theme='dark'] .ws-project-card:hover {
  border-color: #7C3AED !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme='dark'] .ws-pkpi-val,
[data-theme='dark'] .ws-chart-title,
[data-theme='dark'] .ws-pcard-title,
[data-theme='dark'] .ws-donut-center-val,
[data-theme='dark'] .ws-donut-legend-amount,
[data-theme='dark'] .ws-split-stat-number,
[data-theme='dark'] .ws-pdetail-stat-val {
  color: #F8FAFC !important;
}

[data-theme='dark'] .ws-pkpi-label,
[data-theme='dark'] .ws-chart-subtitle,
[data-theme='dark'] .ws-pcard-client,
[data-theme='dark'] .ws-donut-center-label,
[data-theme='dark'] .ws-split-stat-title {
  color: #94A3B8 !important;
}

[data-theme='dark'] .ws-pkpi-progress-wrap,
[data-theme='dark'] .ws-split-track,
[data-theme='dark'] .ws-pcard-margin-track {
  background: #231C2E !important;
}

[data-theme='dark'] .ws-donut-legend-item,
[data-theme='dark'] .ws-pcard-metrics-grid,
[data-theme='dark'] .ws-split-stat-card,
[data-theme='dark'] .ws-pdetail-stat-box,
[data-theme='dark'] .ws-pdetail-list-wrap {
  background: #1D1728 !important;
  border-color: #2D243B !important;
}

[data-theme='dark'] .ws-donut-legend-name {
  color: #CBD5E1 !important;
}

[data-theme='dark'] .ws-pdetail-item-row {
  border-bottom-color: #261F32 !important;
}

[data-theme='dark'] .ws-pdetail-item-row:hover {
  background: #231C2E !important;
}

/* Mobile Responsive Rules for Projects & Profit */
@media (max-width: 900px) {
  .ws-profit-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .ws-profit-kpi-card {
    padding: 16px !important;
  }

  .ws-pkpi-val {
    font-size: 1.25rem !important;
  }

  .ws-profit-charts-grid {
    grid-template-columns: 1fr !important;
  }

  .ws-chart-body {
    flex-direction: column !important;
    align-items: center !important;
  }

  .ws-donut-legend {
    width: 100% !important;
    max-height: none !important;
  }

  .ws-projects-container {
    grid-template-columns: 1fr !important;
  }

  .ws-pdetail-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================================
   PROFESSIONAL SAAS MULTI-BRAND CONTROL CENTER STYLES
   ========================================================================= */
.ws-brand-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ws-brand-hub-info {
  flex: 1;
  min-width: 260px;
}

.ws-brand-hub-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ws-brand-hub-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0;
}

.ws-brand-slot-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ws-brand-upgrade-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7C3AED;
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.ws-brand-upgrade-chip:hover {
  background: #EDE9FE;
  transform: translateY(-1px);
}

.ws-brand-hub-desc {
  font-size: 0.84rem;
  color: #64748B;
  margin: 0;
  line-height: 1.45;
  max-width: 650px;
}

.ws-brand-hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 3-Slot Brand Rack Grid */
.ws-brand-rack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .ws-brand-rack-grid {
    grid-template-columns: 1fr;
  }
}

/* Brand Card (Configured) */
.ws-brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  min-height: 104px;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ws-brand-card:hover {
  border-color: #CBD5E1;
  background: #FAFAFC;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ws-brand-card.active {
  border-color: #8247FF;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #8247FF, 0 8px 20px rgba(130, 71, 255, 0.1);
}

.ws-brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ws-brand-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #475569;
  overflow: hidden;
  flex-shrink: 0;
}

.ws-brand-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.ws-brand-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ws-brand-card.active .ws-brand-card-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.ws-brand-card:not(.active) .ws-brand-card-badge {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.ws-brand-card-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ws-brand-card-bottom {
  min-width: 0;
}

.ws-brand-card-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.ws-brand-card.active .ws-brand-card-name {
  color: #7C3AED;
}

.ws-brand-card-sub {
  font-size: 0.74rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty / Add Slot Card */
.ws-brand-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px dashed #CBD5E1;
  background: #FAFAFC;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  min-height: 104px;
}

.ws-brand-card-slot:hover {
  border-color: #8247FF;
  background: #FAF5FF;
  transform: translateY(-2px);
}

.ws-brand-card-slot.active {
  border-color: #8247FF;
  border-style: solid;
  background: #FAF5FF;
  box-shadow: 0 0 0 1px #8247FF, 0 8px 20px rgba(130, 71, 255, 0.08);
}

.ws-brand-slot-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.ws-brand-card-slot:hover .ws-brand-slot-icon,
.ws-brand-card-slot.active .ws-brand-slot-icon {
  background: #8247FF;
  color: #FFFFFF;
}

.ws-brand-slot-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.ws-brand-card-slot:hover .ws-brand-slot-label,
.ws-brand-card-slot.active .ws-brand-slot-label {
  color: #7C3AED;
}

.ws-brand-slot-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

/* Locked Pro Slot */
.ws-brand-card-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  text-align: center;
  min-height: 104px;
  transition: all 0.15s ease;
}

.ws-brand-card-locked:hover {
  border-color: #FBBF24;
  background: #FFFBEB;
  transform: translateY(-1px);
}

/* Active Context Strip */
.ws-brand-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.ws-brand-context-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-brand-context-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

.ws-brand-context-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
}

.ws-brand-context-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-btn-context {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.ws-btn-context-default {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
}
.ws-btn-context-default:hover {
  border-color: #8247FF;
  color: #8247FF;
}

.ws-btn-context-danger {
  background: transparent;
  color: #94A3B8;
}
.ws-btn-context-danger:hover {
  background: #FEE2E2;
  color: #DC2626;
}

/* Dark Mode Support */
[data-theme='dark'] .ws-brand-hub-title {
  color: #F8FAFC !important;
}

[data-theme='dark'] .ws-brand-slot-pill {
  background: #1E182A !important;
  border-color: #2D243B !important;
  color: #94A3B8 !important;
}

[data-theme='dark'] .ws-brand-upgrade-chip {
  background: #2E1B4E !important;
  border-color: #581C87 !important;
  color: #D8B4FE !important;
}

[data-theme='dark'] .ws-brand-card {
  background: #191424 !important;
  border-color: #2D243B !important;
}

[data-theme='dark'] .ws-brand-card:hover {
  background: #211B30 !important;
  border-color: #43335B !important;
}

[data-theme='dark'] .ws-brand-card.active {
  background: #231838 !important;
  border-color: #9333EA !important;
  box-shadow: 0 0 0 1px #9333EA, 0 8px 22px rgba(147, 51, 234, 0.15) !important;
}

[data-theme='dark'] .ws-brand-card-avatar {
  background: #1E182A !important;
  border-color: #2D243B !important;
  color: #CBD5E1 !important;
}

[data-theme='dark'] .ws-brand-card-name {
  color: #F8FAFC !important;
}

[data-theme='dark'] .ws-brand-card.active .ws-brand-card-name {
  color: #C084FC !important;
}

[data-theme='dark'] .ws-brand-card-slot {
  background: #181423 !important;
  border-color: #2D243B !important;
}

[data-theme='dark'] .ws-brand-card-slot:hover {
  background: #221735 !important;
  border-color: #9333EA !important;
}

[data-theme='dark'] .ws-brand-card-slot.active {
  background: #231838 !important;
  border-color: #9333EA !important;
}

[data-theme='dark'] .ws-brand-slot-icon {
  background: #231C2E !important;
  color: #94A3B8 !important;
}

[data-theme='dark'] .ws-brand-slot-label {
  color: #CBD5E1 !important;
}

[data-theme='dark'] .ws-brand-context-strip {
  background: #191424 !important;
  border-color: #2D243B !important;
}

[data-theme='dark'] .ws-brand-context-name {
  color: #F8FAFC !important;
}

[data-theme='dark'] .ws-btn-context-default {
  background: #231C2E !important;
  border-color: #382B4B !important;
  color: #CBD5E1 !important;
}

