/* Hard Deco Cockpit — RC1.5.74
   Rythme commun des contenus d'onglets Projet, Devis et Facture. */

:is(.project-page-panel, .quote-page-panel, .invoice-page-panel) {
  margin: 0;
}

:is(.project-page-panel, .quote-page-panel, .invoice-page-panel) > :first-child {
  margin-top: 0;
}

:is(.project-overview-grid, .quote-page-grid, .invoice-page-grid, .project-finance-page, .project-team-page) {
  gap: 12px;
}

.entity-tab-intro {
  overflow: hidden;
  border: 1px solid var(--border, #dfe4ec);
  border-radius: 12px;
  background: var(--panel, #fff);
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, .04));
}

.project-finance-page-toolbar.entity-tab-intro {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.entity-tab-intro > header {
  min-height: 64px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-bottom: 1px solid var(--border, #e3e7ee) !important;
  background: transparent !important;
}

.entity-tab-intro--header-only > header {
  border-bottom: 0 !important;
}

.entity-tab-heading {
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.entity-tab-heading > svg,
.entity-tab-heading > .lucide {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  color: var(--accent, #2563eb);
  stroke-width: 2;
}

.entity-tab-heading-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.entity-tab-heading-copy h2 {
  margin: 0 !important;
  color: var(--text, #111827) !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em;
}

.entity-tab-heading-copy small {
  display: block;
  margin: 0 !important;
  color: var(--muted, #667085) !important;
  font-size: 10px !important;
  font-weight: 450 !important;
  line-height: 1.4 !important;
}

.entity-tab-intro-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.entity-tab-intro-actions > :is(.btn, .btn-secondary, .btn-icon, button) {
  margin: 0;
}

@media (max-width: 680px) {
  :is(.project-overview-grid, .quote-page-grid, .invoice-page-grid, .project-finance-page, .project-team-page) {
    gap: 10px;
  }

  .entity-tab-intro {
    border-radius: 14px;
  }

  .entity-tab-intro > header {
    min-height: 72px !important;
    padding: 13px 14px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  .entity-tab-heading {
    gap: 10px !important;
  }

  .entity-tab-heading > svg,
  .entity-tab-heading > .lucide {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px;
  }

  .entity-tab-heading-copy h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .entity-tab-heading-copy small {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .entity-tab-intro-actions {
    width: auto !important;
    margin-left: auto;
    gap: 6px;
  }

  .entity-tab-intro-actions > button {
    flex: 0 0 auto !important;
  }

  .entity-tab-intro-actions--wide-mobile {
    flex: 1 0 100%;
    width: 100%;
  }

  .entity-tab-intro-actions--wide-mobile > button {
    width: 100%;
    justify-content: center;
  }

  .entity-tab-intro:has(.entity-tab-intro-actions--wide-mobile) > header {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 420px) {
  .entity-tab-intro > header {
    padding-inline: 12px !important;
  }

  .entity-tab-heading-copy h2 {
    font-size: 15px !important;
  }

  .entity-tab-intro-actions :is(.btn, .btn-secondary) {
    padding-inline: 10px;
  }
}
