#smart-purchase-request-btn {
  margin-left: 0;
}

/* =============================================
   SPR PAGE LAYOUT
   ============================================= */
.spr-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.spr-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 16px;
  font-weight: 600;
}
.spr-top-link:hover {
  text-decoration: underline;
}

/* =============================================
   HERO SECTION
   ============================================= */
.spr-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #eef5ff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: 28px;
  margin-bottom: 22px;
}

.spr-ticket-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.spr-hero-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
}

.spr-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.spr-icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 22px;
  flex-shrink: 0;
}

.spr-icon-box--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.spr-h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #111827;
}

.spr-h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #111827;
}

.spr-status-pill {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
}

.spr-status-pill.estado-aprobado  { background: #dcfce7; color: #166534; }
.spr-status-pill.estado-pendiente { background: #fff7ed; color: #9a3412; }
.spr-status-pill.estado-borrador  { background: #fef3c7; color: #92400e; }
.spr-status-pill.estado-ordenado  { background: #ede9fe; color: #5b21b6; }
.spr-status-pill.estado-entregado { background: #dbeafe; color: #1e3a8a; }

.spr-subtitle {
  margin: 0 0 20px 62px;
  color: #6b7280;
  font-size: 14px;
}

.spr-info-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.spr-mini-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
}

.spr-mini-card span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}

.spr-mini-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
}

.spr-description {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  color: #374151;
  line-height: 1.6;
  font-size: 14px;
  max-width: 760px;
}

/* Laptop illustration */
.spr-illustration {
  display: grid;
  place-items: center;
}

.spr-laptop {
  width: 160px;
  height: 110px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 25%, #eef4ff, #dbeafe 60%, transparent 61%);
  position: relative;
}

.spr-laptop::before {
  content: "💻";
  position: absolute;
  font-size: 86px;
  left: 26px;
  top: 10px;
  filter: drop-shadow(0 18px 24px rgba(37, 99, 235, 0.22));
}

/* =============================================
   ACTIONS BAR
   ============================================= */
.spr-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 14px 18px;
  margin-bottom: 22px;
}

.spr-actions-title {
  font-weight: 800;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
}

.spr-field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  flex: 1;
}

.spr-field-inline label {
  white-space: nowrap;
  font-weight: 600;
  color: #374151;
}

.spr-field-inline select {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: #111827;
  outline: none;
  font-size: 14px;
}

.spr-field-inline select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =============================================
   BUTTONS
   ============================================= */
.spr-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}

.spr-btn:hover {
  transform: translateY(-1px);
}

.spr-btn-light {
  background: #f9fafb;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
}

.spr-btn-light:hover {
  background: #f1f5f9;
}

.spr-btn-primary {
  background: #0f4c81;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.22);
}

.spr-btn-primary:hover {
  background: #0b3c66;
}

.spr-btn-ai {
  background: #5b3df5;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(91, 61, 245, 0.22);
}

.spr-btn-ai:hover {
  background: #4c30e0;
}

/* =============================================
   SECTION CARDS
   ============================================= */
.spr-section-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  padding: 22px;
  margin-bottom: 22px;
}

.spr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.spr-section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spr-section-sub {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.spr-editable-badge {
  background: #dcfce7;
  color: #16a34a;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* =============================================
   TABLE
   ============================================= */
.spr-table-wrap {
  overflow-x: auto;
}

.spr-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.spr-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.spr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.spr-table tr:last-child td {
  border-bottom: none;
}

.spr-input {
  width: 100%;
  min-width: 100px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.spr-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.spr-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* =============================================
   LOG BADGE
   ============================================= */
.spr-log-badge {
  background: #fff7ed;
  color: #ea580c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1000px) {
  .spr-hero-grid { grid-template-columns: 1fr; }
  .spr-illustration { display: none; }
  .spr-info-cards { grid-template-columns: repeat(2, 1fr); }
  .spr-subtitle { margin-left: 0; }
  .spr-ticket-badge { position: static; display: inline-block; margin-bottom: 16px; }
}

@media (max-width: 700px) {
  .spr-page { padding: 16px 12px 40px; }
  .spr-info-cards { grid-template-columns: 1fr; }
  .spr-table-actions { flex-direction: column-reverse; }
  .spr-btn { width: 100%; justify-content: center; }
  .spr-actions { flex-direction: column; align-items: stretch; }
  .spr-field-inline { flex-direction: column; align-items: flex-start; }
  .spr-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
