/* styles.css - MarcenaPro */

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Active tab styles - Azul Escuro e Dourado */
.tab-btn {
  color: #64748b;
  border-color: transparent;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  color: #0c1d3d;
  background-color: #f0f4f9;
}
.tab-btn.active-tab {
  color: #0c1d3d;
  border-color: #c99622;
  background-color: #f0f4f9;
  font-weight: 700;
}

/* Catalog tab styles */
.cat-tab-btn {
  color: #64748b;
  border-color: transparent;
  transition: all 0.15s ease;
}
.cat-tab-btn:hover {
  color: #0c1d3d;
  background-color: #ffffff;
}
.cat-tab-btn.active-tab {
  color: #0c1d3d;
  border-color: #c99622;
  background-color: #ffffff;
  font-weight: 700;
}

/* Modal animation */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scale-up {
  animation: scaleUp 0.18s ease-out forwards;
}

/* A4 Sheet Dimensions for Proposal */
.a4-sheet {
  width: 100%;
  max-width: 820px;
  min-height: 1100px;
  box-sizing: border-box;
}

/* ===================================================
   PRINT STYLES - PERFECT A4 EXPORT
   =================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 14mm 12mm 14mm;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide everything marked no-print */
  .no-print,
  header,
  footer,
  #view-login,
  #view-dashboard,
  #view-clients,
  #view-users,
  #view-fixed-costs,
  #view-editor,
  #view-catalog,
  #view-settings,
  #modal-catalog-picker,
  #modal-client-form,
  #modal-client-picker,
  #modal-module-form,
  #modal-user-form,
  #modal-confirm-dialog,
  #app-toast {
    display: none !important;
  }

  /* Show only the proposal */
  #view-proposal {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .a4-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }

  /* Prevent awkward page breaks */
  h1, h2, h3, h4, h5, tr, .avoid-break {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  table {
    page-break-inside: auto;
  }

  /* Ensure colors and backgrounds print clearly */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
