:root:root{
  --bn-green:#B91C1C;--bn-green-hover:#7F1D1D;--bn-ink:#352626;--bn-surface:#FFFBF2;
  --color-button-primary:var(--bn-green);--color-button-primary-border:var(--bn-green);--color-button-primary-text:#fff;
  --color-button-primary-hover:var(--bn-green-hover);--color-button-primary-hover-border:var(--bn-green-hover);--color-button-primary-hover-text:#fff;
  --color-button-primary-focus:var(--bn-green-hover);--color-button-primary-focus-border:var(--bn-green-hover);--color-button-primary-focus-text:#fff;
  --color-button-primary-active:var(--bn-green-hover);--color-button-primary-active-border:var(--bn-green-hover);--color-button-primary-active-text:#fff;
  --color-button-primary-disabled:#d99a9a;--color-button-primary-disabled-border:#d99a9a;--color-button-primary-disabled-text:#fff;
  --color-main:var(--bn-green);--color-main-hover:var(--bn-green-hover);--color-main-disabled:#d99a9a;
}
.bacninh-brand-mark,.bacninh-wordmark{display:inline-flex;align-items:center;gap:.65rem;color:var(--bn-green);font-weight:750;line-height:1.35}
.bacninh-brand-mark::before,.bacninh-wordmark::before{content:"";display:inline-block;flex:0 0 2.6rem;width:2.6rem;height:2.6rem;background:url("../brand/bacninh-mark.svg") center/contain no-repeat}
.admin-sidebar .menu-logo{height:auto!important;min-height:5.8rem;padding:1rem .4rem!important}
.admin-sidebar .menu-logo .bacninh-brand-mark{display:flex;flex-direction:column;gap:.4rem;font-size:1.2rem;color:#fff;white-space:normal;overflow-wrap:anywhere}
.admin-header .nav-logo .bacninh-brand-mark{max-width:17rem;white-space:normal}
.account-pages .bacninh-brand-mark{justify-content:center;max-width:100%;white-space:normal}
.bacninh-entry-brand{display:inline-flex;vertical-align:middle;width:100%;align-items:center;justify-content:center;min-height:35rem;font-size:3rem}
.user-register-container{background-color:var(--bn-surface)}
.bacninh-wordmark{white-space:normal;max-width:100%}
.bn-ops button:not(:disabled),.bn-ops .bn-native-list-primary{border-color:var(--bn-green)}
.bn-ops button:not(:disabled){background:var(--bn-green);color:#fff}
.bn-ops .bn-language-switch button,.bn-ops .bn-candidate-toggle{background:#fff;color:var(--bn-green)}
.bn-rider,.bn-help{background:var(--bn-surface);color:var(--bn-ink)}
.bn-rider button[data-action]:not(.danger),.bn-rider .login{background:var(--bn-green);color:#fff}
.bn-rider .language-switch button{background:#fff;color:var(--bn-green);border-color:var(--bn-green)}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--bn-green);outline-offset:3px}
@media(max-width:640px){.bacninh-brand-mark::before,.bacninh-wordmark::before{flex-basis:2.2rem;width:2.2rem;height:2.2rem}.bacninh-wordmark{font-size:1.65rem}}
/* One presentation system for native pages and role workspaces; no action/state overrides. */
:root:root{
  --bn-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --bn-border:#eadbd7;--bn-radius:12px;--bn-shadow:0 2px 12px rgba(60,37,30,.06);--bn-sidebar:#172e3d;
  --color-left-menu-bg:var(--bn-sidebar);--border-radius:.8rem;--border-radius-lg:1.2rem;
}
body[data-bn-ui],.bn-ops,.bn-purchase-workspace,.bn-workbench,.bn-rider,.bn-help{font-family:var(--bn-font);color:var(--bn-ink)}
body[data-bn-ui] :where(div,p,h1,h2,h3,h4,h5,h6,a,span,label,table,th,td,button,input,select,textarea,small,strong,em,b,ul,li,dl,dt,dd,form,legend,section,header,nav,footer):not(.iconfont):not([class*="am-icon-"]){font-family:var(--bn-font)}
body[data-bn-ui="admin"]{background:var(--bn-surface)}
body[data-bn-ui="admin"] .account-pages{background:radial-gradient(ellipse at 15% 10%,#fdecec 0%,transparent 65%),var(--bn-surface)}
body[data-bn-ui="admin"] .account-pages .wrapper-page-content{border:1px solid var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
body[data-bn-ui="admin"] .account-pages .am-form-group input{font-size:14px;min-height:44px;border:1px solid #bba7a2}
body[data-bn-ui="admin"] .admin-header{border-bottom:1px solid var(--bn-border);box-shadow:var(--bn-shadow)}
body[data-bn-ui="admin"] :where(.am-panel,.am-modal-dialog,.am-popup-inner){border-radius:var(--bn-radius);border-color:var(--bn-border);box-shadow:var(--bn-shadow)}
body[data-bn-ui="admin"] .am-panel-hd{background:var(--bn-surface);color:var(--bn-ink);border-color:var(--bn-border)}
body[data-bn-ui="admin"] table.am-table thead tr>th,body[data-bn-ui="admin"] .form-table-search{background-color:var(--bn-surface)}
body[data-bn-ui="admin"] .am-table :where(th,td){border-color:var(--bn-border)}
body[data-bn-ui="admin"] .am-table tbody tr:hover{background-color:#fff8e9}
body[data-bn-ui="admin"] .am-btn{border-radius:8px}
body[data-bn-ui="admin"] .am-form-field,body[data-bn-ui="admin"] .am-form :where(input[type="text"],input[type="password"],input[type="number"],input[type="search"],input[type="email"],input[type="tel"],textarea,select){border-radius:8px;border-color:#bba7a2;min-height:38px}
body[data-bn-ui="customer"] :where(.am-btn,.am-form-field){border-radius:8px}
.bn-ops :where(.card,form),.bn-purchase-workspace,.bn-rider .card,.bn-help .card{border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
.bn-ops :where(input,select,textarea),.bn-purchase-workspace :where(input,select,textarea),.bn-rider :where(input,select,textarea),.bn-help :where(input,select,textarea){border-color:#bba7a2;border-radius:8px}
.bn-ops button,.bn-purchase-workspace button,.bn-rider button,.bn-help button{border-radius:8px;min-height:44px}
.bn-ops button:disabled,.bn-purchase-workspace button:disabled,.bn-rider button:disabled,.bn-help button:disabled{cursor:not-allowed;opacity:.55}
/* Outrank retained role-local presentation rules without overriding action semantics. */
body .bn-ops,body .bn-purchase-workspace,body .bn-workbench,body .bn-rider,body .bn-help{font-family:var(--bn-font);color:var(--bn-ink)}
body .bn-purchase-workspace{border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
.bn-ops .bn-card,.bn-ops .bn-workbench .bn-panel,.bn-ops .bn-workbench .bn-workbench-head{border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
.bn-ops .bn-card input,.bn-ops .bn-card select,.bn-ops .bn-card textarea,.bn-purchase-workspace .bn-purchase-search input,.bn-purchase-workspace .bn-purchase-search select{border-color:#bba7a2;border-radius:8px}
.bn-ops .bn-card button,.bn-ops .bn-language-switch button,.bn-purchase-workspace .bn-purchase-search button{border-radius:8px;min-height:44px}
.bn-purchase-workspace :where(a,input,select,button):focus-visible,.bn-purchase-workspace .bn-purchase-table:focus-visible{outline:2px solid var(--bn-green);outline-offset:3px}
.bn-ops.bn-ops-with-workbench{background:var(--bn-surface)}
@media(prefers-reduced-motion:reduce){body[data-bn-ui] *, .bn-ops *, .bn-rider *, .bn-help *{scroll-behavior:auto}}
/* Installer shares the application identity; upstream license remains readable. */
body[data-bn-ui="installer"]{background:var(--bn-surface)}
body[data-bn-ui="installer"] .tech-header-nav{background:#fff;border-color:var(--bn-border);box-shadow:var(--bn-shadow)}
body[data-bn-ui="installer"] .brand-text h1{background:transparent;-webkit-text-fill-color:var(--bn-green);color:var(--bn-green);font-size:clamp(22px,4vw,32px)}
body[data-bn-ui="installer"] :where(.agreement-section,.success-section,.license-card,.success-card){border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
body[data-bn-ui="installer"] :where(.step-item.active .step-indicator,.step-item.completed .step-indicator,.tech-btn-accept,.tech-btn-primary,.tech-btn-success){background:var(--bn-green);border-color:var(--bn-green);box-shadow:var(--bn-shadow)}
body[data-bn-ui="installer"] :where(.step-item.active .step-label,.step-item.completed .step-label,.step-icon){color:var(--bn-green)}
body[data-bn-ui="installer"] :where(.step-item.active .step-icon,.step-item.completed .step-check){color:#fff}
body[data-bn-ui="installer"] .tech-btn{border-radius:8px;min-height:44px}
body[data-bn-ui="installer"] .am-footer{background:#fff;border-top:1px solid var(--bn-border);overflow-wrap:anywhere}
body[data-bn-ui="installer"] .am-footer p{font-size:12px;color:#725954;line-height:1.6}
body[data-bn-ui="installer"] .tech-header-nav::before{background:linear-gradient(90deg,transparent,var(--bn-green),transparent)}
/* Finish native customer/dashboard surfaces without changing layout or button meaning. */
body[data-bn-ui="customer"]{background:var(--bn-surface)}
body[data-bn-ui="customer"] .am-panel{border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
body[data-bn-ui="customer"] .am-panel-hd{background:var(--bn-surface);border-color:var(--bn-border);color:var(--bn-ink)}
body[data-bn-ui="customer"] .user-base{background-color:var(--bn-green);background-image:none;border-radius:var(--bn-radius) var(--bn-radius) 0 0}
body[data-bn-ui="customer"] .am-form-field,body[data-bn-ui="customer"] .am-form :where(input[type="text"],input[type="password"],input[type="number"],input[type="email"],input[type="tel"],input[type="search"],textarea,select){border-color:#bba7a2;border-radius:8px;min-height:44px}
body[data-bn-ui="customer"] .am-modal-dialog,body[data-bn-ui="customer"] .am-popup-inner{border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
body[data-bn-ui="admin"] .block-combination-container-2>li,body[data-bn-ui="admin"] .block-combination-container-3>li{border-color:var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
body.bn-help .language button,body.bn-rider .language-switch button{background:#fff;color:var(--bn-green);border:1px solid var(--bn-green);border-radius:8px;min-height:44px}
body.bn-help .back,body.bn-help .register{color:var(--bn-green);min-height:44px;line-height:44px}
body.bn-rider .recovery a{background:var(--bn-green);color:#fff;border-radius:8px;min-height:44px}
body.bn-rider .card,body.bn-help .card{border:1px solid var(--bn-border);border-radius:var(--bn-radius);box-shadow:var(--bn-shadow)}
@media(prefers-reduced-motion:reduce){body[data-bn-ui="customer"] .user-base{animation:none}}
/* Keep identity, actions and statistics in separate rows at every width. */
body[data-bn-ui="customer"] .user-base{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;height:auto;min-height:0}
body[data-bn-ui="customer"] .user-base-left{display:flex;align-items:center;gap:16px;float:none;min-width:0}
body[data-bn-ui="customer"] .user-base .user-avatar{float:none;flex:0 1 auto;max-width:50%;margin:0;min-width:0}
body[data-bn-ui="customer"] .user-base .user-name{overflow-wrap:anywhere;line-height:1.5}
body[data-bn-ui="customer"] .user-base-left .items{display:flex;flex-direction:column;float:none;margin:0;min-width:0}
body[data-bn-ui="customer"] .user-base-left .items a{margin:0;min-height:32px;line-height:1.5;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
body[data-bn-ui="customer"] .user-base-right{position:static;float:none;align-self:start}
body[data-bn-ui="customer"] .user-base>ul.user-base-icon{position:static;inset:auto;grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;padding:8px 0;margin:0}
body[data-bn-ui="customer"] .user-base>ul.user-base-icon li{float:none;width:auto;min-width:0;padding:8px 4px;text-align:center;overflow-wrap:anywhere}
body[data-bn-ui="customer"] .user-base>ul.user-base-icon a{display:block;min-height:44px}
@media(max-width:640px){body[data-bn-ui="customer"] .user-base-left{flex-direction:column;align-items:center}body[data-bn-ui="customer"] .user-base .user-avatar{max-width:100%}body[data-bn-ui="customer"] .user-base-left .items{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}body[data-bn-ui="customer"] .user-base-left .items a{margin:0;min-height:44px}}
/* Complete shared controls and readable empty states; no business/status rewrites. */
:root:root{--bn-muted:#725954}
body[data-bn-ui] .am-modal-dialog{border-radius:var(--bn-radius);border:1px solid var(--bn-border);background:#fff;color:var(--bn-ink);box-shadow:var(--bn-shadow)}
body[data-bn-ui] .am-modal-hd{color:var(--bn-ink);border-bottom:1px solid var(--bn-border)}
body[data-bn-ui] .am-tabs-default>.am-tabs-nav>.am-active>a{background:var(--bn-green);color:#fff}
body[data-bn-ui] .am-pagination>.am-active>a,body[data-bn-ui] .am-pagination>.am-active>span{background:var(--bn-green);border-color:var(--bn-green);color:#fff}
body[data-bn-ui] .am-pagination>li>a{border-radius:8px;border-color:var(--bn-border)}
body[data-bn-ui="customer"] .am-form input[type="text"],body[data-bn-ui="customer"] .am-form input[type="password"],body[data-bn-ui="customer"] .am-form input[type="email"],body[data-bn-ui="customer"] .am-form input[type="tel"],body[data-bn-ui="customer"] .am-form input[type="number"],body[data-bn-ui="customer"] .am-form textarea,body[data-bn-ui="customer"] .am-form select{border-radius:8px;border-color:#bba7a2;min-height:38px}
body[data-bn-ui] input::placeholder,body[data-bn-ui] textarea::placeholder{color:var(--bn-muted);opacity:1}
body[data-bn-ui="customer"] .various .tips-name,body[data-bn-ui="customer"] .various .tips-msg{color:var(--bn-muted);line-height:1.6}
body[data-bn-ui="customer"] .various .am-panel-default>.am-panel-hd{background:var(--bn-surface);border-color:var(--bn-border)}
body[data-bn-ui="customer"] .various .am-panel-default>.am-panel-hd i{border-left-color:var(--bn-green)}
body[data-bn-ui="customer"] .various .am-panel-hd a{color:var(--bn-green)}
body[data-bn-ui="customer"] .table-no .tips-msg{max-width:32em;margin:8px auto;padding:0 12px;overflow-wrap:anywhere}
/* Shared table/form/notice components keep success, warning and failure distinct. */
body[data-bn-ui] .am-btn-default:not(:disabled):not(.am-disabled){background:#fff;color:var(--bn-green);border-color:#bba7a2}
body[data-bn-ui] .am-btn-default:not(:disabled):not(.am-disabled):hover{background:#fff8e9;border-color:var(--bn-green)}a .am-text-success{color:#B91C1C!important}.bn-native-help .bn-help-header .bn-store-brand,.bn-store-header-compact a.bacninh-wordmark.bn-store-brand{color:#fff!important}
body[data-bn-ui] input[type="checkbox"],body[data-bn-ui] input[type="radio"],.bn-ops input[type="checkbox"],.bn-rider input[type="checkbox"]{accent-color:var(--bn-green)}
body[data-bn-ui] .am-alert{border-radius:8px;padding:12px 16px;line-height:1.6;overflow-wrap:anywhere}
body[data-bn-ui] .am-alert-success{background:#eef8f2;color:#14583b;border-color:#b8dcc6}
body[data-bn-ui] .am-alert-warning{background:#fff8e8;color:#754a10;border-color:#edcf93}
body[data-bn-ui] .am-alert-danger{background:#fff2f2;color:#8c2424;border-color:#e7baba}
body[data-bn-ui] .am-alert-secondary{background:#eef5fa;color:#234c6b;border-color:#bcd4e5}
body[data-bn-ui="customer"] .am-table thead th{background:var(--bn-surface);color:var(--bn-ink);border-color:var(--bn-border)}
body[data-bn-ui="customer"] .am-table :where(th,td){border-color:var(--bn-border)}
body[data-bn-ui] .am-scrollable-horizontal{max-width:100%;min-width:0;overscroll-behavior-x:contain}
body .bn-purchase-table thead th,body .bn-finance-scroll thead th,body .bn-workbench table thead th{background:var(--bn-surface);color:var(--bn-ink);border-color:var(--bn-border)}
body .bn-purchase-table :where(th,td),body .bn-finance-scroll :where(th,td){border-color:var(--bn-border)}
.bn-purchase-table,.bn-finance-scroll,.bn-workbench .bn-scroll{min-width:0;overscroll-behavior-x:contain}
/* Native editors retain their Vue controls and data; only presentation tokens change. */
:root:root{
  --el-color-primary:var(--bn-green);--el-color-primary-rgb:8,127,82;--el-color-primary-dark-2:var(--bn-green-hover);
  --el-color-primary-light-3:#cf5f5f;--el-color-primary-light-5:#e08e8e;--el-color-primary-light-7:#efbcbc;--el-color-primary-light-8:#f5d3d3;--el-color-primary-light-9:#fbe9e9;
  --el-font-family:var(--bn-font);--el-border-radius-base:8px;--el-border-radius-small:6px;
}
body[data-bn-ui="editor"]{margin:0;background:var(--bn-surface);font-family:var(--bn-font);color:var(--bn-ink)}
body[data-bn-ui="editor"] :where(button,input,textarea,select){font-family:inherit}
body[data-bn-ui="editor"] :where(a,button,input,textarea,select):focus-visible{outline:2px solid var(--bn-green);outline-offset:3px}
/* At narrow widths brand and account/language controls must not overlap. */
@media(max-width:640px){
  body[data-bn-ui="customer"] .header-top{height:auto!important}
  body[data-bn-ui="customer"] .header-top .header{display:flex;flex-wrap:wrap;align-items:center;row-gap:4px;height:auto!important;padding-top:4px;padding-bottom:4px}
  body[data-bn-ui="customer"] .header-top .top-nav-left-site-logo{float:none!important;width:100%;min-width:0}
  body[data-bn-ui="customer"] .header-top .top-nav-right{position:static!important;float:none!important;display:flex!important;justify-content:flex-end;width:100%;margin:0}
  body[data-bn-ui="customer"] .top-nav-left-site-logo .bacninh-wordmark{white-space:normal;overflow:visible;text-overflow:clip;max-width:100%}
}
/* Only projected aftersale text opts out of the native table's break-all rule. */
body[data-bn-ui="customer"] .am-table-scrollable-horizontal [data-bn-aftersale-list-state],
body[data-bn-ui="customer"] .am-table-scrollable-horizontal [data-bn-aftersale-list-reason] {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
/* Keep native empty-cart guidance and links inside narrow viewports. */
body[data-bn-ui="customer"] .cart-content > .mixed-tips {
  max-width: calc(100% - 24px);
  box-sizing: border-box;
}
