/* Shared operational density; document/label print canvases are excluded. */
.ec-density-toggle{white-space:nowrap;border:1px solid var(--ec-theme-border,#d7dfe4);background:var(--ec-theme-panel,#fff);color:var(--ec-theme-text,#234);padding:5px 8px;font:600 11px system-ui;cursor:pointer}
@media screen and (min-width:851px){
 body:not([data-ec-density=comfortable]) :is(.ec-main,.v5-page){max-width:1880px!important;width:calc(100% - 32px);padding-top:16px}
 body:not([data-ec-density=comfortable]) :is(.env-app,.rb,.lp){max-width:none}
 body:not([data-ec-density=comfortable]) :is(.ec-page-head,.env-heading,.rb-heading,.lp-heading,.dd-heading,.ls-heading,.pn-page-head,.v5-page .page-head){margin:6px 0 12px;gap:12px}
 body:not([data-ec-density=comfortable]) :is(.ec-page-head,.env-heading,.rb-heading,.lp-heading,.dd-heading,.ls-heading,.pn-page-head,.v5-page .page-head) h1{font-size:25px;margin:0 0 4px}
 body:not([data-ec-density=comfortable]) :is(.ec-page-head,.env-heading,.rb-heading,.lp-heading,.dd-heading,.ls-heading,.pn-page-head,.v5-page .page-head) p{margin:3px 0;font-size:12px;line-height:1.4}
 body:not([data-ec-density=comfortable]) :is(.ec-card,.env-card,.rb-card,.lp-card,.pn-card,.dd-card,.ls-panel,.v5-page .panel){padding:12px 14px;margin-top:8px;margin-bottom:10px;border-radius:10px!important}
 body:not([data-ec-density=comfortable]) :is(.ec-card,.env-card,.rb-card,.lp-card,.pn-card,.dd-card,.ls-panel,.v5-page .panel) h2{font-size:15px;margin-bottom:9px}
 body:not([data-ec-density=comfortable]) :is(.ec-form-grid,.env-grid,.rb-grid,.lp-grid,.pn-form-grid,.dd-two,.dd-four,.ls-propgrid){gap:9px 12px}
 body:not([data-ec-density=comfortable]) :is(.ec-form-grid,.env-grid,.rb-grid,.lp-grid,.pn-form-grid,.dd-two,.dd-four,.ls-propgrid) label{gap:4px;font-size:12px}
 body:not([data-ec-density=comfortable]) :is(.ec-form-grid,.env-app,.rb,.lp,.pn-card,#ddt-app,.ls-panel,.ls-toolbar,.v5-page form) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),select,textarea){min-height:32px;padding:6px 8px;font-size:13px;border-radius:5px!important}
 body:not([data-ec-density=comfortable]) :is(.ec-table,.env-table table,.rb table,.lp table,#ddt-app table,.pn-table,.modern-table) :is(th,td){padding:7px 9px!important;font-size:12px;line-height:1.35}
 body:not([data-ec-density=comfortable]) :is(.ec-table,.env-table table,.rb table,.lp table,#ddt-app table,.pn-table,.modern-table) tbody tr:nth-child(even){background:color-mix(in srgb,var(--ec-theme-bg,#f4f7fb) 60%,transparent)}
 body:not([data-ec-density=comfortable]) :is(.ec-primary,.ec-secondary,.env-app button,.env-primary,.rb-button,.lp-btn,#ddt-app button,.dd-button,#label-studio button,.v5-page .btn,.pn-primary,.pn-secondary){min-height:32px;padding:6px 10px;font-size:12px}
 body:not([data-ec-density=comfortable]) :is(.env-subnav,.ec-tabs){padding-top:4px;padding-bottom:8px;margin-bottom:4px;gap:12px}
 body:not([data-ec-density=comfortable]) :is(.env-app small,.rb small,.lp small,.dd-hint,.ls-help){font-size:11px;line-height:1.35}
 body:not([data-ec-density=comfortable]) :is(.env-notice,.ec-note){padding:8px 10px;margin:8px 0;font-size:12px}
 body:not([data-ec-density=comfortable]) .env-stock{padding:10px 12px;margin:6px 0}body:not([data-ec-density=comfortable]) .env-stock summary strong{font-size:16px}
 body:not([data-ec-density=comfortable]) .env-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 body:not([data-ec-density=comfortable]) .env-columns .env-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:not([data-ec-density=comfortable]) .env-field:has(.env-select-search){display:grid;grid-column:span 2;grid-template-columns:minmax(0,1fr) 95px}
 body:not([data-ec-density=comfortable]) .env-field:has(.env-select-search)>span,body:not([data-ec-density=comfortable]) .env-field:has(.env-select-search)>small{grid-column:1/-1}
 body:not([data-ec-density=comfortable]) .env-field:has(.env-select-search)>select{grid-column:1;grid-row:2}
 body:not([data-ec-density=comfortable]) .env-select-search{grid-column:2;grid-row:2}
 body:not([data-ec-density=comfortable]) .env-app details{margin-top:8px}body:not([data-ec-density=comfortable]) .env-app details>summary{font-size:13px}
 body:not([data-ec-density=comfortable]) .env-save{padding:9px 12px;gap:10px}
}
@media screen and (min-width:851px) and (max-width:1100px){body:not([data-ec-density=comfortable]) .env-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media screen and (min-width:851px){
 body:not([data-ec-density=comfortable]) .pn-main{max-width:none!important;padding:16px}
 body:not([data-ec-density=comfortable]) :is(.rb-grid,.lp-grid){grid-template-columns:repeat(3,minmax(0,1fr))}
 body:not([data-ec-density=comfortable]) :is(.rb-grid .wide,.lp-grid .lp-wide){grid-column:1/-1}
 body:not([data-ec-density=comfortable]) :is(.rb-form-columns,.dd-grid){gap:12px}
 body:not([data-ec-density=comfortable]) :is(.rb-search,.rb-toolbar,.dd-section-head,.ls-toolbar,.pn-filters){gap:8px;margin:8px 0;padding-block:7px}
 body:not([data-ec-density=comfortable]) :is(.rb-stats,.ec-stats,.ec-stats-6,.pn-stats,.v5-page .stats-grid){gap:9px;margin:10px 0}
 body:not([data-ec-density=comfortable]) :is(.rb-stats>div,.ec-stat,.pn-stat,.v5-page .stat-card){padding:10px 12px}
 body:not([data-ec-density=comfortable]) :is(.rb-stats strong,.ec-stat-value,.pn-stat strong){font-size:23px}
 body:not([data-ec-density=comfortable]) #ddt-app label{margin-bottom:8px}
 body:not([data-ec-density=comfortable]) #ddt-app :is(input,select,textarea){margin-top:4px}
 body:not([data-ec-density=comfortable]) :is(.ls-panel label,.ls-auto-field){gap:4px;margin-bottom:7px;font-size:12px}
 body:not([data-ec-density=comfortable]) :is(.ls-toolgrid,.ls-extra-fields,.ls-propgrid){gap:7px}
 body:not([data-ec-density=comfortable]) .ls-panel-title{padding:8px 0;margin-bottom:8px}
 body:not([data-ec-density=comfortable]) :is(.pn-account-card,.pn-card-head){padding:10px}
 body:not([data-ec-density=comfortable]) .v5-page .page-head{padding-block:5px}
 body:not([data-ec-density=comfortable]) :is(.rb-save,.dd-actions,.lp-save){padding:9px 12px;gap:8px;margin-block:9px}
 body:not([data-ec-density=comfortable]) .ec-page-head+.ec-stats{margin-block:8px}
}
@media screen and (min-width:851px){
 body:not([data-ec-density=comfortable]) .au-nav{gap:12px;margin-bottom:12px}
 body:not([data-ec-density=comfortable]) .au-roles{gap:8px;margin:10px 0}
 body:not([data-ec-density=comfortable]) .au-roles label{padding:9px}
 body:not([data-ec-density=comfortable]) .au-permit{padding:10px 0;gap:12px}
 body:not([data-ec-density=comfortable]) .au fieldset{padding:10px}
 body:not([data-ec-density=comfortable]) .pn-appbar{padding:9px 16px}
 body:not([data-ec-density=comfortable]) .pn-toolbar{margin-bottom:12px;gap:8px}
 body:not([data-ec-density=comfortable]) .pn-form-grid :is(input,select,textarea){min-height:32px;padding:6px 8px}
 body:not([data-ec-density=comfortable]) .rb-table-wrap{margin-top:8px}
}
@media screen and (min-width:851px){
 body:not([data-ec-density=comfortable]){--ec-theme-sidebar-width:195px}
 body:not([data-ec-density=comfortable]) .v5-page{padding:16px 12px 45px}
 body:not([data-ec-density=comfortable]) .hh{max-width:none;margin:5px auto 0}
 body:not([data-ec-density=comfortable]) .hh-welcome{margin-bottom:18px;gap:24px}
 body:not([data-ec-density=comfortable]) .hh h1{font-size:30px;margin-bottom:6px}
 body:not([data-ec-density=comfortable]) .hh-eyebrow{margin-bottom:7px}
 body:not([data-ec-density=comfortable]) .hh-search{min-height:38px}
 body:not([data-ec-density=comfortable]) .hh-search input{padding:9px 0}
 body:not([data-ec-density=comfortable]) .hh-quick-section{margin-bottom:18px}
 body:not([data-ec-density=comfortable]) :is(.hh-quick-card,.hh-card){padding:13px}
 body:not([data-ec-density=comfortable]) :is(.hh-cal-heading,.hh-cal-toolbar){padding:10px 12px}
 body:not([data-ec-density=comfortable]) .hh-event{padding:7px 8px}
 body:not([data-ec-density=comfortable]) .rb-grid{margin:10px 0}
 body:not([data-ec-density=comfortable]) .rb-grid :is(input,textarea){margin-top:4px}
}
@media screen and (min-width:851px){
 body:not([data-ec-density=comfortable]) .hh-modules{gap:12px}
 body:not([data-ec-density=comfortable]) .hh-module-main{padding:14px 16px}
 body:not([data-ec-density=comfortable]) .hh-module-top{margin-bottom:10px}
 body:not([data-ec-density=comfortable]) .hh-module h3{font-size:18px;margin-bottom:5px}
 body:not([data-ec-density=comfortable]) .hh-module-symbol{width:35px;height:35px}
 body:not([data-ec-density=comfortable]) .hh-module-links{padding:9px 16px}
 body:not([data-ec-density=comfortable]) .hh-cal-day{min-height:112px;padding:7px 6px}
 body:not([data-ec-density=comfortable]) .hh-cal-day h3{margin-bottom:8px}
}
@media print{.ec-density-toggle{display:none!important}}
