
:root{--ink:#172029;--muted:#79828c;--gold:#b89554;--gold-pale:#f5efe4;--canvas:#f7f8fa;--line:#e6e8ec;--white:#fff;--sidebar:#13181e;--shadow:0 8px 30px rgba(20,29,42,.04)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:.08px;overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .18s,border-color .18s,transform .18s;min-height:39px;border:1px solid #dedfe2;border-radius:10px;padding:9px 13px;background:white;color:var(--ink)}button:hover{background:#f5f0e7;border-color:#c7ad7a}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d6b870;outline-offset:2px}button:disabled{opacity:.48;cursor:not-allowed}button.primary,button.active{background:#172029;color:#fff;border-color:#172029}button.primary:hover{background:#303b45}.danger{color:#b62335;border-color:#b62335}button.save-action{background:#176944;color:white;border-color:#176944}button.danger{background:#af2430;color:white}button[hidden],[hidden]{display:none!important}
/* Brand masthead */
.demo-ribbon,.qa-ribbon{background:#f9edcd;border-bottom:1px solid #e9d5a6;color:#665023;text-align:center;font-size:11px;letter-spacing:.5px;font-weight:650;padding:9px 16px;position:relative;z-index:4}
header{height:92px;display:flex;align-items:center;gap:24px;padding:10px clamp(18px,3vw,52px);background:#101317;color:white;border-bottom:2px solid var(--gold);position:relative;z-index:3}header .main{width:163px;height:64px;object-fit:contain}header .group{width:78px;height:66px;object-fit:contain;background:white;border-radius:7px;padding:5px}header .qr{width:58px;height:58px;object-fit:contain;background:white;padding:4px;border-radius:6px;margin-left:auto}header>div{min-width:0}header b{font-size:15px;letter-spacing:.8px}header a{text-decoration:none}header .brand-sub{color:#d4b679;font-size:11px;letter-spacing:.6px}
.accountbar{height:47px;display:flex;align-items:center;gap:11px;background:white;border-bottom:1px solid var(--line);padding:7px clamp(18px,3vw,52px);color:var(--ink);justify-content:flex-end;overflow:hidden}.accountavatar{border-radius:11px;background:#f1e8d5;color:#75561c;width:30px;height:30px;display:grid;place-items:center;font-weight:800;flex-shrink:0}.accountinfo{min-width:0}.accountname{font-size:12px;font-weight:750}.accountrole{font-size:10px;color:var(--muted)}
/* Executive application shell */
.app-shell{display:grid;grid-template-columns:256px minmax(0,1fr);align-items:start;min-height:calc(100vh - 140px)}
#nav{background:var(--sidebar);border-right:1px solid #252f37;color:#dfe3e7;position:sticky;top:0;height:calc(100vh - 30px);max-height:100vh;overflow-y:auto;overflow-x:hidden;padding:20px 12px 28px;scrollbar-width:thin;scrollbar-color:#49505a #13181e;display:flex;flex-direction:column;gap:10px}#nav:empty{display:none}
.nav-group{padding:8px 6px 6px;border-bottom:1px solid #30363d;min-width:0}.nav-group>span{display:block;padding:7px 10px 9px;color:#aeb3bc;text-transform:uppercase;font-size:10px;font-weight:750;letter-spacing:1.35px}.nav-group>div{display:flex;flex-direction:column;gap:2px}.nav-group button{display:block;text-align:left;width:100%;border:0;background:transparent;color:#d8dde2;padding:10px 12px;border-radius:9px;font-size:12.5px;font-weight:520;min-height:38px;white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.3}.nav-group button:hover{background:#252e37;color:white}.nav-group button.active,.nav-group button[aria-current="page"]{background:#3c352b;color:#f8e7be;border-left:3px solid var(--gold);padding-left:9px}.nav-group:last-child{border-bottom:0}.nav-group>button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#d8dde2}
#nav .nav-group:first-child{padding-top:0}
#main{min-width:0;width:100%;max-width:1440px;margin:0 auto;padding:32px clamp(20px,3.3vw,54px) 80px}
#main h1{font-size:clamp(24px,2.35vw,31px);font-weight:740;letter-spacing:-.7px;line-height:1.2;margin:0 0 10px}#main h2{font-size:20px;letter-spacing:-.4px}small,.muted{color:var(--muted)}#main>small{display:block;margin-bottom:20px;font-size:12px}#main>p{line-height:1.65}
#main>.primary{margin-bottom:20px}
#main section,.card{background:white;border:1px solid var(--line);border-radius:16px;padding:23px;box-shadow:var(--shadow)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:25px 0}.cards .card{min-height:124px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;box-shadow:0 4px 18px rgba(0,0,0,.035)}.cards .card>span{font-size:12px;font-weight:610;color:#5b6672;line-height:1.4}.cards .card strong{font-size:clamp(26px,2.5vw,38px);font-variant-numeric:tabular-nums;font-weight:760;letter-spacing:-1px;line-height:1.1}.cards .card:before{content:"";display:block;height:3px;width:30px;background:#bd9d60;border-radius:100px}
.bar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0;align-items:center}.bar button{white-space:normal}.notice{background:#fff9ed;border:1px solid #eeddbb;border-radius:12px;color:#735624;padding:15px 18px;margin:18px 0}.scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:14px;background:white}.scroll table{min-width:650px;width:100%;border-collapse:collapse}th,td{padding:13px 14px;border-bottom:1px solid #eef0f2;vertical-align:middle;text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}th{background:#f8f9fb;font-size:10.5px;font-weight:750;color:#65707b;letter-spacing:.5px;text-transform:uppercase}tr:hover td{background:#fbfaf7}td.actions button{margin:3px}td .vehicle{display:block;margin:auto}.brand{display:block;width:38px;height:32px;object-fit:contain}.vehicle{width:96px;height:60px;object-fit:contain}
input,select,textarea{width:100%;background:white;border:1px solid #dfe1e5;border-radius:10px;padding:10px 12px;min-height:43px;color:var(--ink)}label{display:block;color:#56616a;font-size:12px;font-weight:610;line-height:1.5}label input,label select{margin-top:7px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}dialog{border:1px solid var(--line);border-radius:18px;width:min(920px,94vw);max-height:90vh;overflow:auto;padding:28px;box-shadow:0 26px 90px #0003}dialog::backdrop{background:#15202aa8}#deleteSupplier{margin-left:auto}
/* Dashboard landing */
.hero{border-radius:20px;background:linear-gradient(115deg,#151b22,#222d34 65%,#373026);padding:28px 30px;color:white;display:flex;align-items:center;justify-content:space-between;gap:25px;border:1px solid #33353a;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;right:-60px;top:-95px;width:310px;height:310px;border:1px solid #a68d5647;border-radius:50%;pointer-events:none}.hero .eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#d7ba82;text-transform:uppercase;margin-bottom:9px}.hero h1{color:white!important;margin:0 0 7px!important}.hero p{margin:0;font-size:12px;color:#c2c9cb;max-width:520px}.hero-meta{border-left:1px solid #ffffff38;padding-left:23px;color:#eed29c;font-size:12px;white-space:nowrap;z-index:1}.hero-meta strong{display:block;color:white;font-size:17px;margin-top:4px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:30px 0 14px}.section-title h2{font-size:17px!important;margin:0!important}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.quick-actions button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:17px 16px;background:white;border:1px solid var(--line);border-radius:14px;font-weight:670;min-height:64px;box-shadow:var(--shadow)}.quick-actions button:after{content:'↗';color:#a7874e;font-size:18px}.quick-actions button:hover{border-color:#c4a56d;transform:translateY(-1px)}.split-panels{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin-top:22px}.split-panels section{padding:21px!important}.split-panels h2{font-size:16px!important;margin:0 0 10px}.split-panels p{font-size:12px;color:#69727c;margin:8px 0}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#c29a4c;margin-right:7px}.mobile-topbar,.mobile-shade{display:none}
#nav{align-items:stretch!important;min-width:0!important}#nav .nav-group{background:transparent!important;border:0!important;border-radius:0!important;border-bottom:1px solid #30363d!important;box-shadow:none!important;width:100%!important;min-width:0!important;max-width:100%!important}#nav .nav-group>div{display:flex!important;flex-wrap:nowrap!important;flex-direction:column!important;width:100%!important}#nav .nav-group button{max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important}#nav .nav-group>span{color:#aeb3bc!important}
@media(max-width:1200px){.app-shell{grid-template-columns:224px minmax(0,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#main{padding:27px 25px 70px}}
@media(max-width:760px){header{height:72px;gap:11px;padding:8px 14px}header .main{width:108px;height:53px}header .group{width:47px;height:47px;padding:3px}header .qr{width:42px;height:42px}header b{font-size:10px;letter-spacing:.2px}header .brand-sub,header a{font-size:9px!important}.accountbar{justify-content:flex-start;height:44px;padding:6px 13px}.app-shell{display:block;min-height:100vh}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--line);padding:10px 14px;gap:13px;position:sticky;top:0;z-index:8}.mobile-topbar button{background:var(--sidebar);color:white;border:0;padding:9px 15px;font-size:12px}.mobile-topbar strong{font-size:12px;letter-spacing:.3px}.mobile-shade.open{display:block;position:fixed;inset:0;background:#08131ac2;z-index:18}#nav{position:fixed;top:0;left:0;bottom:0;width:min(305px,83vw);height:100dvh;max-height:none;transform:translateX(-105%);transition:transform .25s;z-index:20;box-shadow:15px 0 35px #0003;padding-top:28px}#nav.mobile-open{transform:translateX(0)}#main{padding:20px 15px 62px}#main h1{font-size:25px}.hero{padding:22px 19px;min-height:140px}.hero h1{font-size:23px!important}.hero-meta{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:17px 0}.cards .card{padding:15px!important;min-height:116px}.cards .card strong{font-size:27px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-actions button{font-size:11px;min-height:65px;padding:12px;line-height:1.45}.split-panels{grid-template-columns:1fr;gap:12px}.fields{grid-template-columns:1fr;gap:12px}dialog{padding:18px;max-height:93dvh}.section-title{margin:23px 0 12px}}
@media(max-width:360px){.cards,.quick-actions{grid-template-columns:1fr 1fr}header .group{display:none}.hero p{font-size:11px}}
@media(max-width:760px){header{height:103px!important;min-height:103px!important;padding:10px 13px!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important}header .main{flex:0 0 102px!important;width:102px!important;height:65px!important}header .group{display:none!important}header>div{flex:1 1 auto!important;min-width:0!important}header>div b{display:block!important;font-size:10px!important;line-height:1.3!important}header .qr{display:block!important;flex:0 0 38px!important;width:38px!important;height:38px!important;margin-left:0!important}header a{font-size:10px!important}.accountbar{position:relative;z-index:2}}
@media print{.mobile-topbar,#nav,.demo-ribbon,.qa-ribbon,.accountbar,.quick-actions,.bar,button{display:none!important}.app-shell{display:block}#main{padding:0}body{background:white}header{print-color-adjust:exact}.scroll{overflow:visible}}

/* V2.0 QA: separate guest login from authenticated sidebar grid */
.app-shell.auth-mode{display:block!important;min-height:calc(100vh - 160px);width:100%}
.app-shell.auth-mode #nav{display:none!important}
.app-shell.auth-mode #main{width:100%;max-width:660px;margin:0 auto;min-height:calc(100vh - 180px);padding:clamp(30px,7vh,78px) clamp(18px,4vw,36px) 70px;display:block}
.app-shell.auth-mode #main > section{width:100%;max-width:520px;margin:0 auto!important;padding:clamp(25px,3.5vw,40px);border-radius:20px;box-shadow:0 18px 50px rgba(18,26,35,.09)}
.app-shell.auth-mode #main h1{font-size:clamp(26px,3vw,35px);letter-spacing:-.8px;line-height:1.1;margin:12px 0 20px}
.app-shell.auth-mode #main label{display:block;font-weight:650;font-size:13px;margin-bottom:16px}
.app-shell.auth-mode #main input{display:block;min-height:48px;width:100%;margin-top:7px;border-radius:10px;font-size:16px}
.app-shell.auth-mode #main button.primary{display:block;min-height:46px;width:100%;margin-top:6px;font-size:14px}
.app-shell.auth-mode #main .bar{display:block;margin:6px 0 8px}
.login-brand{font-size:10px;font-weight:800;letter-spacing:1.3px;color:#a77e3c}
.login-help{font-size:13px;color:#6d7480;line-height:1.6;margin:-6px 0 23px}
.qa-preview-link{margin-top:24px;padding-top:20px;border-top:1px solid #ebedf0;color:#667180;font-size:13px;line-height:1.55}
.qa-preview-head{color:#1d2731;font-size:14px;font-weight:750}
.qa-preview-link p{margin:7px 0 14px}
.qa-preview-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;background:#f5f0e6;border:1px solid #dbc18c;border-radius:10px;color:#5e451e;text-decoration:none;font-weight:750}
.qa-preview-button:hover{background:#eee2c8}
@media(max-width:760px){.app-shell.auth-mode #main{min-height:calc(100vh - 95px);padding:20px 14px 45px}.app-shell.auth-mode #main>section{padding:25px 22px;border-radius:16px}.app-shell.auth-mode #main h1{font-size:28px}}

/* Vehicle brand badge: consistent proportions across desktop and mobile. */
.vehicle-brand-block{display:flex;align-items:center;min-width:0;grid-column:1 / -1;margin:4px 0 10px}
.vehicle-brand-display{display:flex;align-items:center;gap:13px;min-width:0;background:linear-gradient(115deg,#fcfbf8,#f6f5f1);border:1px solid #ded9ce;border-radius:14px;padding:12px 16px;min-height:82px;width:100%;color:#1e2730;font-size:14px}
.vehicle-brand-display strong{font-size:17px;overflow-wrap:anywhere;font-weight:680;letter-spacing:.01em}
.vehicle-brand-mark{flex:none;display:grid;place-items:center;width:59px;height:59px;border-radius:12px;background:#fff;border:1px solid #e3ded2;box-shadow:0 2px 9px #00000008;color:#9b7c3b;font-weight:800;letter-spacing:.02em}
.vehicle-brand-mark img{max-width:45px;max-height:45px;width:100%;height:100%;object-fit:contain}
.vehicle-brand-mark.has-logo{padding:6px}
@media(max-width:600px){.vehicle-brand-display{padding:9px 12px;gap:10px;min-height:70px}.vehicle-brand-display strong{font-size:15px}.vehicle-brand-mark{width:50px;height:50px}.vehicle-brand-mark img{max-width:38px;max-height:38px}}

/* Manufacturer logo assets are delivered with the application, not hotlinked. */
.vehicle-brand-mark{width:76px;min-width:76px;height:76px;background:#fff;border-radius:14px;padding:9px}
.vehicle-brand-mark.has-logo{padding:8px}
.vehicle-brand-mark img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.vehicle-brand-mark.unavailable{font-weight:600;letter-spacing:0;font-size:10px;line-height:1.2;text-align:center;color:#6b7380;padding:8px}
@media(max-width:600px){.vehicle-brand-mark{width:62px;min-width:62px;height:62px}.vehicle-brand-mark img{max-width:100%;max-height:100%}}

/* Standardized UI text hierarchy. Preserve the manufacturer brand names in their own badges. */
#main h1,#main h2,.qa-shell h1,.qa-card h2,.qa-card label,.nav-group button,thead th,label{ text-transform:capitalize; }
.vehicle-brand-display strong{ text-transform:none; }

.branch-host{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:11px 5%;background:#f7f4ec;border-bottom:1px solid #ddcfae;color:#45391e}.branch-host[hidden]{display:none!important}.branch-picker-label{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:700;color:#6e5424}.branch-picker-label select{min-width:210px;width:auto;padding:8px 12px;border:1px solid #bb9a59;background:white}.branch-mini{font-size:12px;color:#7c6a4a}.record-branch-chip{display:inline-block;padding:7px 12px;background:#fbf3e3;border:1px solid #e5d4b8;border-radius:9px;margin:12px 0;font-size:12px;color:#765d2c;font-weight:700}.bank-logo-preview{min-height:60px;border:1px solid #e5d6b8;background:#fcfaf5;padding:12px;border-radius:10px;display:flex;justify-content:center;align-items:center;font-size:13px;color:#77623a}.bank-logo-preview img{max-width:180px;max-height:62px;object-fit:contain}.bank-table-logo{height:26px;max-width:65px;object-fit:contain;vertical-align:middle;margin-right:6px}@media(max-width:600px){.branch-host{padding:10px 4%;justify-content:flex-start;flex-wrap:wrap}.branch-picker-label{width:100%;justify-content:space-between}.branch-picker-label select{min-width:0;max-width:65%}}

.qa-preview-tools{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;padding:8px 14px;background:#f7f2e6;border-bottom:1px solid #e8d8aa}.qa-preview-tools a{font-size:12px;font-weight:750;color:#644717;text-decoration:underline}


/* V2.1 · Company-wide fixed text alignment rule.
   Changes static labels/headings only; users' entered data stays left aligned. */
#main .scroll table thead th,
#main table thead th,
dialog table thead th {
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  color: #263543;
  letter-spacing: .015em;
  text-transform: none;
  white-space: normal;
  overflow-wrap: normal;
  padding: 14px 13px;
}

/* Form labels such as VIN, Brand, Model, Year, Sticker Price, Supplier. */
#editor #fields label,
#main .fields label,
dialog .fields label {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 750;
  color: #293844;
  text-transform: none;
  letter-spacing: .005em;
}

/* Keep typed values and select choices in their natural alignment. */
#editor #fields input,
#editor #fields select,
#editor #fields textarea,
#main .fields input,
#main .fields select,
#main .fields textarea,
dialog .fields input,
dialog .fields select,
dialog .fields textarea {
  text-align: start;
  font-size: 14px;
  font-weight: 500;
}

/* Check-box rows remain readable and naturally aligned. */
#main .fields label:has(input[type="checkbox"],input[type="radio"]),
dialog .fields label:has(input[type="checkbox"],input[type="radio"]) {
  text-align: start;
}

/* Headings on editable pop-ups are fixed text too. */
#editor #editTitle,
dialog > h2,
dialog form > h2 {
  text-align: center;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
  color: #1e2b36;
}

@media (max-width: 700px) {
  #main .scroll table thead th,
  #main table thead th,
  dialog table thead th {font-size: 12.5px;padding: 11px 9px}
  #editor #fields label,
  #main .fields label,
  dialog .fields label {font-size: 13.5px}
}


/* V2.2 — consistent brand visibility and always-visible sign-out control. */
header{height:114px;min-height:114px}
header .main{width:244px;height:94px;max-width:244px;max-height:94px;object-fit:contain;flex-shrink:0}
header .group{width:88px;height:78px;object-fit:contain}
.accountbar{gap:12px;min-height:52px;height:auto;flex-wrap:wrap}
.accountbar .logout-top{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-width:118px;min-height:41px;margin-left:12px;
  padding:9px 16px;border-radius:10px;
  border:1.5px solid #a74d52;background:#fff8f8;color:#9d2832;
  font-size:14px;font-weight:800;letter-spacing:.01em;
}
.accountbar .logout-top:hover{background:#fce6e7;border-color:#9d2832}
.accountbar .logout-top:focus-visible{outline:3px solid #e6b66b;outline-offset:2px}
/* Keep lower sidebar action usable, but don't require scrolling to reach it. */
#nav #logout{border:1px solid #ba7379;background:#342126;color:#f4e9e9;font-weight:780;text-align:center}
#nav #logout:hover{background:#582c32;color:white}
@media(max-width:760px){
  header{height:113px!important;min-height:113px!important;gap:8px!important}
  header .main{width:clamp(110px,29vw,142px)!important;height:78px!important;max-width:none!important;max-height:none!important;flex:0 0 auto!important}
  .accountbar{justify-content:space-between;flex-wrap:nowrap;padding:7px 10px;gap:8px}
  .accountbar .accountinfo{flex:1 1 auto;min-width:0}
  .accountbar .accountname{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .accountbar .accountrole{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .accountbar .logout-top{margin-left:0;min-width:92px;min-height:38px;padding:7px 9px;font-size:12px;flex-shrink:0}
}
@media(max-width:420px){header .main{width:105px!important;height:75px!important}}
@media print {.accountbar .logout-top{display:none!important}}

/* V2.3: automatically calculated cost/profit preview (MD-only editor). */
.auto-profit-panel{grid-column:1/-1;background:#f2f8f3;border:1px solid #b8d6c0;border-left:5px solid #2b8451;border-radius:13px;padding:15px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;margin:5px 0 8px}
.auto-profit-heading{font-size:14px;font-weight:790;color:#304b3b}
.auto-profit-pill{display:inline-block;margin-left:9px;padding:3px 9px;border-radius:30px;background:#e0eee4;color:#266540;font-size:11px;font-weight:760}
.auto-profit-value{font-size:clamp(24px,3.5vw,34px);font-weight:860;line-height:1.25;color:#17683b;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.auto-profit-value.loss{color:#b52f35}
.auto-profit-detail{font-size:13px;font-weight:730;color:#345642}
.auto-profit-note{font-size:12px;color:#66736b;line-height:1.5}
@media(max-width:600px){.auto-profit-panel{padding:13px 10px}.auto-profit-pill{display:block;margin:6px auto 0;width:max-content}}

/* V2.4 — Short Car ID: compact, centered, fixed-width reference column. */
#main table .car-id-col{min-width:72px;max-width:92px;width:82px;text-align:center!important;white-space:nowrap!important;font-variant-numeric:tabular-nums;}
#main table td.car-id-col{font-weight:800;font-size:15px;color:#283746;background:#faf8f2;}
@media(max-width:700px){#main table .car-id-col{min-width:62px;max-width:72px;width:68px}#main table td.car-id-col{font-size:14px}}

/* V2.5 — CRM-integrated customer picker on Sales editor and new Sales Deal. */
.crm-picker-help{display:block;margin-top:7px;color:#596777;font-size:12px;line-height:1.55;font-weight:600;text-align:start}
.crm-intro{background:#f3f7fb;border:1px solid #d6e4f0;color:#32485d;border-radius:12px;padding:12px 14px;margin:14px 0;font-size:13px;line-height:1.65}
.crm-quick-details{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;background:#f9f7f0;border:1px solid #e0d2b9;border-radius:12px;padding:15px;margin:4px 0 8px}
.crm-quick-details[hidden]{display:none!important}
.crm-quick-details button{grid-column:1/-1;background:#253847;color:white;font-weight:750;min-height:43px}
.crm-quick-details button:hover{background:#344b5d;color:white}
#sfCustomerSearch,#editCrmSearch{font-size:15px;min-height:46px;font-weight:600;outline-offset:3px}
@media(max-width:700px){.crm-quick-details{grid-template-columns:1fr;padding:12px}.crm-quick-details button{grid-column:1}.crm-picker-help{font-size:12px}}


/* V2.7 · Manufacturer logo is the default vehicle image until a real cover is uploaded. */
.record-thumb{display:inline-flex;align-items:center;gap:7px;vertical-align:middle;max-width:162px}
.stock-brand-placeholder{width:79px;min-height:70px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:5px;background:#f8f7f3;border:1px solid #e3e1d9;border-radius:10px;text-align:center;flex-shrink:0}
.stock-brand-emblem{display:block;width:64px;height:44px;object-fit:contain}
.stock-brand-placeholder strong{font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.stock-brand-placeholder span{font-size:9px;color:#776b56;line-height:1.1;font-weight:700}
.thumb-add-photo{font-size:10px;min-height:29px;padding:4px 7px;border:1px solid #dcccae;border-radius:7px;white-space:nowrap}
.md-stock-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.md-stock-tile{display:flex;gap:10px;align-items:center;min-width:0;padding:10px;border:1px solid #e8e6e0;border-radius:13px;background:white}
.md-stock-image{height:84px;min-width:95px;max-width:95px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#f9f8f4}
.md-stock-image .stock-brand-placeholder{width:95px;min-height:80px;border:none;background:transparent}
.md-stock-image .stock-brand-emblem{width:76px;height:55px}
.md-stock-real-photo{width:95px;height:84px;object-fit:contain}
.md-stock-tile>div:last-child{min-width:0;overflow-wrap:anywhere}
.md-stock-tile strong{display:block;font-size:12px;line-height:1.4}
.md-stock-tile small{display:block;margin-top:3px;color:#64717d;font-size:10px}
@media(max-width:1250px){.md-stock-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.md-stock-preview{grid-template-columns:1fr}}
@media print{.stock-brand-placeholder{print-color-adjust:exact}}


/* V2.7 · Private customer documents UI; works on iPhone, Android and desktop. */
.customer-documents-dialog{width:min(980px,95vw);max-width:980px;max-height:94dvh;overflow:auto;padding:clamp(16px,3vw,26px)}
.customer-documents-dialog h2{text-align:center;font-size:24px;font-weight:850;margin:5px 0 9px}
.customer-documents-dialog>p{text-align:center}
.customer-docs-notice{padding:13px 16px;background:#fff5e5;border:1px solid #ddc297;border-radius:12px;color:#6d4f22;font-size:13px;line-height:1.7}
.customer-docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0}
.customer-document-card{border:1px solid #dee5ed;border-radius:13px;background:#fcfdfe;padding:15px;display:flex;flex-direction:column;gap:6px;min-width:0}
.customer-document-card>strong{font-size:17px;font-weight:830;text-align:center;color:#253442}
.customer-document-card>small{text-align:center;color:#6b7886;font-size:12px}
.customer-docs-current{text-align:center;font-size:12px;margin:4px 0;min-height:22px;color:#506977}
.customer-docs-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.customer-docs-upload{position:relative;display:flex;justify-content:center;align-items:center;min-height:49px;border-radius:10px;background:#203c51;color:white;border:1px solid #203c51;cursor:pointer;font-weight:750;font-size:13px;overflow:hidden;text-align:center;padding:8px}
.customer-docs-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;min-height:0;padding:0}
.customer-docs-upload:has(input:disabled){opacity:.35;cursor:not-allowed}
.customer-docs-view{background:white;border:1px solid #cfdae4;font-size:13px;font-weight:750}
.customer-docs-status{font-size:13px;color:#315e44;overflow-wrap:anywhere;min-height:22px}
.customer-doc-preview{width:min(1050px,95vw);max-height:96dvh;overflow:auto;text-align:center;padding:17px}
.customer-doc-preview-content{width:100%;height:min(70dvh,850px);max-height:75dvh;object-fit:contain;border:1px solid #e7ebf0;border-radius:8px;background:white}
.customer-doc-preview>a,.customer-doc-preview>button{display:inline-block;margin:8px;padding:9px 13px}
.customer-documents-editor-link,.crm-doc-shortcut{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:12px;border:1px solid #d2e2ed;border-radius:11px;background:#f4f8fc}
.customer-documents-editor-link button,.crm-doc-shortcut button{background:#263f54;border-color:#263f54;color:white;font-size:13px;font-weight:800}
.customer-documents-editor-link small,.crm-doc-shortcut small{color:#5b6f7d;font-size:12px}
@media(max-width:700px){.customer-docs-grid{grid-template-columns:1fr;gap:10px}.customer-documents-dialog{padding:15px}.customer-document-card{padding:12px}.customer-documents-dialog h2{font-size:20px}.customer-docs-upload{min-height:54px}}

/* V2.8 Employee invitations */
.employee-invite-dialog{max-width:650px}.employee-invite-fields{display:grid;gap:16px;margin-top:20px}.employee-invite-fields label{font-size:14px;font-weight:750;text-align:left}.employee-invite-fields input,.employee-invite-fields select{font-size:16px;margin-top:7px}.employee-invite-role{border:1px solid #dec9a4;background:#fbf6eb;padding:16px;border-radius:12px;line-height:1.65;font-weight:700;color:#594527}.employee-invite-fields .bar{margin-top:7px}.employee-invite-fields #employeeInviteStatus{min-height:25px;font-size:13px;font-weight:700;}


/* V2.9 · MD-led onboarding: clear, bilingual steps and distinct invite actions. */
.staff-onboarding-panel{margin:18px 0 23px!important;padding:22px!important;border:1px solid #dfd7c9!important;border-radius:17px!important;background:#fffdfa!important;box-shadow:0 7px 20px #24313b08!important}
.staff-onboarding-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.staff-onboarding-head h2{margin:0!important;font-size:20px!important;color:#1b2937}
.staff-onboarding-head span{font-size:12px;color:#967845;font-weight:750;border:1px solid #e1ceac;border-radius:10px;padding:6px 10px;background:#faf2e5}
.staff-intro{font-size:14px;line-height:1.7;color:#4b5a65;margin:0 0 19px}
.staff-onboard-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.staff-onboard-card{background:#fff;border:1px solid #e2e6ea;border-radius:13px;padding:18px;min-width:0}
.staff-card-top{display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.staff-card-top strong{font-size:17px;color:#172533}
.staff-onboard-card p{margin:9px 0;font-size:13px;color:#46525d;line-height:1.5;overflow-wrap:anywhere}
.staff-onboard-card p.staff-email{font-size:13px;font-weight:750;color:#1c4665}
.staff-status{font-size:11px;font-weight:800;border-radius:20px;padding:6px 9px;white-space:normal}
.staff-status.registered{background:#e9f3ee;color:#1e6847}
.staff-status.pending{background:#fcf2e4;color:#8a5a17}
.staff-invite-action{display:block;min-height:45px;font-weight:760;font-size:14px;margin-top:14px}
.staff-hint{display:block;font-size:12px;line-height:1.6;color:#6b4d30;margin-top:14px}
.staff-guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:17px}
.staff-guide-steps>div{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:#2b3945;line-height:1.55;background:#f6f7f9;border:1px solid #e8ebef;border-radius:12px;padding:12px}
.staff-guide-steps>div>b{flex:none;width:25px;height:25px;display:grid;place-items:center;background:#18232d;color:#fff;border-radius:50%}
.staff-small-note{font-size:12px;line-height:1.65;color:#6d7379;margin:15px 0 0}
@media(max-width:850px){.staff-onboard-cards{grid-template-columns:1fr}.staff-guide-steps{grid-template-columns:1fr}}

/* V2.9.1 · Reliable, always-visible employee management access for MD. */
@media (min-width: 761px) {
  #nav { overflow-y:scroll!important; scrollbar-width:auto!important; overscroll-behavior:contain; }
  #nav .nav-group { flex-shrink:0!important; }
  #nav .nav-group > div { flex-shrink:0!important; }
}
#nav #mdEmployeesQuick { font-weight:800!important; color:#ffebc6!important; background:#3b3022!important;
  border:1px solid #b89554!important; border-radius:9px!important; margin-top:5px!important;
  display:block!important; }
#nav #mdEmployeesQuick:hover { background:#4a3b29!important; }
#main .quick-actions button[data-quick="Employees"] { background:#fff9ee!important; border:2px solid #b89554!important;
  font-weight:800!important; color:#253544!important; }


/* V2.9.3 | High-visibility logout controls, desktop and mobile.
   Keep the button conspicuous and accessible on all themes. */
.accountbar button#logoutTop.logout-top,
.accountbar .logout-top {
  background:#cf1525!important;
  color:#ffffff!important;
  border:2px solid #b90c1d!important;
  font-weight:850!important;
  box-shadow:0 2px 8px rgba(166,0,18,.25)!important;
  opacity:1!important;
  -webkit-text-fill-color:#fff;
  text-shadow:none;
}
.accountbar button#logoutTop.logout-top:hover,
.accountbar .logout-top:hover {
  background:#ad0818!important;
  border-color:#860514!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(136,0,13,.30)!important;
}
.accountbar .logout-top:active {background:#920010!important; transform:translateY(1px)}
.accountbar .logout-top:focus-visible {outline:3px solid #ffad73!important;outline-offset:3px!important}
#nav button#logout {
  background:#c91425!important;
  border:2px solid #ed5261!important;
  color:#ffffff!important;
  font-weight:850!important;
  opacity:1!important;
}
#nav button#logout:hover {background:#aa0819!important;border-color:#ff7b84!important}
@media print {#logoutTop, #nav #logout {display:none!important}}

/* V3.0 - consistent copyright & accessible booking and insurance controls */
.ama-copyright-footer{padding:18px 12px 24px;text-align:center;font-size:12px;color:#575757;background:#f4f5f7;border-top:1px solid #dce0e4;font-weight:600;letter-spacing:.02em}
.sales-insurance{margin:18px 0;padding:18px;border:1px solid #c6b28a;border-radius:12px;background:#fffdfa}.sales-insurance legend{padding:0 8px;font-weight:700;color:#685129}.sales-insurance input[readonly]{background:#f4f6f8;font-weight:700}.notice:has(#sfOverrideReason){border:2px solid #d47724;background:#fff6ec}.notice:has(#sfOverrideReason)[hidden]{display:none}.sales-insurance [hidden]{display:none!important}
@media print{.ama-copyright-footer{display:block;position:fixed;bottom:0;left:0;right:0;color:#333;background:white;font-size:9pt;padding:7px;border-top:1px solid #bbb}}

.booking-audit-panel{margin-top:28px}.booking-audit-panel .scroll{max-width:100%;overflow-x:auto}.booking-audit-panel td{white-space:normal;min-width:100px}.booking-audit-panel td:nth-child(4){min-width:230px;max-width:460px;text-align:left}

/* V3.1  – sales finance sections, native share confirmation */
#sfFinance{grid-column:1/-1;padding:16px;margin:14px 0;border-radius:11px;border:2px solid #c5aa6b;background:#fffdf7;box-sizing:border-box;width:100%}
#sfFinance[hidden],#sfShareBooking[hidden]{display:none!important}
#sfFinance h3{margin-top:0;color:#513c21}
.finance-provider-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0;font-size:14px;border:1px solid #e3dbcc;background:#fff;padding:10px;border-radius:8px}
.finance-provider-brand img{max-width:115px;max-height:54px;object-fit:contain}
.finance-provider-brand span{color:#555;font-size:12px}
.finance-provider-monogram{font-size:22px;display:inline-flex;align-items:center;justify-content:center;background:#333;color:white;min-width:50px;min-height:43px;border-radius:8px}

/* V3.2 customer additional services */
.sales-customer-addons{margin:17px 0;border:1px solid #c8af70;border-radius:12px;padding:18px;background:#fffdf8;}
.sales-customer-addons legend{font-size:18px;font-weight:800;padding:0 10px;}
.customer-addon-list{display:grid;gap:12px;margin:12px 0;}
.customer-addon-row{border:1px solid #dce1e7;border-radius:10px;padding:12px;background:#fff;}
.customer-addon-row .addon-select{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;justify-content:flex-start;}
.customer-addon-row [data-addon-select]{width:23px;height:23px;min-width:23px;cursor:pointer;}
.addon-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:12px;}
.addon-details label{font-size:14px;font-weight:700;}
.addon-details input,.addon-details select{font-size:16px;}
.addon-details[hidden],.addon-details label[hidden]{display:none!important;}
.addon-total{border-radius:9px;background:#f4f5f7;padding:14px;line-height:1.55;margin:12px 0;}
@media(max-width:650px){.sales-customer-addons{padding:12px}.addon-details{grid-template-columns:1fr}}

/* V3.3 Customer Garage + After-Sales */
.aftersales-intro{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:12px;padding:16px;border:1px solid #d8d6d0;border-radius:12px;background:#fafaf7;margin:16px 0;}
.aftersales-intro label{font-weight:700;display:grid;gap:7px}.aftersales-intro select{font-size:16px;padding:11px;width:100%;}
.aftersales-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0;}.aftersales-stats>div{display:flex;flex-direction:column;gap:8px;padding:15px;border:1px solid #d9dce1;border-radius:12px;background:#fff;}.aftersales-stats strong{font-size:22px;color:#202a32;}
.aftersales-list{display:grid;gap:12px;margin:14px 0 25px;}.aftersales-card{padding:16px;border:1px solid #d8dce2;border-radius:12px;background:white;box-shadow:0 1px 3px #0000000b;}.aftersales-card p{margin:7px 0;line-height:1.45;}.aftersales-card .bar{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap;}.aftersales-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;}.as-pill{font-size:12px;font-weight:700;padding:4px 9px;border-radius:999px;background:#edf1f5;color:#28313d;}
.aftersales-payment-note{padding:18px;border:1px solid #cab47d;background:#fffcf4;border-radius:12px;margin:20px 0}.aftersales-modal{width:min(760px,95vw);max-height:88vh;overflow:auto;border:1px solid #c8cdd6;border-radius:16px;padding:25px;background:white;color:#242424}.aftersales-modal::backdrop{background:#0009}.aftersales-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:16px}.aftersales-fields label{display:grid;gap:6px;font-weight:700}.aftersales-fields input,.aftersales-fields select,.aftersales-fields textarea{width:100%;min-width:0;font-size:16px;padding:10px;border:1px solid #c6ced7;border-radius:8px}.aftersales-fields .as-wide{grid-column:1/-1}.aftersales-modal [hidden]{display:none!important}.as-copyright{text-align:center;margin-top:20px}
@media(max-width:720px){.aftersales-intro{grid-template-columns:1fr}.aftersales-stats{grid-template-columns:1fr}.aftersales-fields{grid-template-columns:1fr}.aftersales-fields .as-wide{grid-column:auto}.aftersales-modal{padding:12px}}

/* V3.4 Customer Service QR and public-service notification */
.customer-service-qrs{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:13px;margin:16px 0}
.service-qr-card{border:1px solid #ddd;border-radius:14px;background:#fff;padding:14px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.service-qr-card strong{font-size:13px}.service-qr-card img{width:100%;max-width:180px;aspect-ratio:1;object-fit:contain}
.service-qr-card a,.service-qr-card button{font-size:13px}
.after-sales-public-inbox{margin:0 0 26px;border:1px solid #e2e3e4;background:#fbfbfc;border-radius:14px;padding:19px}
.as-inbox-bar{display:flex;gap:15px;justify-content:space-between;align-items:center;margin:14px 0;font-size:13px}
.as-info{font-size:13px;color:#4f5964}.as-service-details{white-space:pre-wrap;overflow-wrap:anywhere}
#amaPublicServiceAlert{position:fixed;bottom:20px;right:20px;z-index:999;background:#8c281f;color:white;font-weight:800;padding:14px 18px;border:2px solid white;border-radius:14px;box-shadow:0 5px 22px #0003;cursor:pointer;max-width:260px}
#amaPublicServiceAlert[hidden]{display:none!important}
@media(max-width:650px){.customer-service-qrs{grid-template-columns:1fr 1fr}.after-sales-public-inbox{padding:13px}#amaPublicServiceAlert{bottom:16px;right:12px;font-size:12px}}
@media print{#amaPublicServiceAlert{display:none!important}}

/* V3.5 — Public after-sales QR sharing, signed-in users only. */
#shareAfterSalesQRTop.public-service-qr-global{background:#fff8e9;color:#5a431f;border:1px solid #c3a267;font-size:12px;font-weight:750;padding:5px 12px;min-height:32px;white-space:nowrap;flex-shrink:0}
#shareAfterSalesQRTop.public-service-qr-global:hover{background:#f7ecd2}
.public-qr-share-dialog{width:min(920px,96vw);max-height:92dvh;padding:23px;border-radius:18px;}
.public-qr-share-dialog h2{font-size:21px;margin:0 0 9px;}
.public-qr-share-dialog .service-qr-card{min-width:0;}
.public-qr-share-dialog .public-qr-share-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%}
.public-qr-share-dialog .public-qr-share-actions a{font-size:13px;text-align:center;padding:9px 7px;border:1px solid #bfa678;border-radius:9px;color:#203246;text-decoration:none}
.public-qr-share-dialog .public-qr-share-actions button{white-space:normal;font-size:12px;padding:8px;}
.public-qr-terms{font-size:12px;line-height:1.5;background:#f9f6ef;border-radius:9px;padding:12px 15px;color:#534528}
@media(max-width:760px){.accountbar{height:auto!important;min-height:48px!important;overflow:visible!important;flex-wrap:wrap;gap:7px!important}.accountinfo{flex:1 1 135px}.public-qr-share-dialog .customer-service-qrs{grid-template-columns:1fr!important}.public-qr-share-dialog .service-qr-card img{width:min(100%,220px)}#shareAfterSalesQRTop{order:3}}
@media print{#shareAfterSalesQRTop{display:none!important}}

/* V3.6 – verified bank transfer form actions */
.bank-share-row{border:1px solid #aa925d!important;background:#162330!important;color:#fff!important;font-weight:700!important}
.ama-bank-share-picker{border:1px solid #d5c4a4;border-radius:16px;box-shadow:0 18px 90px #15192340;min-width:min(90vw,430px);max-width:95vw;padding:24px;color:#192331}
.ama-bank-share-picker::backdrop{background:#151923a8}
.ama-bank-share-picker h2{margin:0 0 8px}
.ama-bank-share-options{display:grid;gap:10px;margin:18px 0}
.ama-bank-picker-choice{width:100%;text-align:left;padding:15px 18px;border:1px solid #ccba94;border-radius:10px;background:#f9f8f5;color:#1a2735;font-weight:700;cursor:pointer}
.ama-bank-picker-choice:hover{background:#e9dfc8}
.ama-bank-picker-close{border:1px solid #ccd3db;background:#fff;border-radius:9px;padding:10px 18px}

/* V3.7: Same-page PDF sharing - no pop-up windows, Safari-safe */
.ama-bank-pdf-dialog{padding:0;border:1px solid #c9b58a;border-radius:15px;width:min(96vw,880px);max-width:96vw;max-height:94vh;overflow:auto;background:#f2f4f6;color:#1b2733;box-shadow:0 24px 90px #06101e66}
.ama-bank-pdf-dialog::backdrop{background:#07121ec7}
.ama-bank-pdf-header{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#141f2a;color:#fff;padding:14px 20px;position:sticky;top:0;z-index:20}
.ama-bank-pdf-header h2{margin:0;font-size:20px;color:#fff}
.ama-bank-pdf-header button{background:#fff;color:#1b2733;border-radius:8px}
.ama-bank-pdf-actions{display:flex;flex-wrap:wrap;gap:9px;padding:10px 14px;background:white;position:sticky;top:58px;z-index:19;border-bottom:1px solid #e3e6e9}
.ama-bank-pdf-actions button{min-height:38px;white-space:normal;flex:1 1 138px;border-radius:8px}
.ama-bank-pdf-actions button.primary{background:#172636;color:white;border-color:#172636}
.ama-bank-pdf-dialog #bankStatus{margin:0;padding:10px 15px;font-size:13px;color:#4d5f70}
.ama-bank-pdf-pages{padding:8px 18px 28px}
.ama-bank-pdf-dialog .bank-pdf-page{width:min(100%,750px);display:block;margin:15px auto;background:#fff;box-shadow:0 3px 18px #07121e33;border:1px solid #e6e6e6}
@media print{
  html body > *:not(.ama-bank-pdf-dialog){display:none!important}
  body:after{display:none!important;content:none!important}
  body{margin:0!important;background:#fff!important}
  .ama-bank-pdf-dialog{display:block!important;position:static!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;max-width:100%!important;max-height:none!important;width:100%!important;box-shadow:none!important;overflow:visible!important}
  .ama-bank-pdf-header,.ama-bank-pdf-actions,.ama-bank-pdf-dialog #bankStatus{display:none!important}
  .ama-bank-pdf-pages{padding:0!important;margin:0!important}
  .ama-bank-pdf-dialog .bank-pdf-page{display:block!important;width:210mm!important;height:297mm!important;margin:0!important;border:0!important;box-shadow:none!important;page-break-after:always;break-after:page}
  .ama-bank-pdf-dialog .bank-pdf-page:last-child{page-break-after:auto;break-after:auto}
}

/* V3.8 date display convention: DD/MM/YYYY across staff screens and customer documents. */

/* V3.9 Service Job Orders & payment brand marks */
.ama-job-modal{width:min(980px,96vw);max-height:94vh;overflow:auto;padding:23px;background:#fff;border:1px solid #b9a16c}
.ama-job-modal h2{margin-top:6px}.ama-job-modal h3{margin:26px 0 9px;border-bottom:1px solid #dad7cd;padding-bottom:7px;color:#26323c}
.ama-job-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ama-job-fields .full{grid-column:1/-1}.ama-job-fields label{min-width:0}
.ama-job-status{background:#faf6ed;padding:12px;border-left:4px solid #b2995d;margin:12px 0}
.ama-job-method-logos{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0;align-items:center}
.ama-job-logo{display:flex;align-items:center;gap:8px;border:1px solid #ddd6c6;padding:8px 12px;border-radius:10px;min-height:51px;background:#fff;font-weight:700}
.ama-job-logo img{display:block;width:45px;height:27px;object-fit:contain}
.ama-job-logo.is-selected{border:2px solid #b2995d;box-shadow:0 0 0 2px #f9eed4}
.ama-job-logo.visa{color:#164c9a}.ama-job-logo.mastercard{color:#262626}.ama-job-logo.instapay{color:#522d89}
.ama-job-logo.instapay img{width:29px;height:29px;border-radius:6px}
.ama-job-doc-preview{border:1px solid #eee;padding:15px;border-radius:9px;background:#f9f8f3;overflow-wrap:anywhere}
.ama-job-doc-preview img{display:block;max-width:100%;max-height:65vh;margin:auto;border:1px solid #dedede}
.ama-job-bar{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.ama-job-info{font-size:13px;color:#636c77}
@media(max-width:600px){.ama-job-fields{grid-template-columns:1fr}.ama-job-modal{padding:13px}}

/* AMA V4.0: After-Sales payment QR and fast manager handover. */
.ama-job-main-action{background:#181f29!important;color:#f7df9f!important;border:1px solid #b89b64!important;font-weight:700!important}
.ama-job-instapay-panel{display:flex;align-items:center;gap:19px;padding:16px;border:1px solid #d0bd8f;border-radius:12px;background:#fdfaf2;flex-wrap:wrap}
.ama-job-instapay-panel[hidden]{display:none!important}
.ama-job-instapay-panel img{width:158px;height:158px;object-fit:contain;image-rendering:auto;background:white;border:1px solid #ddd;border-radius:8px}
.ama-job-instapay-panel div{flex:1;min-width:220px}
.ama-job-instapay-panel strong{font-size:16px;color:#272727}
.ama-job-instapay-panel p{line-height:1.48;font-size:13px;color:#574c37}
.ama-job-preview-controls{display:flex;align-items:center;gap:14px;justify-content:center;margin:14px 0}
.ama-job-preview-controls button{padding:8px 12px}
.ama-job-preview-controls span{font-weight:700;font-size:13px}
@media(max-width:600px){.ama-job-instapay-panel img{width:145px;height:145px}}

/* V4.1: Unified after-sales job order and manual payment verification */
.ama-job-modal .ama-job-main-action{font-weight:700;background:#f2e6d2;border-color:#b99b63}

.ama-job-form-check{display:flex;gap:11px;align-items:center;background:#faf6ea;border:1px solid #e4cf9f;padding:12px;border-radius:9px}.ama-job-form-check input[type=checkbox]{width:18px;height:18px;min-width:18px}

/* V4.2 — verified management-designated After-Sales collection QR and direct email controls */
.ama-after-sales-insta-active{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;padding:14px;border:1px solid #d7e2d3;border-radius:12px;background:#fafcfb;}
.ama-after-sales-insta-active>img{border:1px solid #d5d5d5;border-radius:8px;background:white;padding:4px;}
.ama-after-sales-insta-active>div{max-width:560px;flex:1;min-width:220px;}
.ama-after-sales-insta-active img[alt="InstaPay Egypt payment mark"]{display:block;width:180px;max-width:100%;height:auto;margin-bottom:4px;}
.ama-after-sales-insta-active a{color:#006f4b;text-decoration:underline;font-weight:700;display:inline-block;margin:8px 0;}
.ama-job-bar button[id^="amaJobPdfEmail"]{border-color:#b69d67;background:#1f3634;color:white;font-weight:650;}
.ama-job-bar button[id^="amaJobPdfEmail"]:disabled{opacity:.4;}

/* V4.3: one clearly branded InstaPay QR; no duplicate payment flyer. */
.ama-after-sales-insta-active{display:grid;grid-template-columns:210px minmax(0,1fr);gap:25px;align-items:center;border:1px solid #e4dcea;background:#fff;border-radius:16px;padding:22px 25px;box-shadow:0 3px 12px rgba(23,22,37,.045);margin-top:18px;}
.ama-as-insta-scan{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;padding:10px 8px;border:1px solid #e6e2eb;background:#fff;border-radius:12px;}
.ama-as-insta-scan>img{display:block;width:192px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;border:0;border-radius:0;padding:0;margin:0;image-rendering:auto;}
.ama-as-insta-scan>span{font-weight:800;letter-spacing:1.3px;color:#685478;font-size:11px;}
.ama-as-insta-details{min-width:0;flex:auto;max-width:none;}
.ama-as-insta-heading{display:flex;align-items:center;justify-content:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:10px;}
.ama-as-insta-heading>img{display:block;width:212px;max-width:100%;height:60px;object-fit:contain;}
.ama-as-insta-status{font-size:11px;font-weight:800;letter-spacing:.7px;border-radius:100px;color:#23624d;background:#e9f7ee;padding:7px 12px;white-space:nowrap;}
.ama-as-insta-status span{font-size:11px;color:#239d64;}
.ama-as-insta-details h4{margin:4px 0 9px;font-size:21px;font-weight:750;color:#191d29;}
.ama-as-insta-details p{font-size:14px;line-height:1.6;color:#505563;margin:0 0 16px;}
.ama-as-insta-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin:8px 0 12px;}
.ama-after-sales-insta-active .ama-as-insta-actions a{font-size:13px;font-weight:800;text-decoration:none;background:#633c88;color:#fff;border-radius:9px;padding:11px 16px;margin:0;display:inline-flex;min-height:42px;align-items:center;}
.ama-after-sales-insta-active .ama-as-insta-actions a:hover{background:#4b2b70;}
.ama-after-sales-insta-active .ama-as-insta-actions button{background:#fff;border:1px solid #ccc5d6;color:#4e395f;border-radius:9px;padding:11px 16px;font-weight:700;min-height:42px;}
.ama-as-insta-details .ama-as-insta-disclaimer{font-size:12px;color:#686b75;margin:8px 0 0;}
@media(max-width:750px){.ama-after-sales-insta-active{grid-template-columns:1fr;gap:16px;padding:17px;}.ama-as-insta-scan{max-width:224px;align-self:center;justify-self:center;}.ama-as-insta-details h4{font-size:18px}.ama-as-insta-heading{gap:10px}}


/* V4.4 – default pickup/drop-off synchronization and prominent inline share flow */
.ama-job-synced-address{background:#f3f6f3!important;border-color:#b9ccb9!important;color:#354638!important;cursor:default;}
.ama-job-editor-actions{position:sticky;bottom:-23px;z-index:3;background:#fffdf8;padding:11px 8px;border-top:2px solid #b99b63;box-shadow:0 -3px 14px rgba(30,30,30,.07);}
.ama-job-editor-actions [data-job-action="share"],.ama-job-share-actions #amaJobPdfShare{background:#136b4d;color:#fff;border-color:#136b4d;font-weight:750;}
.ama-job-share-actions{position:sticky;top:0;z-index:4;background:#fff;padding:11px 7px;border-bottom:1px solid #d5d0c5;}
.ama-job-quick-share{display:block;margin:10px 0 18px;background:#14694e;color:white;font-weight:750;}
@media(max-width:650px){.ama-job-editor-actions button,.ama-job-share-actions button{flex:1 1 100%;}}

/* V4.17 — make navigation headings real interactive disclosures. */
#nav .nav-group>.ama-nav-section-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:42px!important;border:1px solid #3a4651!important;border-radius:8px!important;background:#222b34!important;color:#f7e3b1!important;padding:10px 12px!important;text-align:left!important;font-size:12px!important;font-weight:800!important;letter-spacing:.05em!important;cursor:pointer!important;}
#nav .nav-group>.ama-nav-section-toggle:hover,#nav .nav-group>.ama-nav-section-toggle:focus-visible{background:#35414c!important;border-color:#d3b376!important;outline:2px solid #d3b376;outline-offset:1px}
#nav .ama-nav-chevron{display:inline-block;transition:transform .15s ease;font-size:17px;color:#e9c67f}
#nav .ama-nav-section-toggle[aria-expanded="false"] .ama-nav-chevron{transform:rotate(-90deg)}
#nav .ama-nav-group-items[hidden]{display:none!important}
#nav #mdBookingsQuick,#nav .ama-reservation-direct-link{background:#24452f!important;color:#fff!important;border:1px solid #63a77b!important;font-weight:850!important;padding:12px!important;}
#nav #mdBookingsQuick:hover{background:#326442!important}
#accountbar #amaManageBookingsTop{display:inline-flex;align-items:center;justify-content:center;background:#145f39!important;border:1px solid #0e492b!important;border-radius:9px!important;color:white!important;padding:10px 15px!important;min-height:42px!important;font-size:13px!important;font-weight:850!important;line-height:1.45!important;box-shadow:0 2px 8px #11352426!important;margin:0 7px!important;}
#accountbar #amaManageBookingsTop:hover{background:#0d4729!important}
#accountbar #amaManageBookingsTop[hidden]{display:none!important}
.ama-booking-manager{border:1px solid #bfd2c1!important;background:#fff!important;margin:0 0 19px!important;padding:18px!important}
.ama-booking-manager-heading h2{margin:0!important;font-size:19px!important;line-height:1.5!important;text-align:left!important}
.ama-booking-manager-heading p{color:#65766b;font-size:13px;line-height:1.65;margin:5px 0 14px}
.ama-booking-manage-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border:1px solid #e1e7e2;border-radius:11px;margin:10px 0;padding:14px 16px;background:#fbfdfb}
.ama-booking-manage-info{min-width:220px;flex:1}.ama-booking-manage-info strong{font-size:15px;line-height:1.5;display:block}
.ama-booking-manage-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:#55645b;font-size:12px;margin-top:6px;line-height:1.5}
.ama-booking-manage-meta>span{background:#f1f4f2;padding:5px 8px;border-radius:6px}
.ama-booking-manage-meta .ama-booking-active{color:#ae1d27;background:#ffe4e5;font-weight:800}
.ama-booking-manager button.ama-cancel-booking-visible{background:#a3212d!important;color:#fff!important;border:1px solid #8b1823!important;border-radius:9px!important;min-height:45px!important;font-size:13px!important;font-weight:800!important;padding:10px 16px!important;flex-shrink:0!important;}
.ama-booking-manager button.ama-cancel-booking-visible:hover{background:#81131f!important}
.ama-booking-manager button.ama-clear-booking-filter{padding:10px 15px;background:#fff;border:1px solid #b9c4bd;color:#143b29;font-weight:750;margin-top:10px}
.ama-booking-empty{background:#f6f7f6;border-radius:8px;padding:15px;color:#59665b}
button.ama-open-booking{background:#1c5e46!important;color:#fff!important;font-weight:750!important;border-radius:7px!important;white-space:nowrap}
@media(max-width:760px){#accountbar #amaManageBookingsTop{width:auto!important;margin:0!important;max-width:100%!important;padding:9px 10px!important;font-size:11px!important}.ama-booking-manage-row{align-items:stretch;gap:12px}.ama-booking-manager button.ama-cancel-booking-visible{width:100%}}
@media print{#accountbar #amaManageBookingsTop,.ama-booking-manager{display:none!important}}

/* V4.19 After-Sales Multi-Route — responsive, readable separate stops */
.ama-job-route-stops{display:grid;gap:13px;min-width:0}
.ama-job-route-stop{background:#faf8f3;border:1px solid #d9c6a0;border-radius:12px;padding:15px;min-width:0}
.ama-job-route-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #e9dfce;margin-bottom:13px}
.ama-job-route-number{color:#26323c;font-size:15px}
.ama-job-route-arrows{display:flex;flex-wrap:wrap;gap:7px}
.ama-job-route-arrows button{width:auto!important;min-height:36px;padding:6px 12px;font-weight:650}
.ama-job-route-arrows .ama-job-route-remove{border-color:#a8323b;color:#a8323b}
.ama-job-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ama-job-route-grid .full{grid-column:1/-1}
.ama-job-route-grid label{min-width:0;overflow-wrap:break-word;line-height:1.5}
.ama-job-route-grid :is(input,textarea,select){width:100%;min-width:0;max-width:100%;margin-top:6px}
#amaJobAddRouteStop{width:auto;font-weight:700;background:#f3e9d7;border:1px solid #ab915e}
@media(max-width:640px){.ama-job-route-grid{grid-template-columns:1fr}.ama-job-route-grid .full{grid-column:1}.ama-job-route-stop{padding:12px}.ama-job-route-arrows{width:100%}}

/* V4.19 live date sequence guidance */
.ama-job-date-help{border-radius:8px;background:#f1f5f7;border:1px solid #dae3e7;color:#324553;padding:11px 14px;line-height:1.65;font-size:13px}
.ama-job-date-warning{border-radius:8px;background:#fff0f1;border:1px solid #b63040;color:#8e1724;padding:12px 14px;line-height:1.7;font-size:13px;font-weight:750}
.ama-job-date-warning[hidden]{display:none!important}
.ama-job-modal input[aria-invalid="true"]{border:2px solid #b63040;box-shadow:0 0 0 2px rgba(182,48,64,.08)}

/* V4.42 — Colored payment marks; correct intrinsic proportion on desktop, mobile and print. */
.ama-job-method-logos{align-items:stretch;gap:10px}
.ama-job-logo{flex:0 1 auto;min-width:145px;max-width:100%;gap:8px;white-space:normal;align-items:center;justify-content:flex-start}
.ama-job-logo img{display:block;flex:none;object-fit:contain!important;object-position:center!important;max-width:132px!important;max-height:55px!important;width:auto!important;height:42px!important;aspect-ratio:auto!important;overflow:visible}
.ama-job-logo.visa img{width:66px!important;height:38px!important}
.ama-job-logo.mastercard img{width:92px!important;height:50px!important}
.ama-job-logo.instapay img{width:108px!important;height:35px!important;border-radius:0!important}
.ama-job-logo>span{font-size:12px;font-weight:700}
.ama-job-logo.is-selected{border:2px solid #159447;box-shadow:0 0 0 2px #d5f6df;background:#f8fff9}
.ama-job-method-logos>small{flex-basis:100%;color:#666}
@media(max-width:600px){.ama-job-logo{min-width:unset;width:calc(50% - 7px);min-height:62px}.ama-job-logo img{max-width:85px!important}.ama-job-logo.mastercard img{width:72px!important}.ama-job-logo.visa img{width:58px!important}}
@media print{.ama-job-logo img{object-fit:contain!important;max-width:100%!important;max-height:55px!important}}

.ama-job-logo{cursor:pointer;text-align:left;color:#26323c;background:#fff}
.ama-job-logo:focus-visible{outline:3px solid #267acc;outline-offset:2px}
.ama-job-logo:hover{border-color:#159447}
.ama-job-logo.instapay{color:#552380}.ama-job-logo.visa{color:#1434cb}.ama-job-logo.mastercard{color:#202020}

/* V4.44 — original payment logos supplied by the customer. No image stretching. */
.ama-job-logo img,.ama-as-insta-heading>img{object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important}
.ama-as-insta-heading>img{width:212px!important;max-width:100%!important;height:62px!important}
@media print {.ama-job-logo img,.ama-as-insta-heading>img{object-fit:contain!important;max-height:60px!important}}
