/* Lease signing screen (guest) and lease controls (admin). Pairs with lease-sign.js and lease-admin.js. */
body.ls-noscroll { overflow: hidden; }
.ls-overlay { position: fixed; inset: 0; z-index: 4000; background: rgba(28, 25, 23, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ls-sheet { width: min(720px, 100%); max-height: min(94vh, 900px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 18px 48px rgba(28, 25, 23, .3); overflow: hidden; }
.ls-head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid #e8e0d7; }
.ls-title { font-size: 20px; font-weight: 800; color: #1c1917; }
.ls-sub { margin-top: 4px; font-size: 13.5px; color: #6f665d; line-height: 1.45; }
.ls-x { border: 0; background: #f4efe9; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: #4b443d; flex: 0 0 auto; }
.ls-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 24px 8px; overscroll-behavior: contain; }
.ls-summary { border: 1px solid #e8e0d7; border-radius: 14px; padding: 6px 14px; margin-bottom: 14px; background: #fcfaf8; }
.ls-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid #f0e9e1; }
.ls-row:last-child { border-bottom: 0; }
.ls-row span:first-child { color: #6f665d; flex: 0 0 38%; }
.ls-row span:last-child { color: #1c1917; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ls-text { max-height: 220px; overflow-y: auto; padding: 12px 14px; border: 1px solid #e8e0d7; border-radius: 14px; font-size: 13px; line-height: 1.55; color: #3d362f; background: #fff; }
.ls-text h4 { margin: 12px 0 4px; font-size: 13.5px; color: #7a2510; }
.ls-text h4:first-child { margin-top: 0; }
.ls-text p { margin: 0 0 6px; }
.ls-pdf { display: inline-block; margin: 10px 0 14px; font-size: 13px; font-weight: 600; color: #7a2510; text-decoration: underline; }
.ls-sign { border-top: 1px solid #efe8e0; padding-top: 14px; }
.ls-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #f1ece6; margin-bottom: 12px; }
.ls-tabs button { border: 0; background: transparent; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #6f665d; cursor: pointer; }
.ls-tabs button.is-on { background: #fff; color: #7a2510; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ls-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #4b443d; }
.ls-sigbox { position: relative; margin: 12px 0; border: 1px dashed #c9bfb3; border-radius: 14px; background: #fff; }
.ls-sigbox[hidden] { display: none; }
.ls-sigbox canvas { display: block; width: 100%; height: auto; aspect-ratio: 480 / 150; touch-action: none; }
#ls-type-preview { cursor: default; }
.ls-clear { position: absolute; right: 8px; top: 8px; border: 1px solid #e8e0d7; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ls-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #3d362f; cursor: pointer; }
.ls-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: #7a2510; flex: 0 0 auto; }
.ls-error { min-height: 20px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #b42318; }
.ls-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid #e8e0d7; background: #fcfaf8; }
.ls-primary { border: 0; border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 700; color: #fff; background: #7a2510; cursor: pointer; }
.ls-primary:disabled { opacity: .45; cursor: not-allowed; }
.ls-secondary { border: 1px solid #d9cfc4; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 600; background: #fff; color: #3d362f; cursor: pointer; }
@media (max-width: 640px) {
  .ls-overlay { padding: 0; align-items: flex-end; }
  .ls-sheet { max-height: 96vh; border-radius: 20px 20px 0 0; }
  .ls-text { max-height: 160px; }
  .ls-foot { flex-direction: column-reverse; }
  .ls-primary, .ls-secondary { width: 100%; }
}

/* My Bookings: signed lease link */
.ls-dl { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #7a2510; text-decoration: underline; cursor: pointer; }

/* Admin: lease chip, actions and settings card */
.ls-chip { font-weight: 600; }
.ls-chip.is-signed { color: #17663a; }
.ls-chip.is-missing { color: #8a5a00; }
.ls-chip.is-void { color: #6f665d; text-decoration: line-through; }
.ls-settings { margin-top: 20px; padding: 20px 22px; background: #fff; border: 1px solid #e8e0d7; border-radius: 16px; }
.ls-settings h3 { margin: 0 0 6px; font-size: 17px; }
.ls-settings p { margin: 0 0 12px; font-size: 13.5px; color: #6f665d; line-height: 1.5; }
.ls-settings .ls-field { margin: 10px 0; max-width: 420px; }
.ls-settings .ls-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #4b443d; }
.ls-settings .ls-switch { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; cursor: pointer; }
.ls-settings .ls-switch input { margin-top: 3px; width: 18px; height: 18px; accent-color: #7a2510; }
.ls-settings .ls-msg { margin-top: 8px; font-size: 13.5px; min-height: 20px; }
.ls-settings .ls-msg.is-ok { color: #17663a; }
.ls-settings .ls-msg.is-bad { color: #b42318; }
.acc-no-leases_manage [data-lease-act="void"], .acc-no-leases_manage .ls-settings button { display: none !important; }
