:root{--mspv61-primary:#0f766e;--mspv61-dark:#082f49;--mspv61-soft:#ecfeff;--mspv61-line:#dbeafe;--mspv61-text:#0f172a;--mspv61-muted:#64748b;--mspv61-warn:#d97706;--mspv61-danger:#dc2626;--mspv61-ok:#15803d}body.medistore-pro-v6-1-patient-active{background:#f8fafc}.mspv61-direct{margin:0;font-family:Inter,Arial,sans-serif;background:#f8fafc;color:var(--mspv61-text)}.mspv61-direct-wrap{max-width:1400px;margin:auto;padding:20px}.mspv61-banner{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0 22px;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,#0f766e,#0891b2);color:white;box-shadow:0 16px 36px rgba(15,118,110,.18)}.mspv61-banner strong{font-size:20px}.mspv61-banner span{font-weight:700;background:rgba(255,255,255,.16);padding:6px 10px;border-radius:999px}.mspv61-banner em{font-style:normal;opacity:.86;font-size:12px}.mspv61-card,.mspv61-form{background:#fff;border:1px solid var(--mspv61-line);border-radius:20px;box-shadow:0 10px 26px rgba(2,6,23,.06);padding:18px;margin-bottom:18px}.mspv61-section-title{margin:24px 0 12px;border-left:6px solid var(--mspv61-primary);padding-left:12px}.mspv61-section-title h2,.mspv61-card h2,.mspv61-form h2{margin:0 0 8px;color:var(--mspv61-dark)}.mspv61-section-title p{margin:0;color:var(--mspv61-muted)}.mspv61-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mspv61-form-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mspv61-form-grid label{font-weight:700;font-size:13px;color:#334155}.mspv61-form-grid input,.mspv61-form-grid select,.mspv61-form-grid textarea,.mspv61-card input,.mspv61-card select,.mspv61-card textarea{width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font:inherit;background:#fff;color:var(--mspv61-text)}.mspv61-form-grid textarea{min-height:80px}.mspv61-form-grid .wide,.mspv61-checks.wide{grid-column:1/-1}.mspv61-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border:1px dashed #bae6fd;border-radius:14px;background:#f0f9ff}.mspv61-checks label{display:flex;align-items:center;gap:8px;font-weight:600}.mspv61-checks input{width:auto;margin:0}.mspv61-declare{display:block;margin:16px 0;font-weight:700}.mspv61-primary,.mspv61-actions button,.mspv61-actions a,.mspv61-pos-row button{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:12px;background:var(--mspv61-primary);color:#fff!important;padding:11px 16px;text-decoration:none;font-weight:800;cursor:pointer}.mspv61-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.mspv61-actions a:nth-child(4),#mspv61-whatsapp-invoice{background:#16a34a!important}.mspv61-success,.mspv61-error{padding:14px;border-radius:14px;margin:12px 0;font-weight:800}.mspv61-success{background:#dcfce7;color:#166534;border:1px solid #86efac}.mspv61-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.mspv61-layout-two{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(420px,1.18fr);gap:18px;align-items:start}.mspv61-table-wrap{overflow:auto}.mspv61-table{width:100%;border-collapse:collapse;background:white}.mspv61-table th,.mspv61-table td{border-bottom:1px solid #e2e8f0;padding:10px 9px;text-align:left;vertical-align:top;font-size:13px}.mspv61-table th{background:#f1f5f9;color:#0f172a;font-weight:900;position:sticky;top:0}.mspv61-badge{display:inline-block;border-radius:999px;padding:5px 8px;font-weight:900;font-size:12px}.mspv61-badge.ok{background:#dcfce7;color:var(--mspv61-ok)}.mspv61-badge.warn{background:#fef3c7;color:var(--mspv61-warn)}.mspv61-badge.danger{background:#fee2e2;color:var(--mspv61-danger)}.mspv61-grid-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}.mspv61-stat{background:#fff;border:1px solid var(--mspv61-line);border-radius:20px;padding:22px;box-shadow:0 10px 26px rgba(2,6,23,.06)}.mspv61-stat b{display:block;font-size:30px;color:var(--mspv61-primary)}.mspv61-stat span{color:var(--mspv61-muted);font-weight:800}.mspv61-stat.warn b{color:var(--mspv61-warn)}.mspv61-stat.danger b{color:var(--mspv61-danger)}.mspv61-pos{display:grid;gap:18px}.mspv61-pos-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.mspv61-pos-row input{flex:1;min-width:220px;margin:0}.mspv61-totals{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;padding:14px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.mspv61-totals b{font-size:16px}.mspv61-mixed{display:none}.mspv61-search-item{padding:10px 12px;border:1px solid #dbeafe;border-radius:12px;margin:8px 0;background:#eff6ff;cursor:pointer}.mspv61-search-item:hover{background:#dbeafe}.mspv61-item-remove{background:#ef4444;color:white;border:0;border-radius:8px;padding:6px 8px;cursor:pointer}.mspv61-filter{margin:0 0 10px!important}.mspv61-invoice-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #0f766e;margin-bottom:16px}.mspv61-totalbox{max-width:360px;margin:16px 0 16px auto;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.mspv61-totalbox p,.mspv61-totalbox h2{margin:6px 0}.mspv61-invoice-print{background:#fff;padding:24px;border-radius:16px}.mspv61-admin .mspv61-card{max-width:900px}@media(max-width:900px){.mspv61-form-grid,.mspv61-form-grid.compact,.mspv61-layout-two,.mspv61-grid-cards{grid-template-columns:1fr}.mspv61-checks{grid-template-columns:1fr}.mspv61-banner{display:block}.mspv61-banner span,.mspv61-banner em{display:block;margin-top:8px}.mspv61-table th,.mspv61-table td{font-size:12px;padding:8px}.mspv61-invoice-head{display:block}}@media print{body *{visibility:hidden!important}.mspv61-invoice-print,.mspv61-invoice-print *{visibility:visible!important}.mspv61-invoice-print{position:absolute;left:0;top:0;width:100%;box-shadow:none;border-radius:0}.mspv61-banner,.mspv61-actions{display:none!important}}

.mspv61-private-nav .mspv61-actions a,.mspv61-primary.secondary{background:#334155!important}.mspv61-login-wrap{max-width:760px;margin:30px auto}.mspv61-token-slip{max-width:520px;margin:auto;border:2px dashed #0f766e;border-radius:18px;padding:22px;background:#fff;text-align:center}.mspv61-token-slip h1{font-size:54px;margin:10px 0;color:#0f766e}.mspv61-token-slip .slip-head{border-bottom:1px solid #cbd5e1;margin-bottom:10px}.mspv61-slot-pill{display:inline-flex;gap:8px;align-items:center;border:1px solid #bae6fd;border-radius:999px;padding:8px 12px;margin:5px;background:#eff6ff;font-weight:800}.mspv61-slot-pill.full{background:#fee2e2;border-color:#fecaca;color:#991b1b}.mspv61-doctor-profile{display:grid;grid-template-columns:82px 1fr;gap:14px;align-items:center}.mspv61-doctor-profile img{width:82px;height:82px;object-fit:cover;border-radius:50%;background:#e2e8f0}.mspv61-public-hero{background:linear-gradient(135deg,#ecfeff,#fff);border:1px solid #bae6fd;border-radius:24px;padding:24px;margin:16px 0}.mspv61-public-hero h1{margin:0 0 8px;color:#082f49}@media print{body *{visibility:hidden!important}.mspv61-token-slip,.mspv61-token-slip *,.mspv61-invoice-print,.mspv61-invoice-print *{visibility:visible!important}.mspv61-token-slip,.mspv61-invoice-print{position:absolute;left:0;top:0;width:100%;box-shadow:none;border-radius:0}.mspv61-banner,.mspv61-actions{display:none!important}}


/* === MediStore Pro v6.1.4 Responsive UI Alignment Fix === */
.mspv61-direct, .mspv61-direct * { box-sizing: border-box; }
body.medistore-pro-v6-1-patient-active { overflow-x: hidden; }
.mspv61-direct-wrap { width: 100%; max-width: 1480px; }
.mspv61-card, .mspv61-form { overflow: visible; }
.mspv61-form-grid,
.mspv61-form-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 18px;
  align-items: end;
}
.mspv61-form-grid label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.mspv61-form-grid input,
.mspv61-form-grid select,
.mspv61-form-grid textarea,
.mspv61-card input,
.mspv61-card select,
.mspv61-card textarea {
  min-height: 48px;
  max-width: 100%;
  line-height: 1.25;
  margin-top: 7px;
  border-radius: 14px;
}
.mspv61-form-grid small {
  display: block;
  margin-top: 7px;
  color: #475569;
  font-weight: 700;
  line-height: 1.35;
}
.mspv61-layout-two {
  grid-template-columns: minmax(520px, 0.95fr) minmax(460px, 1.05fr);
  gap: 24px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.mspv61-layout-two > .mspv61-form,
.mspv61-layout-two > .mspv61-card {
  min-width: 0;
  align-self: start;
}
.mspv61-layout-two .mspv61-form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.mspv61-layout-two .mspv61-form-grid .wide,
.mspv61-layout-two .mspv61-form-grid.compact .wide {
  grid-column: 1 / -1;
}
#mspv61-public-doctor,
#mspv61-public-area-filter,
#mspv61-public-store-filter,
#mspv61-appointment-time {
  font-weight: 800;
}
#mspv61-doctor-info {
  min-height: 160px;
}
.mspv61-doctor-profile {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fafc;
  margin-bottom: 12px;
}
.mspv61-slot-pill { white-space: nowrap; }
.mspv61-primary,
.mspv61-actions button,
.mspv61-actions a,
.mspv61-pos-row button {
  min-height: 46px;
}
.mspv61-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mspv61-table { min-width: 760px; }
@media (max-width: 1180px) {
  .mspv61-direct-wrap { padding: 14px; }
  .mspv61-layout-two { grid-template-columns: 1fr; gap: 14px; }
  .mspv61-layout-two .mspv61-form-grid.compact,
  .mspv61-form-grid,
  .mspv61-form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mspv61-grid-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .mspv61-direct-wrap { padding: .1rem !important; margin: 0 !important; width: 100% !important; max-width: none !important; }
  .mspv61-banner { margin: .1rem 0 .45rem !important; padding: .65rem !important; border-radius: 12px; gap: 6px; }
  .mspv61-banner strong { font-size: 16px; }
  .mspv61-card,
  .mspv61-form,
  .mspv61-public-hero,
  .mspv61-stat,
  .mspv61-invoice-print {
    margin: .1rem 0 .55rem !important;
    padding: .65rem !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(2,6,23,.05);
  }
  .mspv61-form-grid,
  .mspv61-form-grid.compact,
  .mspv61-layout-two .mspv61-form-grid.compact,
  .mspv61-checks,
  .mspv61-grid-cards {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  .mspv61-section-title { margin: 14px 0 8px; }
  .mspv61-section-title h2,
  .mspv61-card h2,
  .mspv61-form h2 { font-size: 19px; }
  .mspv61-card p,
  .mspv61-form p { font-size: 14px; line-height: 1.35; }
  .mspv61-form-grid label { font-size: 13px; }
  .mspv61-form-grid input,
  .mspv61-form-grid select,
  .mspv61-form-grid textarea,
  .mspv61-card input,
  .mspv61-card select,
  .mspv61-card textarea {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 14px;
    border-radius: 11px;
  }
  .mspv61-primary,
  .mspv61-actions button,
  .mspv61-actions a,
  .mspv61-pos-row button {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 14px;
  }
  .mspv61-actions { gap: 7px; }
  .mspv61-doctor-profile { grid-template-columns: 58px 1fr; gap: 10px; padding: 9px; }
  .mspv61-doctor-profile img { width: 58px; height: 58px; }
  .mspv61-slot-pill { display: flex; width: 100%; white-space: normal; justify-content: center; }
  .mspv61-table { min-width: 680px; }
  .mspv61-token-slip { width: 100%; padding: 12px; border-radius: 12px; }
  .mspv61-token-slip h1 { font-size: 34px; }
}


/* === MediStore Pro v6.1.6 Full UPI Booking === */
.mspv61-payment-panel{border:1px solid #99f6e4!important;background:linear-gradient(135deg,#f0fdfa,#ffffff);border-radius:18px;padding:14px!important;margin-top:4px;}
.mspv61-payment-panel>span{display:block;font-size:17px;color:#0f766e;font-weight:900;margin-bottom:10px;}
.mspv61-upi-box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;}
.mspv61-upi-box>div{background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:12px;min-width:0;}
.mspv61-copy-box{margin-top:8px;padding:12px;border-radius:12px;background:#f8fafc;border:1px dashed #94a3b8;font-weight:900;word-break:break-word;color:#0f172a;}
.mspv61-upi-qr-placeholder{display:flex;align-items:center;justify-content:center;min-height:120px;text-align:center;border:1px dashed #94a3b8;border-radius:14px;background:#f8fafc;padding:10px;color:#475569;font-weight:800;}
.mspv61-upi-qr-img{display:block;max-width:150px;width:100%;height:auto;margin:0 auto 8px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:6px;}
.mspv61-warning{display:block;margin-top:12px!important;padding:11px 12px;border-radius:12px;background:#fef2f2;color:#991b1b!important;border:1px solid #fecaca;font-weight:900!important;}
#mspv61-upi-pay-link{margin-top:10px;width:100%;}
#mspv61-upi-utr{text-transform:uppercase;letter-spacing:.02em;}
@media(max-width:900px){.mspv61-upi-box{grid-template-columns:1fr;gap:10px}.mspv61-payment-panel{padding:10px!important}.mspv61-upi-qr-img{max-width:130px}}

/* === MediStore Pro v6.1.7 Store Cash Option === */
.mspv61-check-label{display:flex!important;align-items:flex-start;gap:10px;flex-direction:column!important;background:#f8fafc;border:1px solid #dbeafe!important;border-radius:14px;padding:12px!important;}
.mspv61-check-label input[type=checkbox]{width:auto!important;min-height:auto!important;transform:scale(1.2);accent-color:#0f766e;}
.mspv61-cash-note{border:1px solid #bbf7d0!important;background:#f0fdf4!important;color:#166534!important;border-radius:12px;padding:10px;display:block;margin-top:10px;}
#mspv61-public-payment-mode{font-weight:800;border-color:#0f766e!important;}
.mspv61-upi-utr-row{transition:.2s ease;}
