/* Consistent icon sizing and rhythm, scoped to application screens. */
body{line-height:1.5}.ui-icon{display:inline-block;width:17px;height:17px;flex:0 0 17px;vertical-align:middle;pointer-events:none}.has-ui-icon{display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle;line-height:1.4}.has-ui-icon .ui-icon{width:16px;height:16px;flex-basis:16px}.actions,.modalfoot,.workflow-actions,.ref-form-footer,.ie-actions{gap:10px 12px}.actions button,.modalfoot button{min-height:38px}.tablewrap td button{margin:3px 4px 3px 0;min-height:32px}.tablewrap td{line-height:1.6;vertical-align:top}.tablewrap td small{line-height:1.55;margin-top:6px}.pagehead{gap:20px;align-items:flex-start}.pagehead h1{line-height:1.25;margin-bottom:10px}.pagehead p{line-height:1.65}.panelhead{gap:16px}.field{line-height:1.5;gap:8px}.field small,.ie-field small,.ref-help{line-height:1.6}.formgrid{gap:20px 24px}.formgrid>.field{margin-bottom:0}.form-error:empty{margin:0}.form-error:not(:empty){margin:12px 0;line-height:1.6}textarea{line-height:1.6}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #168d93;outline-offset:3px}button:disabled{cursor:default}
aside{padding:24px 16px}aside .workspace{line-height:1.7;margin:24px 12px 20px}aside .workspace strong{display:inline-block;margin-top:7px}aside>nav{gap:4px}aside nav a,aside nav summary{align-items:center;line-height:1.5}aside>nav>a,aside>nav>details>summary{min-height:44px;padding:11px 13px;gap:12px}aside nav .ui-icon{opacity:.9;width:18px;height:18px;flex-basis:18px}aside nav .inventory-subnav{gap:3px;margin-top:6px;margin-bottom:10px}aside nav .inventory-subnav>a{gap:10px;min-height:38px;align-items:flex-start}aside nav .inventory-subnav .ui-icon{width:15px;height:15px;flex-basis:15px;margin-top:2px}aside .expense-category>summary{gap:9px}aside .expense-category>summary>a{padding-left:0!important}aside footer{padding-top:14px}.sidebar-profile{padding:11px 8px;gap:12px}.sidebar-profile .profile-name{margin-top:4px}.sidebar-profile small{margin-top:2px}
.profile-page-grid .panel{padding:26px}.profile-page-grid h2{margin-bottom:24px}.profile-page-grid .field{margin-bottom:20px}.profile-page-grid form>.primary{margin-top:16px;min-height:42px}.profile-page-grid .ref-help{margin:4px 0 0}.ref-purchase-head{row-gap:20px;margin-bottom:24px}.ref-purchase-head .field{margin-bottom:0}.work-editor .panel{margin-bottom:24px}.ref-purchase-line{row-gap:14px;padding-top:16px;padding-bottom:16px}.ref-item-meta{margin-bottom:20px}.ref-item-meta .field{margin-bottom:0}.ref-form-footer{padding-top:8px}.ref-file-button{gap:9px}.ref-file-button .ui-icon{flex:none}.ref-payment-filters .field{margin-bottom:0}.ref-payment-filters{row-gap:16px}.spending-filters{row-gap:18px}.spending-table td{padding-top:17px;padding-bottom:17px}
.ie-heading h1{line-height:1.25}.ie-top{row-gap:24px}.ie-row{margin-bottom:14px;padding-top:14px;padding-bottom:14px}.ie-labels{padding-top:0;padding-bottom:0;margin-bottom:10px}.ie-product small{line-height:1.55}.ie-item-details{margin-top:10px}.ie-item-details textarea{line-height:1.6;margin:12px 0}.ie-serial-options{gap:10px 18px;padding:5px 0}.ie-serial-options label{line-height:1.5;align-items:flex-start}.ie-serial-options input{flex:none;margin-top:2px}.ie-notes .ie-field{margin-bottom:0}.ie-footer .has-ui-icon{gap:8px}.sd-detail-actions{padding-top:18px;padding-bottom:18px}.sd-detail-actions .actions{gap:10px 12px}.sd-lines td p{line-height:1.65;margin-top:8px}.sd-lines td{padding-top:18px;padding-bottom:18px}.sd-parties p{line-height:1.7}.sd-notes p{line-height:1.7}.sd-related button{margin:4px 6px 4px 0}
@media(max-width:1000px){.pagehead{flex-wrap:wrap}.pagehead>.actions{justify-content:flex-start}.ie-actions{gap:9px}}
@media(max-width:650px){aside{padding:18px 16px}aside>nav{gap:7px}aside>nav>a,aside>nav>details>summary{min-height:42px}aside .inventory-subnav{min-width:165px}.pagehead{gap:16px;margin-bottom:22px}.pagehead .actions{justify-content:flex-start}section{padding:24px 16px}.formgrid{gap:18px}.profile-page-grid .panel{padding:20px}.has-ui-icon{gap:7px}.ie-footer .ie-actions{justify-content:stretch}.ie-footer .ie-actions button{min-height:43px}.sd-detail-actions .actions>button{flex:1 1 180px}.tablewrap td button{min-height:36px}}
@media print{.ui-icon{display:none!important}.has-ui-icon{display:inline-block}}

/* Compact sales lines: item number directly precedes the item name. */
.ie-search-box{align-items:center;gap:7px}.ie-search-box input{flex:1;min-width:0}.ie-item-number{flex:0 0 auto;max-width:95px;overflow-wrap:anywhere;font-size:12px;font-weight:600;color:#516b8b;line-height:1.3}.ie-row:not(.ie-labels){padding:9px 8px;margin-bottom:8px;row-gap:6px}.ie-labels{margin-top:10px;margin-bottom:6px;line-height:1.35}.ie-item-details{margin-top:5px}.ie-item-details summary{line-height:1.4}.invoice-editor .ie-item-details textarea{display:block;min-height:calc(5.6em + 18px);height:auto;margin:6px 0;padding:8px 10px;line-height:1.4}.ie-product small,.ie-item-details small{line-height:1.4;padding:0;margin:4px 0}.ie-serial-options{padding:0;gap:6px 12px}.ie-serial-options:empty{display:none}.ie-select-hint{margin-top:5px}.ie-trade-help:empty{display:none}.ie-heading{padding-top:16px;padding-bottom:16px}.invoice-editor .ie-heading{min-height:80px}.ie-heading h1{margin:4px 0}.ie-heading p{line-height:1.4}.ie-heading small{line-height:1.3}aside>nav a>[data-pending-approval-count]{margin-left:auto;flex:none;min-width:22px;text-align:center;line-height:20px;padding:1px 6px;border-radius:11px;background:#df4e58;color:#fff;font-size:11px;font-variant-numeric:tabular-nums}

/* Validation stays visible between totals and save actions. */
.invoice-editor .ie-footer{flex-wrap:wrap;gap:12px 20px}.invoice-editor .ie-footer>.ie-error{flex:1 1 220px;min-width:180px;margin:0;color:#b42335;font-size:13px;font-weight:500;line-height:1.45;overflow-wrap:anywhere;max-height:90px;overflow:auto}.invoice-editor .ie-footer>.ie-error:empty{display:none}.invoice-editor .ie-footer>.ie-actions{margin-left:auto}@media(max-width:850px){.invoice-editor .ie-footer>.ie-error{flex:0 0 auto;min-width:0;width:100%}.invoice-editor .ie-footer>.ie-actions{margin-left:0}}

.ie-results .ss-item-meta{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;line-height:1.4;margin-bottom:4px}.ie-results .ss-item-meta small{display:inline;padding:0;margin:0;font-size:11px;color:#73869f}.ie-results .ss-item-name{display:block;line-height:1.5}.ie-results .ss-item-meta .ss-secondary:empty{display:none}

.role-name-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 22px}.role-name-controls .ref-help{margin:0;line-height:1.6}

.invoice-stock-editor .ie-row{grid-template-columns:minmax(320px,1fr) 56px 48px 112px 80px 112px 28px}.ie-issued-choice{display:flex;align-items:center;justify-content:center;min-height:42px}.invoice-editor .ie-issued-choice input{width:18px;height:18px;padding:0;margin:0}.invoice-stock-editor .ie-labels{font-size:10px}@media(max-width:850px){.invoice-stock-editor .ie-row{min-width:890px}}
