/* Move3DVR WEB v0.8.74 PR1 STEP2 FIX10iD
   Global sticky action/header rule for customer portal and admin forms. */
:root{--move3dvr-sticky-offset:92px}

/* The page title/header remains the primary sticky layer. */
.topbar{z-index:40}

/* Shared sticky action zones directly below the page header. */
.main > .fragment > .support-hero,
.main > .fragment > .toolbar,
.main > .fragment > .sticky-form-toolbar,
.main > .fragment > .support-sticky-head,
.main > .support-page > .support-hero,
.main > .support-page > .support-sticky-head,
.main > .tenant-page > .support-hero,
.main > .tenant-page > .toolbar,
.main > .communication-page > .support-sticky-head,
.main > .fragment > .customer-directory-toolbar,
.main > .fragment > .tours-toolbar{
  position:sticky!important;
  top:var(--move3dvr-sticky-offset)!important;
  z-index:30!important;
  background:rgba(243,247,251,.97)!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 8px 18px rgba(16,52,79,.08);
}

/* Hero/card zones need a small visual separation while pinned. */
.main > .fragment > .support-hero,
.main > .support-page > .support-hero,
.main > .tenant-page > .support-hero{
  border-color:#d7e4ed!important;
}

/* Tours/filter toolbars should keep their complete action row visible. */
.tours-toolbar,
.customer-directory-toolbar,
.support-sticky-head,
.communication-sticky-head{
  margin-top:0!important;
}

/* Cards used as first form/action block: keep their header accessible. */
.main > .fragment > .card:first-child > .card-head,
.main > .fragment > .tenant-profile-card > .card-head{
  position:sticky;
  top:var(--move3dvr-sticky-offset);
  z-index:25;
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* Prevent pinned zones from being hidden by table/card content. */
.table-wrap,.subscription-table-card,.card{isolation:isolate}

/* Preserve the requested exception: left navigation stays left aligned. */
.sidebar .nav button,.sidebar .nav-group-toggle,.sidebar .nav-subitem{text-align:left!important;justify-content:flex-start!important}

@media(max-width:900px){
  :root{--move3dvr-sticky-offset:0px}
  .topbar{position:relative!important}
  .main > .fragment > .support-hero,
  .main > .fragment > .toolbar,
  .main > .fragment > .sticky-form-toolbar,
  .main > .fragment > .support-sticky-head,
  .main > .support-page > .support-hero,
  .main > .tenant-page > .support-hero,
  .main > .tenant-page > .toolbar,
  .main > .communication-page > .support-sticky-head,
  .main > .fragment > .customer-directory-toolbar,
  .main > .fragment > .tours-toolbar{position:relative!important;top:auto!important;box-shadow:none}
  .main > .fragment > .card:first-child > .card-head,
  .main > .fragment > .tenant-profile-card > .card-head{position:relative;top:auto}
}

/* FIX10iE: global action-button alignment and application-customer modal cleanup. */
button:not(.nav-subitem):not(.nav-group-toggle),
a.primary,a.secondary,a.ghost,
label.primary.file-button,label.secondary.file-button,
.m3d-btn,.image-control-button,.invoice-logo-button{
  text-align:center!important;
  justify-content:center!important;
  align-items:center!important;
}
label.primary.file-button,label.secondary.file-button{
  display:flex!important;
}
/* Explicitly preserve left navigation as the only left-aligned button family. */
.sidebar .nav button,.sidebar .nav-group-toggle,.sidebar .nav-subitem{
  text-align:left!important;
  justify-content:flex-start!important;
}
/* Application-customer details use the single footer Close action. */
.application-readonly-actions{justify-content:flex-end!important}

/* FIX10iF: prevent sticky layers from clipping normal form/card content. */
.main > .fragment > .card:first-child > .card-head,
.main > .fragment > .tenant-profile-card > .card-head{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
}
/* Tenant profile content must always begin below the fixed page header. */
.tenant-profile-card,
.tenant-profile-card .card-body,
.tenant-profile-card .profile-logo-row,
.tenant-profile-card .tenant-profile-form{
  overflow:visible!important;
}
/* Table headers stay in normal document flow; only page action zones are sticky. */
.subscription-table thead,
.subscription-table thead tr,
.subscription-table th,
.table-wrap thead,
.table-wrap th{
  position:static!important;
  top:auto!important;
}
/* Keep a clean separation below pinned action areas. */
.main > .fragment > .support-sticky-head + *,
.main > .support-page > .support-sticky-head + *,
.main > .communication-page > .support-sticky-head + *,
.main > .tenant-page > .support-hero + *{
  scroll-margin-top:calc(var(--move3dvr-sticky-offset) + 24px);
}

/* FIX10iG */
.login-language-row{display:flex;justify-content:flex-end;margin-bottom:8px}.login-language-select{min-width:150px;max-width:190px;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px;background:#fff}.login-card .login-language-select{font:inherit}


/* FIX10iG-A: modal stacking, login language placement and translation transparency */
.modal-backdrop,.tenant-dialog-backdrop,.tenant-tour-create-backdrop{z-index:10000!important;isolation:isolate!important}
.modal,.tenant-dialog,.tenant-tour-create-modal{position:relative;z-index:10001!important}
body:has(.modal-backdrop) .topbar,body:has(.modal-backdrop) .support-hero,body:has(.modal-backdrop) .toolbar,body:has(.modal-backdrop) .support-sticky-head,body:has(.modal-backdrop) .customer-directory-toolbar,body:has(.modal-backdrop) .tours-toolbar{z-index:1!important}
.login-card{position:relative;padding-top:42px}
.login-language-row{position:absolute;top:0;right:0;margin:0;z-index:2}
.login-language-select{min-width:160px;box-shadow:0 4px 16px rgba(11,47,80,.08)}
.translation-note{font-size:11px;color:#60788c;margin-top:-6px;margin-bottom:6px}
.translation-original{margin-top:6px;border-top:1px dashed #d8e3eb;padding-top:6px;color:#526b7e}
.translation-original summary{cursor:pointer;font-size:12px;font-weight:700;color:#147db8}
.translation-original p{white-space:pre-wrap;margin:7px 0 0}
.translation-compose-hint{display:block;color:#637d90;margin-top:6px;font-size:12px}
@media(max-width:780px){.login-card{padding-top:50px}.login-language-row{left:0;right:0;justify-content:center}.login-language-select{width:min(230px,100%);max-width:230px}}


/* FIX10iG-B: language selector is part of the login flow, not a floating control. */
.login-card{padding-top:0!important}
.login-language-row{position:static!important;display:flex!important;justify-content:center!important;align-items:center!important;margin:0 0 20px!important;z-index:auto!important}
.login-language-select{width:auto!important;min-width:176px!important;max-width:230px!important;box-shadow:none!important;border-color:#bdd7e8!important;background:#f8fbfd!important;text-align-last:center}
@media(max-width:780px){.login-card{padding-top:0!important}.login-language-row{margin-bottom:16px!important}.login-language-select{width:min(230px,100%)!important}}

/* FIX10iG-C: tenant user management modal */
.tenant-user-modal-backdrop{position:fixed;inset:0;background:rgba(6,27,47,.58);display:flex;align-items:center;justify-content:center;padding:24px;z-index:12000}
.tenant-user-modal{width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;background:#fff;border:1px solid #cfe0ee;border-radius:18px;box-shadow:0 22px 70px rgba(4,25,45,.28)}
.tenant-user-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #dce8f2;position:sticky;top:0;background:#fff;z-index:2}
.tenant-user-modal-head h3{margin:0}.tenant-user-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px}.tenant-user-form label{display:flex;flex-direction:column;gap:7px;font-weight:700}.tenant-user-form input,.tenant-user-form select{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #c9ddeb;border-radius:10px;background:#fff}.tenant-user-active{grid-column:1/-1;flex-direction:row!important;align-items:center}.tenant-user-active input{width:auto}.tenant-user-modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:6px}.tenant-user-actions{display:flex;gap:8px;justify-content:flex-end}.icon-action{min-width:36px;height:34px;border:1px solid #b9d7ea;border-radius:9px;background:#f7fbfe;color:#075f99;cursor:pointer;text-align:center}.icon-action.danger{border-color:#f0b9bf;background:#fff5f6;color:#b4232a}
@media(max-width:700px){.tenant-user-form{grid-template-columns:1fr}.tenant-user-modal-actions{grid-column:1}.tenant-user-active{grid-column:1}}


/* FIX10iG-C1: language selector moves into blue brand panel */
.login-brand{position:relative}
.login-language-on-brand{position:absolute!important;top:28px!important;right:34px!important;left:auto!important;margin:0!important;justify-content:flex-end!important;z-index:3!important}
.login-language-on-brand .login-language-select{background:rgba(255,255,255,.96)!important;border-color:rgba(255,255,255,.55)!important;box-shadow:0 6px 20px rgba(0,0,0,.10)!important}
@media(max-width:900px){.login-language-on-brand{top:18px!important;right:20px!important}}
@media(max-width:780px){.login-language-on-brand{position:static!important;justify-content:center!important;margin:0 0 22px!important}.login-brand{padding-top:28px!important}}

/* FIX10iG-C3 - compact login locale control + translated custom file picker */
.login-meta-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:10px}
.login-meta-row .login-recovery-links{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;margin:0!important}
.login-meta-row .login-recovery-links .link-button{padding:0!important;text-align:left!important;font-size:13px!important;line-height:1.35!important}
.login-language-subtle{margin-left:auto;display:flex;align-items:flex-start;justify-content:flex-end}
.login-language-subtle .login-language-select{min-width:0!important;width:auto!important;max-width:170px!important;padding:1px 22px 1px 4px!important;border:0!important;border-bottom:1px solid #dbe4ec!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#5e7185!important;font-size:13px!important;line-height:1.35!important;text-align:right!important;text-align-last:right!important;height:auto!important}
.custom-file-picker{position:relative;display:flex;align-items:center;gap:10px;min-height:34px;margin-top:6px}
.custom-file-input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}
.custom-file-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 11px;border:1px solid #b9d5e8;border-radius:7px;background:#fff;color:#075d94;font-weight:700;white-space:nowrap}
.custom-file-status{color:#64768a;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:780px){.login-meta-row{flex-direction:column;gap:10px}.login-language-subtle{margin-left:0;justify-content:flex-start}.login-language-subtle .login-language-select{text-align:left!important;text-align-last:left!important}}

/* FIX10iG-C10: global upload-button text centering; left navigation remains the only left-aligned button family. */
.customer-logo-upload .customer-logo-file-button,
.customer-logo-upload .file-button{
  display:flex!important;
  width:100%!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding-left:16px!important;
  padding-right:16px!important;
}
.customer-logo-upload .customer-logo-file-button .file-button-text,
.customer-logo-upload .file-button .file-button-text{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  margin:0 auto!important;
  pointer-events:none!important;
}
