/*
 * SIRMP Modern Theme - CSS Injection for .htm inventory pages
 * This CSS can be injected into the generated .htm files via a <link> or <style> tag
 */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f7fa;
  padding: 20px;
}

/* Header Styling */
h1 {
  margin-bottom: 30px;
}

h1 a {
  text-decoration: none;
}

h1 span {
  color: #0084B3 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 48px !important;
  font-weight: 700;
  font-style: italic;
}

h2 {
  color: #0084B3 !important;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

table tr:first-child {
  background: linear-gradient(135deg, #1a4a7a 0%, #2d6da3 100%) !important;
}

table tr:first-child td {
  color: white !important;
  background: transparent !important;
  padding: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

table tr:nth-child(even) {
  background-color: #f7fafc;
}

table tr:hover {
  background-color: #edf2f7;
}

/* Remove inline styles from table cells */
table td[style*="background"] {
  background-color: transparent !important;
}

table td[style*="color:#FFFFFF"],
table td[style*="color: #FFFFFF"] {
  color: inherit !important;
}

table td p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  h1 span {
    font-size: 36px !important;
  }
  
  table {
    display: block;
    overflow-x: auto;
    font-size: 13px;
  }
  
  table td {
    padding: 8px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  table {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}
