/* Space Planning follows the light OTTO WERKS console identity. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#283b45;background:#fff;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,input,select,textarea{border:1px solid #d6dfe3;border-radius:7px;background:#fff;color:#2e444f}button{padding:9px 13px;background:linear-gradient(135deg,#fff,#f0f4f5);box-shadow:0 1px 3px #263d4905}button:hover:not(:disabled){border-color:#809ba8}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #567887;outline-offset:3px}[hidden]{display:none!important}
body>header{display:flex;align-items:center;gap:24px;padding:21px 30px;border-bottom:1px solid #e5eaec;min-height:86px}header h1{margin:0;font-size:19px;letter-spacing:.16em}header h1 span{font-weight:400}header .sp-module{font-size:11px;letter-spacing:.2em;border-left:1px solid #dce3e6;padding-left:24px;color:#63757e}header .sp-home{margin-left:auto;font-size:12px;color:#627780;text-decoration:none}header .sp-logo{width:195px;height:auto}
#space-planning{--sp-ink:#293e49;--sp-dim:#73838b;--sp-line:#dfe6e9;--sp-blue:#52788c;--sp-green:#57806b;--sp-gold:#ae8857;--sp-storage:#8a899b;max-width:1840px;margin:auto;padding:30px}
.sp-titlebar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}
.sp-eyebrow{font-size:10px;font-weight:600;letter-spacing:.2em;color:#7e8d94;margin:0 0 8px}
.sp-titlebar h2{font-size:29px;font-weight:450;letter-spacing:-.04em;margin:0 0 8px}
.sp-subtitle{margin:0;font-size:12px;color:var(--sp-dim);line-height:1.5}
.sp-actions{display:flex;gap:8px;align-items:center}
.sp-primary{background:#344f5e;color:#fff;border-color:#344f5e}
.sp-primary:hover:not(:disabled){background:#263f4e;color:#fff}
.sp-demo{background:#f6f2e9;color:#8d713f;border-radius:5px;font-size:10px;letter-spacing:.04em;padding:6px 8px}
.sp-layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;border:1px solid var(--sp-line);border-radius:12px;overflow:hidden;min-height:780px}
.sp-floor{background:#f9fbfc;min-width:0;display:flex;flex-direction:column}
.sp-mapbar{min-height:59px;border-bottom:1px solid var(--sp-line);padding:12px 20px;display:flex;align-items:center;gap:12px;background:#fff}
.sp-mapbar h3{font-size:12px;margin:0;font-weight:550}
.sp-mapbar .sp-separator{height:18px;width:1px;background:var(--sp-line)}
.sp-mapbar small{font-size:11px;color:var(--sp-dim)}
.sp-mapbar button{padding:6px 10px;font-size:11px}
.sp-maptools{margin-left:auto;display:flex;gap:5px;align-items:center}
.sp-maptools output{font-size:11px;color:var(--sp-dim);min-width:37px;text-align:center}
.sp-viewport{height:min(77vh,960px);min-height:630px;overflow:auto;position:relative;overscroll-behavior:contain;background-image:radial-gradient(#dce5e9 0.7px,transparent .7px);background-size:16px 16px}
.sp-mapframe{position:relative;margin:18px auto;flex:none}
.sp-stage{position:absolute;width:930px;height:1210px;transform-origin:top left;isolation:isolate}
.sp-floorimage{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;user-select:none}
.sp-bays,.sp-cars{position:absolute;inset:0;pointer-events:none}
.sp-machines{position:absolute;inset:0;pointer-events:none}
.sp-machine{position:absolute;transform:translate(-50%,-50%);width:68px;height:132px;border:1.5px solid #bdc3c5;border-radius:4px;background:repeating-linear-gradient(135deg,#edf0f0,#edf0f0 7px,#e1e6e6 7px,#e1e6e6 9px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#64777f;font-size:16px}
.sp-machine strong{font-size:14px;font-weight:600;letter-spacing:.035em;background:#edf0f0;padding:3px 2px}
.sp-bay{position:absolute;transform:translate(-50%,-50%);height:132px;width:68px;border:1.5px dashed #c8d4da;border-radius:5px;padding:0;background:#ffffff66!important;box-shadow:none!important;pointer-events:auto;display:flex;align-items:flex-end;justify-content:center;color:#899aa3;font-size:16px;letter-spacing:.05em}
.sp-bay.is-occupied{border-style:solid;border-color:#d9e0e4;background:transparent!important}
.sp-bay.is-horizontal{width:145px;height:65px;align-items:center;justify-content:flex-start;padding-left:8px}
.sp-bay.is-occupied span{position:absolute;top:-23px;color:#899aa3}
.sp-bay.is-horizontal.is-occupied span{left:-48px;top:23px}
.sp-bay:hover{outline:2px solid #8aa7b5;outline-offset:3px}
.sp-car{--car-color:var(--sp-blue);position:absolute;transform:translate(-50%,-50%);width:57px;height:112px;pointer-events:auto;border:0!important;background:transparent!important;box-shadow:none!important;padding:0;border-radius:12px;touch-action:none;cursor:grab;z-index:2}
.sp-car:active{cursor:grabbing}
.sp-car[data-status="waiting"]{--car-color:var(--sp-gold)}
.sp-car[data-status="ready"]{--car-color:var(--sp-green)}
.sp-car[data-status="storage"]{--car-color:var(--sp-storage)}
.sp-car svg{display:block;width:100%;height:100%;color:var(--car-color);filter:drop-shadow(0 3px 3px #243d4b17)}
.sp-car .sp-carbody{transform:rotate(var(--angle));transition:transform .16s}
.sp-car.is-selected svg{filter:drop-shadow(0 0 3px #334f5f66)}
.sp-car.is-selected:before{content:"";position:absolute;inset:-10px -10px;border:2px solid #294c5e;border-radius:13px;transform:rotate(var(--angle))}
.sp-car.is-moving{z-index:4}
.sp-car.is-moving .sp-carbody{transition:none}
.sp-carlabel{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(var(--label-angle));width:124px;white-space:normal;overflow-wrap:anywhere;font-size:15px;font-weight:600;line-height:1.12;text-align:center;color:#284555;background:#fffffff2;padding:3px 4px;border:1px solid #d8e2e6;border-radius:3px;pointer-events:none}
.sp-car.is-selected .sp-carlabel{background:#344f5e;color:#fff}
.sp-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--sp-line);background:white;flex-wrap:wrap}
.sp-legend-items{display:flex;flex-wrap:wrap;gap:14px;font-size:10px;color:#657b85}
.sp-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--sp-blue);margin-right:6px;flex:none}
.sp-dot[data-status="waiting"]{background:var(--sp-gold)}
.sp-dot[data-status="ready"]{background:var(--sp-green)}
.sp-dot[data-status="storage"]{background:var(--sp-storage)}
.sp-save{font-size:10px;color:#657b85;display:flex;align-items:center;gap:6px}
.sp-save.is-error{color:#a64c3e}
.sp-rail{border-left:1px solid var(--sp-line);background:#fff;display:flex;flex-direction:column;min-width:0}
.sp-railhead{padding:21px 20px 14px;display:flex;align-items:center;justify-content:space-between}
.sp-railhead h3{font-size:14px;font-weight:550;margin:0}
.sp-count{border-radius:5px;background:#f0f4f6;padding:3px 7px;font-size:11px;color:#657b85}
.sp-search{margin:0 18px 12px;width:calc(100% - 36px);padding:11px 12px;font-size:12px;background:#fcfdfd}
.sp-filters{padding:0 18px 13px;display:flex;gap:6px;border-bottom:1px solid var(--sp-line)}
.sp-filters button{border:0;box-shadow:none;padding:7px 10px;font-size:11px;background:transparent}
.sp-filters button[aria-pressed="true"]{background:#edf2f5;color:#355465}
.sp-vehiclelist{overflow:auto;max-height:460px;flex:1;min-height:140px;padding:7px 10px}
.sp-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:transparent!important;border:1px solid transparent!important;border-radius:7px;box-shadow:none!important;padding:13px 10px}
.sp-row:hover{background:#f8fafb!important}
.sp-row[aria-pressed="true"]{background:#f0f5f7!important;border-color:#d5e0e6!important}
.sp-rowtext{flex:1;min-width:0}
.sp-rowname{display:block;font-size:12px;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sp-rowmeta{display:block;color:#819098;font-size:10px;margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sp-location{color:#738792;font-size:10px;text-align:right;max-width:82px}
.sp-location.is-unplaced{color:#a4824c}
.sp-selection{border-top:1px solid var(--sp-line);padding:20px}
.sp-selection .sp-eyebrow{margin-bottom:9px}
.sp-selection h3{font-size:17px;font-weight:500;letter-spacing:-.025em;margin:0 0 5px}
.sp-selection .sp-detailmeta{color:var(--sp-dim);font-size:11px;margin:0 0 17px}
.sp-selection label{display:block;color:#72858e;font-size:10px;margin-bottom:7px}
.sp-selection select{width:100%;padding:9px 10px;font-size:12px;margin-bottom:12px}
.sp-detailbuttons{display:flex;gap:7px;flex-wrap:wrap}
.sp-detailbuttons button{padding:8px 10px;font-size:11px}
.sp-detailnote{font-size:11px;line-height:1.6;background:#fafbfc;padding:11px;border-left:2px solid #d9e3e9;margin:16px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.sp-stamp{font-size:10px;line-height:1.5;color:#8a989f;margin:15px 0 0}
.sp-empty{color:#83929a;text-align:center;font-size:12px;line-height:1.7;padding:32px 22px}
.sp-floorhint{font-size:11px;color:#7d8d95;margin:15px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sp-floorhint a{color:#6a818e}
.sp-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(530px,90vw);border:1px solid #cfdbe1;border-radius:9px;background:white;color:#344f5e;padding:14px 20px;box-shadow:0 8px 35px #203b4829;font-size:12px;line-height:1.5;z-index:1100}
.sp-toast.is-error{border-color:#d2afa3;color:#a0513b}
.sp-modal{border:1px solid #d7e1e6;border-radius:13px;box-shadow:0 20px 90px #233e4b2b;padding:28px;width:490px;max-width:calc(100vw - 24px);color:#2e444f}
.sp-modal::backdrop{background:#344e5f55;backdrop-filter:blur(4px)}
.sp-modal h3{font-size:23px;font-weight:500;letter-spacing:-.03em;margin:0 0 7px}
.sp-modal p{font-size:12px;color:#7c8d97;line-height:1.6;margin:0 0 20px}
.sp-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sp-formgrid label{font-size:11px;color:#6d828e;display:block}
.sp-formgrid input,.sp-formgrid select,.sp-formgrid textarea{padding:10px;margin-top:7px;width:100%;font-size:13px}
.sp-formgrid textarea{resize:vertical;min-height:70px}
.sp-full{grid-column:1/-1}
.sp-lookup{display:flex;gap:7px;align-items:flex-end}
.sp-lookup input{min-width:0;flex:1}
.sp-lookup button{white-space:nowrap;font-size:11px;padding:11px 9px}
.sp-modalfooter{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}
.sp-modalfooter .sp-delete{margin-right:auto;color:#a35743;background:white}
.sp-formerror{color:#a45542!important;margin:14px 0 0!important;min-height:16px}
.sp-banner{margin:0 0 20px;padding:12px 16px;background:#fff7ea;border:1px solid #eadabc;border-radius:8px;color:#8c734a;font-size:12px;line-height:1.5}
.sp-banner button{margin-left:10px;padding:4px 10px;font-size:11px}
.sp-hint{font-size:11px;color:#8a969e;line-height:1.6;margin:17px 0 0}
.sp-preview-reset{border:0;background:transparent;color:#7b858c;box-shadow:none;text-decoration:underline;font-size:10px;padding:0}
.sp-car .sp-carbody{display:block;width:100%;height:100%}
@media(min-width:1550px){.sp-layout{grid-template-columns:minmax(0,1fr) 348px}
.sp-vehiclelist{max-height:530px}}
@media(max-width:900px){#space-planning{padding:20px}
.sp-layout{grid-template-columns:minmax(0,1fr) 270px}
.sp-railhead,.sp-selection{padding:16px}
.sp-mapbar{flex-wrap:wrap;padding:12px}
.sp-mapbar small,.sp-mapbar .sp-separator{display:none}
.sp-maptools{gap:3px}
.sp-titlebar h2{font-size:25px}
.sp-maptools button{padding:6px 8px}
.sp-home{display:none}}
@media(max-width:690px){body>header{padding:17px 18px;gap:15px;flex-wrap:wrap;min-height:70px}header .sp-module{border:0;padding-left:0;font-size:9px}header .sp-logo{width:160px}#space-planning{padding:19px 12px}
.sp-titlebar{align-items:center;gap:10px}
.sp-titlebar h2{font-size:24px}
.sp-titlebar .sp-eyebrow{font-size:9px}
.sp-titlebar .sp-actions{flex-direction:column-reverse;align-items:flex-end}
.sp-actions button{font-size:12px;padding:9px 11px}
.sp-demo{font-size:9px}
.sp-layout{grid-template-columns:1fr;min-height:0}
.sp-viewport{height:570px;min-height:440px}
.sp-rail{border-left:0;border-top:1px solid var(--sp-line)}
.sp-vehiclelist{max-height:290px}
.sp-legend{padding:12px;gap:12px}
.sp-legend-items{gap:9px}
.sp-mapbar h3{font-size:11px}
.sp-mapbar{gap:5px}
.sp-maptools output{min-width:32px}
.sp-floorhint{line-height:1.6;font-size:10px}
.sp-titlebar .sp-subtitle{max-width:200px;font-size:11px}
.sp-modal{padding:23px 20px}
.sp-formgrid{gap:11px}
.sp-formgrid input,.sp-formgrid textarea,.sp-formgrid select,.sp-selection select,.sp-search{font-size:16px}
.sp-maptools button{min-height:34px}
.sp-row{min-height:57px}
.sp-selection{scroll-margin:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#space-planning .sp-primary{background:#344f5e;color:#fff;border-color:#344f5e}
.sp-print-check{display:flex;align-items:center;gap:10px;font-size:13px;margin:22px 0;cursor:pointer}
.sp-print-check input{width:17px;height:17px;accent-color:#344f5e}
.sp-print-notes-label{display:block;font-size:12px;color:#6d828e;margin-bottom:9px}
#sp-print-notes{width:100%;padding:12px;font-size:14px;line-height:1.5;resize:vertical}
.sp-modal .sp-print-note-hint{font-size:11px;margin:9px 0 0}
.sp-print-sheet{display:none;color:#283b45;background:#fff;width:255mm;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--sp-blue:#52788c;--sp-green:#57806b;--sp-gold:#ae8857;--sp-storage:#8a899b}
.sp-print-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-height:15mm;border-bottom:1px solid #d4dcdf;margin-bottom:3mm;padding-bottom:2mm}
.sp-print-heading strong{font-size:15px;letter-spacing:.14em;font-weight:500}
.sp-print-heading h2{font-size:11px;font-weight:500;letter-spacing:.2em;margin:5px 0 0}
.sp-print-context{font-size:10px;text-align:right;line-height:1.5}
.sp-print-columns{display:flex;justify-content:center;align-items:flex-start;gap:10mm}
.sp-print-plan{width:130.4125mm;height:169.678mm;flex:none;pointer-events:none;break-inside:avoid;overflow:hidden}
.sp-print-plan .sp-stage{transform:none!important;zoom:.53;transform-origin:top left;position:relative;width:930px;height:1210px}
.sp-print-notes-column{flex:1;min-width:0;min-height:165mm;border-left:1px solid #ccd6db;padding:5mm 0 0 8mm}
.sp-print-notes-column h3{font-size:11px;font-weight:600;letter-spacing:.12em;margin:0 0 6mm}
.sp-print-notes-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.sp-print-writing-lines{height:143mm;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(9mm - 1px),#d4dcdf calc(9mm - 1px),#d4dcdf 9mm)}
.sp-print-footer{display:flex;justify-content:space-between;gap:10mm;font-size:9px;border-top:1px solid #d4dcdf;margin-top:2mm;padding-top:2mm}
.sp-print-preview{border:1px solid #d7e1e6;border-radius:10px;padding:0;max-width:calc(100vw - 24px);width:1100px;max-height:calc(100vh - 30px);background:#edf1f3;color:#2e444f;overflow:auto}
.sp-print-preview::backdrop{background:#344e5f66;backdrop-filter:blur(4px)}
.sp-print-preview-toolbar{position:sticky;top:0;left:0;z-index:10;display:flex;gap:8px;align-items:center;padding:14px 18px;background:#fff;border-bottom:1px solid #d4dcdf;font-size:13px}
.sp-print-preview-toolbar>span{margin-right:auto;font-weight:550}
#sp-print-preview-content{padding:20px}
#sp-print-preview-content .sp-print-sheet{display:block;padding:8mm;box-sizing:content-box;box-shadow:0 3px 14px #354f6020}
@page{size:landscape;margin:9mm}
@media print{
  body>header,body>aside,.wnav-backdrop{display:none!important}
  #space-planning{padding:0!important;margin:0!important;max-width:none!important}
  #space-planning>*:not(#sp-print-sheet){display:none!important}
  #sp-print-sheet{display:block!important;width:255mm;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #sp-print-sheet .sp-print-heading{break-after:avoid}
  #sp-print-sheet button{box-shadow:none!important}
  dialog::backdrop{display:none!important}
}
