/* Review surface keeps the actual message prominent; the spreadsheet lives in its modal. */
#editor.mail-preview-first .review-grid{display:block!important;grid-template-columns:minmax(0,1fr)!important}#editor.mail-preview-first .review-edit-panel{display:none!important}#editor.mail-preview-first .review-preview-panel{width:100%!important;max-width:none!important}#editor.mail-preview-first .preview-shell{max-height:none!important;min-height:220px;overflow:auto!important}#editor.mail-preview-first .du-preview{max-height:none!important;overflow:auto!important;padding:14px!important}#editor.mail-preview-first .mail-body-preview{white-space:pre-wrap;font:14px/1.7 Arial,sans-serif;padding:18px 18px 8px;color:#1f2937}#editor.mail-preview-first .review-meta textarea{min-height:100px}#editor.mail-preview-first .review-data-toolbar{margin-top:14px}
#dealerWorkspace .ux-brand-item{justify-content:flex-start!important;text-align:left!important;padding-left:43px!important;min-height:36px;display:flex!important;align-items:center!important;gap:8px!important}#dealerWorkspace .ux-brand-item>.ux-brand-mark{left:10px!important;top:50%!important;transform:translateY(-50%);width:23px!important;height:23px!important}#dealerWorkspace .ux-brand-item strong{margin:0!important;text-align:left!important;flex:1;min-width:0}
dialog.mail-table-dialog{position:fixed!important;inset:12px!important;margin:auto!important;width:calc(100vw - 24px)!important;max-width:none!important;height:calc(100vh - 24px)!important;max-height:none!important;border:1px solid #cbd5e1!important;border-radius:12px!important;padding:0!important;color:#24344c;background:white;box-sizing:border-box!important}dialog.mail-table-dialog[open]{display:flex!important;flex-direction:column!important}dialog.mail-table-dialog::backdrop{background:#17243d99}.mail-table-dialog>header,.mail-table-dialog>footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 22px;background:#f8fafc;flex-shrink:0}.mail-table-dialog h2{margin:0;font-size:19px}.mail-table-dialog p{font-size:12px;color:#64748b;margin:6px 0}.mail-table-content{flex:1;min-height:0;overflow:auto;padding:15px}.table-edit-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px}.table-edit-tools span{font-size:12px;color:#64748b}.mail-table-scroll{overflow:auto;max-height:calc(100vh - 245px);border:1px solid #d8e0eb}.mail-edit-grid{border-collapse:collapse;font-size:12px;width:max-content;min-width:100%}.mail-edit-grid th,.mail-edit-grid td{border:1px solid #d9e1ed;padding:4px;min-width:115px}.mail-edit-grid th{background:#edf3fb;vertical-align:top;position:sticky;top:0;z-index:1}.mail-edit-grid th:first-child,.mail-edit-grid td:first-child{min-width:50px}.mail-edit-grid input:not([type=checkbox]),.mail-edit-grid select{box-sizing:border-box;width:100%;min-width:110px;font:12px Arial;padding:6px}.mail-edit-grid small{display:block;margin:2px 0 6px;color:#64748b}.mail-edit-grid th div{display:flex;gap:4px;margin-top:4px}.mail-edit-grid button{min-height:25px;padding:3px 8px}.mail-edit-grid .table-hidden-column{background:#f4f5f7;color:#7c8798}.mail-edit-grid input[type=checkbox]{width:17px;height:17px;appearance:auto}.mail-edit-grid .table-extra-row{background:#fff8e9}#mailEditPreview{overflow:auto;padding:20px;background:white;margin-top:15px}.dealer-mode-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}.dealer-mode-list label{display:grid;grid-template-columns:90px 1fr 110px;align-items:center;gap:6px;padding:8px;background:#f8fafc;font-size:12px}.policy-card{padding:22px}.policy-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.policy-title-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.policy-title-grid label{display:grid;gap:6px;font-size:12px}.policy-defaults{display:grid;grid-template-columns:1fr 1fr;gap:24px}.policy-defaults table{width:100%;border-collapse:collapse;font-size:12px}.policy-defaults td,.policy-defaults th{padding:6px;border-bottom:1px solid #e4e9f0;text-align:left}.policy-defaults input[type=number]{width:75px}.policy-defaults summary{cursor:pointer;padding:10px;background:#eef3f9}.policy-defaults select{min-width:110px}.policy-card h3{margin-top:26px}.table-validation{color:#b33e41;font-size:13px}@media(max-width:800px){.policy-defaults{grid-template-columns:1fr}.mail-table-dialog>header,.mail-table-dialog>footer{padding:10px}}
/* Scoped controls avoid inheriting the main-page header and navigation layouts. */
#mailTableEditor>header,#dealerColumnModes>header{position:static!important;width:auto!important;max-width:none!important;margin:0!important;padding:16px 22px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex:0 0 auto!important;text-align:left!important}#mailTableEditor>header h2,#dealerColumnModes>header h2{font-size:18px!important;line-height:1.4!important;margin:0!important}#mailTableEditor>footer,#dealerColumnModes>footer{position:static!important;width:auto!important;margin:0!important;flex:0 0 auto!important;padding:12px 22px!important;display:flex!important;justify-content:space-between!important}#mailTableEditor .mail-table-content{flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow:auto!important}#mailTableEditor .mail-column-inspector{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:12px;background:#f5f7fb;border:1px solid #dce3ef;border-radius:6px;margin:0 0 12px}#mailTableEditor .mail-column-inspector label{display:grid;gap:5px;font-size:12px;margin:0}#mailTableEditor .mail-column-inspector select{width:180px;min-height:34px;font-size:12px}#mailTableEditor .mail-column-inspector details{position:relative;align-self:center;padding:5px}#mailTableEditor .mail-column-inspector details[open]{flex-basis:100%;display:flex;gap:8px}#mailTableEditor .mail-column-inspector details input{width:230px}#mailTableEditor .mail-edit-grid{display:table!important;table-layout:fixed!important;width:max-content!important;min-width:100%!important}#mailTableEditor .mail-edit-grid thead{display:table-header-group!important}#mailTableEditor .mail-edit-grid tbody{display:table-row-group!important}#mailTableEditor .mail-edit-grid tr{display:table-row!important}#mailTableEditor .mail-edit-grid th,#mailTableEditor .mail-edit-grid td{display:table-cell!important;width:145px;min-width:145px;max-width:none;box-sizing:border-box;text-align:left!important;white-space:normal!important}#mailTableEditor .mail-edit-grid th:first-child,#mailTableEditor .mail-edit-grid td:first-child{width:58px;min-width:58px}#mailTableEditor .mail-edit-grid th{padding:9px 5px!important;height:57px;vertical-align:middle!important}#mailTableEditor .mail-source-heading{display:block;width:100%;margin:0;padding:4px 6px;border:0;background:transparent;text-align:left;font-weight:600;font-size:12px}#mailTableEditor .mail-source-heading.selected{color:#185d9a;text-decoration:underline}#mailTableEditor .mail-edit-grid th small{padding-left:6px;font-size:10px;margin:2px 0;color:#8190a2}#mailTableEditor .mail-edit-grid input:not([type=checkbox]){display:block!important;width:100%!important;min-width:0!important;height:34px!important;font-size:12px!important;padding:6px!important;margin:0!important}#mailTableEditor .mail-table-scroll{max-height:calc(100vh - 330px)!important;min-height:180px}#mailTableEditor .mail-edit-grid .table-hidden-column{background:#f3f4f6!important}
#dealerWorkspace #uxBrands .ux-brand-item{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;justify-content:start!important;justify-items:start!important;text-align:left!important;gap:8px!important;padding:5px 9px!important;height:37px!important;min-height:37px!important;width:100%!important;min-width:0!important}#dealerWorkspace #uxBrands .ux-brand-item>.ux-brand-mark{position:static!important;transform:none!important;display:inline-flex!important;margin:0!important;left:auto!important;top:auto!important;width:24px!important;height:24px!important;min-width:24px!important;box-sizing:border-box}#dealerWorkspace #uxBrands .ux-brand-item>strong{position:static!important;display:block!important;justify-self:start!important;text-align:left!important;margin:0!important;padding:0!important;width:auto!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis}
#mailTableSettings .policy-card{max-width:1000px;margin:0 auto;padding:22px}#mailTableSettings .policy-heading{align-items:center}#mailTableSettings .policy-heading h2{font-size:20px;margin:12px 0 6px}#mailTableSettings .policy-heading p{font-size:12px;color:#64748b}#mailTableSettings .policy-view-tabs{display:flex;gap:6px;padding:14px 0;margin-bottom:12px;border-bottom:1px solid #e0e6ef}#mailTableSettings .policy-view-tabs .selected{background:#e8eff9;border-color:#9db5d5;color:#194d85}#mailTableSettings .policy-simple-table{border-collapse:collapse;width:100%;font-size:13px}#mailTableSettings .policy-simple-table th,#mailTableSettings .policy-simple-table td{border-bottom:1px solid #e5e9ef;padding:7px 12px;text-align:left}#mailTableSettings .policy-simple-table th{background:#f3f6fa;font-size:12px;color:#53657d}#mailTableSettings .policy-simple-table input{max-width:400px;width:100%;min-height:32px;margin:0;padding:5px 9px;font-size:13px}#mailTableSettings .policy-simple-table select{min-height:32px;width:150px;font-size:12px}#mailTableSettings .policy-simple-table button{padding:4px 10px;min-height:28px;margin-right:5px}#mailTableSettings .policy-pickers{display:flex;gap:14px;align-items:center}#mailTableSettings .policy-pickers label{display:grid;gap:5px;font-size:12px}#mailTableSettings .policy-pickers select{width:150px;font-size:12px}#mailTableSettings .policy-help{font-size:12px;color:#738198;margin-top:20px}#webAdminContent>#mailTableSettingsNav{display:inline-flex;align-self:flex-start;width:auto;margin:12px 0;padding:10px 16px}

/* ERP order stays fixed in the editor; outgoing order remains dealer-specific. */
#mailTableEditor .mail-edit-grid{width:100%!important;min-width:var(--grid-min)!important}
#mailTableEditor .mail-edit-grid th,#mailTableEditor .mail-edit-grid td{width:auto!important;min-width:0!important;padding:3px!important}
#mailTableEditor .mail-edit-grid th:first-child,#mailTableEditor .mail-edit-grid td:first-child{width:28px!important;min-width:28px!important;text-align:center!important}
#mailTableEditor .mail-edit-grid th{background:#2866a7!important;color:#fff!important;height:50px}
#mailTableEditor .mail-edit-grid th .mail-source-heading{color:#fff!important;padding:3px 2px;font-size:11px}
#mailTableEditor .mail-edit-grid th small{color:#e3efff!important;padding-left:2px;font-size:10px}
#mailTableEditor .mail-edit-grid td{background:#edf4ff}
#mailTableEditor .mail-edit-grid th.table-hidden-column{background:#e5e7eb!important;color:#475569!important}
#mailTableEditor .mail-edit-grid th.table-hidden-column .mail-source-heading,#mailTableEditor .mail-edit-grid th.table-hidden-column small{color:#526175!important}
#mailTableEditor .mail-edit-grid input:not([type=checkbox]){height:30px!important;padding:3px!important;font-size:11px!important}
#mailTableEditor .mail-edit-grid input[type=checkbox]{width:14px;height:14px;margin:0}
#mailTableEditor .mail-edit-grid td:first-child button,#mailTableEditor .mail-edit-grid td:first-child select{font-size:10px;min-width:0;width:100%;padding:2px}
#mailTableEditor footer .table-validation{flex:1}
#mailTableEditor #mailRestoreDefaults{margin-right:auto;background:white;color:#475569}
#editor .review-preview-panel .review-panel-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#editor .review-preview-panel #editImageColumns{margin-left:auto;background:#2866a7;color:white;border-color:#2866a7}
#editor .mail-table-scope{font-size:11px;color:#64748b}
#mailTableEditor .mail-edit-grid input[type=checkbox]{display:block!important;box-sizing:border-box!important;width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;max-height:14px!important;padding:0!important;margin:0 auto!important;vertical-align:middle!important;position:static!important;transform:none!important}
#mailTableEditor .mail-edit-grid td:first-child{vertical-align:middle!important}#mailTableEditor .table-edit-tools #mailRestoreDefaults{margin-left:auto;margin-right:0;border-color:#94a3b8;background:white;color:#334155}

/* Selected columns and draft changes must remain unmistakable. */
#mailTableEditor .mail-edit-grid th.table-selected-column{background:#f4b740!important;box-shadow:inset 0 0 0 2px #a96500!important}
#mailTableEditor .mail-edit-grid th.table-selected-column .mail-source-heading,#mailTableEditor .mail-edit-grid th.table-selected-column small{color:#3d2b04!important}
#mailTableEditor .mail-edit-grid td.table-selected-column{background:#fff3cc!important;box-shadow:inset 2px 0 #f0b536,inset -2px 0 #f0b536}
#mailTableEditor .mail-edit-grid th.table-changed-column{border-bottom:4px solid #ed8a12!important}
#mailTableEditor .table-cell-changed{background:#fff0c2!important;border-color:#db8e17!important}
#mailTableEditor .mail-edit-grid .table-blank-column{background:#e3ecfa!important}
#mailTableEditor .mail-edit-grid th.table-blank-column:not(.table-selected-column){background:repeating-linear-gradient(135deg,#315c88,#315c88 7px,#406f9f 7px,#406f9f 14px)!important}
#mailTableEditor .table-validation{background:#fff3d6;color:#744500;font-weight:600;padding:7px 12px;border-radius:5px}
#mailTableEditor .mail-edit-grid th,#mailTableEditor .mail-source-heading{ text-align:center!important }
body th,#dealerWorkspace #duSheet [data-title-col]{text-align:center!important}

/* Give the actual message the first screen, with compact metadata above it. */
body:has(#review:not([hidden])) main,body:has(#brandGroups:not([hidden])) main{padding-top:4px!important}
body:has(#review:not([hidden])) main>header,body:has(#brandGroups:not([hidden])) main>header{min-height:32px!important;padding:3px 0 5px!important;margin:0!important}
body:has(#review:not([hidden])) main>header h1,body:has(#brandGroups:not([hidden])) main>header h1{font-size:19px!important;margin:0!important}
body:has(#review:not([hidden])) #notice:empty,body:has(#brandGroups:not([hidden])) #notice:empty{display:none!important}
#review .review-toolbar{margin:0 0 8px!important;padding:0!important;min-height:30px!important}
#review .review-workspace{grid-template-columns:var(--mail-list-width,270px) minmax(0,1fr)!important;gap:10px!important}
#review .list{padding:8px!important}
#review .draft-choice .item{grid-template-columns:minmax(0,1fr) 14px repeat(3,39px)!important;gap:2px!important;padding:2px!important}
#review .mail-list-brand{white-space:nowrap!important;text-overflow:clip!important;overflow:visible!important;font-size:11px!important}
#review .mail-list-memo{width:14px!important;min-width:14px!important}
#review .mail-list-memo svg{width:10px!important}
#review .list .section-heading h2{display:flex;align-items:center;gap:5px;font-size:13px!important}
#review .list .section-heading .ux-flag{width:23px;height:16px;flex-basis:23px}
#editor.review-detail{padding:12px!important;min-width:0}
#editor .review-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px!important;padding:0 0 8px!important;min-height:0!important}
#editor .review-identity>div{display:flex;align-items:center;gap:10px;flex:1;flex-wrap:wrap}
#editor .review-identity h2{font-size:20px!important;margin:0!important;line-height:1.2}
#editor .review-identity p{margin:0!important;font-size:11px!important}
#editor .review-country-title{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}
#editor .review-country-title .ux-flag{width:25px;height:17px;flex-basis:25px}
#editor .review-sender{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 8px!important;padding:6px 10px!important;min-height:0!important}
#editor .review-sender label{display:flex!important;align-items:center;gap:10px;flex:1;margin:0!important;font-size:12px;white-space:nowrap}
#editor .review-sender select{width:min(520px,100%)!important;margin:0!important;min-height:32px!important;height:32px!important;padding:4px 8px!important;font-size:12px!important}
#editor .review-meta{margin:0 0 8px!important}
#editor .review-meta>summary{padding:7px 10px!important}
#editor .mail-meta-fields{padding:0 10px 8px!important}
#editor .mail-meta-fields label{margin-top:6px!important}
#editor .mail-meta-fields input{min-height:30px!important;padding:4px 8px!important}
#editor .mail-meta-fields textarea{min-height:65px!important;height:65px;padding:6px 8px!important}
#editor .review-warnings{margin:0 0 7px!important;padding-bottom:6px!important}
#editor .review-data-toolbar{margin:6px 0!important}
#editor .review-legend{margin:5px 0!important}
#editor .review-history-notice:empty{display:none!important}
#editor .review-panel-heading{min-height:38px!important;padding:6px 10px!important}
#editor.mail-preview-first .mail-body-preview{padding:10px 12px 6px!important;font-size:13px;line-height:1.5}
#editor[data-work-country=GER]{border:2px solid #159bcc!important;border-top-width:5px!important}
#editor[data-work-country=USA]{border:2px solid #dfa819!important;border-top-width:5px!important}
#review[data-work-country=GER] .list .section-heading{background:#e9f8ff;border-left:4px solid #159bcc;padding:6px!important}
#review[data-work-country=USA] .list .section-heading{background:#fff6da;border-left:4px solid #dfa819;padding:6px!important}
#dealerWorkspace .du-top,#dealerWorkspace .ux-top,#dealerWorkspace .ux-viewbar{padding:6px 10px!important;min-height:36px!important;gap:7px!important}
#dealerWorkspace .ux-brand-heading{padding:7px 10px!important;min-height:38px!important;margin:0!important}
#dealerWorkspace .ux-brand-heading>strong{font-size:18px!important}
#dealerWorkspace .ux-kind-tabs{margin:0!important;padding:4px 10px!important;min-height:32px!important}
#dealerWorkspace #duBody{padding-top:8px!important}
#dealerWorkspace .du-route-fields,#dealerWorkspace .ux-route-fields{margin:5px 0 7px!important;gap:8px!important}
#dealerWorkspace .du-section-head{margin:6px 0!important}
#dealerWorkspace .du-address-row{margin:4px 0!important;gap:8px!important}
#dealerWorkspace .du-address-row textarea{min-height:62px!important}
@media(max-width:900px){#review .review-workspace{grid-template-columns:minmax(0,1fr)!important}#editor .review-sender{flex-wrap:wrap}#editor .review-identity>div{flex-wrap:wrap}}

/* A country's label length must never move its neighboring controls. */
#dealerWorkspace .du-top.ux-top,#dealerWorkspace .ux-directory-actions{display:grid!important;grid-template-columns:132px 125px 94px minmax(0,1fr) 125px 84px 32px!important;align-items:end!important;column-gap:8px!important;row-gap:6px!important}
#dealerWorkspace .ux-country-title{grid-column:1;grid-row:1;box-sizing:border-box;width:132px!important;min-width:132px!important;margin:0!important;gap:6px!important;height:32px}
#dealerWorkspace .ux-country-title strong{font-size:15px!important}
#dealerWorkspace .ux-country-title>span{font-size:10px!important;letter-spacing:0!important}
#dealerWorkspace .ux-country-title .ux-flag{width:27px;flex-basis:27px;height:18px}
#dealerWorkspace .du-country-selector{grid-column:2;grid-row:1;width:125px!important;min-width:125px!important;gap:4px!important;margin:0!important}
#dealerWorkspace .du-country-selector select{width:125px!important;min-width:125px!important;height:32px!important}
#dealerWorkspace #duAddDealer{grid-column:3;grid-row:1;width:94px!important;min-width:94px!important;height:32px!important;padding:4px 6px!important}
#dealerWorkspace .du-top .du-spacer,#dealerWorkspace .ux-directory-actions .du-spacer{grid-column:4;grid-row:1}
#dealerWorkspace #duStatus{grid-column:5;grid-row:1;text-align:right;align-self:center;white-space:nowrap;font-size:11px;overflow:hidden;text-overflow:ellipsis}
#dealerWorkspace #duSave{grid-column:6;grid-row:1;width:84px!important;height:32px!important;margin:0!important}
#dealerWorkspace #duMore{grid-column:7;grid-row:1;width:32px!important;height:32px!important;padding:0!important;margin:0!important}
/* The preview has one toolbar, preserving existing controls and live status. */
#editor .review-data-toolbar[hidden]{display:none!important}
#editor .mail-unified-toolbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:wrap;min-height:38px!important;padding:6px 10px!important}
#editor .mail-unified-toolbar h3{white-space:nowrap;font-size:13px;margin:0!important}
#editor .mail-unified-toolbar .review-counts{margin:0!important;font-size:11px;gap:5px}
#editor .mail-unified-toolbar .review-legend{display:inline-flex;margin:0!important;gap:6px!important;font-size:10px}
#editor .mail-unified-toolbar .review-history-notice{margin:0!important;padding:0!important;font-size:10px!important;min-height:0!important;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#editor .mail-unified-toolbar .review-history-notice:empty{display:none!important}
#editor .mail-unified-toolbar button{min-height:28px!important;white-space:nowrap;padding:4px 7px!important}
#editor .mail-unified-toolbar #reviewRulesToggle:disabled{display:none}
#editor .mail-unified-toolbar .mail-table-scope{white-space:nowrap}
@media(max-width:900px){#dealerWorkspace .du-top.ux-top,#dealerWorkspace .ux-directory-actions{grid-template-columns:132px 125px 94px minmax(0,1fr) 84px 32px!important}#dealerWorkspace #duStatus{display:none}#dealerWorkspace #duSave{grid-column:5}#dealerWorkspace #duMore{grid-column:6}}
@media(max-width:650px){#dealerWorkspace .du-top.ux-top,#dealerWorkspace .ux-directory-actions{grid-template-columns:132px 125px minmax(0,1fr)!important}#dealerWorkspace #duAddDealer{grid-column:1;grid-row:2}#dealerWorkspace #duSave{grid-column:2;grid-row:2}#dealerWorkspace #duMore{grid-column:3;grid-row:2;justify-self:end}}
.dealer-profile-bar,.review-dealer-profile{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:9px 10px;background:#f0f5fb;border:1px solid #d4dfed;border-radius:5px;margin:6px 0 9px}
#dealerWorkspace .dealer-profile-bar label,.review-dealer-profile label{display:grid;gap:4px;font-size:12px;margin:0}
#dealerWorkspace .dealer-profile-bar select,#dealerWorkspace .dealer-profile-bar input,.review-dealer-profile select{width:205px;max-width:100%;min-height:32px;margin:0;font-size:12px}
.dealer-profile-bar small,.review-dealer-profile small{font-size:11px;color:#63758b;align-self:center}
.dealer-profile-bar button{min-height:32px;padding:5px 9px;font-size:12px}
@media(max-width:760px){.dealer-profile-bar,.review-dealer-profile{gap:7px}.dealer-profile-bar label,.review-dealer-profile label{max-width:100%}.dealer-profile-bar small,.review-dealer-profile small{flex-basis:100%}}

/* Dealer selection stays in a fixed table; only its radio changes the selection. */
.dealer-profile-bar,.review-dealer-profile{display:flex;gap:7px;padding:8px;background:#fff}
.dealer-profile-bar [hidden],.review-dealer-profile [hidden]{display:none!important}
.profile-table-scroll{flex:1 0 100%;max-width:100%;overflow-x:auto;padding:3px}
#dealerWorkspace .profile-choice-table,.review-dealer-profile .profile-choice-table{width:100%;border-collapse:separate;border-spacing:0 4px;table-layout:fixed;font-size:12px}
.profile-choice-table th{padding:5px 9px;text-align:left;background:#f1f4f8;color:#53657b}
.profile-choice-table th:first-child{width:44px;text-align:center}
.profile-choice-table th:nth-child(2){width:19%}.profile-choice-table th:nth-child(4){width:13%}
#dealerWorkspace .profile-choice-table td,.review-dealer-profile .profile-choice-table td{padding:9px;border-top:2px solid transparent;border-bottom:2px solid transparent;background:#f6f8fb;overflow-wrap:anywhere;min-width:0;text-align:left;transition:background .15s,padding .15s}
.profile-choice-table td:first-child{border-left:3px solid transparent;text-align:center!important}.profile-choice-table td:last-child{border-right:2px solid transparent}
#dealerWorkspace .profile-choice-table tr.is-selected td,.review-dealer-profile .profile-choice-table tr.is-selected td{background:#dcecff;border-color:#2871b9;padding-top:13px;padding-bottom:13px;color:#103d6b}
.profile-choice-table input[type=radio]{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#1e65ac;cursor:pointer}
.profile-default-badge{display:inline-block;margin-left:7px;padding:2px 5px;border-radius:3px;background:#d7e2ef;color:#244b71;font-size:10px}
.profile-contact-edit{border:1px solid #d9e2ed;border-radius:5px;padding:7px 10px;margin:5px 0 8px}
.profile-contact-edit summary{cursor:pointer;color:#245b91;font-weight:600;font-size:12px}
#dealerWorkspace .profile-contact-edit .ux-route-fields{margin:8px 0 5px;padding:0;gap:10px}
#dealerWorkspace .profile-contact-edit .du-address-row{margin:5px 0;gap:10px}
#dealerWorkspace .profile-contact-edit label{font-size:12px;margin:3px 0}
#dealerWorkspace .profile-contact-edit .profile-label-edit{display:flex;align-items:center;gap:10px;margin-top:8px}
#dealerWorkspace .profile-label-edit input{width:230px;max-width:75%;margin:0}
#dealerWorkspace .profile-contact-edit .ux-route-caption{display:none}
#dealerWorkspace .profile-contact-edit .ux-alternates{padding:6px;margin:6px 0}
@media(max-width:760px){.profile-choice-table{min-width:590px}}
/* Preview-first dealer workspace and transactional center dialogs. */
#dealerWorkspace .profile-choice-table{table-layout:fixed!important;width:100%!important}
#dealerWorkspace .profile-choice-table th:first-child,#dealerWorkspace .profile-choice-table td:first-child,.review-dealer-profile .profile-choice-table th:first-child,.review-dealer-profile .profile-choice-table td:first-child{width:48px!important;min-width:48px!important;max-width:48px!important;padding-left:8px!important;padding-right:8px!important;position:static!important}
#dealerWorkspace .profile-choice-table input[type=radio],.review-dealer-profile .profile-choice-table input[type=radio]{display:inline-block!important;position:static!important;transform:none!important;float:none!important}
#dealerWorkspace .profile-preview-wide{display:block!important}
#dealerWorkspace .profile-preview-wide>.du-edit-card{display:none!important}
#dealerWorkspace .profile-preview-wide>.du-mail-card{width:100%;min-width:0}
#dealerWorkspace .du-inline-mail[hidden]{display:none!important}
.profile-preview-actions{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #dbe3ed;gap:12px}
.profile-preview-actions>div{display:flex;gap:7px;flex-wrap:wrap}
#dealerWorkspace #duFullMailPreview{padding:15px 18px}
#dealerWorkspace .profile-preview-wide #duPreview{padding:12px 18px;min-height:260px}
.profile-large-dialog{box-sizing:border-box;width:min(1100px,94vw)!important;max-width:94vw!important;max-height:92vh;padding:0!important;border:1px solid #bbcddd;border-radius:9px;box-shadow:0 18px 70px #152d4f44;color:#18314e}
.profile-large-dialog::backdrop{background:#15283f70}
.profile-large-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;border-bottom:1px solid #dbe3ed;background:#f5f8fc}
.profile-large-dialog h2{font-size:19px;margin:0 0 5px}.profile-large-dialog small{color:#63758b;font-size:12px}
.profile-dialog-body{padding:18px 20px;max-height:66vh;overflow:auto}
.profile-dialog-body label{display:grid;gap:6px;margin-bottom:12px;font-size:13px}
.profile-dialog-body input:not([type=checkbox]),.profile-dialog-body textarea{box-sizing:border-box;width:100%;margin:0;padding:9px;border:1px solid #ccd8e6;border-radius:4px;color:#18314e;font:inherit}
.profile-dialog-body textarea{resize:vertical;line-height:1.6}
.profile-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.profile-contact-grid h3{font-size:15px;margin:15px 0}
.profile-large-dialog>footer{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-top:1px solid #dbe3ed;background:#f5f8fc}
.profile-large-dialog [role=status]{color:#ad3d2c;font-size:12px}
.profile-backup-row{display:flex;align-items:center;gap:8px;margin:8px 0}.profile-backup-row label{display:flex;white-space:nowrap;margin:0}
#profileTableDialog{width:96vw!important;max-width:1600px!important}
#profileTableDialog .du-edit-card{display:block!important;width:100%;border:0}
#profileTableDialog .du-sheet-scroll{max-height:49vh;overflow:auto}
#profileTableDialog .du-card-heading{display:flex;justify-content:space-between}
#profileTableDialog .du-sheet-toolbar{display:flex;gap:6px;padding:8px}
#profileTableDialog .du-sheet{width:100%;border-collapse:collapse}
#profileTableDialog td,#profileTableDialog th{border:1px solid #d8e0eb;padding:4px;text-align:center}
#profileTableDialog input{min-width:60px}
#profileTableDialog .du-selected-axis,#profileTableDialog .du-selected-cell{background:#b2ddcf!important}
@media(max-width:760px){.profile-contact-grid{grid-template-columns:1fr}.profile-preview-actions{align-items:flex-start;flex-direction:column}.profile-large-dialog>header{padding:12px}.profile-dialog-body{padding:12px}.profile-backup-row{flex-wrap:wrap}}
/* Isolate dealer rows from generic table rules: identical tracks for header and data. */
#dealerWorkspace .profile-choice-table,.review-dealer-profile .profile-choice-table{display:block!important;min-width:660px!important;table-layout:auto!important}
#dealerWorkspace .profile-choice-table thead,#dealerWorkspace .profile-choice-table tbody,.review-dealer-profile .profile-choice-table thead,.review-dealer-profile .profile-choice-table tbody{display:block!important}
#dealerWorkspace .profile-choice-table tr,.review-dealer-profile .profile-choice-table tr{display:grid!important;grid-template-columns:52px minmax(130px,.8fr) minmax(200px,1.4fr) minmax(100px,.65fr) minmax(200px,1.4fr)!important;margin-bottom:4px}
#dealerWorkspace .profile-choice-table tr>*:nth-child(n),.review-dealer-profile .profile-choice-table tr>*:nth-child(n){display:block!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:none!important;position:static!important;overflow:hidden!important;white-space:normal!important;padding:9px!important;text-align:left!important}
#dealerWorkspace .profile-choice-table tr>*:first-child,.review-dealer-profile .profile-choice-table tr>*:first-child{text-align:center!important}
#dealerWorkspace .profile-choice-table input[type=radio],.review-dealer-profile .profile-choice-table input[type=radio]{width:18px!important;height:18px!important;padding:0!important;vertical-align:middle!important}
.profile-contact-dialog{width:min(920px,94vw)!important}
.profile-contact-dialog .profile-dialog-body{padding:14px 20px!important}
.profile-contact-names{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:650px}
.profile-contact-dialog .profile-contact-grid{gap:24px;margin:0 0 14px}
.profile-contact-dialog h3{margin:6px 0 10px;font-size:14px}
.profile-contact-dialog .profile-contact-grid>section>label{max-width:260px}
.profile-field-label{display:block;font-size:12px;margin:4px 0 6px}
.profile-email-row{display:flex;align-items:center;gap:6px;margin:0 0 6px}
.profile-contact-dialog .profile-email-row input{min-width:0;flex:1;padding:7px 8px}
.profile-email-row button,.profile-backup-row button{flex:none;min-height:32px;padding:5px 9px}
.profile-contact-dialog details{border-top:1px solid #dbe3ed;padding-top:10px}
.column-format-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 0}
.column-format-tools label{display:flex!important;align-items:center;gap:4px!important;margin:0!important;white-space:nowrap;font-size:12px}
.column-format-tools input[type=number]{width:72px!important;min-width:0!important;padding:5px!important}
.column-format-tools input[type=checkbox]{width:15px!important;min-width:0!important;min-height:0!important;height:15px}
.column-format-tools button[aria-pressed=true]{background:#2468a4!important;color:#fff!important;border-color:#2468a4!important}
.column-format-tools strong{margin-right:8px;font-size:12px}.column-format-tools>span{font-size:12px}
#profileTableDialog .du-sheet-toolbar{flex-wrap:wrap}
#profileTableDialog .du-sheet-toolbar>.column-format-tools{flex-basis:100%;border-top:1px solid #dae3ee}
.column-resize-grip{position:absolute;right:-3px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:5;touch-action:none}
.column-resize-grip:hover{background:#2874bc66}
#profileTableDialog .du-sheet td input{width:100%;min-width:0!important;box-sizing:border-box}
#profileTableDialog .du-sheet th,#profileTableDialog .du-sheet td{overflow:hidden}
#profileTableDialog .du-sheet .du-sample td{overflow-wrap:anywhere}
@media(max-width:650px){.profile-contact-names{grid-template-columns:1fr}.profile-contact-dialog .profile-contact-grid{grid-template-columns:1fr}}
#dealerWorkspace .profile-choice-table input[type=radio],.review-dealer-profile .profile-choice-table input[type=radio]{min-width:18px!important;max-width:18px!important;flex:0 0 18px!important}
.profile-contact-dialog .profile-dialog-body{margin:0!important}
.profile-contact-dialog .profile-dialog-body label{margin:0 0 10px!important}
.profile-contact-dialog .profile-contact-names{padding:0!important;margin:0 0 8px!important}
/* Shared workbench: fixed physical column widths, identical outgoing cell metrics. */
.unified-workbench{width:96vw!important;max-width:1600px!important;max-height:94vh}
.unified-workbench .mail-table-content{padding:12px!important;max-height:72vh;overflow:auto}
.workbench-actions,.workbench-selection{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.workbench-selection{font-size:12px;border-top:1px solid #dae3ee;padding-top:8px}
.workbench-selection strong{min-width:150px}.workbench-selection>span{background:#e5edf8;color:#245484;padding:4px 8px;border-radius:3px}
.workbench-selection select{max-width:120px}.workbench-actions button,.workbench-selection button{min-height:29px;padding:4px 8px;font-size:12px}
#workbenchFormats .column-format-tools{padding:0 0 9px}.workbench-grid-scroll,#workbenchPreviewArea{max-width:100%;overflow:auto}
.unified-workbench .workbench-grid{border-collapse:collapse!important;table-layout:fixed!important;font:13px Arial,sans-serif!important}
.unified-workbench .workbench-grid th,.unified-workbench .workbench-grid td{box-sizing:border-box!important;border:1px solid #c6d2e0!important;padding:7px 10px!important;min-width:0!important;line-height:1.4!important;font:13px Arial,sans-serif!important;overflow:hidden;overflow-wrap:anywhere;height:auto!important;background:#fff}
.unified-workbench .workbench-grid thead tr:nth-child(2) th{background:#eef2f7}
.unified-workbench .workbench-grid .workbench-axis th{position:relative!important;padding:0!important;height:23px!important;background:#eaf0f6}
.unified-workbench .workbench-axis button{border:0!important;padding:1px!important;min-height:0!important;height:22px!important;font-size:11px!important;width:100%;background:transparent}
.unified-workbench .workbench-grid input:not([type=checkbox]){width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-sizing:border-box!important;font:13px Arial,sans-serif!important;line-height:1.4!important;color:inherit}
.unified-workbench .workbench-grid .workbench-selected{box-shadow:inset 0 0 0 1px #2a78b4}
.unified-workbench .workbench-grid .workbench-no{font-size:11px!important;text-align:center!important;padding:3px!important;color:#617389}
.unified-workbench .workbench-no input[type=checkbox]{width:12px!important;min-width:12px!important;max-width:12px!important;height:12px!important;min-height:0!important;margin:0 3px 0 0!important;padding:0!important;vertical-align:middle}
.workbench-no button{padding:0 3px;min-height:0;height:20px}.workbench-excluded{opacity:.4}
.workbench-legend{font-size:11px;color:#708098;margin:7px 0}.workbench-field-picker{width:min(800px,94vw)!important}
.workbench-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}.workbench-checks label{display:flex;align-items:center;gap:7px;font-size:13px}
.workbench-checks input{width:15px!important;min-width:15px!important;min-height:0!important;height:15px}
#dealerWorkspace #duPreview,#mailEditPreview,#workbenchPreviewArea{overflow:auto!important;max-width:100%}
#dealerWorkspace #duPreview table,.preview-shell table,#workbenchPreviewArea table{table-layout:fixed!important}
.contact-table-dialog{width:min(900px,94vw)!important}
.contact-table-dialog .profile-dialog-body{padding:16px 20px!important;margin:0!important}
.contact-table-dialog .contact-dealer-name{display:flex!important;align-items:center;gap:15px!important;margin:0 0 16px!important;font-size:13px}
.contact-dealer-name input{max-width:280px!important}
.contact-table-head,.contact-entry{display:grid;grid-template-columns:105px minmax(120px,.7fr) minmax(230px,1.5fr) 30px;gap:12px;align-items:center}
.contact-table-head{padding:8px 0;background:#f4f7fb;font-size:12px;color:#52667e}
.contact-entry{padding:8px 0;border-bottom:1px solid #edf1f6}
.contact-entry input{min-width:0!important;font-size:13px!important;padding:7px!important}
.contact-kind{justify-self:start;white-space:nowrap;font-size:12px;padding:4px 8px;border-radius:12px;background:#e1eeff;color:#205fb0}
.contact-kind.cc{background:#edf0f4;color:#53647c}.contact-entry button{border:0!important;background:none!important;padding:0!important;font-size:20px;color:#6c7b8e}
.contact-cc-group{margin-top:12px;padding-top:12px;border-top:1px solid #7ba8df}
.contact-table-dialog [data-contact-add]{margin:7px 0 3px;font-size:12px;padding:4px 8px;min-height:29px}
.contact-table-dialog details{margin:14px 0 0;padding-top:12px;border-top:1px solid #dce4ee}
@media(max-width:650px){.contact-table-head,.contact-entry{grid-template-columns:82px 110px minmax(190px,1fr) 24px;gap:6px}.contact-table-dialog .profile-dialog-body{overflow:auto}.contact-table-head,.contact-table-dialog section{min-width:460px}.workbench-checks{grid-template-columns:repeat(2,1fr)}}
.unified-workbench .workbench-grid textarea{width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-sizing:border-box!important;font:13px Arial,sans-serif!important;line-height:1.4!important;color:inherit;resize:none;overflow:hidden;vertical-align:top}
/* Compact spreadsheet ribbon; state, formatting and column delivery stay separate. */
.unified-workbench>header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:10}
.workbench-top-actions{display:flex;gap:8px;margin-left:auto}.workbench-top-actions button{min-width:74px;min-height:34px}
.unified-workbench .workbench-status-only,.simple-brand-dialog .workbench-status-only{padding:6px 14px!important;min-height:0!important;background:#fff!important}
.workbench-status-only:has([role=status]:empty){display:none!important}
.workbench-actions{padding:5px 0 9px;gap:6px;flex-wrap:wrap}.workbench-actions #workbenchRestore{margin-left:auto}
.unified-workbench .workbench-selection{display:flex;align-items:center;gap:8px;border:0;margin:0;padding:7px 0}
.unified-workbench .workbench-selection strong{min-width:0;margin-right:8px}.unified-workbench .workbench-selection>span{font-size:11px}
#workbenchMode{margin-left:auto;font-size:12px;max-width:205px;width:auto;min-height:31px}
[data-display-title]{max-width:130px;font-size:12px;padding:5px!important;min-height:30px!important}
#workbenchFormats{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f5f7fa;border:1px solid #dbe3ed;border-radius:4px;padding:7px 10px;margin-bottom:10px}
#workbenchFormats .column-format-tools{padding:0!important;gap:5px}#workbenchFormats .column-format-tools>span{display:none}
#workbenchFormats [data-column-align]{width:32px!important;min-width:32px!important;height:30px!important;min-height:30px!important;padding:4px!important;display:inline-flex;align-items:center;justify-content:center}
.workbench-style-tools{display:flex;align-items:center;gap:7px;border-left:1px solid #cad5e2;padding-left:12px;flex-wrap:wrap}
.workbench-style-tools label{display:flex!important;align-items:center;gap:5px;margin:0!important;font-size:11px}
.workbench-style-tools input[type=color]{width:25px!important;min-width:25px!important;height:27px!important;min-height:27px!important;padding:2px!important;cursor:pointer}
.workbench-style-tools button{min-height:29px;padding:4px 8px;font-size:12px}.workbench-style-tools select{max-width:120px;min-height:29px;font-size:12px;padding:4px}
.workbench-style-tools button[aria-pressed=true]{background:#d4e7fc;border-color:#3b7bb4}
.unified-workbench .workbench-grid .workbench-selected{box-shadow:inset 0 0 0 2px #e59b00!important;outline:1px solid #e59b00;outline-offset:-1px}
.unified-workbench .workbench-grid th.workbench-sending{background:#27669f!important;color:#fff!important;border-top:3px solid #27669f!important}
.unified-workbench .workbench-grid th.workbench-reference{background:#e5e9ee!important;color:#5d6d80!important;border-top:3px solid #9daab9!important}
.unified-workbench .workbench-grid td.workbench-reference{background:#f1f3f6;color:#63758c}
.unified-workbench .workbench-grid th.workbench-blank{background:repeating-linear-gradient(135deg,#dae9fa 0,#dae9fa 6px,#edf5ff 6px,#edf5ff 12px)!important;color:#245486!important;border-top:3px solid #6593c1!important}
.workbench-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:4px 0}
.workbench-legend .guide-send:before,.workbench-legend .guide-reference:before,.workbench-legend .guide-blank:before{content:'';display:inline-block;width:9px;height:9px;margin-right:4px;background:#27669f}
.workbench-legend .guide-reference:before{background:#aeb8c4}.workbench-legend .guide-blank:before{background:#a5c9ed}
.workbench-preview-title{font-size:12px!important;margin:10px 0 7px!important;color:#445b73}
.profile-preview-actions>div{display:grid!important;grid-template-columns:repeat(3,96px);gap:7px}.profile-preview-actions>div>button{width:96px!important;height:33px!important;min-height:33px!important;padding:5px!important;font-size:12px!important}
#dealerWorkspace .ux-kind-tabs [data-du-kind=quote].active{background:#e4dfec!important;color:#403350!important;border-bottom:2px solid #897498!important}
#dealerWorkspace .ux-kind-tabs [data-du-kind=order].active{background:#e6b8b7!important;color:#5a3030!important;border-bottom:2px solid #b67b7b!important}
.simple-brand-dialog{width:min(580px,94vw)!important}.simple-brand-dialog>header{display:flex;align-items:center;justify-content:space-between}
.simple-brand-dialog .profile-dialog-body{padding:16px 20px!important;margin:0!important}
.simple-brand-dialog label{margin:0 0 8px!important}.simple-optional{font-size:11px;color:#8391a0}.simple-child-entry{display:flex;gap:7px;margin-bottom:10px}.simple-child-tags{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 14px}.simple-child-tags>span{display:flex;gap:7px;align-items:center;padding:4px 8px;background:#edf3fa;border:1px solid #d3deec;border-radius:4px;font-size:12px}.simple-child-tags button{border:0;padding:0 2px;min-height:0;background:none}
#uxBrands .ux-brand-item{padding-right:30px!important}.brand-drag-handle{position:absolute;right:5px;top:10px;width:20px;text-align:center;font-size:17px!important;color:#8999aa!important;cursor:grab;user-select:none}.brand-drop-target{border-top:3px solid #27669f!important}.brand-dragging{opacity:.45}
@media(max-width:760px){#workbenchMode{margin-left:0}.workbench-style-tools{border-left:0;padding-left:0}.workbench-actions #workbenchRestore{margin-left:0}.profile-preview-actions>div{grid-template-columns:repeat(3,88px)}.profile-preview-actions>div>button{width:88px!important}.simple-brand-dialog>header{flex-wrap:wrap}}
.unified-workbench .workbench-axis .axis-sending{border-bottom:3px solid #27669f!important;color:#245786!important}
.unified-workbench .workbench-axis .axis-reference{background:#e0e5eb!important;border-bottom:3px solid #9daab9!important;color:#647487!important}
.unified-workbench .workbench-axis .axis-blank{border-bottom:3px dashed #74a6d7!important;color:#245786!important}
.simple-child-entry input{flex:1;min-width:0!important;width:0!important;height:34px!important;min-height:34px!important}
.simple-child-entry>button{flex:0 0 56px!important;min-width:56px!important;width:56px!important;height:34px!important;min-height:34px!important;white-space:nowrap!important;padding:4px 8px!important}
.simple-brand-dialog label:has(.simple-optional){display:flex!important;align-items:center;gap:6px!important}
.workbench-style-tools{flex:0 0 auto!important;flex-wrap:nowrap!important;width:max-content!important;max-width:none!important}
.workbench-style-tools select{margin:0!important}

/* Excel-like axis: full-height edge target and visible column selection. */
.unified-workbench .workbench-grid .workbench-axis th{overflow:visible!important;user-select:none;touch-action:none}
.unified-workbench .workbench-axis button{cursor:pointer!important;user-select:none;touch-action:none;position:relative;z-index:1}
.unified-workbench .workbench-axis .column-resize-grip{display:block;right:0!important;width:10px!important;top:0!important;bottom:0!important;z-index:30!important;cursor:col-resize;pointer-events:auto!important}
.unified-workbench .workbench-axis .column-resize-grip:hover{background:#2874bc66;border-right:2px solid #2874bc}
.unified-workbench .workbench-grid .workbench-axis th.workbench-axis-selected{background:#b8d9ee!important;color:#173f63!important;box-shadow:inset 0 0 0 1px #2874bc}

.profile-wording-dialog .profile-dialog-body{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px}
.profile-wording-fields{min-width:0}.profile-wording-tokens{border-left:1px solid #dbe3ed;padding-left:18px;display:flex;flex-direction:column;gap:10px;align-self:start}
.profile-wording-tokens>strong{font-size:14px}.profile-wording-tokens>small{margin-bottom:4px}.profile-wording-tokens button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:9px 10px;border:1px solid #dbe3ed;background:#f7faff;border-radius:5px;cursor:pointer;user-select:text}
.profile-wording-tokens button:hover{background:#eaf3ff;border-color:#8ab1df}.profile-wording-tokens code{color:#21649e;font-size:13px}.profile-wording-tokens button span{font-size:12px;color:#61748a}.profile-wording-dialog [data-copy-status]{color:#286c43;min-height:18px}
@media(max-width:700px){.profile-wording-dialog .profile-dialog-body{grid-template-columns:1fr}.profile-wording-tokens{border-left:0;border-top:1px solid #dbe3ed;padding:14px 0 0;display:grid;grid-template-columns:1fr 1fr}.profile-wording-tokens>strong,.profile-wording-tokens>small,.profile-wording-tokens>[role=status]{grid-column:1/-1}}

/* Leave a distinct break between the two country groups. */
#mailTableSettings [data-layout-sheet="USA-quote"]{margin-top:32px!important;padding-top:22px!important;border-top:2px solid #ccd9e6!important}
/* Compact, consistent dealer and brand actions. */
#dealerProfileAdd,#profileContactEdit,#dealerProfileDefault,#dealerProfileDelete{width:108px!important;min-width:108px!important;height:32px!important;min-height:32px!important;padding:0 8px!important;font-size:12px!important;font-family:inherit!important;line-height:1.4!important;box-sizing:border-box;vertical-align:middle;margin-right:6px!important}
#duAddDealer,#uxEditBrands{width:104px!important;min-width:104px!important;height:30px!important;min-height:30px!important;font-size:12px!important;background:#eaf3fc!important;border:1px solid #a8c4df!important;color:#245780!important}
.profile-kind-badge{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:26px;padding:0 10px;margin-left:12px;border-radius:4px;font-size:13px;font-weight:700;vertical-align:middle;color:white}
.profile-kind-badge.quote{background:#66508c}.profile-kind-badge.order{background:#9d3d49}
.profile-large-dialog header small:empty{display:none}.body-format-toolbar{display:flex;gap:6px;align-items:center;padding:7px 8px;background:#f5f8fc;border:1px solid #ccd8e8;border-bottom:0;border-radius:5px 5px 0 0}
.body-format-toolbar button{width:32px!important;min-width:32px!important;height:28px!important;min-height:28px!important;padding:0!important;font-size:14px!important;background:white;border:1px solid #ccd8e8}
.body-format-toolbar [data-body-color="#c62828"]{color:#c62828}.body-format-toolbar [data-body-color="#1565c0"]{color:#1565c0}
.profile-rich-body{border:1px solid #ccd8e8;border-radius:0 0 5px 5px;padding:12px;min-height:310px;max-height:55vh;overflow:auto;white-space:pre-wrap;font-size:13px;line-height:1.6;background:#fff;outline:none}
.profile-rich-body:focus{border-color:#4c92cf}.profile-rich-body strong,.profile-rich-body b,.mail-body-preview strong,.du-preview-copy strong{font-weight:700}

/* Clearer dealer actions, without changing disabled controls. */
#dealerProfileAdd,#profileContactEdit,#dealerProfileDefault:not(:disabled){background:#e7f1fc!important;border:1px solid #8eafd0!important;color:#214e78!important;font-weight:600!important}
#dealerProfileAdd:hover,#profileContactEdit:hover,#dealerProfileDefault:not(:disabled):hover{background:#d6e7fa!important;border-color:#5987b4!important}
#dealerProfileDelete{background:#fff0f1!important;border:1px solid #d6a2aa!important;color:#a13143!important;font-weight:600!important}
#dealerProfileDelete:hover{background:#fce1e5!important;border-color:#b96977!important}
#dealerProfileDefault:disabled{background:#f5f6f8!important;border-color:#e0e4e9!important;color:#9aa2af!important}
.body-format-toolbar [data-body-color="#000000"]{color:#000}
/* Consistent dealer designation and compact edit context. */
.profile-default-check{display:inline-flex;align-items:center;justify-content:center;margin-left:7px;color:#21804b;font-size:14px;font-weight:700;vertical-align:middle}
#dealerProfileDefault:not(:disabled){background:#e7f4ec!important;border-color:#8fc6a4!important;color:#246a42!important}
#dealerProfileDefault:not(:disabled):hover{background:#d5eddf!important;border-color:#64a680!important}
#dealerProfileDefault:disabled{background:#edf5f0!important;border-color:#c6dfcf!important;color:#6a967a!important}
.profile-wording-dialog header h2,.profile-contact-dialog header h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap;line-height:1.4}
.profile-dialog-brand{font-size:14px;font-weight:600;padding-left:10px;border-left:1px solid #ccd6e2;color:#284561}
.profile-dialog-children{font-size:12px;font-weight:400;color:#718094}
.profile-wording-dialog .profile-kind-badge,.profile-contact-dialog .profile-kind-badge{margin-left:0}
.profile-country-picker{position:relative}
.profile-country-picker .profile-country-flag{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;display:flex;align-items:center;z-index:1}
.profile-country-flag .ux-flag{width:22px;height:15px;margin:0}
.profile-country-picker #duCountrySelect{padding-left:42px!important}
aside nav button[data-tab="compose"] .nav-label,aside nav button[data-tab="review"] .nav-label{font-weight:600!important}
aside .app-logo{justify-content:center!important;text-align:center!important}
aside .app-logo>div{width:100%;text-align:center}
aside .app-logo>div>span{display:none!important}
#dealerWorkspace .du-top #duAddDealer,#dealerWorkspace .du-top #uxEditBrands{box-sizing:border-box!important;width:96px!important;min-width:96px!important;max-width:96px!important;flex:0 0 96px!important;height:30px!important;min-height:30px!important;padding:0 8px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;border-width:1px!important;border-style:solid!important;border-radius:4px!important}
.body-format-toolbar button[aria-pressed="true"]{background:#dceafb;border-color:#6e99c4;box-shadow:inset 0 0 0 1px #9ebbd9}
.profile-rich-body ::selection{background:#bdd9f8}
/* Reserve room for both the flag and the visible country abbreviation. */
#dealerWorkspace .du-top .du-country-selector select#duCountrySelect{box-sizing:border-box!important;padding:3px 24px 3px 42px!important;color:#243b53!important;font-size:12px!important;text-indent:0!important;opacity:1!important}
