/* =========================================================
   FILAMENT BY LARAVEL (FILAMENTPHP V3) CUSTOM STYLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fafb;
  color: #030712;
  -webkit-font-smoothing: antialiased;
}

/* Strict No-Wrap for all Table Cells */
table {
  min-width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-overflow: clip;
}

/* =========================================================
   STRICT NO-WARP & NO-WRAP BUTTON STYLES
   Mencegah tombol patah baris, gepeng, atau terdistorsi di seluruh resolusi layar
   ========================================================= */
button,
.btn,
a.btn,
.period-btn,
.purchases-period-btn,
.sales-period-btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0;
}

/* Table action cells container anti-wrap */
.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f9fafb;
}
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* Sidebar scrollbar */
.sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: #ffffff;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #f3f4f6;
  border-radius: 999px;
}

/* Modal animation */
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-animate {
  animation: modalScaleIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Stylesheet - Isolated Document Printing */
@media print {
  /* Sembunyikan seluruh komponen antarmuka web */
  body > *:not(#printableDocument),
  aside, header, #sidebarToggleBtn, .no-print, button, nav, .modal-backdrop {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #printableDocument {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  #printableDocument * {
    visibility: visible !important;
  }

  .print-page-break {
    page-break-after: always;
  }

  .print-avoid-break {
    page-break-inside: avoid;
  }
}

/* Paper Preview Sheet Styling */
.paper-sheet {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
}

/* ApexCharts Filament Clean Tooltip Overrides */
.apexcharts-tooltip {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
  font-family: 'Inter', sans-serif !important;
}
.apexcharts-tooltip-title {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  font-weight: 600 !important;
  color: #374151 !important;
}
.apexcharts-legend-text {
  font-family: 'Inter', sans-serif !important;
}

/* Clean inline date picker input styling */
.chart-date-input {
  width: 96px;
  min-width: 92px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #1f2937;
  background: transparent;
  border: none;
  padding: 1px 0;
  margin: 0;
  outline: none;
  cursor: pointer;
}
.chart-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  font-size: 12px;
  margin-left: 2px;
  padding: 0;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.chart-date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}
.chart-date-input::-webkit-datetime-edit {
  padding: 0;
}
.chart-date-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

