/* =====================================================
   ERP GGN — Invoice Styles
   File: css/invoice.css
   ===================================================== */

.inv-stat-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
  margin-bottom:14px;
}
.inv-stat-card{
  background:#fff; border-radius:12px; padding:12px 10px;
  box-shadow:0 3px 10px rgba(10,37,64,.06);
  text-align:center;
  border:1px solid rgba(10,37,64,.04);
}
.inv-stat-lbl{
  font-size:9.5px; color:#64748B;
  text-transform:uppercase; letter-spacing:.5px;
  font-weight:700;
}
.inv-stat-val{
  font-size:18px; font-weight:800; color:#0A2540;
  margin-top:4px; letter-spacing:-.5px;
}

.inv-input-search{
  width:100%; padding:12px 14px 12px 44px;
  border:1.5px solid #E2E8F0; border-radius:12px;
  font-size:13.5px; font-family:inherit;
  color:#0A2540; background:#fff; outline:none;
  transition:border-color .2s, box-shadow .2s;
  box-sizing:border-box;
}
.inv-input-search:focus{
  border-color:#3E7CB1;
  box-shadow:0 0 0 4px rgba(62,124,177,.12);
}

.inv-filter-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.inv-select{
  padding:10px 32px 10px 12px;
  border:1.5px solid #E2E8F0; border-radius:11px;
  font-size:12px; font-family:inherit;
  color:#0A2540; background:#fff; outline:none;
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 10px center;
  cursor:pointer;
  box-sizing:border-box;
  width:100%;
}
.inv-select:focus{
  border-color:#3E7CB1;
  box-shadow:0 0 0 4px rgba(62,124,177,.12);
}

.inv-card{
  background:#fff; border-radius:16px; padding:14px;
  box-shadow:0 3px 12px rgba(10,37,64,.07);
  border-left:4px solid #C9A227;
  margin-bottom:10px;
  transition:transform .15s;
}
.inv-card:active{ transform:scale(.99); }

.inv-badge{
  display:inline-block;
  padding:2px 8px; border-radius:20px;
  font-size:9px; font-weight:800;
  text-transform:uppercase; letter-spacing:.4px;
}
.badge-draft{ background:#F1F5F9; color:#475569; }
.badge-sent{ background:#DBEAFE; color:#1E40AF; }
.badge-pend{ background:#FFEDD5; color:#9A3412; }
.badge-deal{ background:#DCFCE7; color:#166534; }
.badge-fail{ background:#FEE2E2; color:#991B1B; }

.inv-card-actions{
  display:flex; gap:6px; margin-top:12px; padding-top:12px;
  border-top:1px solid #F1F5F9; flex-wrap:wrap;
}
.inv-btn-icon{
  padding:7px 11px;
  border:1.5px solid #E2E8F0; border-radius:9px;
  background:#fff; color:#0A2540;
  font-size:11px; font-weight:700;
  cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:5px;
  transition:all .15s;
}
.inv-btn-icon svg{
  width:13px; height:13px;
  stroke:currentColor; fill:none;
  stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;
}
.inv-btn-icon:hover{
  border-color:#3E7CB1;
  background:#F0F9FF;
  color:#1B4B7E;
}
.inv-btn-delete{
  color:#991B1B; border-color:#FECACA;
}
.inv-btn-delete:hover{
  background:#FEF2F2; border-color:#DC2626; color:#991B1B;
}

@media (max-width:600px){
  .inv-stat-grid{ grid-template-columns:repeat(2,1fr); }
}