.lam-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1500}
.lam-panel{position:fixed;top:0;right:-440px;width:440px;height:100%;background:#fff;display:flex;flex-direction:column;transition:.3s;z-index:1501}
.lam-panel.open{right:0}

.lam-header{padding:20px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}
.lam-close{background:#f3f4f6;border:none;width:36px;height:36px;border-radius:50%;font-size:20px;cursor:pointer}

.lam-body{flex:1;overflow-y:auto;padding:20px;padding-bottom:140px}
.lam-step{display:none}.lam-step.active{display:block}

.lam-doc-card{margin-top:16px;padding:16px;border-radius:16px;background:#f9fafb;border:1px solid #e5e7eb}

.lam-multi{display:grid;gap:10px;margin-top:10px}
.lam-multi label{padding:12px;border-radius:12px;border:1px solid #d1d5db;cursor:pointer}
.lam-multi label:has(input:checked){background:#eff6ff;border-color:#2563eb}

.lam-bill{background:#f9fafb;padding:18px;border-radius:16px}
.lam-bill div{display:flex;justify-content:space-between;margin-bottom:8px}
.lam-bill .total{font-weight:800;font-size:16px}

.lam-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5e7eb;padding:14px 20px;display:flex;gap:12px}
.lam-footer button{flex:1;height:44px;border:none;border-radius:10px;font-weight:600}
.lam-footer button:first-child{background:#f1f5f9}
.lam-footer button:last-child{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.35)}

.hidden{display:none!important}

/*Header (same hierarchy & close button style)*/
.lam-header {
  padding: 22px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lam-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.lam-header p {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.lam-close {
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.lam-close:hover {
  background: #e5e7eb;
}

/*Inputs & labels (same softness)*/
.lam-body label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 16px;
  display: block;
}

.lam-body input[type="text"],
.lam-body input[type="number"],
.lam-body input[type="date"],
.lam-body input[type="time"],
.lam-body select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #ffffff;
  transition: all .2s ease;
}

.lam-body input:focus,
.lam-body select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/*Selective Type Dropdown (modern multi-select cards)*/
.lam-multi {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.lam-multi label {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-weight: 600;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
}

.lam-multi input {
  accent-color: #2563eb;
  transform: scale(1.1);
}

.lam-multi label:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.lam-multi label:has(input:checked) {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37,99,235,.15);
}

/*Bill Summary (identical to Mugs & Caps)*/
.lam-bill {
  background: #f9fafb;
  border-radius: 16px;
  padding: 18px;
  margin-top: 10px;
}

.lam-bill div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.lam-bill hr {
  border-top: 1px dashed #d1d5db;
  margin: 12px 0;
}

.lam-bill .total {
  font-size: 17px;
  font-weight: 800;
}

/*Footer buttons (same CTA hierarchy)*/
.lam-footer {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  z-index: 10;
}

.lam-footer button {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Back */
.lam-footer button:first-child {
  background: #f3f4f6;
  color: #1f2937;
}

/* Primary */
.lam-footer button:last-child {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}

/*MODERN STYLING (MATCHES MUGS & CAPS)*/
.lam-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: all .25s ease;
}

.lam-option:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.lam-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.lam-option input[type="checkbox"] {
  accent-color: #2563eb;
  transform: scale(1.15);
}

.lam-qty {
  width: 90px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  margin-top: 20px;
}

.lam-qty:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ===== Lamination option row ===== */
.lam-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: all 0.25s ease;
}

.lam-option:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

/* ===== Checkbox card ===== */
.lam-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  transition: all 0.25s ease;
}

/* Checked look (blue pill) */
.lam-option label:has(input:checked) {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.lam-option input[type="checkbox"] {
  accent-color: #2563eb;
  transform: scale(1.15);
}

/* ===== Quantity input (MATCH 2nd SCREENSHOT) ===== */
.lam-qty {
  width: 96px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1.5px solid #d1d5db;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: #ffffff;
  transition: all 0.25s ease;
}

/* Focus state */
/* Quantity input – compact with arrows */
.lam-qty {
  width: 72px;              /* 🔽 reduced width */
  height: 40px;
  padding: 0 6px;           /* tighter padding */
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: #ffffff;
  transition: all 0.25s ease;
}

/* Focus */
.lam-qty:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/*=========Increase selector specificity==========*/
/* Force lamination quantity width ONLY */
.lam-option .lam-qty {
  width: 72px;
  flex: 0 0 72px;   /* prevents flex stretching */
}

/*=============Target ONLY lamination quantity inputs==============*/
/* 🔒 FORCE width ONLY for lamination quantity input */
.lam-body .lam-option > input.lam-qty {
  width: 72px;
  flex: 0 0 72px;
  max-width: 72px;
}


/*==========GLASS EFFECT TO OVERLAY==========*/
.lam-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1500;
}

/*========ONE SMALL CSS ADDITION (NO STYLE CHANGE)========*/
/* Quantity error should sit BELOW option row */
.lam-option {
  flex-direction: column;
  align-items: stretch;
}

.lam-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lam-qty-error {
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

/*==========GLASS LOOK TO PANEL (SUBTLE)==========*
.lam-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 440px;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1501;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
}

.lam-panel.open {
  right: 0;
}*/

/* =========================================
   UNIVERSAL MOBILE PANEL SYSTEM
========================================= */

@media (max-width: 640px){

  .logo-panel,
  .flex-panel,
  .gst-panel,
  .web-panel,
  .ts-panel,
  .company-panel,
  .lam-panel,
  .mc-panel,
  .pan-panel,
  .print-panel,
  .vc-panel,
  .voter-panel {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
    border-radius: 0 !important;
  }

  .logo-panel.open,
  .flex-panel.open,
  .gst-panel.open,
  .web-panel.open,
  .ts-panel.open,
  .company-panel.open,
  .lam-panel.open,
  .mc-panel.open,
  .pan-panel.open,
  .print-panel.open,
  .vc-panel.open,
  .voter-panel.open {
    right: 0 !important;
  }
}