/* Minimal Main CSS - Optimized version with only essentials */
/* Critical styles are already inlined in HTML */

/* ⚠️ NOT IN THE LIVE RENDER PATH (verified 2026-07-02). No template loads this
   file — all layouts load css/modern.css instead. See main-optimized.css and
   docs/api-page-crud.md "Centering content to 1200px" for context. */

/* Tools */
{% include './tools/_macros.css' %}

/* Layout essentials */
{% include './objects/_layout.css' %}
{% include './objects/_containers-dnd.css' %}

/* Extended typography (basics in critical) */
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Button enhancements (basics in critical) */
.button--primary {
  background-color: var(--color-primary, #007bff);
  border-color: var(--color-primary, #007bff);
  color: #fff;
}

.button--secondary {
  background-color: transparent;
  border-color: currentColor;
}

/* Form styles - condensed */
input, textarea, select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out;
}

input:focus, textarea:focus, select:focus {
  border-color: #80bdff;
  outline: 0;
}

/* Tables - minimal */
table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
}

thead th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

/* Components */
{% include './components/_default-modules.css' %}

/* Utilities */
{% include './utilities/_helper.css' %}

/* Print styles */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr, img {
    page-break-inside: avoid;
  }
  
  @page {
    margin: 0.5in;
  }
}