/* 066X3: customer account only. Direction follows the selected document language. */
body.customer-account-shell #header,body.customer-account-shell #footer{display:none!important}
.customer-console{--account-navy:#011d43;--account-orange:#fe9d02;--account-rail:240px;box-sizing:border-box;width:100%;min-height:100vh;background:#f6f8fc;color:#173152;padding:28px 24px;padding-inline-start:calc(var(--account-rail) + 24px)}
.customer-shell-wrap{width:100%;min-width:0}
.account-sidebar{box-sizing:border-box;position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;width:var(--account-rail);height:100dvh;z-index:80;display:flex;flex-direction:column;padding:18px 12px;background:#011d43;color:#fff;overflow:hidden}
.account-sidebar-brand{display:block;border-bottom:1px solid #ffffff20;padding-bottom:12px;margin-bottom:12px}
.account-sidebar-brand img{display:block;width:100%;height:108px;object-fit:cover;object-position:center}
.account-sidebar-nav{display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}
.account-sidebar-nav::-webkit-scrollbar{display:none}
.customer-console .account-sidebar .account-hub-item{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;box-sizing:border-box;width:100%;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#fff;text-align:start;text-decoration:none;font-size:.86rem;box-shadow:none;transform:none}
.customer-console .account-sidebar .account-hub-item strong{font-size:inherit;color:inherit;font-weight:600}
.customer-console .account-sidebar .account-hub-icon{width:22px;height:22px;display:grid;place-items:center;background:none;color:inherit;font-size:19px;border:0;border-radius:0}
.customer-console .account-sidebar .account-hub-item:hover{background:#0c2a50;color:#fff}
.customer-console .account-sidebar .account-hub-item.is-active{background:#143459;color:#fe9d02;border-color:#355071;box-shadow:inset -3px 0 #fe9d02}
html[dir=ltr] .customer-console .account-sidebar .account-hub-item.is-active{box-shadow:inset 3px 0 #fe9d02}
.account-sidebar-footer{flex-shrink:0;border-top:1px solid #ffffff20;margin-top:12px;padding-top:12px;display:grid;gap:8px}
.account-sidebar-footer-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.account-sidebar-action,.account-sidebar-toggle{width:100%;min-height:40px;font:inherit;font-size:.78rem;border:1px solid #355071;border-radius:7px;background:#0c2a50;color:#fff;padding:8px;cursor:pointer}
.account-sidebar-toggle{display:none}
.customer-console .account-sidebar :is(a,button):focus-visible{outline:3px solid #ffb876;outline-offset:2px}
.customer-console .account-content{min-width:0;line-height:1.7}
.customer-console .account-content>.page{padding:0;background:transparent}
.customer-console .account-content .wrap{width:100%;max-width:none;margin:0;padding:0}
.customer-console .account-content :is(h1,h2,h3,h4){color:#011d43;line-height:1.5}
.customer-console .account-content h1{font-size:clamp(1.5rem,2vw,2rem)}
.customer-console .account-content .eyebrow{color:#945000;font-size:.78rem;letter-spacing:normal}
.customer-console .account-content :is(.panel,.buying-need-card,.notification-card,.account-home-summary article,.account-profile-card,.account-plan-state,.plan-card){border-radius:16px;border-color:#dce4ef;box-shadow:0 4px 16px #011d4306}
.customer-console .account-content .section-head{gap:16px;flex-wrap:wrap;align-items:center}
.customer-console .account-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;border-radius:10px;border-color:#bccada;max-width:100%}
.customer-console .account-content :is(input,select,textarea,button,a):focus-visible{outline:3px solid #476489;outline-offset:3px}
.customer-console .account-content .btn:not(.danger):not(.success):not(.ghost){background:#011d43;color:#fff;border-color:#011d43;border-radius:10px;box-shadow:none}
.customer-console .account-content .btn.ghost:not(.danger):not(.success){background:#fff;color:#011d43;border:1px solid #bccada;border-radius:10px}
.customer-console .account-content :is(.notification-filters,.filter-tabs) [aria-pressed=true]{background:#011d43;color:#fff;box-shadow:inset 0 -3px #fe9d02}
.customer-console .account-content .table-wrap{border:1px solid #dce4ef;border-radius:16px;overflow:auto;background:#fff}
.customer-console .account-content .ops-table{width:100%;min-width:700px;margin:0;border-collapse:collapse}
.customer-console .account-content .ops-table th{height:56px;background:#011d43;color:#fff;padding:14px 16px;text-align:start;font-size:.82rem;white-space:nowrap}
.customer-console .account-content .ops-table td{height:64px;padding:16px;text-align:start;vertical-align:middle;border-bottom:1px solid #e7edf5;font-size:.86rem}
.customer-console .account-content .ops-table tbody tr:hover{background:#f2f6fc}
.customer-console .account-content .ops-table .btn.small{min-height:34px;padding:6px 12px;font-size:.78rem;white-space:nowrap}
.customer-console .account-content .customer-record-empty{min-height:110px;display:grid;place-items:center;text-align:center;padding:30px 16px;color:#52647b;margin:0}
.customer-record-controls{margin:18px 0}
.customer-record-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:14px}
.customer-record-stat{--stat-ink:#23538a;--stat-tint:#f2f7ff;--stat-edge:#3974b3;border:1px solid #dce4ef;border-top: 1px solid #e2e8f0;border-radius:16px;background:var(--stat-tint);text-align:center;padding:18px 12px;display:grid;gap:6px;color:var(--stat-ink)}
.customer-record-stat strong{font-size:1.8rem;line-height:1.3;font-variant-numeric:tabular-nums}.customer-record-stat span{font-size:.82rem}
.customer-record-stat.stat-amber{--stat-ink:#855000;--stat-tint:#fff8e9;--stat-edge:#fe9d02}.customer-record-stat.stat-green{--stat-ink:#216445;--stat-tint:#f0faf4;--stat-edge:#29865d}.customer-record-stat.stat-red{--stat-ink:#a13038;--stat-tint:#fff3f3;--stat-edge:#c44850}.customer-record-stat.stat-slate{--stat-ink:#4c5d73;--stat-tint:#f3f5f8;--stat-edge:#728399}
.customer-record-toolbar{background:#fff;border:1px solid #dce4ef;border-radius:16px;padding:18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;align-items:end}
.customer-record-toolbar label{display:grid;gap:7px;font-size:.8rem;font-weight:700;min-width:0}
.customer-record-toolbar :is(input,select){height:44px;width:100%;padding:10px 12px;font:inherit;background:#fff;color:#173152;border:1px solid #bccada}
.customer-record-toolbar .btn{min-height:44px}
.customer-record-result{grid-column:1/-1;background:#011d43;color:#fff;text-align:center;padding:10px 16px;border-radius:12px;margin:0;font-weight:800;font-size:1rem}
.customer-record-toolbar .feedback{grid-column:1/-1;margin:0}
.customer-console [data-customer-record][hidden],.customer-console .customer-record-empty[hidden],.customer-console [data-range-error][hidden]{display:none!important}
@media(max-width:1050px) and (min-width:761px){.customer-console{--account-rail:205px;padding-inline-end:16px;padding-inline-start:calc(var(--account-rail) + 16px)}}
@media(max-width:760px){.customer-console{padding:16px!important}.account-sidebar{position:static;width:100%;height:auto;border-radius:12px;margin-bottom:18px}.account-sidebar-brand img{width:190px;max-width:100%;height:82px;margin:auto}.account-sidebar-toggle{display:block;margin-bottom:10px}.account-sidebar-toggle[aria-expanded=false]~.account-sidebar-nav{display:none}.account-sidebar-footer{margin-top:10px}.account-sidebar-nav{overflow:visible}.customer-record-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.customer-record-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-console .account-content .ops-table{min-width:640px}.customer-record-toolbar label:first-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.customer-console *{scroll-behavior:auto!important;transition:none!important}}
.customer-console .account-sidebar .account-hub-item{flex-direction:row;white-space:normal}
.customer-console .account-content .plan-heading :is(h2,h3){color:#fff}
@media(max-width:1050px){.customer-console .account-content .buying-needs-layout{grid-template-columns:1fr}}

/* 066X4: account-only plan contrast and guided actions. */
.customer-console .account-content .account-plans-offers .pricing-hero{background:linear-gradient(120deg,#011d43,#123f70);border-radius:20px;padding:36px 24px;margin:24px 0;color:#fff}
.customer-console .account-content .account-plans-offers .pricing-hero h1{color:#fff;font-size:clamp(1.8rem,3vw,3rem);line-height:1.35}
.customer-console .account-content .account-plans-offers .pricing-hero :is(.pricing-hero-copy,.pricing-trust-line){color:#e3edfa}
.customer-console .account-content .account-plans-offers .pricing-hero .eyebrow{color:#fe9d02}
.customer-console .account-content :is(.account-plans-offers,.customer-empty-action) .btn:not(.ghost):not(.danger):not(.success){background:#fe9d02;color:#011d43;border-color:#fe9d02;font-weight:800}
.customer-console .account-content :is(.account-plans-offers,.customer-empty-action) .btn:not(.ghost):hover{background:#ffb330;border-color:#ffb330}
.customer-console .account-content .customer-empty-action{display:flex;flex-direction:column;gap:12px;min-height:210px;padding:30px 20px}
.customer-console .account-content .customer-empty-action :is(h3,p){margin:0;max-width:650px}
.customer-console .account-content .customer-empty-action .btn{margin-top:8px;min-height:44px}
.customer-console .account-content .buying-needs-layout{display:flex;flex-direction:column;gap:24px}
.customer-console .account-content .buying-needs-list-section{order:-1;min-width:0}
.customer-console .account-content .buying-needs-form-panel summary{cursor:pointer;color:#011d43;font-weight:800;padding:8px;min-height:44px;scroll-margin-top:20px}
.customer-console .account-content .buying-needs-form-panel[open] summary{border-bottom:1px solid #dce4ef;margin-bottom:20px}
.customer-console .account-content .buying-needs-list td :is(p,small){display:block;max-width:340px;margin:6px 0;font-size:.8rem}
.customer-console .account-content .buying-needs-list{display:block}
.customer-console .account-content .customer-record-empty[hidden]{display:none!important}

/* 066X5A: full available content width for need summary and creation. */
.customer-console .account-content .buying-needs-page .buying-needs-layout{align-items:stretch;width:100%;max-width:none;min-width:0}
.customer-console .account-content .buying-needs-page :is(.buying-needs-list-section,.buying-needs-form-panel){box-sizing:border-box;width:100%;max-width:none;min-width:0;margin-inline:0;align-self:stretch}
.customer-console .account-content .buying-needs-page .buying-needs-form-panel{position:static;top:auto}
.customer-console .account-content .buying-needs-page :is(#buying-need-form,.buying-needs-list){width:100%;max-width:none;min-width:0}
.customer-console .account-content .buying-needs-page .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.customer-console .account-content .buying-needs-page .form-grid{grid-template-columns:minmax(0,1fr)}}
/* Private company document library. */
.company-documents-panel{padding:26px;border:1px solid #dbe4ef;border-radius:20px;background:#fff;min-width:0}
.company-documents-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-bottom:20px;margin-bottom:18px;border-bottom:1px solid #e8edf4;position:static;top:auto;z-index:auto}
.company-documents-head h2{font-size:24px;color:#0a1f44;margin:0 0 8px}
.company-documents-head p:last-child{font-size:14px;line-height:1.8;color:#596a80;margin:0;max-width:650px}
.company-documents-count{display:inline-flex;white-space:nowrap;flex-shrink:0;font-size:12px;font-weight:800;padding:7px 12px;border-radius:20px;background:#edf2f8;color:#425570}
.company-documents-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.company-document-card{display:flex;flex-direction:column;min-width:0;padding:18px;border:1px solid #dce5ef;border-radius:14px;background:#fff}
.company-document-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.company-document-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eef3fa;color:#0a1f44}
.company-document-icon svg{width:25px;height:25px}
.company-document-kind{font-size:12px;color:#62748b}
.company-document-card h3{font-size:17px;color:#0a1f44;margin:0 0 8px;overflow-wrap:anywhere}
.company-document-card p{font-size:12px;line-height:1.8;color:#62748b;margin:0 0 18px}
.company-document-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:14px;border-top:1px solid #edf1f7}
.company-document-actions .btn,.company-documents-upload .btn{font-size:12px;padding:8px 12px;min-height:36px}
.company-document-actions .company-document-delete{color:#b42318;border-color:#efcdca;background:#fff}
.company-documents-empty{grid-column:1/-1;text-align:center;padding:30px 18px;border:1px dashed #d4deeb;border-radius:14px;background:#fafbfd}
.company-documents-empty svg{width:36px;height:36px;color:#63748a;margin-bottom:12px}
.company-documents-empty h3{font-size:17px;margin:0 0 8px}
.company-documents-empty p{font-size:13px;color:#62748b;margin:0;line-height:1.8}
.company-documents-upload{margin-top:20px;border:1px solid #dce5ef;border-radius:14px;background:#fff}
.company-documents-upload summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 18px;list-style:none;font-size:14px;font-weight:700;color:#0a1f44}
.company-documents-upload summary::-webkit-details-marker{display:none}
.company-documents-upload summary svg{width:24px;height:24px}
.company-documents-plus{margin-inline-start:auto;font-size:22px;color:#a85500}
.company-documents-upload[open] .company-documents-plus{transform:rotate(45deg)}
.company-documents-upload-body{padding:18px;border-top:1px solid #edf1f7}
.company-documents-upload-body .hint{font-size:13px;line-height:1.8;color:#62748b}
.company-documents-limit{font-size:13px;color:#885100;margin:0}
.company-documents-revoke-note{font-size:12px;line-height:1.8;color:#62748b;margin:16px 0 0}
.company-documents-upload summary:focus-visible{outline:2px solid #f47c20;outline-offset:3px}
@media(max-width:760px){.company-documents-grid{grid-template-columns:1fr}.company-documents-panel{padding:18px}.company-documents-head{flex-direction:column;gap:12px}.company-document-card{padding:16px}.company-documents-upload-body{padding:14px}}
/* Profile workspace. */
.profile-account-layout{max-width:none;width:100%;margin:0;display:grid;gap:20px}
.profile-account-layout .panel{margin:0;border-radius:18px;padding:24px;min-width:0}
.profile-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;position:static;top:auto;z-index:auto;border:0;background:none;padding:0}
.profile-page-kicker{font-size:12px;font-weight:800;color:#975000;margin:0 0 6px}
.profile-page-head h1{font-size:30px;margin:0 0 10px}
.profile-page-head p:last-child{font-size:14px;color:#596a80;line-height:1.8;margin:0;max-width:650px}
.profile-page-head .btn{flex-shrink:0;font-size:13px;padding:9px 14px}
.profile-privacy-note{font-size:13px;line-height:1.8;background:#f3f6fb;border-inline-start: 1px solid #e2e8f0;border-radius:12px;padding:14px 18px;margin:0;color:#52647b}
.profile-identity-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}
.profile-photo-panel{text-align:center;background:#fff}
.profile-photo-panel h2{font-size:19px;margin-bottom:20px}
.profile-photo-panel .profile-avatar{display:block;width:112px;height:112px;object-fit:cover;border-radius:50%;margin:0 auto 14px;border:4px solid #edf2f8}
.profile-photo-placeholder{display:grid;place-items:center;width:112px;height:112px;margin:0 auto 14px;border-radius:50%;background:#edf2f8;color:#0a1f44;font-size:38px;font-weight:800}
.profile-photo-panel .form{text-align:start;margin-top:20px;border-top:1px solid #e7edf4;padding-top:18px;gap:14px}
.profile-photo-panel .form label{font-size:12px;line-height:1.8}
.profile-photo-panel input[type=file]{max-width:100%;min-width:0;width:100%;font-size:11px;padding:10px}
.profile-photo-panel .btn{font-size:12px;padding:8px 12px}
.profile-photo-panel .hint{font-size:12px;color:#62748b}
.profile-details-panel h2{font-size:20px;margin-bottom:14px}
.profile-email-status{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #e2e9f2;border-radius:10px;background:#f7f9fc;font-size:12px;color:#52647b;margin-bottom:22px;overflow-wrap:anywhere}
.profile-email-status span:last-child{font-size:11px;font-weight:700}
.profile-details-panel .form-grid{gap:18px}
.profile-details-panel .form label{font-size:13px;color:#425570}
.profile-details-panel .form input,.profile-details-panel .form textarea{border-radius:10px;background:#fff}
.profile-details-panel .btn{font-size:13px;padding:10px 16px}
.profile-details-panel>.hint{font-size:12px;line-height:1.8;color:#62748b;margin:16px 0 0}
.profile-preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.profile-preferences-grid .panel h2{font-size:19px}
.profile-preferences-grid .panel p{font-size:13px;line-height:1.8}
.profile-account-layout .company-documents-panel{scroll-margin-top:110px}
@media(max-width:1000px){.profile-identity-grid{grid-template-columns:220px minmax(0,1fr)}.profile-preferences-grid{grid-template-columns:1fr}}
@media(max-width:760px){.profile-identity-grid{grid-template-columns:1fr}.profile-page-head{flex-direction:column;gap:14px}.profile-page-head h1{font-size:25px}.profile-account-layout .panel{padding:18px}.profile-photo-panel .form{max-width:360px;margin-inline:auto}.profile-details-panel .form-grid{grid-template-columns:1fr}}
/* Compact result count alongside account filters, with a quiet visual style. */
.customer-record-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:16px 18px}
.customer-record-toolbar label{flex:1 1 140px;max-width:190px;min-width:0;gap:6px;font-size:12px}
.customer-record-toolbar :is(input,select){height:40px;padding:8px 10px;font-size:12px;border-radius:9px}
.customer-record-toolbar .btn{flex:0 0 auto;min-height:40px;padding:8px 14px;font-size:12px;white-space:nowrap}
.customer-record-toolbar .customer-record-result{grid-column:auto;flex:0 0 auto;align-self:flex-end;margin:0;margin-inline-start:auto;background:none;color:#62748b;padding:0 4px;border:0;border-radius:0;text-align:start;font-size:12px;font-weight:600;line-height:40px;white-space:nowrap}
.customer-record-toolbar .feedback{flex:0 0 100%;margin:0;max-width:none}
@media(max-width:760px){.customer-record-toolbar{padding:14px;gap:10px}.customer-record-toolbar label{flex:1 1 140px;max-width:none}.customer-record-toolbar label:first-child{flex-basis:100%}.customer-record-toolbar .customer-record-result{font-size:11px;line-height:40px}}
.customer-record-toolbar .customer-record-actions{display:flex;flex:0 0 auto;align-items:center;gap:12px;max-width:100%}
.customer-record-toolbar .customer-record-actions .customer-record-result{margin-inline-start:0}
@media(max-width:760px){.customer-record-toolbar .customer-record-actions{gap:10px;flex-wrap:wrap}}
/* Use the same content boundaries as the other account pages. */
.customer-console .account-content .profile-account-layout{width:100%;max-width:none;margin:0;padding:0}
.customer-console .account-content .profile-identity-grid{grid-template-columns:240px minmax(0,1fr);gap:20px}
.customer-console .account-content .profile-account-layout .panel{padding:22px}
.customer-console .account-content .profile-preferences-grid{gap:20px}
.customer-console .account-content .profile-page-head{align-items:center;padding-bottom:4px}
.customer-console .account-content .profile-page-head p:last-child{max-width:850px}
.customer-console .account-content .profile-details-panel .form{gap:16px}
.customer-console .account-content .profile-details-panel .form-grid{gap:16px 20px}
.customer-console .account-content .profile-details-panel .form :is(input,select){min-height:42px;padding:9px 12px}
.customer-console .account-content .profile-details-panel textarea{min-height:100px}
.customer-console .account-content .profile-email-status{justify-content:flex-start;gap:14px}
.customer-console .account-content .profile-email-status span:last-child{margin-inline-start:auto}
.customer-console .account-content .profile-preferences-grid .notice{background:#f7f9fc;border:1px solid #e3eaf2;color:#596a80;padding:12px 14px;border-radius:10px;margin-bottom:16px}
.customer-console .account-content .company-documents-head p:last-child{max-width:850px}
@media(min-width:1300px){.customer-console .account-content .profile-details-panel .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-console .account-content .company-documents-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.customer-console .account-content .profile-identity-grid{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:760px){.customer-console .account-content .profile-identity-grid{grid-template-columns:1fr}.customer-console .account-content .profile-account-layout .panel{padding:18px}.customer-console .account-content .profile-page-head{align-items:flex-start}.customer-console .account-content .profile-details-panel .form-grid{grid-template-columns:1fr}}
/* Unified identity card and a dedicated preferences page. */
.profile-identity-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e3eaf2}
.profile-compact-identity{display:flex;align-items:center;gap:16px;min-width:0}
.profile-compact-identity .profile-avatar,.profile-compact-identity .profile-photo-placeholder{width:72px;height:72px;min-width:72px;object-fit:cover;border-radius:50%;border:3px solid #edf2f8;margin:0}
.profile-compact-identity .profile-photo-placeholder{display:grid;place-items:center;background:#edf2f8;color:#0a1f44;font-size:26px;font-weight:800}
.profile-compact-identity h2{font-size:19px;margin:0 0 4px;overflow-wrap:anywhere}
.profile-compact-identity p{font-size:13px;color:#52647b;margin:0 0 4px;overflow-wrap:anywhere}
.profile-compact-identity span{font-size:12px;color:#62748b}
.profile-photo-editor{flex-shrink:0;max-width:360px;min-width:120px}
.profile-photo-editor summary{cursor:pointer;list-style:none;border:1px solid #bccada;border-radius:9px;padding:8px 14px;font-size:12px;font-weight:700;color:#0a1f44;text-align:center}
.profile-photo-editor summary::-webkit-details-marker{display:none}
.profile-photo-editor summary:focus-visible{outline:2px solid #f47c20;outline-offset:3px}
.profile-photo-editor-body{padding-top:16px}
.profile-photo-editor-body .form{gap:12px;margin-bottom:12px}
.profile-photo-editor-body label{font-size:12px}
.profile-photo-editor-body input[type=file]{width:100%;min-width:0;font-size:11px;padding:8px}
.profile-photo-editor-body .btn{font-size:12px;padding:8px 12px}
.account-preferences-page{display:grid;gap:20px;min-width:0;width:100%}
.preferences-page-head{position:static;top:auto;z-index:auto;border:0;background:none;padding:0}
.preferences-page-head h1{margin:0 0 10px}
.preferences-page-head p{color:#596a80;font-size:14px;margin:0;line-height:1.8}
.account-preferences-stack{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
.account-preferences-page .panel{margin:0;min-width:0;padding:22px}
.account-preferences-page .panel h2{font-size:20px}
.account-preferences-page .panel p{font-size:13px;line-height:1.8}
.account-event-email .form{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.account-event-email .check{flex:1;min-width:200px;font-size:13px}
.account-event-email .feedback{flex-basis:100%;margin:0}
.account-event-email .feedback:empty{display:none}
.account-event-email .btn{font-size:12px;padding:8px 14px}
.notification-preferences-link{font-size:13px;color:#52647b}
@media(max-width:1000px){.account-preferences-stack{grid-template-columns:1fr}}
@media(max-width:760px){.profile-identity-top{flex-direction:column;align-items:stretch;gap:16px}.profile-compact-identity .profile-avatar,.profile-compact-identity .profile-photo-placeholder{width:60px;height:60px;min-width:60px}.profile-photo-editor{max-width:none;width:100%}.profile-photo-editor summary{width:max-content}.profile-compact-identity h2{font-size:17px}.account-preferences-page .panel{padding:18px}}

/* All customer table states: readable, one-line highlights without oval borders. */
.customer-console table :is(.status-pill,.buying-need-status){display:inline-flex;align-items:center;width:max-content;max-width:none;white-space:nowrap;word-break:normal;overflow-wrap:normal;border:0;border-radius:4px;padding:3px 8px;font-size:12px;font-weight:700;line-height:1.6;color:#475569;background:#eef2f6;box-shadow:none}
.customer-console table :is(.status-new,.status-pending,.status-reviewing,.status-awaiting_seller,.status-pending_admin,.status-pending_seller,.status-waiting,.status-requested){color:#924600;background:#fff0db}
.customer-console table :is(.status-sold,.status-open,.status-published,.status-approved,.status-verified,.status-negotiating,.status-accepted,.status-active,.status-paid,.status-contact_released){color:#14643a;background:#e8f5ed}
.customer-console table :is(.status-rejected,.status-declined,.status-failed,.status-blocked){color:#a52626;background:#fceaea}
.customer-console table :is(.status-closed,.status-expired,.status-cancelled){color:#475569;background:#eef2f6}

.customer-console table .buying-need-status.success{color:#14643a;background:#e8f5ed}
.customer-console table .buying-need-status.action{color:#924600;background:#fff0db}
.customer-console table .buying-need-status.danger{color:#a52626;background:#fceaea}
.customer-console table .buying-need-status.muted{color:#475569;background:#eef2f6}

/* 066Y59: explicit market return and customer business-role editing. */
.account-sidebar .account-return-site{display:block;text-align:center;text-decoration:none;border:1px solid #f68b1f;color:#fff;margin-bottom:8px}
.profile-role-panel{padding:18px 0;margin-bottom:22px;border-bottom:1px solid #dce4ed}
.profile-role-panel h3{margin:0 0 8px;color:#041e42}
.profile-role-form{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:12px;max-width:600px}
.profile-role-form .feedback{grid-column:1/-1}
@media(max-width:600px){.profile-role-form{grid-template-columns:1fr}.profile-role-form button{justify-self:start}}

/* 066Y60: buying needs use the same centered account heading and table shell. */
.customer-console .account-content .buying-needs-page .account-section-head{display:flex;text-align:center;justify-content:center;gap:16px;margin:4px 0 24px}
.customer-console .account-content .buying-needs-page .account-section-head>div{width:100%;text-align:center;display:flex;flex-direction:column;align-items:center}
.customer-console .account-content .buying-needs-page .account-section-head .sub{width:100%;max-width:680px;margin:8px auto 0;text-align:center}
.customer-console .account-content .buying-needs-list-section>.section-head{text-align:center;justify-content:center}
.customer-console .account-content .buying-needs-list-section>.section-head>div{width:100%;text-align:center}
.customer-console .account-content .buying-needs-list-section{padding:24px}
@media(max-width:600px){.customer-console .account-content .buying-needs-list-section{padding:16px}}

/* 066Y64: compact account controls keep mobile content closer to the top. */
@media(max-width:760px){
 .customer-console .account-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px}
 .customer-console .account-sidebar-brand{border:0;margin:0;padding:0;align-self:center}
 .customer-console .account-sidebar-brand img{width:128px;height:44px;margin:0;object-fit:contain}
 .customer-console .account-sidebar-toggle{width:auto;max-width:150px;margin:0;align-self:center;font-size:12px}
 .customer-console .account-sidebar-nav{grid-column:1/-1;min-width:0}
 .customer-console .account-sidebar-footer{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:6px;margin:0;padding-top:10px}
 .customer-console .account-sidebar-footer-row{gap:4px;min-width:0}
 .customer-console .account-sidebar-action{min-width:0;min-height:40px;font-size:10px;padding:7px 4px}
 .customer-console .account-return-site{margin:0}
 .customer-console #account-sidebar-feedback:empty{display:none}
 .customer-console #account-sidebar-feedback:not(:empty){grid-column:1/-1;margin:0}
}

/* 066Y66: the remaining account metrics fill the removed plan card's space. */
.customer-console .account-home-summary.is-free-launch{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.customer-console .account-home-summary.is-free-launch{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-console .account-home-summary.is-free-launch article:last-child{grid-column:1/-1}}
@media(max-width:600px){.customer-console .account-home-summary.is-free-launch{grid-template-columns:minmax(0,1fr)}}


/* === PATCH 110: TOP-LEFT EXCEL EXPORT BUTTON FOR ALL ADMIN & CUSTOMER TABLES === */

:is(.admin-console, .ops-page, .customer-console) .lot4b-excel-export-btn {
  direction: rtl !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  box-shadow: 0 1px 2px rgba(16, 124, 65, 0.06) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease !important;
}


:is(.admin-console, .ops-page, .customer-console) .lot4b-excel-export-btn:hover {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border-color: #86efac !important;
  box-shadow: 0 3px 8px rgba(16, 124, 65, 0.12) !important;
  transform: translateY(-1px) !important;
}




/* === PATCH 111: CLEAN CUSTOMER TABLES, CLICKABLE REFS, NO PLANS EXPORT === */
/* === PATCH 112: CALM FILTER PILLS, UNIFIED CENTERED HEADERS, FIT TABLES, PROFILE & DOCS, HEADER BELL MENU & RED LOGOUT === */

/* 1. Hide row thumbnails/logos in Customer Account tables & exclude Plans table export bar */
.customer-console .account-content .ops-table :is(.lot4b-row-thumb, .lot4b-req-avatar) {
  display: none !important;
}

/* 2. Clickable Offer & Need Numbers and Titles in Customer Tables */

/* 3. Calm Filter Pills without Blue Bottom Shadow (image_7fadea.png) */
.customer-console .lot4b-scope-tab.is-active {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* 4. Unified Centered Header, Action Button & Filter Bar Across All Customer Account Pages */

/* Remove duplicate inner section-head on single-table pages so tabs & filters sit at the top cleanly */

/* Unified Filter Toolbar (.customer-record-toolbar) */
.customer-console .customer-record-controls {
  margin: 0 0 14px !important;
}

/* 5. Fit-to-Screen Customer Tables & Eliminate Empty Gap After Offer / Buying Need Column */
.customer-console .account-content .account-table-panel {
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 16px !important;
}

/* 6. Profile & Documents Page (#profile & #profile-documents) Calm B2B Redesign */
.customer-console .lot4b-profile-kpi-card {
  border-radius: 14px !important;
  padding: 14px 16px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  border: 1px solid #dbeafe !important;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%) !important;
}
.customer-console .lot4b-profile-kpi-card.tone-green strong {
  color: #15803d !important;
}
.customer-console .lot4b-profile-kpi-card.tone-amber {
  border-color: #fde68a !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%) !important;
}
.customer-console .lot4b-profile-kpi-card.tone-amber strong {
  color: #b45309 !important;
}
.customer-console .lot4b-profile-kpi-card.tone-slate {
  border-color: #e2e8f0 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

/* 7. Red Customer Logout Button (matching Admin Logout Button) */

/* 8. Header Notifications Dropdown (#notification-bell & .bell-menu) in Calm Enterprise B2B Identity */
#notification-bell .bell-button {
  position: relative !important;
  border-radius: 10px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
#notification-bell .bell-button:hover,
#notification-bell .bell-button[aria-expanded="true"] {
  background: #f1f5f9 !important;
  color: #1d4ed8 !important;
}
#notification-bell .bell-count:not(:empty) {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-weight: 800 !important;
}
#notification-bell .bell-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
  padding: 14px !important;
  width: min(380px, 92vw) !important;
  color: #0f172a !important;
}
#notification-bell .bell-menu > h3 {
  margin: 0 0 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
#notification-bell .bell-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
}
#notification-bell .bell-list > p {
  margin: 0 !important;
  padding: 22px 12px !important;
  text-align: center !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
}
#notification-bell .bell-item {
  display: block !important;
  text-decoration: none !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-inline-start: 3.5px solid #1d4ed8 !important;
  border-radius: 11px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  color: #0f172a !important;
  transition: all 0.15s ease !important;
}
#notification-bell .bell-item.notice-success {
  border-inline-start-color: #e2e8f0!important;
}
#notification-bell .bell-item.notice-action {
  border-inline-start-color: #e2e8f0!important;
}
#notification-bell .bell-item.notice-danger {
  border-inline-start-color: #e2e8f0!important;
}
#notification-bell .bell-item:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  transform: translateY(-1px) !important;
}
#notification-bell .bell-item strong {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
}
#notification-bell .bell-item small {
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.72rem !important;
  color: #64748b !important;
}
#notification-bell .bell-footer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9 !important;
}
#notification-bell .bell-footer-actions :is(a.btn, button.btn) {
  flex: 1 1 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
#notification-bell .bell-footer-actions a.btn:first-child {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}
#notification-bell .bell-footer-actions a.btn:first-child:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

@media (max-width: 760px) {
  .customer-console .lot4b-profile-kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .customer-console .account-content .ops-table {
    min-width: 620px !important;
  }
  .customer-console .account-content .ops-table td.lot4b-product-td {
    width: auto !important;
    max-width: 200px !important;
  }
}


/* === PATCH 113: COMPACT SINGLE-ROW FILTER BAR, HIDE DUPLICATE ALL(0), DASHBOARD READINESS CARD, UNIFIED BUYING NEEDS HEADER, ACCOUNT PLANS V2, PROFILE ROLE/DOCS & NO BOTTOM GAP === */

/* 1. Eliminate Empty Space Under Buttons & At End of Pages */
.customer-console {
  padding-bottom: 20px !important;
}
.customer-console .account-content .form {
  gap: 12px !important;
  margin-bottom: 0 !important;
}
.customer-console .customer-interest-actions {
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

/* 2. Hide Duplicate "الكل (0)" Status Tab Bar Above Customer Tables */

/* 3. Compact Single-Row Search & Filter Toolbar (Inputs + Clear Filters + Results on 1 Row) */
.customer-console .customer-record-controls {
  margin: 0 0 12px !important;
}
@media (max-width: 860px) {
  .customer-console .customer-record-toolbar {
    flex-wrap: wrap !important;
  }
  .customer-console .customer-record-toolbar label {
    flex: 1 1 130px !important;
    max-width: none !important;
  }
  .customer-console .customer-record-toolbar label:first-child {
    flex: 1 1 100% !important;
    max-width: none !important;
  }
}

/* 4. Identical Centered Header Across #buying-needs, #my-listings, #favorites, #interests & #profile */

/* 5. Dashboard Account Readiness & Quick Shortcuts Card (.lot4b-dash-readiness-card-v3) */
.customer-console .lot4b-readiness-pill.is-ok strong {
  color: #15803d !important;
}
.customer-console .lot4b-readiness-pill.is-warn strong {
  color: #b45309 !important;
}
@media (max-width: 680px) {
  .customer-console .lot4b-dash-readiness-pills,
  .customer-console .lot4b-dash-shortcuts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 6. Account Plans Page (#account-plans) Matching Main #plans Page in Calm B2B Identity */
.customer-console .account-content .account-plans-offers.pricing-page-v2 .wrap {
  padding: 0 !important;
}
@media (max-width: 900px) {
  .customer-console .account-content .service-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .customer-console .account-content .service-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 7. Profile Role Panel (#profile-role-settings) & Company Documents (#profile-documents) in Calm B2B Identity */



/* === LOTNEX Patch 114: SUPPORT TICKETS DASHBOARD & CHAT CONVERSATION UI, BALANCED 3-COL CONTACT WORKSPACE & DOCUMENTS === */

/* 1. Support Tickets Dashboard (#support-tickets — .lot4b-support-page-v3) */
@media (max-width: 1180px) {
  .lot4b-support-dash-layout {
    grid-template-columns: 250px minmax(0, 1fr) !important;
  }
  .lot4b-support-guide-card {
    grid-column: 1 / -1 !important;
  }
}
.lot4b-support-tab b {
  font-weight: 800 !important;
  color: #64748b !important;
}
.lot4b-support-tab.is-active b {
  color: #1d4ed8 !important;
}
.lot4b-support-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.lot4b-support-row-mid small {
  font-size: 0.72rem !important;
  color: #64748b !important;
}
.lot4b-support-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.lot4b-support-open-btn:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
}

/* 2. Ticket Chat Conversation Workspace (#ticket/:id — .lot4b-ticket-chat-page) */
.lot4b-ticket-meta-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.lot4b-ticket-info-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.lot4b-ticket-info-list > div > span:first-child {
  color: #64748b !important;
  font-weight: 700 !important;
}
.lot4b-ticket-info-list > div > strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.lot4b-ticket-quick-btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.lot4b-ticket-msg.is-customer {
  align-self: flex-start !important;
}
.lot4b-ticket-msg.is-support {
  align-self: flex-end !important;
  flex-direction: row-reverse !important;
}
.lot4b-ticket-msg-head small {
  font-size: 0.68rem !important;
  color: #64748b !important;
}

@media (max-width: 920px) {
  .lot4b-support-dash-layout,
  .lot4b-ticket-workspace-grid {
    grid-template-columns: 1fr !important;
  }
  .lot4b-support-row-card {
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
  }
  .lot4b-support-row-mid {
    align-items: flex-start !important;
    text-align: start !important;
  }
  .lot4b-support-row-left {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* 3. Customer Approved Contact & Deal Page (#contact/:id — Screenshots 024319 to 024351) */
.customer-console .contact-documents .document-column.document-column-deal {
  border-top-color: #e2e8f0!important;
}
@media (max-width: 980px) {
  .customer-console .lot4b-contact-cards-grid3,
  .customer-console .contact-documents .document-columns {
    grid-template-columns: 1fr !important;
  }
}


/* === LOTNEX Patch 115: Bell Dropdown Fix, Borderless Globe Icon for OTHER & Hide Category Column in Buying Needs Table === */

/* 1. Header Notification Bell Dropdown (#notification-bell .bell-menu) — Single Scrollbar & Full Text Wrapping (image_1586e6.png) */





/* 2. Borderless Globe Icon for OTHER in Registration & Interests (image_15879c.png) */


/* 3. Remove Category (الصنف) Column from Customer Buying Needs Table (image_158b01.png) */


/* === LOTNEX Patch 116: Fix Header Bell Dropdown Item Squishing & Show Full Text + Timestamp (image_16198a.png) === */






/* === LOTNEX Patch 118: Seller->Offer->Buyer Order, Clean Document Columns & Calm B2B Companies Directory/Storefront === */

/* 1. 3-Column Order: البائع (1) -> العرض (2) -> المشتري (3) */

/* 2. Documents & Sharing Section (.contact-documents & .document-column) — Single Clean Card Header, No Double Top Borders */

































/* 3. Public Companies Directory (#companies) & Storefront (#company/:slug) in LOTNEX B2B Identity */

















.lot4b-companies-directory-page .lot4b-company-card-meta {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}






/* Company Storefront Page (#company/:slug) */
body.company-store-shell {
  background: #f4f7fb !important;
}





#header.company-shell-header .bell-button {
  color: #ffffff !important;
}











@media (max-width: 980px) {
  .lot4b-companies-directory-page .company-store-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .lot4b-companies-directory-page .company-store-directory,
  .contact-page .contact-documents .document-columns,
  .customer-console .contact-documents .document-columns {
    grid-template-columns: 1fr !important;
  }
}


/* === LOTNEX Patch 121: Smart-Shrinking Sticky Header Without Scroll Jitter, Overlay Compact Nav Row, Flush #how Scroll & B2B Privacy Page === */

/* 1. Keep Seller & Buyer Audience Card Descriptions on a Single Line (image_4312df.png) */

@media (max-width: 1040px) {
  .lot4b-audience-section .audience > p {
    white-space: normal !important;
  }
}

/* 2. Smart-Shrinking Sticky Header With Overlay Compact Nav Row & Hysteresis (Zero Scroll-Anchoring Loop) */
html,
body,
#header.lot4b-header,
#main {
  overflow-anchor: none !important;
}

#header.lot4b-header.is-Instant-measure,
#header.lot4b-header.is-Instant-measure * {
  transition: none !important;
}

@media (min-width: 901px) {
  /* In .is-compact, detach .lot4b-header-bottom as an absolute overlay bar so hovering/unhovering never shifts page layout or scrollY */
  #header.lot4b-header.is-compact {
    position: sticky !important;
    top: 0 !important;
  }

  #header.lot4b-header.is-compact .lot4b-header-bottom {
    position: absolute !important;
    top: 100% !important;
    inset-inline: 0 !important;
    z-index: 35 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease !important;
  }

  #header.lot4b-header.is-compact:not(:hover):not(:focus-within) .lot4b-header-bottom {
    max-height: 0 !important;
    min-height: 0 !important;
    padding-block: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    opacity: 0 !important;
    transform: translateY(-4px) !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  #header.lot4b-header.is-compact:hover .lot4b-header-bottom,
  #header.lot4b-header.is-compact:focus-within .lot4b-header-bottom {
    max-height: 54px !important;
    min-height: 40px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }
}

section#how,
section#faq {
  scroll-margin-top: 56px !important;
}

/* 3. Privacy & Platform Role Page (#privacy / .lot4b-privacy-page) in Calm Enterprise B2B Identity */
.lot4b-privacy-page {
  background: #f4f7fb !important;
  padding-block: 32px 64px !important;
}























@media (max-width: 960px) {
  .lot4b-privacy-page .lot4b-privacy-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === LOTNEX Patch 122: Buying Need Card Details Button Color #3D6998 (WCAG AA) === */



/* === LOTNEX Patch 123: Streamlined Offer Card (Condition, Warehouse & Availability Moved to Details Only) === */

.lot4b-offer-card-v2 .lot4b-offer-market {
  margin: 0 0 8px !important;
  padding: 0 !important;
}



.lot4b-offer-card-v2 .lot4b-partial-sale-pill svg {
  width: 12px !important;
  height: 12px !important;
}

.account-preferences-page .account-event-email, .customer-console .account-event-email { display: none !important; }


/* === LOTNEX Patch 127: Support Ticket Card Anti-Squish Fix & Dedicated Support Guide Pages === */

/* 1. Support Dashboard Layout: Give Tickets List Full Width & 2-Column Help Cards Below */






/* 2. Ticket Card Row Fix: Prevent Vertical Character Squishing (#LT4B-...) */








/* 3. Dedicated Support Guide Pages (#support-guide/:slug — .lot4b-support-guide-page) */





.lot4b-support-guide-page .lot4b-guide-hero-copy {
  flex: 1 1 520px !important;
  min-width: 0 !important;
}


























.lot4b-support-guide-page .lot4b-guide-bullet.is-do {
  background: #dcfce7 !important;
  color: #15803d !important;
}










@media (max-width: 900px) {
  .lot4b-support-page-v3 .lot4b-support-dash-layout,
  .customer-console .lot4b-support-dash-layout,
  .lot4b-support-guide-page .lot4b-guide-pillars-grid,
  .lot4b-support-guide-page .lot4b-guide-comparison-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === LOTNEX Patch 128: Fix Sticky Inner Headers, Guide Footer Specificity & Redesigned Lot4B Analytics Page === */

/* 1. Never allow inner <header> or <footer> inside #main / .customer-console to inherit sticky positioning from style.css */

/* 2. High-specificity overrides for Support Guide Page inside .customer-console .account-content */






/* 3. Redesigned Lot4B Customer Analytics Page (#account-analytics — .lot4b-analytics-page-v3) */





























.lot4b-analytics-mini-stat.is-highlight {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}



.lot4b-analytics-mini-stat.is-highlight strong {
  color: #1d4ed8 !important;
}

.lot4b-analytics-listing-bar-wrap {
  flex: 1 1 100% !important;
  width: 100% !important;
}

.lot4b-analytics-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.lot4b-analytics-bar-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}



.lot4b-analytics-bar-meta strong {
  color: #0f172a !important;
  font-weight: 800 !important;
  flex: 1 !important;
}





.lot4b-analytics-empty-mini p {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
}


.lot4b-analytics-privacy-icon {
  font-size: 1.2rem !important;
  flex-shrink: 0 !important;
}


@media (max-width: 1080px) {
  .customer-console .account-content .lot4b-analytics-kpis-grid,
  .lot4b-analytics-page-v3 .lot4b-analytics-kpis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  .customer-console .account-content .lot4b-analytics-kpis-grid,
  .lot4b-analytics-page-v3 .lot4b-analytics-kpis-grid,
  .customer-console .account-content .lot4b-analytics-main-grid,
  .lot4b-analytics-page-v3 .lot4b-analytics-main-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === LOTNEX Patch 132: Redesigned Checkout Pages, Order Confirmation Card & Featured/Quota Summary Tables === */

/* 1. Quota Remaining Badges in #account-plans Summary Cards */





/* 2. Featured & Pinned Listings Table and Requests Table in #account-plans */




.lot4b-plan-panel-head p {
  margin: 0 !important;
  font-size: 0.83rem !important;
  color: #64748b !important;
}




.lot4b-feat-offer-link {
  color: #0f172a !important;
  text-decoration: none !important;
}

.lot4b-feat-offer-link:hover strong {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}
















/* 3. Redesigned Checkout Pages (#subscribe/:code & #addon/:code — .lot4b-checkout-page) */





.lot4b-checkout-hero-copy {
  flex: 1 1 480px !important;
  min-width: 0 !important;
}












.lot4b-checkout-step-head p {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
}












.lot4b-checkout-submit-btn {
  min-width: 220px !important;
}








/* 4. Order Confirmation Card (.lot4b-checkout-success-card) */












@media (max-width: 960px) {
  .lot4b-checkout-workspace {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   LOTNEX Patch 133:
   - Fix horizontal scrollbar & double-box radio options on #subscribe/* & #addon/*
   - Fix Featured & Requests Summary Tables width, clipping & export bar in #account-plans
   - Style Explore Plans CTA Banner (.lot4b-explore-plans-banner)
   - Style Public Multi-Cycle Switcher (.lot4b-public-cycle-bar) for 1M / 3M / 6M / 12M
   ========================================================================== */

/* 1. Eliminate Horizontal Overflow in Customer Console & Checkout Pages */



/* 2. Fix Billing Cycle Radio Cards (Prevent input width:100% overflow & double border box) */








/* 3. Fix Featured & Requests Summary Tables in #account-plans (No Horizontal Scrollbar / No Clipped Buttons) */





.lot4b-feat-action-td {
  white-space: nowrap !important;
  width: 1% !important;
}






/* 4. Explore Plans & Add-ons Clean CTA Banner in #account-plans (.lot4b-explore-plans-banner) */

.lot4b-explore-plans-copy {
  flex: 1 1 460px !important;
  min-width: 0 !important;
}







/* 5. Public Plans Multi-Cycle Switcher (.lot4b-public-cycle-bar) */




.lot4b-public-cycle-btn:hover {
  border-color: #1d4ed8 !important;
  color: #1d4ed8 !important;
}


@media (max-width: 1080px) {
  .lot4b-checkout-workspace {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   LOTNEX Patch 134:
   - Fix Buying Need Card Heart Button overlapping Category Icon (.lot4b-need-media-wrap)
   - Fix Horizontal Scrollbar when switching to English (html[dir="ltr"] / lang="en")
   ========================================================================== */

/* 1. Buying Need Card Header: 3 Distinct Non-Overlapping Zones (Wanted Badge | Centered Category Icon | Heart Button) */
.lot4b-need-card-v2 .lot4b-need-media-wrap {
  position: relative !important;
  display: block !important;
}





.lot4b-need-card-v2 .lot4b-need-heart-btn:hover {
  transform: translateY(-50%) scale(1.06) !important;
}

/* 2. Prevent Any Page-Level Horizontal Scrollbar in Both Arabic (RTL) and English (LTR) */
html,
body {
  max-width: 100% !important;
  overflow-x: clip !important;
}







html[dir="ltr"] #header.lot4b-header .lot4b-post-actions {
  gap: 6px !important;
}




/* ==========================================================================
   LOTNEX Patch 135:
   - Fix Explore Plans Banner Card Contrast & Lot4B Identity (image_bac556.png)
   - Hide Featured Explainer Box (image_bac919.png)
   - Style Standalone External Communication Add-on Preference Picker (.lot4b-comm-addon-pref-box)
   ========================================================================== */
.lot4b-featured-explainer {
  display: none !important;
}












/* ==========================================================================
   LOTNEX Patch 136: Production Web Interface Design System Constraints
   ========================================================================== */



/* Unbox icon wrapper containers (excluding <svg class="icon"> itself) */



/* How It Works (#how) 4-Step Icon & Number Box (01, 02, 03, 04) — Clean Stacked Layout Without Overlap */



.wrap {
  max-width: 1200px !important;
}

.hero, .lot4b-hero, .section {
  padding-block: clamp(28px, 4vw, 48px);
}



h1, h2, h3, h4, .btn, button {
  text-transform: none !important;
}








@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   LOTNEX Patch 136B: Uniform 1px Single-Colour Card Borders & Explore Card Fix
   ========================================================================== */










/* ==========================================================================
   LOTNEX Patch 137: Unified Centered Page Headers (Admin Settings, Customer
   Notifications & Preferences)
   ========================================================================== */







/* Compact top spacing matching customer account pages across public website & admin console */


html body .pricing-page-v2 > .pricing-hero {
  padding-top: 18px !important;
  padding-bottom: 20px !important;
}

html body .pricing-page-v2 > .pricing-main {
  padding-top: 14px !important;
  margin-top: 0 !important;
}



/* Compact layout adjustments after removing redundant subtitles & hint strips */



html body .lot4b-detail-section-head h2 {
  margin: 0 !important;
  line-height: 1.3 !important;
}

html body .lot4b-interest-heading-v2 h2 {
  margin: 0 0 10px 0 !important;
}


html body #profile-role-settings .lot4b-role-panel-head {
  margin: 0 !important;
}

html body #profile-role-settings .lot4b-role-panel-head h3 {
  margin: 0 !important;
  font-size: 1rem !important;
}


html body #profile-role-settings .profile-role-form label {
  margin: 0 !important;
  min-width: 190px !important;
}

html body .company-documents-upload-body {
  padding-top: 12px !important;
}


html body .pricing-addons-v2 .pricing-section-head .eyebrow {
  margin: 0 !important;
}

html body .lot4b-featured-summary-panel .lot4b-plan-panel-head h2 {
  margin: 4px 0 0 0 !important;
}


html body .customer-console .account-content .customer-empty-action h3 {
  margin: 0 !important;
}


/* --- Patch 137 Layout & Formatting Fixes for Customer Console --- */

/* 1. Support Tickets Empty State (#support) - Unified Centered Column */

/* 2. Company Documents Empty State (#profile-documents) - Unified Centered Column */

/* 3. Profile Role Settings (#profile-role-settings) - Cohesive Inline Alignment */
html body #profile-role-settings .lot4b-role-panel-head {
  margin: 0 !important;
  flex: 0 0 auto !important;
}
@media (max-width: 640px) {
  html body #profile-role-settings.profile-role-panel {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  html body #profile-role-settings .profile-role-form {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  html body #profile-role-settings .profile-role-form label {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 4. Favorites & Account Table Panels - Header & Empty State Alignment */
html body .account-table-panel > .section-head.small a.btn {
  margin: 0 !important;
  align-self: center !important;
}


/* Ensure the white navigation header sits 100% flush at the top with zero exposed background above it across all pages */
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}






/* Header Icon-Only Logout Button next to My Account */








@media (max-width: 1150px) {
  #header.lot4b-header .lot4b-header-actions .header-logout-btn {
    display: none !important;
  }
}



/* Header User Avatar / Initial Badge in place of My Account text */






/* === LOTNEX Patch 137C: Need Card Header Non-Overlap, Password Eye Stability & Admin Support Chat/Pill Fixes === */
html body .lot4b-need-card-v2 .lot4b-need-media-wrap {
  position: relative !important;
  display: block !important;
}





/* Password Eye Button: Zero vertical shift on hover, focus, or click */
html body .password-control {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}


html body .password-control .password-toggle:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

/* Admin Support Chat [hidden] & Uniform Status Pill Borders */






/* Expired listings (closed automatically at their end date): amber, distinct from a manual close. */
html body .status-pill.status-expired,
html body .customer-console table .status-pill.status-expired {
  background: #FFFBEB !important;
  color: #92400E !important;
  border: 1px solid #FCD34D !important;
  border-inline-start-color: #FCD34D !important;
  border-inline-end-color: #FCD34D !important;
}

/* === 138: Clean Spacing & Alignment After Helper Sentence Removal === */
.lot4b-comm-pill-box {
  padding: 12px 14px !important;
  gap: 8px !important;
  justify-content: center !important;
}
.lot4b-comm-pill-head {
  gap: 0 !important;
  margin: 0 !important;
}
.lot4b-comm-pill-title {
  margin: 0 !important;
  line-height: 1.35 !important;
}
.lot4b-comm-pill-sub:empty {
  display: none !important;
}
#sale-outcome h2 {
  margin: 0 0 12px !important;
}
.contact-page .contact-documents > :last-child {
  margin-bottom: 0 !important;
}
.contact-page .document-disclaimer:empty {
  display: none !important;
}

/* LOT4B-6: close a record with a reason (record-close-dialog.js). */
dialog#modal.lot4b-close-modal{width:min(560px,94vw);padding:22px;border-radius:18px;overflow:auto}
.lot4b-close-dialog{display:grid;gap:14px}
.lot4b-close-dialog h2{margin:0;font-size:22px}
.lot4b-close-record,.lot4b-close-intro{margin:0;font-size:14px;color:#475569}
.lot4b-close-reasons{display:grid;gap:2px;margin:0;padding:8px 14px;border:1px solid var(--line);border-radius:10px}
.lot4b-close-reasons legend{padding-inline:6px;font-weight:700;color:var(--navy)}
.lot4b-close-reason{min-height:48px;align-items:center;cursor:pointer}
.lot4b-close-reason input{margin-top:0}
.lot4b-close-note .hint{line-height:1.6}
.lot4b-close-actions{display:flex;flex-wrap:wrap;gap:10px}
dialog#modal .lot4b-close-actions .btn{flex:1 1 160px;min-height:48px!important}
dialog#modal .lot4b-close-confirm{background:#B42318!important;border-color:#B42318!important;color:#FFFFFF!important}
dialog#modal .lot4b-close-actions .btn:disabled{opacity:.55;cursor:wait}
.lot4b-close-reason-label{display:block;margin-top:4px;font-size:12px;color:#475569}

.customer-console .lot4b-customer-archive :is(td, .archive-request-history li) {
  white-space: normal;
  overflow-wrap: anywhere;
}
.lot4b-customer-archive .archive-request-details {
  width: 100%;
  min-width: 0;
}
.lot4b-customer-archive summary {
  cursor: pointer;
}
.lot4b-customer-archive .archive-request-details > .form {
  margin-block-start: 12px;
}
.lot4b-customer-archive .archive-stock-fields {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.lot4b-customer-archive .archive-stock-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lot4b-customer-archive .archive-stock-confirm input {
  width: auto;
}
.lot4b-customer-archive .archive-request-history ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 0;
  list-style: none;
}
