/* Screen presentation only. Forms, permissions and print layouts remain authoritative. */
body.erp-ui .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;vertical-align:middle;line-height:20px;min-height:34px;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}
body.erp-ui .btn-sm{line-height:20px;min-height:30px}
body.erp-ui .btn-outline-info{color:var(--link)!important;border-color:var(--link)!important;background:var(--card)!important}
body.erp-ui .btn-outline-warning{color:var(--warning)!important;border-color:var(--warning)!important;background:var(--card)!important}
body.erp-ui .btn-warning{background:#ffe7a4!important;color:#603c00!important;border-color:#d3ad54!important}
body.erp-ui .empty-state{color:var(--muted)!important}
body.erp-ui :is(.btn-outline-dark,.btn-outline-light,.service-remove){color:var(--link)!important;background:var(--card)!important;border-color:var(--line)!important}
body.erp-ui .btn-info{background:var(--brand)!important;color:var(--button-ink)!important;border-color:var(--brand)!important}
body.erp-ui .table :is(th,td){border-color:var(--line)!important}
body.erp-ui .erp-confirm6711{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important;padding:20px!important}
body.erp-ui .erp-confirm6711 h3{font-size:18px;margin:0 0 12px;color:var(--ink)}
body.erp-ui .erp-confirm6711 p{line-height:1.65;overflow-wrap:anywhere;margin-bottom:20px}
body.erp-ui .erp-confirm6711::backdrop{background:rgb(0 0 0 / 45%)}
body.erp-ui .btn[hidden],body.erp-ui [hidden]{display:none!important}
body.erp-ui .erp-inline-command{display:inline-flex;align-items:center;flex:0 0 auto;width:auto;max-width:100%;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:6px}
body.erp-ui :is(.page-tools,.content-header>.d-flex,.list-heading670,.staff-launch678,.service-footer,.erp-form-actions,.modal-footer){align-items:center;gap:8px;min-width:0;flex-wrap:wrap!important}
body.erp-ui :is(.page-tools,.content-header>.d-flex){max-width:100%;overflow:visible}
body.erp-ui :is(.page-tools,.content-header>.d-flex)>.btn,body.erp-ui :is(.page-tools,.content-header>.d-flex)>.erp-inline-command>.btn{min-height:34px;height:auto;margin:0;white-space:normal}
body.erp-ui .content-header{align-items:center}
body.erp-ui .content-header>div:first-child:empty{display:none}
body.erp-ui .card.card-body{padding:12px 14px}
body.erp-ui .card-body{min-width:0}
body.erp-ui .erp-entry-form>.row{row-gap:12px!important}
body.erp-ui .erp-form-actions{margin-top:12px;bottom:0;border-top-style:solid!important;padding:10px 0!important}
body.erp-ui .todo-summary6725{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;padding:12px 14px}
body.erp-ui .todo-total6725{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
body.erp-ui .todo-total6725 b{line-height:1.2;font-variant-numeric:tabular-nums}
body.erp-ui .todo-summary6725>.btn{margin-left:auto}
body.erp-ui .todo-empty6725{display:flex;align-items:center;justify-content:center;min-height:84px;padding:20px;color:var(--muted);line-height:1.6}
body.erp-ui .content :is(.row,.service-grid,.service-detail-grid)>*{min-width:0}
body.erp-ui .content form :is(input,select,textarea){box-sizing:border-box}
body.erp-ui .table-responsive{overscroll-behavior-x:contain}
body.erp-ui .erp-column-tools{min-height:30px;margin-bottom:6px}
body.erp-ui .erp-column-tools-inline{margin-bottom:0}
body.erp-ui .erp-table-heading6725{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.erp-ui .erp-table-heading6725>.erp-column-tools{margin-left:auto}
/* Keep the transparent trademark clear without a white bar across every theme. */
body.erp-ui .sidebar .brand{background:transparent!important;justify-content:center;padding:10px;gap:0}
body.erp-ui .brand-logo{display:block;width:100%;max-width:180px;height:auto;max-height:60px;padding:4px;box-sizing:border-box;object-fit:contain;object-position:center;background:transparent;border-radius:5px}
body.erp-ui .staff-brand678{display:block;max-width:100%;padding:4px;box-sizing:border-box;object-position:center;background:transparent;border-radius:5px;flex-shrink:0}

body.erp-ui.sidebar-collapsed .sidebar .brand{padding:10px 0}
body.erp-ui.sidebar-collapsed .brand-logo{width:48px;height:48px;max-width:48px;max-height:48px;object-fit:cover;object-position:left center}
body.erp-ui.sidebar-collapsed .reference-menu-group>summary{font-size:0!important;justify-content:center;gap:4px;padding:8px 4px;white-space:nowrap}
body.erp-ui.sidebar-collapsed .reference-menu-group>summary>i{font-size:16px;flex-shrink:0}
body.erp-ui.sidebar-collapsed .reference-menu-group>summary::after{font-size:12px;margin-left:0}
body.erp-ui.sidebar-collapsed .sidebar .nav-item{justify-content:center;padding:6px!important}
body.erp-ui .erp-sized-table td .badge{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;text-align:left}
body.erp-ui .content :is(.card-header,.service-heading){overflow-wrap:anywhere}
body.erp-ui .form-check{display:flex;align-items:center;gap:6px;min-height:26px}
body.erp-ui .form-check-input{flex-shrink:0;margin-top:0}
body.erp-ui .form-check label{margin-bottom:0}
@media(max-width:800px){
 body.erp-ui .topbar{min-width:0;gap:8px}
 body.erp-ui .topbar-left{min-width:0}
 body.erp-ui .topbar .user-chip,body.erp-ui .topbar .breadcrumb-mini,body.erp-ui .shell-date670{display:none}
 body.erp-ui .topbar .page-title{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.erp-ui .topbar .top-actions{margin-left:auto;flex-shrink:0}
 body.erp-ui .top-action[title="首页"]{display:none}
 body.erp-ui .todo-summary6725{gap:10px 16px}
 body.erp-ui .todo-summary6725>.btn{margin-left:0}
 body.erp-ui :is(.content-header,.list-heading670)>.page-tools{justify-content:flex-start}
}
@media(max-width:480px){
 body.erp-ui .topbar .page-title{max-width:80px;font-size:14px}
 body.erp-ui .top-action[title="我的待办"]{display:none}
 body.erp-ui .content-header>.page-tools{width:100%}
 body.erp-ui .erp-form-actions>.btn,body.erp-ui .service-footer>.btn{max-width:100%;height:auto;white-space:normal}
}
@media(pointer:coarse){body.erp-ui .btn{min-height:40px;height:auto}}