/* ============================================================
   ESTILOS - ORÇAMENTO PERSONALIZADO DRA. CÍNTIA PROCOPIO
   ============================================================ */

/* Fontes Extraídas do PDF */
@font-face {
  font-family: 'EyesomeScriptLocal';
  src: url('assets/EyesomeScript.ttf') format('truetype');
}

@font-face {
  font-family: 'TTBarrelsLocal';
  src: url('assets/TTBarrels-Italic.ttf') format('truetype');
  font-style: italic;
}

@font-face {
  font-family: 'TTRamillasLocal';
  src: url('assets/TTRamillas-Regular.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'TTRamillasItalicLocal';
  src: url('assets/TTRamillas-Italic.ttf') format('truetype');
  font-style: italic;
}

@font-face {
  font-family: 'TTChocolatesLocal';
  src: url('assets/TTChocolates-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'LiteraturnayaLocal';
  src: url('assets/Literaturnaya-Italic.ttf') format('truetype');
  font-style: italic;
}

@font-face {
  font-family: 'ArimoLocal';
  src: url('assets/Arimo-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'RamillasCustom';
  src: url('fonts/ramillas.otf') format('opentype');
}

/* Variáveis de Cores e Fontes */
:root {
  --color-gold-taupe: #8c7b5a;
  --color-dark-taupe: #554a34;
  --color-deep-charcoal: #3d3630;
  --color-border-line: #c9bfa8;
  --color-light-accent: #bdae96;

  /* Font Stacks com Fallbacks Calibrados */
  --font-script: 'EyesomeScriptLocal', 'Alex Brush', 'Great Vibes', 'Allura', cursive;
  --font-serif-italic: 'TTBarrelsLocal', 'Cormorant Garamond', 'Playfair Display', serif;
  --font-serif-display: 'TTRamillasLocal', 'Cinzel', 'Playfair Display', 'Cormorant Garamond', serif;
  --font-sans: 'TTChocolatesLocal', 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-editorial: 'LiteraturnayaLocal', 'Cormorant Garamond', 'Lora', serif;
  --font-footer: 'ArimoLocal', 'Arimo', 'Montserrat', sans-serif;

  /* Dimensões A4 em 96DPI (794px x 1123px) */
  --sheet-width: 794px;
  --sheet-height: 1123px;
}

/* Reset e Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #211f1d;
  color: var(--color-dark-taupe);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   BARRA DE FERRAMENTAS SUPERIOR (LUXO / CONTROLES)
   ============================================================ */
.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(30, 27, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(140, 123, 90, 0.3);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-brand .brand-monogram {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(140, 123, 90, 0.15);
  border: 1px solid var(--color-gold-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  color: #dfd4be;
  font-size: 20px;
}

.toolbar-brand .brand-info {
  display: flex;
  flex-direction: column;
}

.toolbar-brand .brand-title {
  font-family: var(--font-serif-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #f1e9db;
  text-transform: uppercase;
}

.toolbar-brand .brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #9c8e76;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.toolbar-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #e2d9cb;
  border-color: rgba(255, 255, 255, 0.15);
}

.toolbar-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold-taupe);
  color: #fff;
}

.toolbar-btn.btn-secondary.active {
  background: rgba(140, 123, 90, 0.28);
  border-color: var(--color-gold-taupe);
  color: #f6efe1;
}

.toolbar-btn.btn-primary {
  background: linear-gradient(135deg, #a4916c 0%, #8c7b5a 100%);
  color: #1a1612;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(140, 123, 90, 0.35);
}

.toolbar-btn.btn-primary:hover {
  background: linear-gradient(135deg, #b8a57e 0%, #9b8966 100%);
  box-shadow: 0 4px 14px rgba(140, 123, 90, 0.5);
  transform: translateY(-1px);
}

.toolbar-status {
  font-size: 11px;
  color: #9c8e76;
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.toolbar-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #55a868;
}

/* ============================================================
   CONTAINER E FOLHA A4
   ============================================================ */
.document-viewport {
  padding: 30px 20px 60px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.sheet {
  position: relative;
  width: var(--sheet-width);
  min-height: var(--sheet-height);
  height: var(--sheet-height);
  background-color: #fdfbf7;
  background-image: url('fundo2.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Margem interna para casar perfeitamente com o espaço útil do fundo */
  padding: 56px 62px 42px 62px;
}

/* ============================================================
   1. CABEÇALHO / LOGO
   ============================================================ */
.doc-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 38px;
}

.header-logo-img {
  width: 140px;
  height: auto;
  display: block;
}

/* ============================================================
   2. SAUDAÇÃO PERSONALIZADA ("Querida Mari ,")
   ============================================================ */
.salutation-section {
  width: 100%;
  text-align: center;
  margin-bottom: 38px;
}

.editable-salutation {
  font-family: var(--font-script);
  font-size: 40px;
  line-height: 1.1;
  color: var(--color-gold-taupe);
  display: inline-block;
  min-width: 150px;
  outline: none;
}

/* ============================================================
   3. TEXTO INTRODUTÓRIO (BLOCO ÚNICO EDITÁVEL)
   ============================================================ */
.intro-text-section {
  width: 100%;
  max-width: 580px;
  text-align: center;
  margin-bottom: 30px;
}

.intro-text-block {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--color-dark-taupe);
  outline: none;
  text-align: center;
  width: 100%;
  min-height: 70px;
  word-break: break-word;
}

.intro-text-block p,
.intro-text-block div {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* ============================================================
   4. SEÇÃO DOS CLUBES (2 COLUNAS)
   ============================================================ */
.clubs-container {
  width: 100%;
  max-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  margin-bottom: 18px;
}

/* Linha divisória vertical entre colunas */
.clubs-container::after {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--color-border-line);
  transform: translateX(-50%);
}

.club-column {
  display: flex;
  flex-direction: column;
  position: relative;
}

.club-column.col-left {
  padding-right: 18px;
}

.club-column.col-right {
  padding-left: 18px;
}

/* Cabeçalho do Clube */
.club-header {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
  padding-top: 5px;
}

.club-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: 100%;
}

.club-side-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-border-line);
  margin-top: 15px; /* alinhado à altura média de CLUBS */
}

.club-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  flex-shrink: 0;
}

.club-title-text {
  font-family: var(--font-serif-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #bcaea0;
  line-height: 1;
  text-transform: uppercase;
  outline: none;
}

.club-subtitle-text {
  font-family: var(--font-serif-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-gold-taupe);
  margin-top: 3px;
  outline: none;
}

.club-subtitle-text.subtitle-select {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 15px;
}

/* Espaço do Selo no Clube da Direita (sem traço) */
.club-badge-slot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-badge {
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: -6px;
}

.club-badge img {
  width: 100%;
  height: 100%;
  display: block;
}

.club-badge:hover {
  transform: scale(1.08);
}

.club-badge.hidden-badge {
  opacity: 0.25;
  filter: grayscale(1);
}

/* Lista de Procedimentos */
.procedures-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  min-height: 110px;
}

.procedure-item {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}

.procedure-bullet {
  width: 15px;
  height: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.procedure-bullet img {
  width: 15px;
  height: auto;
  display: block;
}

.procedure-text {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--color-dark-taupe);
  outline: none;
  flex: 1;
}

/* Controles de Linha de Procedimento (+ e x) */
.procedure-controls {
  display: none;
  align-items: center;
  gap: 4px;
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
}

.procedure-item:hover .procedure-controls {
  display: flex;
}

.proc-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.proc-btn.btn-remove {
  background: #ff5e5e;
  color: white;
}

.proc-btn.btn-add {
  background: #4ecb71;
  color: white;
}

.add-proc-row {
  margin-top: 4px;
  display: none;
  align-self: flex-start;
}

.add-proc-row-btn {
  background: rgba(140, 123, 90, 0.12);
  border: 1px dashed var(--color-gold-taupe);
  color: var(--color-gold-taupe);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Divisórias Horizontais nos Clubes */
.club-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border-line);
  margin: 0;
}

/* Bloco de Investimento / Preço */
.investment-block {
  text-align: center;
  padding: 12px 4px 10px 4px;
}

.investment-label {
  font-family: var(--font-serif-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-gold-taupe);
  text-transform: uppercase;
  margin-bottom: 3px;
  outline: none;
}

.investment-amount {
  font-family: var(--font-serif-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-dark-taupe);
  line-height: 1.15;
  margin-bottom: 2px;
  outline: none;
}

.investment-installments {
  font-family: var(--font-serif-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-dark-taupe);
  outline: none;
}

/* ============================================================
   5. SEÇÃO FINAL / POSSIBILIDADES / ORNAMENTO
   ============================================================ */
.bottom-section {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4px;
}

.possibilities-text {
  font-family: 'RamillasCustom', var(--font-serif-display);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--color-gold-taupe);
  text-transform: uppercase;
  margin-bottom: 12px;
  outline: none;
}

.flower-ornament {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}

.flower-ornament img {
  width: 100%;
  height: 100%;
  display: block;
}

.closing-message {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--color-gold-taupe);
  margin-bottom: 16px;
  outline: none;
}

.signoff-text {
  font-family: var(--font-footer);
  font-size: 13.5px;
  color: var(--color-deep-charcoal);
  margin-bottom: 34px;
  outline: none;
}

/* ============================================================
   6. RODAPÉ (CRM / RQE)
   ============================================================ */
.doc-footer {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding-bottom: 44px;
}

.footer-profession {
  font-family: var(--font-footer);
  font-size: 7px;
  letter-spacing: 0.42em;
  color: var(--color-gold-taupe);
  text-transform: uppercase;
  margin-bottom: 4px;
  outline: none;
}

.footer-crm {
  font-family: var(--font-footer);
  font-size: 7px;
  letter-spacing: 0.32em;
  color: var(--color-gold-taupe);
  text-transform: uppercase;
  outline: none;
}

/* ============================================================
   EFEITOS VISUAIS DE EDIÇÃO (MODO GUIAS)
   ============================================================ */
body.show-guides [contenteditable="true"] {
  outline: 1px dashed rgba(140, 123, 90, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

body.show-guides [contenteditable="true"]:hover {
  outline-color: var(--color-gold-taupe);
  background: rgba(140, 123, 90, 0.05);
}

body.show-guides [contenteditable="true"]:focus {
  outline: 1px solid var(--color-gold-taupe);
  background: rgba(140, 123, 90, 0.08);
}

body.show-guides .add-proc-row {
  display: flex;
}

/* ============================================================
   NOTIFICAÇÃO TOAST
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e1b18;
  color: #f1e9db;
  border: 1px solid var(--color-gold-taupe);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LAYOUT PRINCIPAL COM LEFTBAR FIXA
   ============================================================ */
.app-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: #211f1d;
}

/* ============================================================
   LEFTBAR (BARRA LATERAL ESQUERDA)
   ============================================================ */
.app-leftbar {
  width: 320px;
  min-width: 300px;
  flex-shrink: 0;
  background-color: #171513;
  border-right: 1px solid rgba(140, 123, 90, 0.25);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 600;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s ease;
}

.app-leftbar.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
  border-right: none;
}

.leftbar-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.leftbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-new-letter {
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, #a4916c 0%, #8c7b5a 100%);
  color: #1a1612;
  border: 1px solid #baa887;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(140, 123, 90, 0.28);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-new-letter:hover {
  background: linear-gradient(135deg, #b8a57e 0%, #9b8966 100%);
  box-shadow: 0 4px 14px rgba(140, 123, 90, 0.45);
  transform: translateY(-1px);
}

.leftbar-search {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-gold-taupe);
}

.leftbar-search input {
  background: transparent;
  border: none;
  color: #f5f0e6;
  font-size: 12.5px;
  width: 100%;
  outline: none;
  font-family: var(--font-sans);
}

.leftbar-search input::placeholder {
  color: #7d7260;
}

.leftbar-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leftbar-list::-webkit-scrollbar {
  width: 4px;
}
.leftbar-list::-webkit-scrollbar-thumb {
  background: rgba(140, 123, 90, 0.3);
  border-radius: 4px;
}

/* CARDS DO HISTÓRICO */
.history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(140, 123, 90, 0.18);
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.history-card:hover {
  background: rgba(140, 123, 90, 0.08);
  border-color: rgba(140, 123, 90, 0.35);
  border-left-color: rgba(140, 123, 90, 0.6);
}

/* ESTADO SELECIONADO / ATIVO */
.history-card.active {
  background: linear-gradient(135deg, rgba(140, 123, 90, 0.24) 0%, rgba(140, 123, 90, 0.12) 100%);
  border-color: var(--color-gold-taupe);
  border-left: 4px solid var(--color-gold-taupe);
  box-shadow: 0 2px 14px rgba(140, 123, 90, 0.25);
}

.history-card.active .card-client-name {
  color: #fff;
  font-weight: 600;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-client-name {
  font-family: var(--font-serif-display);
  font-size: 15px;
  color: #f7f1e6;
  font-weight: 500;
}

.card-active-indicator {
  display: none;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-gold-taupe);
  color: #1a1612;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.history-card.active .card-active-indicator {
  display: inline-block;
}

.card-date {
  font-size: 10.5px;
  color: #8e806c;
}

.card-values-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #c9bda9;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.card-values-row span b {
  color: #f2e9dc;
}

.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.card-btn {
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.card-btn-load {
  background: rgba(140, 123, 90, 0.25);
  color: #f6efe1;
  border: 1px solid var(--color-gold-taupe);
}

.card-btn-load:hover {
  background: var(--color-gold-taupe);
  color: #1a1612;
}

.card-btn-delete {
  background: transparent;
  color: #a87676;
  border: 1px solid rgba(168, 118, 118, 0.3);
}

.card-btn-delete:hover {
  background: rgba(255, 78, 78, 0.15);
  color: #ff8e8e;
  border-color: #ff8e8e;
}

.history-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #8c7e69;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.history-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 14px;
  color: #9c8e76;
  font-size: 13px;
}

.loading-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(140, 123, 90, 0.2);
  border-top-color: var(--color-gold-taupe);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.leftbar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8c7e69;
}

.cloud-sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   ÁREA PRINCIPAL (MAIN CONTENT)
   ============================================================ */
.app-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #211f1d;
}

.toolbar-toggle-leftbar {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c4b59f;
  border-radius: 5px;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 6px;
}

.toolbar-toggle-leftbar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--color-gold-taupe);
}

.toolbar-doc-indicator {
  font-family: var(--font-serif-display);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: #f1e9db;
}

/* ============================================================
   REGRAS DE IMPRESSÃO (@media print)
   ============================================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: 210mm !important;
    height: 297mm !important;
  }

  .no-print,
  .app-leftbar,
  .app-toolbar,
  .procedure-controls,
  .add-proc-row,
  .toast-notification {
    display: none !important;
  }

  .app-layout {
    display: block !important;
  }

  .app-main-content {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  .document-viewport {
    padding: 0 !important;
    margin: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
  }

  .sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-shadow: none !important;
    margin: 0 !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  [contenteditable="true"] {
    outline: none !important;
    background: transparent !important;
  }

  .club-badge.hidden-badge {
    display: none !important;
  }
}
