/* Theo Properties RC1.0.11.5 — Premium Form System Consolidation */
:root{
  --tp-form-navy:#152f46;
  --tp-form-navy-2:#1b3c55;
  --tp-form-gold:#c79553;
  --tp-form-gold-soft:#fbf5ec;
  --tp-form-teal:#2d7b70;
  --tp-form-ink:#193247;
  --tp-form-muted:#71838f;
  --tp-form-line:#d8e2e6;
  --tp-form-line-strong:#c8d5db;
  --tp-form-surface:#ffffff;
  --tp-form-soft:#f7f9fa;
  --tp-form-radius:10px;
  --tp-form-section-radius:14px;
  --tp-form-control:52px;
  --tp-form-shadow:0 18px 52px rgba(15,42,61,.10);
}

/* ---------- unified modal shells ---------- */
.theo-app .multiunit-modal,
.theo-app .commercial-modal,
.theo-app .tl-modal,
.theo-app .theo-map-picker,
.theo-admin .ops-modal-card,
.theo-auth .auth-modal{
  border:1px solid rgba(210,221,226,.92)!important;
  border-radius:16px!important;
  box-shadow:0 28px 80px rgba(13,35,51,.20)!important;
  background:var(--tp-form-surface)!important;
}
.theo-app .multiunit-modal>header,
.theo-app .commercial-modal>header,
.theo-app .tl-modal>header,
.theo-app .theo-map-picker>header{
  padding:19px 22px 17px!important;
  border-bottom:1px solid #e5ecef!important;
  background:linear-gradient(180deg,#fff,#fcfdfd)!important;
}
.theo-app .multiunit-modal h2,
.theo-app .commercial-modal h2,
.theo-app .tl-modal h2,
.theo-app .theo-map-picker h2{
  color:var(--tp-form-ink)!important;
  font-family:"Inter Tight",Inter,system-ui,sans-serif!important;
  font-weight:650!important;
  letter-spacing:-.025em!important;
}
.theo-app .multiunit-close,
.theo-app .commercial-modal header button,
.theo-app .tl-close,
.theo-app .theo-map-picker-close{
  width:38px!important;height:38px!important;border-radius:10px!important;
  border:1px solid #d9e3e7!important;background:#fff!important;color:#536b79!important;
  box-shadow:0 1px 2px rgba(17,42,58,.03)!important;
}

/* ---------- consistent labels ---------- */
.theo-app .multiunit-form label,
.theo-app .tl-action-form label,
.theo-app .commercial-field,
.theo-app .manual-payment-form label,
.theo-app .theo-map-picker label,
.theo-auth .account-identity-form label,
.theo-admin .admin-config-field,
.theo-admin .assignment-field{
  color:#3f5868!important;
  font-size:12.5px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
.theo-app .multiunit-form label>span:first-child,
.theo-app .tl-action-form label>span:first-child,
.theo-app .commercial-field>span:first-child,
.theo-app .theo-map-picker label>span:first-child,
.theo-auth .account-identity-form label>span:first-child{
  color:#405969!important;
  font-size:12.5px!important;
  font-weight:700!important;
}
.theo-app .multiunit-form small,
.theo-app .tl-action-form small,
.theo-app .commercial-field small,
.theo-app .manual-payment-form small,
.theo-auth .account-identity-form small{
  color:var(--tp-form-muted)!important;
  font-size:11.5px!important;
  line-height:1.45!important;
  font-weight:500!important;
}

/* ---------- canonical controls for every new workflow ---------- */
.theo-app .multiunit-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.theo-app .multiunit-form select,
.theo-app .multiunit-form textarea,
.theo-app .tl-action-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.theo-app .tl-action-form select,
.theo-app .tl-action-form textarea,
.theo-app .commercial-field input:not([type=checkbox]):not([type=radio]):not([type=file]),
.theo-app .commercial-field select,
.theo-app .commercial-field textarea,
.theo-app .theo-map-picker input:not([type=checkbox]):not([type=radio]):not([type=file]),
.theo-app .theo-map-picker select,
.theo-auth .account-identity-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.theo-auth .account-identity-form select,
.theo-auth .account-identity-form textarea,
.theo-admin .admin-config-field input,
.theo-admin .admin-config-field select,
.theo-admin .assignment-field input,
.theo-admin .assignment-field select{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:var(--tp-form-control)!important;
  border:1px solid var(--tp-form-line)!important;
  border-radius:var(--tp-form-radius)!important;
  background:#fff!important;
  color:var(--tp-form-ink)!important;
  padding:12px 14px!important;
  font:500 14.5px/1.35 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  box-shadow:0 1px 0 rgba(18,43,61,.02)!important;
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease!important;
}
.theo-app .multiunit-form textarea,
.theo-app .tl-action-form textarea,
.theo-app .commercial-field textarea,
.theo-auth .account-identity-form textarea{min-height:108px!important;resize:vertical!important}
.theo-app .multiunit-form input:hover:not([type=checkbox]):not([type=radio]),
.theo-app .multiunit-form select:hover,
.theo-app .multiunit-form textarea:hover,
.theo-app .tl-action-form input:hover,
.theo-app .tl-action-form select:hover,
.theo-app .tl-action-form textarea:hover,
.theo-app .commercial-field input:hover,
.theo-app .commercial-field select:hover,
.theo-app .commercial-field textarea:hover,
.theo-app .theo-map-picker input:hover,
.theo-auth .account-identity-form input:hover,
.theo-auth .account-identity-form select:hover{
  border-color:var(--tp-form-line-strong)!important;
}
.theo-app .multiunit-form input:focus,
.theo-app .multiunit-form select:focus,
.theo-app .multiunit-form textarea:focus,
.theo-app .tl-action-form input:focus,
.theo-app .tl-action-form select:focus,
.theo-app .tl-action-form textarea:focus,
.theo-app .commercial-field input:focus,
.theo-app .commercial-field select:focus,
.theo-app .commercial-field textarea:focus,
.theo-app .theo-map-picker input:focus,
.theo-auth .account-identity-form input:focus,
.theo-auth .account-identity-form select:focus,
.theo-auth .account-identity-form textarea:focus,
.theo-admin .admin-config-field input:focus,
.theo-admin .admin-config-field select:focus,
.theo-admin .assignment-field input:focus,
.theo-admin .assignment-field select:focus{
  outline:0!important;
  border-color:var(--tp-form-gold)!important;
  box-shadow:0 0 0 3px rgba(199,149,83,.14)!important;
}
.theo-app .multiunit-form input:disabled,
.theo-app .multiunit-form select:disabled,
.theo-app .multiunit-form textarea:disabled,
.theo-app .tl-action-form input:disabled,
.theo-app .commercial-field input:disabled{
  background:#f2f5f6!important;color:#92a0a8!important;cursor:not-allowed!important;
}
.theo-app .multiunit-form input::placeholder,
.theo-app .tl-action-form input::placeholder,
.theo-app .tl-action-form textarea::placeholder,
.theo-app .commercial-field input::placeholder,
.theo-app .commercial-field textarea::placeholder,
.theo-app .theo-map-picker input::placeholder{
  color:#9aa7af!important;opacity:1!important;
}

/* ---------- premium section grouping ---------- */
.theo-app .multiunit-form{gap:16px!important}
.theo-app .multiunit-form-section,
.theo-app #mu-site-form>.multiunit-grid,
.theo-app #mu-site-form>.multiunit-unit-editor-list,
.theo-app .tl-action-form,
.theo-app .manual-payment-form{
  border:1px solid #e0e7ea!important;
  border-radius:var(--tp-form-section-radius)!important;
  background:#fff!important;
  box-shadow:0 7px 24px rgba(18,43,61,.035)!important;
}
.theo-app .multiunit-form-section{
  gap:15px!important;padding:19px!important;
}
.theo-app #mu-site-form>.multiunit-grid{
  padding:19px!important;
}
.theo-app #mu-site-form>.multiunit-grid::before{
  content:"Site details";
  grid-column:1/-1;
  display:block;
  padding:0 0 12px;
  margin-bottom:1px;
  border-bottom:1px solid #edf1f2;
  color:var(--tp-form-ink);
  font:650 14px/1.2 "Inter Tight",Inter,sans-serif;
}
.theo-app #mu-site-form>.multiunit-unit-editor-list{
  padding:19px!important;
}
.theo-app #mu-site-form>.multiunit-unit-editor-list::before{
  content:"Rentable units";
  display:block;
  padding:0 0 13px;
  margin-bottom:3px;
  border-bottom:1px solid #edf1f2;
  color:var(--tp-form-ink);
  font:650 14px/1.2 "Inter Tight",Inter,sans-serif;
}
.theo-app .multiunit-form-section h3{
  position:relative!important;
  margin:0!important;
  padding:0 0 12px 20px!important;
  border-bottom:1px solid #edf1f2!important;
  color:var(--tp-form-ink)!important;
  font:650 14.5px/1.25 "Inter Tight",Inter,sans-serif!important;
}
.theo-app .multiunit-form-section h3::before{
  content:"";position:absolute;left:0;top:4px;width:9px;height:9px;border-radius:3px;
  background:linear-gradient(135deg,var(--tp-form-gold),#e0bd8b);box-shadow:0 0 0 4px var(--tp-form-gold-soft);
}
.theo-app .multiunit-grid{gap:15px!important}
.theo-app .multiunit-callout{
  border:1px solid #e8dccb!important;border-left:3px solid var(--tp-form-gold)!important;
  border-radius:10px!important;background:linear-gradient(135deg,#fffdf9,#fbf7f0)!important;
  padding:14px 16px!important;
}
.theo-app .multiunit-callout strong{color:var(--tp-form-ink)!important}
.theo-app .multiunit-callout span{color:#697d89!important;line-height:1.5!important}
.theo-app .multiunit-field-note{
  margin:0!important;padding:11px 13px!important;border-radius:10px!important;
  background:#f7f9fa!important;color:#6c7f8b!important;border:1px solid #e5ebed!important;
}

/* ---------- unit rows become premium mini forms ---------- */
.theo-app .multiunit-unit-editor{
  border:1px solid #e1e8eb!important;border-radius:12px!important;background:#fafcfc!important;
  padding:12px!important;box-shadow:none!important;
}
.theo-app .unit-editor-index{
  border-radius:9px!important;background:var(--tp-form-navy)!important;color:#fff!important;
  box-shadow:0 5px 14px rgba(21,47,70,.12)!important;
}
.theo-app .multiunit-unit-editor input,
.theo-app .multiunit-unit-editor select{
  min-height:44px!important;border-radius:9px!important;border-color:#d8e2e6!important;background:#fff!important;
}

/* ---------- map/location form treatment ---------- */
.theo-app .multiunit-map-location{
  padding:18px!important;border:1px solid #dce5e9!important;border-radius:14px!important;
  background:linear-gradient(145deg,#fbfcfd,#f5f8f9)!important;
  box-shadow:0 7px 22px rgba(18,43,61,.025)!important;
}
.theo-app .multiunit-map-location-head strong{color:var(--tp-form-ink)!important}
.theo-app .multiunit-map-status{border-radius:10px!important;padding:12px 14px!important}
.theo-app .multiunit-coordinates input{
  min-height:44px!important;border:1px solid #d6e0e4!important;border-radius:9px!important;background:#fff!important;
}
.theo-app .theo-map-picker{
  padding:0!important;overflow:hidden!important;
}
.theo-app .theo-map-picker-search{padding:0 20px!important;margin:18px 0 12px!important}
.theo-app .theo-map-picker-search label>div{grid-template-columns:1fr auto!important}
.theo-app .theo-map-picker-search input{border-radius:10px 0 0 10px!important}
.theo-app .theo-map-picker-search label button{border-radius:0 10px 10px 0!important}
.theo-app .theo-map-gps{border-radius:10px!important;min-height:52px!important}
.theo-app .theo-map-search-results{margin:0 20px 10px!important;border-radius:10px!important}
.theo-app .theo-map-canvas{margin:0 20px!important;border-radius:12px!important}
.theo-app .theo-map-picker-footer{padding:15px 20px 18px!important}

/* ---------- file upload cards ---------- */
.theo-app .multiunit-form input[type=file],
.theo-app .commercial-field input[type=file],
.theo-app .theo-form-shell input[type=file],
.theo-auth .account-identity-form input[type=file]{
  box-sizing:border-box!important;width:100%!important;min-height:54px!important;
  border:1px dashed #cbd8de!important;border-radius:10px!important;background:#f9fbfb!important;
  color:#607482!important;padding:6px!important;font:500 12.5px/1.35 Inter,sans-serif!important;
}
.theo-app .multiunit-form input[type=file]::file-selector-button,
.theo-app .commercial-field input[type=file]::file-selector-button,
.theo-app .theo-form-shell input[type=file]::file-selector-button,
.theo-auth .account-identity-form input[type=file]::file-selector-button{
  border:0!important;border-radius:8px!important;background:var(--tp-form-navy)!important;color:#fff!important;
  min-height:40px!important;padding:9px 13px!important;margin-right:10px!important;
  font:650 12px/1 Inter,sans-serif!important;cursor:pointer!important;
}

/* ---------- checkbox and choice cards ---------- */
.theo-app .multiunit-check{
  display:grid!important;grid-template-columns:auto 1fr!important;align-items:flex-start!important;gap:11px!important;
  padding:13px 14px!important;border:1px solid #e1e7ea!important;border-radius:10px!important;background:#fafcfc!important;
}
.theo-app .multiunit-check input[type=checkbox]{
  width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;accent-color:var(--tp-form-teal)!important;
}
.theo-app .multiunit-check strong{color:var(--tp-form-ink)!important;font-size:13px!important}
.theo-app .multiunit-check small{margin-top:3px!important}

/* ---------- commercial/manual payment form ---------- */
.theo-app .manual-payment-form{
  padding:17px!important;margin-top:14px!important;display:grid!important;gap:13px!important;
}
.theo-app .manual-payment-two{gap:13px!important}
.theo-app .manual-payment-instructions{
  border:1px solid #e2e8e5!important;border-left:3px solid var(--tp-form-teal)!important;
  border-radius:10px!important;background:#f8fbfa!important;padding:14px 15px!important;
}
.theo-app .manual-reference-copy{border-radius:9px!important}
.theo-app .manual-payment-destination{border-radius:10px!important}
.theo-app .checkout-summary{border-radius:12px!important}
.theo-app .commercial-checkout-submit{min-height:50px!important;border-radius:10px!important}

/* ---------- tenancy action mini-forms ---------- */
.theo-app .tl-action-form{
  padding:17px!important;display:grid!important;gap:13px!important;
}
.theo-app .tl-action-form .tl-file-actions,
.theo-app .tl-action-form .modal-actions{
  padding-top:14px!important;margin-top:3px!important;border-top:1px solid #edf1f2!important;
}
.theo-app .tl-action-error,
.theo-app .multiunit-error,
.theo-app .form-error{
  color:#a6453d!important;font-size:12px!important;font-weight:650!important;line-height:1.45!important;
}

/* ---------- identity editor alignment ---------- */
.theo-auth .account-identity-editor{
  border-radius:12px!important;border-color:#dfe6e9!important;background:#fafcfc!important;
}
.theo-auth .account-identity-form{
  padding:17px!important;gap:13px!important;background:#fff!important;
}

/* ---------- action bars ---------- */
.theo-app .multiunit-form-actions,
.theo-app .multiunit-share-actions,
.theo-app .multiunit-claim-actions{
  gap:10px!important;
}
.theo-app .multiunit-form-actions{
  padding-top:15px!important;border-top:1px solid #edf1f2!important;
}
.theo-app .multiunit-form-actions .button,
.theo-app .multiunit-share-actions .button,
.theo-app .multiunit-claim-actions .button,
.theo-app .theo-map-picker-footer .button{
  min-height:48px!important;border-radius:10px!important;padding:10px 17px!important;
}

/* ---------- smaller premium selectors / filters ---------- */
.theo-app .tl-filter-fields input,
.theo-app .tl-filter-fields select,
.theo-app .tl-copy-row input{
  border-radius:10px!important;border-color:#d7e1e5!important;background:#fff!important;
}
.theo-app .tl-filter-tabs button,
.theo-app .tl-file-tabs button,
.theo-app .tl-state,
.theo-app .opening-balance-pill{
  border-radius:9px!important;
}

/* ---------- accessibility / error focus ---------- */
.theo-app [aria-invalid="true"],
.theo-auth [aria-invalid="true"],
.theo-admin [aria-invalid="true"],
.theo-app .is-invalid,
.theo-auth .is-invalid,
.theo-admin .is-invalid{
  border-color:#b95555!important;box-shadow:0 0 0 3px rgba(185,85,85,.10)!important;
}

/* ---------- responsive ---------- */
@media(max-width:760px){
  :root{--tp-form-control:50px}
  .theo-app .multiunit-modal,
  .theo-app .commercial-modal,
  .theo-app .tl-modal,
  .theo-app .theo-map-picker{border-radius:16px 16px 0 0!important}
  .theo-app .multiunit-modal-body,
  .theo-app .commercial-modal-body,
  .theo-app .tl-modal-body{padding:15px!important}
  .theo-app .multiunit-form-section,
  .theo-app #mu-site-form>.multiunit-grid,
  .theo-app #mu-site-form>.multiunit-unit-editor-list,
  .theo-app .manual-payment-form,
  .theo-app .tl-action-form{padding:15px!important;border-radius:12px!important}
  .theo-app .multiunit-grid,
  .theo-app .manual-payment-two{grid-template-columns:1fr!important;gap:13px!important}
  .theo-app .multiunit-grid .wide{grid-column:auto!important}
  .theo-app .multiunit-form-actions{position:sticky!important;bottom:0!important;z-index:4!important;background:#fff!important;padding:12px 0 0!important}
  .theo-app .multiunit-form-actions .button{width:100%!important}
  .theo-app .theo-map-picker-search{padding:0 14px!important}
  .theo-app .theo-map-search-results{margin-left:14px!important;margin-right:14px!important}
  .theo-app .theo-map-canvas{margin:0 14px!important}
  .theo-app .theo-map-picker-footer{padding:14px!important}
  .theo-app .theo-map-picker-footer>div:last-child{grid-template-columns:1fr!important}
}
