/* ==========================================================================
   Fabtech ERP - shared page header ("hero")
   Dark navy header used at the top of every page: icon tile + title/subtitle,
   search bar with Search / filters / Reset, and action buttons on the right.

   Markup:
   <div class="pg-hero">
     <div class="pg-hero-top">
       <div class="pg-hero-brand">
         <div class="pg-hero-icon"><i class="fas fa-users"></i></div>
         <div><h1 class="pg-hero-title">Title</h1><p class="pg-hero-sub">Subtitle</p></div>
       </div>
       <div class="pg-hero-meta"> optional .pg-total pill </div>
     </div>
     <div class="pg-hero-bar">
       <form class="pg-hero-search"> .input-group.pg-search ... </form>
       <div class="pg-hero-actions"> .pg-btn-primary / .pg-btn-dark buttons </div>
     </div>
   </div>
   ========================================================================== */

.pg-hero { background:#353c3c; border-radius:18px; padding:20px 26px 18px; color:#fff; margin-bottom:10px; box-shadow:0 2px 8px rgba(53,60,60,.08); }
.pg-hero-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
.pg-hero-top:last-child { margin-bottom:0; }
.pg-hero-brand { display:flex; align-items:center; gap:14px; min-width:0; }
.pg-hero-icon { width:52px; height:52px; border-radius:12px; background:#2395d2; display:flex; align-items:center; justify-content:center; font-size:1.35rem; color:#fff; flex-shrink:0; }
.pg-hero-title { font-size:1.45rem; font-weight:700; line-height:1.1; margin:0; color:#fff; }
.pg-hero-sub { font-size:0.82rem; color:#cbd5e1; margin:2px 0 0; }
.pg-hero-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pg-total { border:1px solid #4d5555; border-radius:10px; padding:8px 14px; font-size:0.8rem; color:#cbd5e1; white-space:nowrap; }
.pg-total b { color:#fff; font-size:1.05rem; margin-left:4px; }

.pg-hero-bar { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:10px; }
.pg-hero-search { flex:1 1 520px; max-width:860px; min-width:0; }
.pg-hero-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-items:center; margin-left:auto; }

/* Search input group */
.pg-search { background:#424a4a; border:1px solid #4d5555; border-radius:10px; overflow:hidden; flex-wrap:nowrap; }
.pg-search .input-group-text, .pg-search .form-control, .pg-search .form-select { background-color:transparent; border:0; color:#e2e8f0; }
.pg-search .form-control::placeholder { color:#94a3b8; }
.pg-search .form-control:focus, .pg-search .form-select:focus { box-shadow:none; }
.pg-search .input-group-text { color:#94a3b8; padding-left:16px; }
.pg-search .form-select { border-left:1px solid #4d5555; max-width:170px; font-size:0.8rem;
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.pg-search .form-select option { color:#212529; }
.pg-search input[type=date] { color-scheme:dark; }

/* Buttons */
.pg-btn-search { background:#2395d2; color:#fff; border:0; border-radius:0; font-weight:600; padding:0 16px; }
.pg-btn-search:hover, .pg-btn-search:focus { background:#1e7fb3; color:#fff; }
.pg-btn-ghost { background:transparent; color:#e2e8f0; border:0; border-left:1px solid #4d5555; border-radius:0; font-weight:600; padding:0 12px; display:inline-flex; align-items:center; text-decoration:none; }
.pg-btn-ghost:hover { background:#4d5555; color:#fff; }
.pg-btn-primary { background:#2395d2; color:#fff; border:0; border-radius:10px; font-weight:600; padding:9px 16px; font-size:0.85rem; }
.pg-btn-primary:hover, .pg-btn-primary:focus { background:#1e7fb3; color:#fff; }
.pg-btn-dark { background:transparent; color:#e2e8f0; border:1px solid #4d5555; border-radius:10px; font-weight:600; padding:9px 14px; font-size:0.85rem; }
.pg-btn-dark:hover, .pg-btn-dark:focus { background:#424a4a; color:#fff; border-color:#475569; }
.pg-btn-amber { background:#f59e0b; color:#fff; border:0; border-radius:10px; font-weight:600; padding:9px 16px; font-size:0.85rem; }
.pg-btn-amber:hover { background:#d97706; color:#fff; }
.pg-btn-success { background:#16a34a; color:#fff; border:0; border-radius:10px; font-weight:600; padding:9px 16px; font-size:0.85rem; }
.pg-btn-success:hover { background:#15803d; color:#fff; }
.pg-btn-danger { background:#ef4444; color:#fff; border:0; border-radius:10px; font-weight:600; padding:9px 16px; font-size:0.85rem; }
.pg-btn-danger:hover { background:#dc2626; color:#fff; }

/* Grid / list view toggle inside the hero */
.pg-hero .view-toggle { border-color:#4d5555; border-radius:10px; }
.pg-hero .view-toggle .vt-btn { background:transparent; color:#cbd5e1; padding:9px 12px; }
.pg-hero .view-toggle .vt-btn.active { background:#2395d2; color:#fff; }

/* Advanced filter panels / light controls that open inside the hero */
.pg-hero .adv-filter-panel { background:#fff; color:#212529; border-radius:10px; margin-top:8px; }
.pg-hero .pg-light { background:#fff; color:#212529; border-radius:10px; padding:10px; margin-top:8px; }
.pg-hero .form-label, .pg-hero label { color:inherit; }

/* Section heading + "N records found" bar used under the hero */
.pg-records { background:#fff; border:1px solid #eef0f4; border-radius:12px; padding:10px 14px; display:flex; align-items:center; gap:10px; font-weight:700; color:#353c3c; margin-bottom:10px; }
.pg-records .pg-records-icon { width:30px; height:30px; border-radius:8px; background:#e6f3fa; color:#2395d2; display:flex; align-items:center; justify-content:center; font-size:0.8rem; }

@media (max-width: 767.98px) {
  .pg-hero { padding:16px; border-radius:14px; }
  .pg-hero-icon { width:44px; height:44px; font-size:1.1rem; }
  .pg-hero-title { font-size:1.2rem; }
  .pg-hero-search { flex-basis:100%; max-width:none; }
  .pg-hero-actions { width:100%; justify-content:flex-start; margin-left:0; }
}
