/* Custom Styles for RPCA Inventory System */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Prompt:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #791314; /* Crimson / Maroon - RPCA Police Royal Colors */
  --primary-dark: #580c0d;
  --primary-light: #9a1a1c;
  --police-gold: #c59b27;
  --police-gold-light: #e0b84c;
}

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #f4f6f9;
  color: #2d3748;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Prompt', 'Sarabun', sans-serif;
}

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

/* Badges */
.badge-material {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.badge-asset {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-service {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Tab active styles */
.nav-tab.active {
  background-color: #ffffff;
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 3px solid var(--police-gold);
}

/* Print Styling */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 15mm;
    background: #ffffff !important;
    font-size: 13pt;
    line-height: 1.4;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(248, 250, 252, 0.7);
}

.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
}
