/* Shared compact workspace tables, matching Report Sales. */
.journey-location-box{margin:8px 0;padding:12px;border:1px solid #b7964f;border-radius:8px;background:#fffdf6;font-size:12px}
.journey-location-box h4{margin:0 0 6px;font-size:13px}.journey-location-box p{margin:5px 0}
.journey-location-fields{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr);gap:8px;max-width:560px;margin:8px 0}
.journey-location-fields label{display:flex;flex-direction:column;gap:4px;font-size:11px}
.journey-location-box :is(input,select,button){font-size:12px;min-height:32px;padding:5px 8px}
.journey-location-actions{display:flex;justify-content:flex-end;gap:6px}.journey-location-actions button{width:auto}
.journey-resource-control{display:flex;align-items:center;gap:6px;min-width:0}.journey-resource-control select{flex:1;min-width:0}
.journey-editor .journey-add-resource{flex:none;width:30px;height:30px;min-width:30px;min-height:30px;padding:5px}
@media(max-width:520px){.journey-location-fields{grid-template-columns:1fr}}
:is(#general-affair-workspace,#accounting-workspace) {color:#294b3e;font-size:11px}
#accounting-workspace,.ga-page {background:#fff;border:1px solid #dfe6dc;border-radius:8px}
#accounting-workspace {padding:16px 20px}
.ga-header {padding:14px 20px;background:#f8faf7;gap:10px}
.ga-header h2,.accounting-header h2 {font-size:17px;line-height:1.4;margin:0;font-weight:600}
.ga-content {padding:14px 20px}
.accounting-header {margin:0 0 12px;gap:10px}
:is(.ga-tabs,.accounting-tabs,.cash-subtabs,.cash-module-tabs) {display:flex;gap:20px;align-items:center;overflow-x:auto;flex-wrap:nowrap;border:0;border-bottom:1px solid #e1e7dd;background:transparent;margin:0 0 14px;white-space:nowrap}
.ga-tabs {padding:0 20px}
:is(.ga-tabs,.accounting-tabs,.cash-subtabs,.cash-module-tabs) button {flex:none;width:auto;min-height:32px;padding:7px 0!important;border:0!important;border-radius:0;background:transparent!important;color:#71836f!important;font:500 11px/1.4 system-ui;box-shadow:none}
:is(.ga-tabs,.accounting-tabs,.cash-subtabs,.cash-module-tabs) :is([aria-pressed=true],.active) {color:#294f40!important;box-shadow:inset 0 -2px #ad9657}
:is(.ga-button,.accounting-sync,.accounting-save,#accounting-workspace .cash-button) {width:auto;min-height:30px;padding:5px 9px!important;border-radius:6px;font:500 11px/1.4 system-ui!important;box-shadow:none}
.ga-header .sales-icon-button {width:30px;height:30px;min-height:30px}
:is(.ga-filters,.accounting-filters,.cash-tools) {display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 12px}
:is(.ga-filters,.accounting-filters) label {display:grid;gap:5px;font-size:10px;color:#6b7c69;width:auto}
:is(.ga-filters,.accounting-filters,.cash-tools) :is(input,select) {box-sizing:border-box;min-height:30px!important;height:30px!important;width:148px;min-width:0;padding:5px 8px!important;border:1px solid #d8e1d5;border-radius:6px;background:#fff;color:#294b3e;font:400 11px/1.4 system-ui!important}
:is(.ga-filters,.accounting-filters,.cash-tools) input[type=search] {flex:0 1 320px;width:320px;min-width:180px;max-width:100%}
.ga-list-tools {margin:0 0 12px;gap:8px}
:is(.ga-table-scroll,.accounting-table-scroll,.cash-table-wrap,.driver-position-scroll) {overflow:auto;border:1px solid #e1e7e2;border-radius:7px;max-height:55dvh;max-width:100%;min-height:100px}
:is(.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) {display:table;width:100%;min-width:740px;border-collapse:separate;border-spacing:0;font:400 11px/1.5 system-ui;color:#294b3e}
:is(.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) :is(th,td) {padding:9px 11px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #e5ebe5;min-width:90px;max-width:280px;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
:is(.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) thead th {position:sticky;top:0;z-index:2;background:#edf2ed;color:#657a6b;font-weight:600;white-space:nowrap;letter-spacing:0}
:is(.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) tbody tr:hover td {background:#f4f7ef}
:is(.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) td:first-child {min-width:160px}
:is(.ga-table,.accounting-table-scroll table,.cash-table-wrap table) small {display:block;font-size:10px;color:#7b8979;margin-top:3px}
:is(.ga-text-button,.accounting-text-button,.workspace-text-button,#accounting-workspace .cash-table-wrap td:first-child .cash-button) {display:inline;width:auto;min-height:0;padding:0!important;border:0;border-radius:0;background:transparent!important;color:#294f40!important;font:600 11px/1.5 system-ui!important;text-align:left;text-decoration:none;cursor:pointer}
:is(.workspace-text-button,.ga-text-button,.accounting-text-button):hover {text-decoration:underline}
:is(.ga-table,.accounting-table-scroll table) .accounting-number {text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.accounting-stats {display:flex;gap:8px 20px;flex-wrap:wrap;margin:0 0 12px}
.accounting-stats>div {display:flex;gap:7px;background:transparent;border:0;border-radius:0;padding:0;justify-content:flex-start}
.accounting-stats span,.accounting-stats strong {font-size:11px}
.ga-badge {padding:2px 5px;font-size:10px;border-radius:4px}
.ga-overview-list {margin-top:14px}
.ga-empty {padding:12px;font-size:11px}
.ga-fleet {padding:10px 12px;margin-bottom:12px;font-size:11px;border-radius:6px}
.ga-fleet-grid {display:flex;flex-direction:column;gap:0}
.ga-fleet-grid article {display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 0;background:transparent;border-radius:0;border-bottom:1px solid #e6ece2}
.ga-fleet-grid strong {font-size:11px}
.ga-pagination {margin-top:12px}
/* Assignment endpoints stay grouped by city without a second page heading. */
.driver-assignment-panel {padding:14px 20px;min-width:0}
.driver-assignment-filters {display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 12px}
.driver-assignment-filters .sales-report-search input {padding-left:9px}
.driver-assignment-filters select {height:30px;padding:5px 8px;font:11px system-ui;border:1px solid #d8e1d5;border-radius:6px;color:#294f40;background:#fff;min-width:148px}
.driver-assignment-filters button {width:auto;min-height:30px;padding:5px 9px;font-size:11px}
.driver-position-scroll table {min-width:950px}
.driver-position-scroll .driver-position-group th {position:static;padding:7px 11px;background:#f2f5f0;font-weight:600;color:#506c59;border-bottom:1px solid #dce5d9;text-align:left}
.driver-position-scroll td:first-child {position:static;background:inherit}
.driver-assignment-detail {width:min(760px,calc(100vw - 36px));max-height:82dvh;overflow:auto;font-size:11px}
.driver-assignment-detail p {font-size:11px;line-height:1.6;margin:7px 0}
.driver-assignment-detail h4 {font-size:12px;margin:14px 0 8px}
.driver-assignment-detail button {width:auto;min-height:30px;padding:5px 9px;font-size:11px}
.driver-position-detail-head {margin-top:12px}
.driver-position-last-guests {padding-bottom:8px}
.driver-position-suggestions {border-top:1px solid #e2e9df;margin-top:14px;padding-top:4px}
.driver-position-suggestions label {display:grid;gap:5px;width:160px;font-size:10px}
.driver-position-suggestions input {height:30px;min-height:30px;padding:5px 8px;font:11px system-ui;border:1px solid #d8e1d5;border-radius:6px;box-sizing:border-box}
.driver-position-guest {display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid #e4ebe1}
.driver-position-guest :is(p,small) {grid-column:1;margin:0}
.driver-position-guest strong {font-size:11px}
.driver-position-guest small {font-size:10px;color:#74846d}
.driver-position-guest button {grid-column:2;grid-row:1/4;align-self:center}
/* All Purchasing categories share the Accommodation booking grid. */
.service-planning-popup {width:min(1260px,calc(100vw - var(--sidebar-width,232px) - 46px))}
.service-grid {min-width:980px!important}
.service-grid td {max-width:270px}
.service-reservation {display:grid;justify-items:start;gap:4px;padding:0 0 8px}
.service-reservation + .service-reservation {padding-top:8px;border-top:1px solid #e3e9df}
.service-reservation button {width:auto}
.service-planning-results .purchasing-stats {display:flex;gap:20px;font-size:11px;margin:12px 0}
.service-grid small {white-space:pre-wrap;overflow-wrap:anywhere}
.purchasing-sheet-scroll {max-height:62dvh;border-color:#cbd6c6}
.purchasing-results .purchasing-sheet {width:100%;min-width:var(--purchasing-sheet-width,100%)!important;table-layout:fixed;border-collapse:separate;border-spacing:0}
.purchasing-results .purchasing-sheet :is(th,td) {
 box-sizing:border-box;min-width:0;max-width:none;padding:4px 5px;font-size:11px;line-height:1.28;
 border-right:1px solid #d7dfd2;border-bottom:1px solid #d7dfd2;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;
}
.purchasing-results .purchasing-sheet th {font-weight:600;background:#bdd5b2!important;color:#233c2f!important}
.purchasing-sheet th.purchasing-service-column {background:#fff1ce!important}
.purchasing-sheet th[data-transport-type=ferry] {background:#f2e3ec!important}
.purchasing-sheet th:is([data-transport-type=train],[data-transport-type=flight]) {background:#dceeea!important}
.purchasing-sheet th.purchasing-hotel-date {background:#f6bf68!important}
.purchasing-results .purchasing-sheet :is(th,td).purchasing-status-column {text-align:center}
.purchasing-sheet th.purchasing-status-column {background:#f5f7f3!important}
.purchasing-results .purchasing-sheet :is(th,td).purchasing-room-column {text-align:center}
.purchasing-results .purchasing-sheet :is(th,td):nth-child(7) {text-align:center}
.purchasing-results .purchasing-sheet td:first-child {white-space:nowrap}
.purchasing-sheet th:nth-child(11) {background:#ffda7a!important}
.purchasing-sheet .purchasing-product-cell {font-weight:600}
.purchasing-sheet :is(th,td) small {display:block;margin-top:1px;font-size:10px;line-height:1.25;color:#5d705d}
.purchasing-sheet td button.purchasing-cell-action {display:inline;width:auto;min-width:0;min-height:0;margin:0;padding:0!important;background:none!important;border:0!important;color:#245742;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:2px}
.purchasing-sheet td button.purchasing-blank-cell {display:block;width:100%;min-width:0;min-height:18px;text-align:center}
.purchasing-blank-cell::before {content:'+';opacity:.35}
.purchasing-blank-cell:is(:hover,:focus-visible)::before {opacity:1}
.purchasing-sheet td.purchasing-type-private {background:#a92238!important;color:#fff;font-weight:600}
.purchasing-sheet td.purchasing-type-standard {background:#fff0be!important;color:#704910}
.purchasing-sheet td.purchasing-type-dormitory {background:#fbdad4!important;color:#8c342a}
.purchasing-sheet td.purchasing-type-budget {background:#f6f8f4!important;color:#324d3b}
.purchasing-sheet .purchasing-transport-check {width:16px;height:16px;min-height:0;margin:0;padding:0;vertical-align:middle;accent-color:#245742;cursor:pointer}
.purchasing-sheet .purchasing-transport-check:disabled {cursor:default}
.purchasing-check-feedback:empty {display:none}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-panel {padding:7px 10px 10px}
#purchasing-dialog[data-workspace-module=Purchasing] :is(.purchasing-tabs,.hotel-quick-filters,.purchasing-filters,.purchasing-stats) {gap:5px 8px;margin-block:2px 6px}
#purchasing-dialog[data-workspace-module=Purchasing] :is(.purchasing-tabs,.hotel-quick-filters) button {min-height:26px;padding:3px 7px;font-size:11px}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-filters label {gap:2px;font-size:10px}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-filters label:first-child {flex:0 1 210px}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-filters :is(input,select) {height:27px;min-height:27px;padding:3px 6px;font-size:11px}
.purchasing-sheet :is(.purchasing-hotel-inline input,.purchasing-room-column input) {min-width:0;width:100%;min-height:23px;padding:2px 3px;font-size:11px}
.purchasing-sheet .purchasing-inline-actions {display:flex;justify-content:center;gap:2px}
.purchasing-sheet .purchasing-inline-actions button {min-width:0;width:22px;min-height:20px;margin:2px 0 0;padding:0;font-size:11px}
.purchasing-sheet .purchasing-inline-save {color:white;background:#28533f}
.purchasing-sheet .purchasing-inline-error {color:#a92238}
.purchasing-sheet .purchasing-inline-error:empty {display:none!important}
#sales-form-dialog > .sales-window-header {position:sticky;top:0;z-index:5;background:#fff}
#sales-form-dialog > .sales-window-header > .sales-form-toolbar {position:relative}
#sales-form-dialog[open]:not(.sales-report-open) {display:flex;flex-direction:column;overflow:hidden}
#sales-form-dialog:not(.sales-report-open) > .sales-window-header {flex:none}
#sales-entry-form:not([hidden]) {display:flex;flex-direction:column;min-height:0;padding:0}
.sales-booking-pinned {flex:none;display:grid;gap:3px;padding:8px 22px;border-bottom:1px solid #e5eae7}
.sales-booking-scroll {min-height:0;overflow:auto;padding:12px 22px 18px}
@media(max-width:600px) {
 .sales-booking-pinned,.sales-booking-scroll {padding-inline:12px}
}
@media(max-height:440px) {
 #sales-form-dialog[open]:not(.sales-report-open) {overflow:auto}
 #sales-entry-form:not([hidden]) {flex:none}
 .sales-booking-scroll {overflow:visible}
}
.cs-table input.cs-gender-input {width:190px;min-width:130px;min-height:29px;padding:3px 6px;font-size:11px}
.cs-dropoff-actions {display:flex;flex-wrap:wrap;gap:5px;align-items:center}
@media(max-width:760px) {
 #accounting-workspace {padding:12px}.ga-header {padding:12px}.ga-header h2{font-size:17px}.ga-tabs{padding:0 12px}.ga-content,.driver-assignment-panel {padding:12px}
 :is(.ga-filters,.accounting-filters,.cash-tools) input[type=search] {flex-basis:100%;width:100%}
 .service-planning-popup {width:calc(100vw - 24px)}
 .service-grid,.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table {display:table!important}
 :is(.service-grid,.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) :is(thead,tbody) {display:table-row-group!important}
 :is(.service-grid,.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) tr {display:table-row!important}
 :is(.service-grid,.ga-table,.accounting-table-scroll table,.cash-table-wrap table,.driver-position-scroll table) :is(td,th) {display:table-cell!important}
}

.ga-content>h3 {font-size:12px;margin:0 0 10px}
.cash-finance-dialog {background:#fff;border-radius:10px;font-size:11px}
.cash-finance-dialog>header {background:#f8faf7;color:#294b3e;border-bottom:1px solid #dfe6dc;padding:12px 18px}
.cash-finance-dialog>header h2 {font-size:17px!important}
.cash-finance-dialog>header button {color:#294b3e}
.cash-finance-dialog .cash-button {font-size:11px;min-height:30px;padding:5px 9px!important;border-radius:6px}
.cash-finance-dialog .cash-form {gap:12px}
.cash-finance-dialog .cash-form label {font-size:11px}
.cash-finance-dialog .cash-form :is(input:not([type=checkbox]),select,textarea) {font-size:12px;min-height:32px;padding:6px 9px;border-radius:6px}
.cash-finance-dialog :is(p,small),.cash-finance-dialog .cash-run-options label {font-size:11px}
.cash-assignment-list>div {padding:8px 0;border-bottom:1px solid #e3e9df}
.cash-assignment-list :is(strong,small),.cash-run-options label span :is(strong,small) {display:block;line-height:1.6;overflow-wrap:anywhere}
.cash-assignment-list small,.cash-run-options label small {color:#71816c;font-size:11px}
.cash-selected-info {background:#f6f8f3;border:1px solid #e1e7dc;padding:10px 12px;border-radius:6px}
.cash-selected-info:empty {display:none}

.cash-cancel-confirm {display:flex!important;align-items:flex-start;gap:8px!important}
.cash-cancel-confirm input[type=checkbox] {width:16px!important;min-width:16px;min-height:16px!important;height:16px;margin:2px 0;accent-color:#244f40}
.cash-review-note small {display:block;line-height:1.6;margin-top:5px}
.cash-finance-dialog .cash-review-note p {margin:7px 0}
.joint-cost-dialog {width:min(980px,calc(100vw - 24px))}
.joint-cost-dialog .cash-form label[hidden] {display:none}
.joint-cost-estimate {min-width:0}
.joint-cost-estimate:empty {display:none}
.joint-cost-estimate .accounting-table-scroll {min-height:0;margin:0 0 12px}
.joint-cost-components input {display:block;min-width:7.5rem;width:100%;padding:5px 7px;font:inherit;color:inherit;border:1px solid #cfdcd3;border-radius:4px;background:#fff}
.joint-cost-components input[type=number] {font-variant-numeric:tabular-nums;text-align:right}
.joint-cost-components input:focus {outline:2px solid #3b725c;outline-offset:1px}
.joint-cost-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}
.joint-cost-actions[hidden] {display:none}
.joint-cost-actions a {display:inline-flex;align-items:center;text-decoration:none}
.joint-cost-estimate table {min-width:540px}
.joint-cost-estimate .cash-stats {grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.joint-cost-estimate label {max-width:300px}
.joint-cost-estimate li {margin:3px 0}

/* Sales-style floating panels for office modules. */
#accounting-workspace {padding:0;border:0;background:transparent}
.workspace-window-inactive {display:none!important}
.workspace-compact-window {
 box-sizing:border-box;background:#fff;color:#294b3e;border:1px solid #dfe6dc;border-radius:8px;
 font-size:12px;line-height:1.45;box-shadow:0 12px 38px #24362a22;
}
.workspace-floating-window {
 position:fixed;inset:84px auto auto calc(var(--sales-rail) + (100vw - var(--sales-rail))/2);
 display:flex;flex-direction:column;transform:translateX(-50%);margin:0;
 width:min(1260px,calc(100vw - var(--sales-rail) - 32px));height:auto;min-width:0;min-height:0;
 max-width:calc(100vw - 20px);max-height:calc(100dvh - 128px);overflow:auto;z-index:32;
}
.workspace-compact-window.workspace-window-positioned {inset:auto;margin:0!important}
.workspace-compact-window > header {
 position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;flex:none;
 min-height:39px;margin:0;padding:4px 10px;background:#f5f8f3;color:#254c3d;border-bottom:1px solid #e1e7dd;
}
.workspace-compact-window > header h2 {min-width:0;margin:0!important;font-size:14px!important;line-height:1.35;font-weight:600;color:inherit}
.workspace-compact-window > header > :is(.accounting-header-actions,.ga-actions,.op-window-actions) {margin-inline-start:auto}
.workspace-compact-window > header > :is(.accounting-header-actions,.ga-actions,.op-window-actions) + .workspace-window-actions {margin-inline-start:0}
.workspace-compact-window > header .workspace-window-actions {gap:3px}
.workspace-compact-window:not(.workspace-window-fullscreen) > header.sales-drag-handle {cursor:grab;touch-action:none}
.workspace-compact-window:not(.workspace-window-fullscreen) > header.sales-drag-handle:active {cursor:grabbing}
.workspace-floating-window > .accounting-window-content {min-height:0;padding:10px 12px;overflow:auto}
.workspace-floating-window .accounting-document-body {padding:8px 0}
.workspace-floating-window :is(.ga-tabs,.accounting-tabs,.cash-subtabs,.cash-module-tabs) {gap:12px;margin-bottom:8px}
.workspace-floating-window .ga-content {padding:10px 12px}
.workspace-floating-window > .ga-tabs {padding-inline:12px}
.workspace-floating-window :is(.ga-table,.cash-table-wrap table,.accounting-table-scroll table) :is(th,td) {padding:6px 8px}
.cs-page.workspace-floating-window {height:min(710px,calc(100dvh - 128px));overflow:hidden}
.cs-page.workspace-compact-window > .cs-main-menus {padding-inline:10px;gap:12px}
.cs-page.workspace-compact-window > .cs-panel {padding:8px 10px 10px}
.cs-page.workspace-compact-window .cs-greeting-menus {padding-bottom:6px;margin-bottom:6px}
.cs-page.workspace-compact-window .cs-section-title {margin:4px 0 8px;font-size:14px}
.cs-page.workspace-compact-window :is(.cs-filters,.cs-checklist-message) {margin-block:0 6px}
.cs-page.workspace-compact-window .cs-checklist-message:empty {display:none}
.cs-page.workspace-compact-window .cs-menu-table :is(th,td) {padding:6px 8px}
dialog.workspace-compact-window :is(.purchasing-tabs,.purchasing-filters,.purchasing-toolbar,.hotel-view-tabs) {gap:6px;margin-block:4px 8px}
dialog.workspace-compact-window .purchasing-tabs button {min-height:30px;padding:4px 8px;font-size:11px}
dialog.workspace-compact-window.cash-dialog {position:fixed}
dialog.workspace-compact-window::backdrop {background:transparent}
dialog.workspace-compact-window.cash-dialog > section {padding:10px 12px}
.workspace-compact-window :is(.cash-form,.ga-form,.staff-account-form) {gap:8px}
.workspace-compact-window :is(.cash-form,.ga-form,.staff-account-form) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {min-height:32px;padding:5px 8px;font-size:12px}
.workspace-compact-window :is(.cash-stats,.staff-toolbar,.ga-history) {margin-block:8px;gap:8px}
.workspace-compact-window .cash-stats > div {padding:8px}
.workspace-compact-window .cash-stats strong {font-size:14px;margin-top:3px}
.workspace-compact-window .staff-account-form {margin-block:8px;padding:10px}
.workspace-compact-window :is(.cash-button,.staff-toolbar button) {min-height:30px;padding:4px 8px!important;font-size:11px}
@media(max-width:760px){
 .workspace-floating-window {top:76px;width:calc(100vw - 20px);max-height:calc(100dvh - 120px)}
 .cs-page.workspace-floating-window {height:min(710px,calc(100dvh - 120px))}
 .workspace-compact-window > header .workspace-window-actions {gap:2px}
}


.purchasing-fill-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 10px;margin:8px 0;background:#f5f7f2;border:1px solid #d5ddce;border-radius:8px;font-size:12px}
.purchasing-fill-toolbar strong{margin-right:5px;white-space:nowrap}
.purchasing-fill-toolbar button.purchasing-color-swatch{width:25px;height:25px;min-height:25px;padding:0;border:1px solid #98a58e;border-radius:4px}
.purchasing-fill-toolbar button:disabled,.purchasing-fill-toolbar input:disabled{opacity:.45;cursor:default}
.purchasing-fill-toolbar input[type=color]{width:30px;height:27px;min-height:27px;padding:2px;border:1px solid #98a58e;border-radius:4px}
.purchasing-fill-toolbar button:not(.purchasing-color-swatch){min-height:27px;padding:3px 8px;font-size:12px}
.purchasing-fill-hint{color:#52614d;margin-left:5px}.purchasing-fill-status{color:#36542d;margin-left:auto}
.purchasing-sheet td.purchasing-format-cell{cursor:cell;position:relative}
.purchasing-sheet td.purchasing-cell-selected{box-shadow:inset 0 0 0 2px #41633b!important}
.purchasing-sheet td.purchasing-format-cell:focus{outline:2px solid #41633b;outline-offset:-2px}

.purchasing-product-filter{display:flex;flex:0 1 180px;min-width:150px;flex-direction:column;gap:2px;font-size:10px}
.purchasing-product-filter>span{font-weight:600}
.purchasing-type-picker{position:relative;min-width:0}
.purchasing-type-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:27px;padding:3px 7px;box-sizing:border-box;border:1px solid #ced9d0;border-radius:7px;background:white;color:#254c3d;cursor:pointer;font-size:11px;list-style:none}
.purchasing-type-picker>summary::-webkit-details-marker{display:none}
.purchasing-type-picker>summary::after{content:'▾';flex:none}
.purchasing-type-picker[open]>summary{outline:2px solid #b49a58;outline-offset:1px}
.purchasing-type-panel{position:absolute;z-index:40;top:calc(100% + 5px);left:0;width:260px;max-width:calc(100vw - 48px);padding:8px;border:1px solid #ced9d0;border-radius:8px;background:#fff;box-shadow:0 8px 24px #254c3d26}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-type-panel input[type=search]{width:100%;box-sizing:border-box;margin:0 0 6px;min-width:0}
.purchasing-type-options{max-height:240px;overflow:auto}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-filters .purchasing-type-option{display:flex;align-items:center;gap:8px;min-height:28px;padding:4px 6px;margin:0;flex:none;font-size:12px;font-weight:400;border-radius:4px;cursor:pointer}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-filters .purchasing-type-option[hidden]{display:none}
#purchasing-dialog[data-workspace-module=Purchasing] .purchasing-type-option input[type=checkbox]{flex:none;width:15px;height:15px;min-height:15px;margin:0;padding:0;accent-color:#28533f}
.purchasing-type-option:hover,.purchasing-type-option:focus-within{background:#f2f5ee}
.purchasing-type-empty{margin:6px;font-size:12px;color:#627568}

.purchasing-train-dialog {width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}
.purchasing-train-dialog p {font-size:12px;margin:8px 0 12px}
.purchasing-train-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.purchasing-train-fields label {display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}
.purchasing-train-fields input,.purchasing-train-fields select {box-sizing:border-box;width:100%;min-width:0;min-height:34px;padding:6px 9px;font-size:12px}
@media(max-width:540px){.purchasing-train-fields{grid-template-columns:1fr}}
