/* One selection style for transport and routing; state remains owned by the form. */
#quotations-create-view {--choice-idle-bg:#fff;--choice-idle-text:#172033;--choice-idle-border:#d7deeb;--choice-muted-bg:#f0f1f3;--choice-muted-text:#626b78;--choice-muted-border:#e0e3e8;--choice-active-bg:#101827;--choice-active-text:#fff;--choice-active-border:#101827;}
html[data-theme="dark"] #quotations-create-view {--choice-idle-bg:#131416;--choice-idle-text:#f0f1f4;--choice-idle-border:#35363d;--choice-muted-bg:#24262b;--choice-muted-text:#a6abb5;--choice-muted-border:#35373e;--choice-active-bg:#f3f4f6;--choice-active-text:#111827;--choice-active-border:#f3f4f6;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value] {display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 12px;border-width:1px;border-style:solid;border-radius:9px;box-shadow:none!important;transform:none!important;font-weight:600;text-align:center;transition:background-color 160ms,color 160ms,border-color 160ms;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group):not(.is-invalid) > button[data-choice-value] {background:var(--choice-idle-bg)!important;color:var(--choice-idle-text)!important;border-color:var(--choice-idle-border)!important;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group):not(.is-invalid):has(>button.is-selected) > button[data-choice-value]:not(.is-selected) {background:var(--choice-muted-bg)!important;color:var(--choice-muted-text)!important;border-color:var(--choice-muted-border)!important;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group):not(.is-invalid) > button[data-choice-value].is-selected {background:var(--choice-active-bg)!important;color:var(--choice-active-text)!important;border-color:var(--choice-active-border)!important;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value]::before,
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value]::after {content:none!important;display:none!important;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value] strong {color:inherit!important;font-weight:600;}
#quotations-create-view.is-dev-mode #shipment-type-group .choice-card__icon {background:transparent!important;color:inherit!important;box-shadow:none!important;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value]:focus-visible {outline:2px solid #6c9cff!important;outline-offset:3px;}
@media(prefers-reduced-motion:reduce) {#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value] {transition:none;}}

/* Storage is a service request, so freight routing choices are inapplicable. */
#quotations-create-view.is-dev-mode #shipment-type-group {grid-template-columns:repeat(4,minmax(0,1fr));}
#quotations-create-view.is-dev-mode #movement-scope-group.is-warehouse-inactive > button[data-choice-value] {background:var(--choice-muted-bg)!important;color:var(--choice-muted-text)!important;border-color:var(--choice-muted-border)!important;opacity:.6;cursor:not-allowed;}
#quotations-create-view .warehouse-destination-field {background:var(--choice-muted-bg);color:var(--choice-muted-text);}
#quotations-create-view .warehouse-destination-field input:disabled {background:transparent;color:var(--choice-muted-text);cursor:not-allowed;opacity:.65;}

/* Storage fields align with the existing compact itinerary controls. */
#quotations-create-view.is-dev-mode .dev-field:has(#warehouse-collection-address,#warehouse-destination) > .dev-field__label {position:absolute;z-index:2;top:5px;left:16px;margin:0;font-size:11px;font-weight:500;line-height:15px;white-space:nowrap;}
#quotations-create-view.is-dev-mode :is(.warehouse-collection-field,.warehouse-destination-field) {margin:0!important;min-width:0;}
#quotations-create-view.is-dev-mode :is(.warehouse-collection-field,.warehouse-destination-field) > span {display:none;}
#quotations-create-view.is-dev-mode :is(#warehouse-collection-address,#warehouse-destination) {box-sizing:border-box;height:50px;min-height:50px;padding:20px 16px 4px;font:inherit;border-radius:9px;}
#quotations-create-view.is-dev-mode #warehouse-destination {background:var(--choice-muted-bg);color:var(--choice-muted-text);border-color:var(--choice-muted-border);}
#quotations-create-view label:has(> #ready-date)[hidden] {display:none!important;}
#dev-ready-date-slot:has(#warehouse-storage-period:not([hidden]))::before,#dev-ready-date-slot:has(#warehouse-storage-period:not([hidden]))::after {content:none!important;}
.warehouse-period[hidden] {display:none!important;}
.warehouse-period {width:100%;min-width:0;}
.warehouse-period__trigger {width:100%;height:50px;display:flex;align-items:center;gap:10px;padding:7px 14px;text-align:left;border:1px solid var(--choice-idle-border,#d7deeb);border-radius:9px;background:var(--choice-idle-bg,#fff);color:var(--choice-idle-text,#172033);font:inherit;cursor:pointer;}
.warehouse-period__trigger svg {width:18px;height:18px;flex:none;opacity:.65;}
.warehouse-period__trigger > span {display:grid;gap:2px;min-width:0;}
#warehouse-period-title {font-size:12px;font-weight:500;line-height:15px;}
#warehouse-period-summary {font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-muted,#718096);}
.warehouse-period__trigger:focus-visible {outline:2px solid #6c9cff;outline-offset:3px;}
.warehouse-period__panel {box-sizing:border-box;position:fixed;inset:auto;margin:0;padding:18px;border:1px solid var(--line-strong,#d7deeb);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#172033);box-shadow:0 18px 60px #0003;font:inherit;}
.warehouse-period__panel::backdrop {background:transparent;}
.warehouse-period__panel header {display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.warehouse-period__panel header strong {font-size:15px;font-weight:600;}
.warehouse-period__panel header button {width:26px;height:26px;padding:0;border:0;border-radius:50%;background:var(--surface-soft,#f4f5f7);color:inherit;font-size:20px;cursor:pointer;}
.warehouse-period__presets {display:flex;gap:6px;margin-bottom:16px;}
.warehouse-period__presets button {flex:1;padding:8px 4px;border:1px solid var(--line-strong,#d7deeb);border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer;}
.warehouse-period__presets button:is(:hover,.is-selected) {background:var(--surface-soft,#f4f5f7);border-color:var(--ink-muted,#718096);}
.warehouse-period__dates {display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.warehouse-period__dates label {display:grid;gap:6px;min-width:0;font-size:12px;}
.warehouse-period__dates input {box-sizing:border-box;min-width:0;width:100%;padding:9px;border:1px solid var(--line-strong,#d7deeb);border-radius:8px;background:var(--surface-soft,#f4f5f7);color:inherit;font:inherit;font-size:13px;}
.warehouse-period__panel p {font-size:12px;line-height:1.5;color:var(--ink-muted,#718096);margin:12px 0;}
.warehouse-period__apply {width:100%;padding:11px;border:0;border-radius:10px;background:var(--ink,#172033);color:var(--surface,#fff);font:inherit;font-size:13px;font-weight:500;cursor:pointer;}
.warehouse-period__apply:disabled {opacity:.35;cursor:default;}
@media(prefers-reduced-motion:no-preference){.warehouse-period__panel:popover-open{animation:warehouse-period-in 150ms ease-out;}@keyframes warehouse-period-in{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}}

/* Road transport has one applicable routing scope. */
#quotations-create-view.is-dev-mode #movement-scope-group > button[data-choice-value]:disabled:not(.is-selected) {background:var(--choice-muted-bg)!important;color:var(--choice-muted-text)!important;border-color:var(--choice-muted-border)!important;opacity:.6;cursor:not-allowed;}

/* Preserve four transport and four routing choices without moving the rows. */
#quotations-create-view.is-dev-mode .dev-card--itinerary > .dev-card__body {container:quotation-itinerary / inline-size;}
#quotations-create-view.is-dev-mode #shipment-type-group .choice-card__icon {flex:0 0 26px;width:26px;min-width:26px;height:26px;}
#quotations-create-view.is-dev-mode #shipment-type-group .choice-card__icon svg {flex-shrink:0;}
#quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) {grid-template-columns:repeat(4,minmax(0,1fr));}
#quotations-create-view.is-dev-mode #shipment-type-group > button > div {min-width:0;}
@container quotation-itinerary (max-width:620px) {
  /* Retain the translated full names for assistive technology. */
  #quotations-create-view.is-dev-mode #shipment-type-group > button > div,
  #quotations-create-view.is-dev-mode #movement-scope-group > button > strong {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
  #quotations-create-view.is-dev-mode :is(#shipment-type-group,#movement-scope-group) > button[data-choice-value] {padding-inline:6px;gap:0;}
  #quotations-create-view.is-dev-mode #movement-scope-group > button[data-choice-value]::after {content:attr(data-short-label)!important;display:block!important;position:static!important;inset:auto!important;transform:none!important;rotate:none!important;scale:none!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;opacity:1!important;color:inherit;font:inherit;}
}
