/* ==========================================================================
   FEATURE 015 - GOOGLE STITCH PATRIMÔNIO ENTERPRISE DEDICATED STYLES
   ========================================================================== */

#tab-asset-register.stitch-workspace {
  background-color: #faf8ff !important;
  padding: 1.5rem 2rem 4rem 2rem !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] #tab-asset-register.stitch-workspace {
  background-color: #090d16 !important;
}

/* Header & Breadcrumb Toolbar */
.stitch-header-card {
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

.stitch-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  font-size: 0.8125rem !important;
  color: #444651 !important;
  margin-bottom: 0.625rem !important;
}

[data-theme="dark"] .stitch-breadcrumb {
  color: #94a3b8 !important;
}

.stitch-breadcrumb a {
  color: #444651 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s !important;
}

.stitch-breadcrumb a:hover {
  color: #00236f !important;
}

[data-theme="dark"] .stitch-breadcrumb a:hover {
  color: #60a5fa !important;
}

.stitch-title-group {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
  width: 100% !important;
}

.stitch-title-status {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #006a61 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.stitch-page-title {
  font-size: 1.625rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #131b2e !important;
  letter-spacing: -0.02em !important;
}

[data-theme="dark"] .stitch-page-title {
  color: #f8fafc !important;
}

.stitch-page-subtitle {
  font-size: 0.8125rem !important;
  color: #444651 !important;
  margin: 4px 0 0 0 !important;
}

[data-theme="dark"] .stitch-page-subtitle {
  color: #94a3b8 !important;
}

/* Stepper Tabs Bar (Pills Flutuantes) */
.stitch-steps-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1.5rem !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  width: 100% !important;
}

.stitch-step-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.375rem 0.875rem !important;
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #444651 !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

[data-theme="dark"] .stitch-step-item {
  color: #94a3b8 !important;
}

.stitch-step-item:hover {
  background: #eef0fb !important;
  color: #00236f !important;
}

[data-theme="dark"] .stitch-step-item:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.stitch-step-item.active {
  background: #eaedff !important;
  color: #00236f !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .stitch-step-item.active {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

.stitch-step-num {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #e2e7ff !important;
  color: #444651 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

.stitch-step-item.active .stitch-step-num {
  background: #00236f !important;
  color: #ffffff !important;
}

[data-theme="dark"] .stitch-step-num {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .stitch-step-item.active .stitch-step-num {
  background: #ffffff !important;
  color: #00236f !important;
}

/* 12-Column Grid Layout */
.stitch-grid-12 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  gap: 1.5rem !important;
  align-items: start !important;
  width: 100% !important;
}

.stitch-col-8 {
  grid-column: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  min-width: 0 !important;
}

.stitch-col-4 {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  position: sticky !important;
  top: 1.5rem !important;
  min-width: 0 !important;
}

@media (max-width: 1100px) {
  .stitch-grid-12 {
    grid-template-columns: 1fr !important;
  }
  .stitch-col-8,
  .stitch-col-4 {
    grid-column: 1 !important;
    position: static !important;
  }
}

/* Section Cards */
.stitch-section-card {
  background: #ffffff !important;
  border: 1px solid #eaedff !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 2px 12px -2px rgba(0, 35, 111, 0.03) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

[data-theme="dark"] .stitch-section-card {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}

.stitch-section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid #f2f3ff !important;
  padding-bottom: 0.875rem !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
}

[data-theme="dark"] .stitch-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.stitch-icon-box {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: #eaedff !important;
  color: #00236f !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .stitch-icon-box {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
}

.stitch-section-h2 {
  font-size: 1.1875rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #131b2e !important;
  letter-spacing: -0.01em !important;
}

[data-theme="dark"] .stitch-section-h2 {
  color: #f8fafc !important;
}

/* Inputs, Selects & Labels (Estilo Stitch Lilás Claro #eef0fb) */
.stitch-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #131b2e !important;
  margin-bottom: 0.375rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

[data-theme="dark"] .stitch-label {
  color: #f1f5f9 !important;
}

.stitch-input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 0.875rem !important;
  background-color: #eef0fb !important;
  color: #131b2e !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.stitch-input:focus {
  background-color: #ffffff !important;
  border-color: #00236f !important;
  box-shadow: 0 0 0 3px rgba(0, 35, 111, 0.12) !important;
  outline: none !important;
}

.stitch-input-code {
  font-family: 'JetBrains Mono', monospace !important;
}

[data-theme="dark"] .stitch-input {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .stitch-input:focus {
  background-color: #0f172a !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.stitch-help-text {
  font-size: 0.75rem !important;
  color: #64748b !important;
  margin-top: 0.25rem !important;
  display: block !important;
}

[data-theme="dark"] .stitch-help-text {
  color: #94a3b8 !important;
}

/* Botões Segmentados (Condição Física) */
.stitch-segmented-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.stitch-segment-btn {
  padding: 0.5rem 0.875rem !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border: 1px solid #eaedff !important;
  background: #ffffff !important;
  color: #444651 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.stitch-segment-btn.active {
  background: #ccfbf1 !important;
  border-color: #99f6e4 !important;
  color: #006a61 !important;
  font-weight: 700 !important;
}

/* Badges & Pills */
.stitch-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 6px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.stitch-pill-teal {
  background: #ccfbf1 !important;
  color: #0f766e !important;
}

.stitch-pill-blue {
  background: #eaedff !important;
  color: #00236f !important;
}

.stitch-pill-amber {
  background: #fef3c7 !important;
  color: #92400e !important;
}

/* Plaqueta Física de Patrimônio (Design Limpo Stitch com Código e QR) */
.stitch-metal-tag {
  background: #ffffff !important;
  border: 1px solid #eaedff !important;
  border-radius: 10px !important;
  padding: 1.125rem 1rem !important;
  box-shadow: 0 4px 16px -2px rgba(0, 35, 111, 0.06) !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .stitch-metal-tag {
  background: #111827 !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.5) !important;
}

.stitch-metal-tag-code {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #0f172a !important;
}

[data-theme="dark"] .stitch-metal-tag-code {
  color: #f8fafc !important;
}

/* Botões de Ação Stitch */
.btn-stitch-main {
  height: 40px !important;
  padding: 0 1.25rem !important;
  background-color: #00236f !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  box-shadow: 0 2px 8px rgba(0, 35, 111, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.15s ease !important;
}

.btn-stitch-main:hover {
  background-color: #00174c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 35, 111, 0.35) !important;
}

.btn-stitch-outline {
  height: 40px !important;
  padding: 0 1rem !important;
  background-color: #ffffff !important;
  color: #444651 !important;
  border: 1px solid #eaedff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

[data-theme="dark"] .btn-stitch-outline {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

.btn-stitch-outline:hover {
  background-color: #eef0fb !important;
  border-color: #cbd5e1 !important;
  color: #00236f !important;
}

[data-theme="dark"] .btn-stitch-outline:hover {
  background-color: #334155 !important;
}
