/* Auto Gallery Sadra — Design System Stage 7
   Final polish for authentication, customer portal, utilities, master data,
   notifications, PWA/offline and remaining shared surfaces.
   Presentation-only layer; no route, permission, database or business logic changes. */

:root{
  --ds7-ink:#17263a;
  --ds7-muted:#64748b;
  --ds7-line:#d9e3ee;
  --ds7-soft:#f6f9fc;
  --ds7-blue-soft:#eef6ff;
  --ds7-primary:#225fa8;
  --ds7-primary-dark:#17477f;
  --ds7-success:#177a56;
  --ds7-warning:#a8660b;
  --ds7-danger:#b53d49;
  --ds7-radius:16px;
  --ds7-shadow:0 10px 30px rgba(20,42,70,.08);
}

/* Authentication and access states */
.auth-page,
.customer-auth-page,
.portal-form-shell,
.access-denied-card{
  color:var(--ds7-ink);
}
.auth-page,
.customer-auth-page{
  min-height:100dvh;
  background:
    radial-gradient(circle at 12% 15%,rgba(65,130,205,.14),transparent 30%),
    linear-gradient(145deg,#f8fbff,#eef4fa);
}
.auth-card,
.customer-auth-card,
.customer-register-card,
.portal-form-card,
.access-denied-card{
  border:1px solid var(--ds7-line)!important;
  border-radius:20px!important;
  box-shadow:0 18px 50px rgba(22,48,78,.12)!important;
  overflow:hidden;
}
.auth-card :is(input,select,textarea),
.customer-auth-card :is(input,select,textarea),
.customer-register-card :is(input,select,textarea),
.portal-form-card :is(input,select,textarea){
  min-height:44px;
  border:1px solid #c8d6e5;
  border-radius:11px;
  background:#fff;
}
.auth-card :is(input,select,textarea):focus,
.customer-auth-card :is(input,select,textarea):focus,
.customer-register-card :is(input,select,textarea):focus,
.portal-form-card :is(input,select,textarea):focus{
  border-color:#7fb0df;
  box-shadow:0 0 0 3px rgba(34,95,168,.12);
  outline:0;
}
.access-denied-card{max-width:680px;margin:clamp(24px,8vh,90px) auto;padding:clamp(22px,4vw,38px)}
.access-denied-card .access-denied-icon{width:66px;height:66px;display:grid;place-items:center;border-radius:18px;background:#fff1f2;color:var(--ds7-danger);font-size:32px}

/* Customer portal and public pages */
.portal-body,
.customer-dashboard-body,
.portal-home-body{
  color:var(--ds7-ink);
  background:linear-gradient(180deg,#f6f9fc,#edf3f8);
}
.portal-shell,
.customer-dashboard-shell,
.portal-home-shell{
  width:min(100% - 24px,1240px);
  margin-inline:auto;
}
.customer-dashboard-hero,
.portal-pro-hero,
.portal-card,
.notification-panel,
.verify-card{
  border:1px solid var(--ds7-line)!important;
  border-radius:18px!important;
  box-shadow:var(--ds7-shadow);
}
.customer-dashboard-hero,
.portal-pro-hero{
  background:linear-gradient(135deg,#fbfdff,#edf5ff)!important;
}
.customer-dashboard-shell :is(.card,.panel,.portal-card),
.portal-home-shell :is(.card,.panel,.portal-card){
  border-color:var(--ds7-line);
  border-radius:15px;
}
.customer-dashboard-shell .btn,
.portal-home-shell .btn,
.portal-form-shell .btn,
.customer-auth-page .btn{
  min-height:42px;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

/* Public inventory and request wizards */
.inventory-wizard-card,
.purchase-wizard-page :is(.wizard-card,.form-card,.portal-card),
.inventory-public-head{
  border:1px solid var(--ds7-line)!important;
  border-radius:18px!important;
  box-shadow:var(--ds7-shadow);
}
.inventory-wizard-header,
.purchase-wizard-page :is(.wizard-header,.form-topbar){
  background:linear-gradient(135deg,#f8fbff,#edf5ff);
  border-bottom:1px solid var(--ds7-line);
}
:is(.inventory-wizard-page,.purchase-wizard-page) :is(input,select,textarea){
  border-color:#c8d6e5;
  border-radius:11px;
  min-height:43px;
}
:is(.inventory-wizard-page,.purchase-wizard-page) :is(.step,.wizard-step,.step-pill){border-radius:999px}

/* Calculators and utility forms */
.calculator-page,
.manual-account-batch-page,
.simple-temp-account-page{
  width:min(100%,1180px);
  margin-inline:auto;
  color:var(--ds7-ink);
}
.calculator-card,
.manual-batch-card,
.simple-temp-card{
  border:1px solid var(--ds7-line)!important;
  border-radius:var(--ds7-radius)!important;
  box-shadow:var(--ds7-shadow)!important;
  overflow:hidden;
}
.calculator-page .calc-topbar,
.manual-account-batch-page .manual-batch-header{
  margin:-1px -1px 18px;
  padding:18px 20px;
  background:linear-gradient(135deg,#f8fbff,#edf5ff);
  border-bottom:1px solid var(--ds7-line);
}
.calculator-page :is(.result-card,.summary-card,.calc-result,.calculation-summary){
  border:1px solid #cfe0f0;
  border-radius:14px;
  background:#f7fbff;
}
.calculator-page :is(input,select,textarea){border-radius:10px;border-color:#c9d7e5;min-height:42px}
.calculator-page .btn{min-height:41px;border-radius:10px}

/* Definitions and master data */
:is(.banks-page,.bank-accounts-page,.cashboxes-page,.card-readers-page),
body:has(> .app-shell main .bank-master-page){color:var(--ds7-ink)}
:is(.card,.form-card):has(> .toolbar),
.card:has(> .inline-form){border-color:var(--ds7-line);border-radius:15px}
.inline-form{
  padding:12px;
  border:1px solid var(--ds7-line);
  border-radius:12px;
  background:var(--ds7-soft);
}
.inline-form :is(input,select){min-height:40px;border-radius:9px;border-color:#c9d7e5}
.tablewrap{border:1px solid var(--ds7-line);border-radius:13px;overflow:auto;background:#fff}
.tablewrap table{margin:0;border-collapse:separate;border-spacing:0}
.tablewrap thead th{background:#edf4fb;position:sticky;top:0;z-index:1}
.tablewrap tbody tr:hover{background:#f8fbff}

/* Notifications and small settings */
.notifications-page,
.vehicle-alert-settings-page,
.digital-card-settings{
  width:min(100%,1280px);
  margin-inline:auto;
  color:var(--ds7-ink);
}
.notifications-head,
.vehicle-alert-settings-page .form-topbar,
.digital-card-settings .form-topbar{
  border:1px solid var(--ds7-line);
  border-radius:var(--ds7-radius);
  background:linear-gradient(135deg,#f8fbff,#eef5ff);
  box-shadow:var(--ds7-shadow);
}
.notifications-page :is(.notification-card,.notification-item,.card),
.vehicle-alert-settings-page :is(.card,.settings-card),
.digital-card-settings :is(.card,.settings-card){
  border-color:var(--ds7-line);
  border-radius:14px;
}
.notifications-page .notification-item{transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.notifications-page .notification-item:hover{transform:translateY(-1px);border-color:#afcae5;box-shadow:0 8px 20px rgba(23,50,80,.07)}

/* PWA, offline and system state screens */
.pwa-status-panel,
body .card:has(> .offline-icon),
body .card:has(> h1 + .offline-text){
  border:1px solid var(--ds7-line)!important;
  border-radius:18px!important;
  box-shadow:var(--ds7-shadow)!important;
}
.pwa-status-summary{border-radius:14px;background:var(--ds7-soft);border:1px solid var(--ds7-line)}
.pwa-status-panel :is(.status-ok,.success){color:var(--ds7-success)}
.pwa-status-panel :is(.status-warn,.warning){color:var(--ds7-warning)}

/* Business card */
.bc-wrap{padding:clamp(14px,3vw,28px)}
.bc-card{
  border:1px solid rgba(255,255,255,.35)!important;
  border-radius:22px!important;
  box-shadow:0 24px 65px rgba(15,35,60,.2)!important;
  overflow:hidden;
}
.bc-card :is(.bc-action,.btn,a[role="button"]){border-radius:11px}

/* Global finishing touches for pages not covered by prior stages */
.page-header-card,
.page-head,
.form-topbar{
  border-color:var(--ds7-line);
}
:where(.card,.form-card,.page-card,.panel){min-width:0}
:where(input,select,textarea,button){font-family:inherit}
:where(input,select,textarea){max-width:100%}
:where(.btn,button,a.btn){touch-action:manipulation}

@media(max-width:760px){
  .auth-card,
  .customer-auth-card,
  .customer-register-card,
  .portal-form-card{border-radius:16px!important;box-shadow:0 10px 30px rgba(22,48,78,.1)!important}
  .portal-shell,
  .customer-dashboard-shell,
  .portal-home-shell{width:min(100% - 16px,1240px)}
  .customer-dashboard-hero,
  .portal-pro-hero{padding:16px!important}
  .calculator-card,
  .manual-batch-card,
  .simple-temp-card{border-radius:13px!important}
  .calculator-page .calc-topbar,
  .manual-account-batch-page .manual-batch-header{padding:15px;margin-bottom:14px}
  .calculator-page .form-grid,
  .manual-account-batch-page .form-grid{grid-template-columns:1fr!important}
  .calculator-page .form-actions,
  .portal-form-shell .form-actions{display:grid!important;grid-template-columns:1fr!important}
  .calculator-page .form-actions .btn,
  .portal-form-shell .form-actions .btn{width:100%}
  .notifications-head{align-items:flex-start;gap:12px}
  .notifications-head-actions{width:100%;display:grid;grid-template-columns:1fr}
  .inline-form{display:grid!important;grid-template-columns:1fr!important}
}

@media(max-width:480px){
  .auth-page,
  .customer-auth-page{padding:10px!important}
  .auth-card,
  .customer-auth-card,
  .customer-register-card{width:100%!important}
  .access-denied-card{margin:14px auto;padding:20px 16px}
  .bc-wrap{padding:8px}
  .bc-card{border-radius:17px!important}
}

@media print{
  .calculator-page,
  .notifications-page,
  .pwa-status-panel{box-shadow:none!important;border:0!important}
}

/* Stage 7.1 hotfix — restore Sadra brand hero and rebuild admin login */
body.portal-home-v2 .portal-pro-hero{
  border:1px solid rgba(255,255,255,.14)!important;
  background:
    radial-gradient(circle at 88% 15%,rgba(224,176,74,.18),transparent 27%),
    radial-gradient(circle at 12% 86%,rgba(24,131,116,.20),transparent 31%),
    linear-gradient(118deg,#07172c 0%,#0b2949 54%,#0e4542 100%)!important;
  box-shadow:0 26px 64px rgba(5,22,43,.27),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body.portal-home-v2 .portal-pro-hero:before{
  background:
    linear-gradient(120deg,rgba(255,255,255,.045),transparent 42%),
    repeating-linear-gradient(125deg,transparent 0 30px,rgba(255,255,255,.018) 31px 32px)!important;
}
body.portal-home-v2 .portal-pro-logo-frame{
  border-color:rgba(230,188,91,.26)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 18px 38px rgba(0,0,0,.24),0 0 0 1px rgba(212,168,68,.08)!important;
}
body.portal-home-v2 .portal-pro-logo{filter:drop-shadow(0 8px 18px rgba(0,0,0,.25))!important}
body.portal-home-v2 .portal-pro-eyebrow{color:#8ce0c1!important}
body.portal-home-v2 .portal-pro-eyebrow:before{background:#3ad39a!important}
body.portal-home-v2 .portal-pro-copy h1#portalHomeTitle{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  text-shadow:0 5px 24px rgba(0,0,0,.35),0 1px 0 rgba(255,255,255,.10)!important;
}
body.portal-home-v2 .portal-pro-copy p{color:#d0ddeb!important}
body.portal-home-v2 .portal-pro-clock{
  border-color:rgba(255,255,255,.13)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.15),rgba(255,255,255,.075))!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 14px 28px rgba(0,0,0,.12)!important;
}
body.portal-home-v2 .portal-pro-clock .portal-clock-date,
body.portal-home-v2 .portal-pro-clock .portal-clock-subdate{color:#d6e1ed!important}

.auth-page.auth-page-sadra{
  min-height:100dvh;padding:24px;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 12% 10%,rgba(29,112,163,.18),transparent 31%),
    radial-gradient(circle at 90% 92%,rgba(15,116,100,.14),transparent 28%),
    linear-gradient(145deg,#edf4fb 0%,#f8fbfe 48%,#edf4f8 100%)!important;
  font-family:var(--app-font),Tahoma,Arial,sans-serif;
}
.auth-shell-sadra{
  width:min(100%,930px);min-height:560px;
  display:grid;grid-template-columns:minmax(300px,.85fr) minmax(390px,1.15fr);
  overflow:hidden;border:1px solid rgba(255,255,255,.92);border-radius:30px;
  background:#fff;box-shadow:0 28px 80px rgba(15,45,77,.18);
}
.auth-brand-panel{
  position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:46px 36px;text-align:center;color:#fff;
  background:linear-gradient(150deg,#07172c 0%,#0c3155 60%,#0d4c45 100%);
}
.auth-brand-panel:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(125deg,transparent 0 34px,rgba(255,255,255,.018) 35px 36px)}
.auth-brand-glow{position:absolute;border-radius:50%;filter:blur(2px)}
.auth-brand-glow-one{width:310px;height:310px;right:-165px;top:-120px;background:rgba(213,167,63,.15)}
.auth-brand-glow-two{width:280px;height:280px;left:-150px;bottom:-130px;background:rgba(46,196,151,.14)}
.auth-brand-logo-wrap{position:relative;z-index:1;width:154px;height:174px;padding:13px;display:grid;place-items:center;border:1px solid rgba(230,188,91,.28);border-radius:29px;background:rgba(255,255,255,.08);box-shadow:0 22px 40px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(10px)}
.auth-brand-logo{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 9px 18px rgba(0,0,0,.28))}
.auth-brand-copy{position:relative;z-index:1;margin-top:25px}
.auth-brand-copy span{display:inline-block;color:#83dfbd;font-size:12px;font-weight:900}
.auth-brand-copy h1{margin:9px 0 10px;font-size:34px;line-height:1.4;color:#fff}
.auth-brand-copy p{margin:0;color:#cbd9e7;font-size:13px;line-height:2}
.auth-card.auth-card-sadra{
  width:auto!important;margin:0!important;padding:52px 50px!important;border:0!important;border-radius:0!important;
  display:flex;flex-direction:column;justify-content:center;text-align:right;background:#fff!important;box-shadow:none!important;overflow:visible!important;
}
.auth-card-head{margin-bottom:27px}.auth-card-kicker{display:inline-block;margin-bottom:7px;color:#17805e;font-size:12px;font-weight:900}.auth-card-head h2{margin:0!important;color:#102d4d!important;font-size:30px!important;line-height:1.45}.auth-card-head p{margin:7px 0 0!important;color:#738195!important;font-size:13px}
.auth-form.auth-form-sadra{display:grid;gap:18px;text-align:right}.auth-field{display:grid;gap:8px}.auth-field label{color:#263b52;font-size:13px;font-weight:900}.auth-input-wrap{position:relative}.auth-card-sadra .auth-input-wrap input{width:100%;height:52px!important;min-height:52px!important;padding:0 48px 0 48px!important;border:1px solid #ccd8e5!important;border-radius:14px!important;background:#fbfdff!important;color:#17283c;font:inherit;font-size:15px;box-sizing:border-box;transition:border-color .2s,box-shadow .2s,background .2s}.auth-card-sadra .auth-input-wrap input::placeholder{color:#a0adbb}.auth-card-sadra .auth-input-wrap input:focus{border-color:#3b7fb4!important;background:#fff!important;box-shadow:0 0 0 4px rgba(35,105,157,.11)!important;outline:0}.auth-input-icon{position:absolute;z-index:2;right:15px;top:50%;transform:translateY(-50%);width:21px;height:21px;color:#6d8298;pointer-events:none}.auth-input-icon svg,.auth-password-toggle svg{display:block;width:100%;height:100%}.auth-password-toggle{position:absolute;z-index:3;left:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;padding:9px;border:0;border-radius:10px;background:transparent;color:#71869a;cursor:pointer}.auth-password-toggle:hover,.auth-password-toggle:focus-visible{background:#edf4fa;color:#245f92;outline:0}.auth-submit{width:100%;height:52px!important;margin-top:5px!important;border:0!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;background:linear-gradient(135deg,#0e684a,#0b533e)!important;color:#fff!important;font-family:inherit!important;font-size:15px!important;font-weight:900!important;box-shadow:0 12px 24px rgba(11,88,63,.20)!important;cursor:pointer;transition:transform .18s,box-shadow .18s}.auth-submit:hover{transform:translateY(-1px);box-shadow:0 15px 28px rgba(11,88,63,.25)!important}.auth-submit b{font-size:20px;line-height:1}.auth-security-note{margin-top:22px;padding:12px 14px;display:flex;align-items:flex-start;gap:9px;border:1px solid #e1e9f1;border-radius:13px;background:#f7fafc;color:#66788b}.auth-security-note>span{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:50%;background:#e3f4ed;color:#167253;font-size:12px;font-weight:900}.auth-security-note p{margin:0!important;color:inherit!important;font-size:11.5px!important;line-height:1.8}.auth-card-sadra .auth-messages{margin:0 0 18px}.auth-card-sadra .msg{border-radius:12px;padding:11px 13px}
@media(max-width:760px){
  .auth-page.auth-page-sadra{padding:14px;align-items:center}
  .auth-shell-sadra{width:min(100%,480px);min-height:0;grid-template-columns:1fr;border-radius:25px}
  .auth-brand-panel{padding:24px 22px 22px;min-height:190px}
  .auth-brand-logo-wrap{width:90px;height:102px;padding:8px;border-radius:21px}
  .auth-brand-copy{margin-top:12px}.auth-brand-copy span{font-size:10px}.auth-brand-copy h1{margin:4px 0 2px;font-size:23px}.auth-brand-copy p{display:none}
  .auth-card.auth-card-sadra{padding:27px 22px 24px!important}
  .auth-card-head{margin-bottom:21px;text-align:center}.auth-card-head h2{font-size:24px!important}.auth-card-head p{font-size:12px!important}
  .auth-form.auth-form-sadra{gap:15px}.auth-card-sadra .auth-input-wrap input{height:49px!important;min-height:49px!important}.auth-submit{height:50px!important}
}
@media(max-width:380px){.auth-page.auth-page-sadra{padding:8px}.auth-shell-sadra{border-radius:21px}.auth-brand-panel{min-height:166px;padding:18px}.auth-brand-logo-wrap{width:76px;height:86px}.auth-brand-copy h1{font-size:21px}.auth-card.auth-card-sadra{padding:23px 17px 19px!important}}

/* v525 — compact login brand composition, preserving logo size. */
.auth-brand-top{
  position:relative;z-index:2;width:100%;
  display:flex;align-items:center;justify-content:center;gap:24px;
  direction:rtl;
}
.auth-brand-meta{
  min-width:125px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:8px;text-align:right;color:#fff;
}
.auth-brand-meta span{color:#8ce5c1;font-size:15px;font-weight:900;line-height:1.5}
.auth-brand-meta strong{color:#fff;font-size:14px;font-weight:900;line-height:1.5}
.auth-brand-panel .auth-brand-copy{width:100%;margin-top:20px;text-align:center}
.auth-brand-panel .auth-brand-copy h1{font-family:var(--dealership-title-font,var(--app-font)),Tahoma,Arial,sans-serif!important}
.auth-brand-panel .auth-brand-copy p{margin-top:4px}
/* Slightly taller frame ensures the unchanged logo is optically centered. */
.auth-brand-panel .auth-brand-logo-wrap{height:190px;min-height:190px}

@media(max-width:760px){
  .auth-page.auth-page-sadra{padding:10px;align-items:start;overflow-y:auto}
  .auth-shell-sadra{margin:auto}
  .auth-brand-panel{min-height:214px;padding:17px 18px 15px;justify-content:center}
  .auth-brand-top{gap:16px}
  .auth-brand-panel .auth-brand-logo-wrap{width:90px;height:116px;min-height:116px;padding:8px;border-radius:21px}
  .auth-brand-meta{min-width:108px;gap:5px}
  .auth-brand-meta span{font-size:12px}
  .auth-brand-meta strong{font-size:11px}
  .auth-brand-panel .auth-brand-copy{margin-top:10px}
  .auth-brand-panel .auth-brand-copy h1{margin:0!important;font-size:25px!important;line-height:1.45!important}
  .auth-card.auth-card-sadra{padding:22px 20px 20px!important}
  .auth-card-head{margin-bottom:16px}
  .auth-card-head h2{font-size:23px!important}
  .auth-card-head p{margin-top:4px!important}
  .auth-form.auth-form-sadra{gap:13px}
  .auth-security-note{margin-top:15px}
}
@media(max-width:380px){
  .auth-brand-panel{min-height:202px;padding:14px 14px 13px}
  .auth-brand-top{gap:12px}
  .auth-brand-panel .auth-brand-logo-wrap{width:76px;height:104px;min-height:104px}
  .auth-brand-meta{min-width:98px}
  .auth-brand-meta span{font-size:11px}
  .auth-brand-meta strong{font-size:10px}
  .auth-brand-panel .auth-brand-copy h1{font-size:22px!important}
  .auth-card.auth-card-sadra{padding:20px 16px 18px!important}
}


/* v526 — balanced login brand: centered logo, symmetric side labels. */
body.auth-page-sadra .auth-brand-top{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:20px;
  direction:rtl;
}
body.auth-page-sadra .auth-brand-side{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  min-width:0;
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1.55;
  white-space:nowrap;
}
body.auth-page-sadra .auth-brand-side-right{
  justify-content:flex-start;
  text-align:right;
  color:#8ce5c1;
}
body.auth-page-sadra .auth-brand-side-left{
  justify-content:flex-end;
  text-align:left;
  color:#fff;
}
body.auth-page-sadra .auth-brand-meta{display:none!important}
body.auth-page-sadra .auth-brand-panel .auth-brand-copy h1,
body.auth-page-sadra .auth-brand-panel .auth-brand-copy h1.dealership-title-text{
  font-family:var(--dealership-title-font)!important;
}
body.auth-page-sadra .auth-card-head .auth-card-kicker{display:none!important}

@media(max-width:760px){
  body.auth-page-sadra .auth-brand-top{
    grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr);
    gap:10px;
  }
  body.auth-page-sadra .auth-brand-side{font-size:11px;line-height:1.45}
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    width:90px;
    height:116px;
    min-height:116px;
  }
}
@media(max-width:380px){
  body.auth-page-sadra .auth-brand-top{
    grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);
    gap:7px;
  }
  body.auth-page-sadra .auth-brand-side{font-size:9.5px}
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    width:76px;
    height:104px;
    min-height:104px;
  }
}


/* v527 — dynamic business branding + collision-free mobile login banner. */
body.auth-page-sadra .auth-brand-panel .auth-brand-copy h1.dealership-title-text,
body.customer-auth-page .customer-auth-brand-name.dealership-title-text{
  font-family:var(--dealership-title-font)!important;
}

/* Keep the logo visually centered while reserving real space for both side labels. */
@media(max-width:760px){
  body.auth-page-sadra .auth-brand-top{
    grid-template-columns:minmax(78px,1fr) minmax(88px,96px) minmax(78px,1fr);
    gap:8px;
    padding-inline:2px;
  }
  body.auth-page-sadra .auth-brand-side{
    width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
    font-size:10.5px;
    line-height:1.35;
  }
  body.auth-page-sadra .auth-brand-side-right{
    justify-content:flex-start;
    text-align:right;
    padding-inline-start:2px;
  }
  body.auth-page-sadra .auth-brand-side-left{
    justify-content:flex-end;
    text-align:left;
    padding-inline-end:2px;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    width:92px;
    height:116px;
    min-height:116px;
    justify-self:center;
  }
}

@media(max-width:430px){
  body.auth-page-sadra .auth-brand-top{
    grid-template-columns:minmax(66px,1fr) 90px minmax(66px,1fr);
    gap:5px;
  }
  body.auth-page-sadra .auth-brand-side{
    font-size:9.5px;
    letter-spacing:-.15px;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    width:90px;
    height:116px;
    min-height:116px;
  }
}

@media(max-width:360px){
  body.auth-page-sadra .auth-brand-top{
    grid-template-columns:minmax(58px,1fr) 90px minmax(58px,1fr);
    gap:3px;
  }
  body.auth-page-sadra .auth-brand-side{font-size:8.8px;line-height:1.3}
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    width:90px;
    height:116px;
    min-height:116px;
  }
}

/* v528 — desktop login banner: move the two system labels below the centered logo.
   Mobile keeps the collision-safe side-label layout from v527. */
@media(min-width:761px){
  body.auth-page-sadra .auth-brand-top{
    grid-template-columns:auto auto;
    grid-template-areas:
      "logo logo"
      "right left";
    justify-content:center;
    justify-items:center;
    align-items:center;
    column-gap:34px;
    row-gap:14px;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    grid-area:logo;
    justify-self:center;
  }
  body.auth-page-sadra .auth-brand-side-right{
    grid-area:right;
    justify-content:center;
    text-align:center;
  }
  body.auth-page-sadra .auth-brand-side-left{
    grid-area:left;
    justify-content:center;
    text-align:center;
  }
  body.auth-page-sadra .auth-brand-side{
    min-width:118px;
    white-space:nowrap;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy{
    margin-top:18px;
  }
}

/* v530 — desktop brand hierarchy: full logo at top, system labels stacked below,
   and a dynamically fitted single-line dealership title. Mobile remains unchanged. */
@media(min-width:761px){
  body.auth-page-sadra .auth-brand-panel{
    justify-content:flex-start;
    padding-top:34px;
    padding-bottom:30px;
  }
  body.auth-page-sadra .auth-brand-top{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:0;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-logo-wrap{
    order:1;
    width:154px;
    height:190px;
    min-height:190px;
    margin:0 0 14px;
  }
  body.auth-page-sadra .auth-brand-side{
    width:auto;
    min-width:0;
    justify-content:center!important;
    text-align:center!important;
    white-space:nowrap;
    font-size:18px;
    line-height:1.55;
  }
  body.auth-page-sadra .auth-brand-side-right{
    order:2;
    margin-bottom:8px;
  }
  body.auth-page-sadra .auth-brand-side-left{
    order:3;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy{
    width:100%;
    max-width:100%;
    margin-top:20px;
    padding-inline:8px;
    box-sizing:border-box;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy h1.dealership-title-text{
    display:block;
    width:100%;
    max-width:100%;
    margin:0 0 8px!important;
    line-height:1.3!important;
    white-space:nowrap;
    overflow:visible;
    text-align:center;
  }
}


/* v531 — real banner-width title fitting. JS writes the final size inline with
   !important so older fixed typography rules cannot override it. */
@media(min-width:761px){
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy{
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy h1.dealership-title-text[data-fit-brand-title]{
    box-sizing:border-box;
    min-width:0;
    overflow:hidden;
    text-overflow:clip;
    white-space:nowrap!important;
    text-align:center!important;
    margin-inline:auto!important;
  }
}


/* v532 — mobile login branding refinement.
   Side labels are two visual steps larger, while the dealership title is
   auto-fitted to the real banner width without changing the logo dimensions. */
@media(max-width:760px){
  body.auth-page-sadra .auth-brand-side{
    font-size:14px!important;
    line-height:1.45!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy{
    width:100%!important;
    max-width:100%!important;
    padding-inline:10px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  body.auth-page-sadra .auth-brand-panel .auth-brand-copy h1.dealership-title-text[data-fit-brand-title]{
    display:block!important;
    box-sizing:border-box!important;
    min-width:0!important;
    margin-inline:auto!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    text-align:center!important;
    line-height:1.22!important;
  }
}
@media(max-width:430px){
  body.auth-page-sadra .auth-brand-side{
    font-size:13px!important;
    letter-spacing:-.1px!important;
  }
}
@media(max-width:360px){
  body.auth-page-sadra .auth-brand-side{
    font-size:12px!important;
    letter-spacing:-.2px!important;
  }
}

/* =========================================================
   v533 — customer login unified branding + real panel title fit
   ========================================================= */
body.customer-auth-page .customer-login-card{
  width:min(1120px,calc(100vw - 44px));
  grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);
  min-height:min(720px,calc(100vh - 72px));
  max-height:none;
  overflow:hidden;
}
body.customer-auth-page aside.customer-login-visual{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:100%;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  padding:38px 34px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:28px;
  text-align:center;
  background:linear-gradient(160deg,#173f6d 0%,#17385f 54%,#0a624d 100%);
}
body.customer-auth-page aside.customer-login-visual::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body.customer-auth-page .customer-login-brand-block{
  width:100%;
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
}
body.customer-auth-page .customer-login-logo-wrap{
  width:132px;
  height:164px;
  flex:0 0 164px;
  border-radius:28px;
  background:rgba(9,22,37,.72);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 18px 42px rgba(0,0,0,.24),inset 0 0 0 10px rgba(255,255,255,.055);
}
body.customer-auth-page .customer-login-logo-wrap img{
  width:86%;
  height:86%;
  object-fit:contain;
}
body.customer-auth-page .customer-login-business-title{
  width:86%;
  max-width:86%;
  margin:0;
  color:#fff;
  font-family:var(--dealership-title-font)!important;
  font-weight:900;
  line-height:1.35;
  white-space:nowrap;
  overflow:visible;
  text-align:center;
  letter-spacing:-.7px;
}
body.customer-auth-page .customer-login-badge{
  margin:0;
  font-size:15px;
  padding:8px 16px;
}
body.customer-auth-page .customer-login-visual-copy{
  width:min(92%,440px);
  max-width:none;
  position:relative;
  z-index:2;
  margin:0;
}
body.customer-auth-page .customer-login-visual-copy h3{
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(22px,2.1vw,31px);
  line-height:1.6;
  font-weight:900;
}
body.customer-auth-page .customer-login-visual-copy p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:14px;
  line-height:1.95;
}
body.customer-auth-page .customer-login-card .customer-auth-content{
  min-width:0;
  padding:clamp(34px,4vw,58px);
  justify-content:center;
}
body.customer-auth-page .customer-login-card .customer-auth-header p{
  max-width:560px;
}

@media(max-width:820px){
  body.customer-auth-page .customer-auth-shell{padding:14px;align-items:start}
  body.customer-auth-page .customer-login-card{
    width:min(620px,100%);
    grid-template-columns:1fr;
    min-height:0;
    border-radius:24px;
  }
  body.customer-auth-page aside.customer-login-visual{
    display:flex;
    min-height:0;
    height:auto;
    padding:22px 18px 24px;
    gap:16px;
    order:0;
  }
  body.customer-auth-page .customer-login-logo-wrap{
    width:94px;
    height:118px;
    flex-basis:118px;
    border-radius:22px;
  }
  body.customer-auth-page .customer-login-brand-block{gap:12px}
  body.customer-auth-page .customer-login-business-title{
    width:90%;
    max-width:90%;
    line-height:1.35;
  }
  body.customer-auth-page .customer-login-badge{
    font-size:13px;
    padding:6px 12px;
  }
  body.customer-auth-page .customer-login-visual-copy{display:none}
  body.customer-auth-page .customer-login-card .customer-auth-content{
    order:1;
    padding:28px 22px 30px;
  }
  body.customer-auth-page .customer-login-card .customer-auth-mobile-logo{display:none!important}
}

@media(max-width:390px){
  body.customer-auth-page aside.customer-login-visual{padding-inline:12px}
  body.customer-auth-page .customer-login-logo-wrap{
    width:86px;
    height:108px;
    flex-basis:108px;
  }
  body.customer-auth-page .customer-login-business-title{width:94%;max-width:94%}
}
