:root{font-family:Arial,Helvetica,sans-serif;font-size:13px;color:#333;background:#d3d3d3;--line:#ccc;--blue:#428bca;--selected:#d9edf7}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button{background:linear-gradient(#fff,#f1f1f1);border:1px solid #ccc;border-radius:3px;color:#333;padding:6px 10px;cursor:pointer;white-space:nowrap}button:hover:not(:disabled){background:#e6e6e6;border-color:#aaa}button:disabled{color:#999;cursor:default;background:#fafafa}button.primary{background:#428bca;color:white;border-color:#357ebd}button.primary:hover{background:#3276b1}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #428bca;outline-offset:1px}input,select{border:1px solid #ccc;border-radius:3px;background:white;color:#333;padding:6px 8px;min-width:0}h1,h2,h3,p{margin:0}h1{font-size:18px}h2{font-size:16px}h3{font-size:14px}small{font-size:12px;color:#777}#app{height:100dvh;display:flex;flex-direction:column}.main-toolbar{height:51px;flex:none;display:flex;align-items:center;justify-content:space-between;background:#f5f5f5;border-bottom:1px solid #bbb;padding:0 10px}.brand-area,.user-area{display:flex;align-items:center;gap:12px}.brand{font-size:27px;font-weight:800;letter-spacing:-1px;color:#333}.pilot-label{font-size:11px;color:#777;border-left:1px solid #ccc;padding-left:12px}.user-area strong{font-weight:400}.user-area small{display:block;font-size:10px;margin-top:2px}#menu-toggle{font-size:22px;border:0;background:none;padding:3px 9px}.working-area{display:flex;gap:10px;padding:10px;min-height:0;flex:1}aside{width:216px;flex:none;background:#fff;border:1px solid #bbb;overflow:auto}nav details{border-bottom:1px solid #ccc}nav summary{padding:10px 12px;background:linear-gradient(#fafafa,#ececec);cursor:pointer;font-weight:bold}nav button{display:block;width:100%;text-align:left;border:0;border-radius:0;background:white;padding:8px 12px 8px 26px;white-space:normal}nav button.active{background:#428bca;color:white}nav button.active:hover{background:#3276b1;color:white}nav button:disabled{background:white;color:#8b8b8b}.menu-note{display:block;line-height:1.4;padding:15px 12px;color:#888}main{min-width:0;flex:1;display:flex;flex-direction:column;background:white;border:1px solid #bbb}.screen-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-bottom:1px solid #ccc;background:#f8f8f8;flex:none}.screen-heading h1{font-size:16px;font-weight:600}#metrics{font-size:12px;color:#777}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f5f5f5;border-bottom:1px solid #ccc;padding:5px 6px;min-height:43px}.toolbar-actions,.search-tools{display:flex;gap:5px;align-items:center}.search-tools input{width:225px}.search-tools select{max-width:170px}#content{flex:1;min-height:0;overflow:auto;position:relative}footer{flex:none;padding:4px 9px;border-top:1px solid #ddd;font-size:10px;color:#888;background:#f5f5f5}.orders-workspace{height:100%;display:flex;flex-direction:column;min-height:0}.grid-pane{height:var(--grid-height,44%);min-height:120px;flex:none;display:flex;flex-direction:column}.grid-scroll{overflow:auto;flex:1;min-height:0}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th{position:sticky;top:0;text-align:left;background:linear-gradient(#fafafa,#ededed);border-bottom:1px solid #ccc;border-right:1px solid #ddd;font-weight:normal;white-space:nowrap;z-index:1;padding:8px 9px}td{border-bottom:1px solid #e5e5e5;border-right:1px solid #eee;padding:7px 9px;vertical-align:middle}tbody tr:nth-child(even){background:#f8f8f8}tbody tr.selected{background:#d9edf7}tbody tr[data-row]{cursor:pointer}tbody tr[data-row]:hover{background:#eaf3f9}.orders-grid{min-width:910px}.orders-grid th button{background:none;border:0;padding:0;color:inherit;text-align:left}.order-link{background:none;border:0;padding:0;color:#286090;text-decoration:underline}.orders-grid .client-cell{min-width:180px;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.grid-footer{display:flex;justify-content:space-between;background:#f5f5f5;border-top:1px solid #ddd;padding:6px 10px;font-size:11px;color:#777}.splitter{height:9px;flex:none;background:#e5e5e5;border-top:1px solid #ccc;border-bottom:1px solid #bbb;cursor:row-resize;text-align:center;line-height:6px;color:#888;touch-action:none}.detail-pane{flex:1;min-height:100px;display:flex;flex-direction:column;overflow:hidden}.detail-tabs{display:flex;overflow:auto;background:#f5f5f5;flex:none;border-bottom:1px solid #ccc;padding:4px 4px 0;gap:2px}.detail-tabs button{border-bottom:0;border-radius:3px 3px 0 0;padding:8px 12px;background:#ededed;font-size:12px}.detail-tabs button.active{background:white;color:#286090;box-shadow:inset 0 2px #428bca}.detail-body{overflow:auto;flex:1;min-height:0}.detail-caption{font-size:12px;padding:8px 10px;border-bottom:1px solid #ddd;background:#fafafa;display:flex;gap:12px;align-items:center}.actions{display:flex;flex-wrap:wrap;gap:5px;padding:6px;border-bottom:1px solid #ddd;background:#fafafa}.actions:empty{display:none}.details-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;padding:12px 16px}.field-pair{display:grid;grid-template-columns:minmax(120px,42%) 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #eee;line-height:1.4}.field-pair label{font-weight:bold}.field-pair span{overflow-wrap:anywhere}.section{padding:12px 16px;border-top:1px solid #ddd}.section h3{margin-bottom:10px}.section>p,.panel>p{line-height:1.6;margin:8px 0}.economics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}.economics>div{padding:8px 0;border-bottom:1px solid #eee}.economics span{display:block;font-size:12px;color:#777;margin-bottom:4px}.economics b{font-size:14px}.warning{background:#fff8df;border:1px solid #e8dca6;padding:7px 10px;margin:8px 0;font-size:12px}.stage{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #ddd;border-top:0}.stage:first-of-type{border-top:1px solid #ddd}.stage:nth-child(even){background:#f8f8f8}.stage-name{font-weight:bold;margin-bottom:4px}.stage-controls{display:flex;gap:4px}.badge{display:inline-block;font-size:11px;font-weight:normal;white-space:nowrap;padding:3px 6px;border:1px solid #d0d0d0;background:#f5f5f5;border-radius:2px}.badge.Production,.badge.Running{background:#d9edf7;border-color:#bce8f1;color:#31708f}.badge.Completed,.badge.Ready{background:#dff0d8;border-color:#d6e9c6;color:#3c763d}.badge.Cancelled{background:#f2dede;color:#a94442}.progress{height:6px;background:#eee;min-width:65px;margin-top:4px}.progress i{display:block;height:100%;background:#5cb85c}.timeline p{padding:8px 0;border-bottom:1px solid #eee;line-height:1.5}.comment{padding:10px 0;border-bottom:1px solid #ddd;line-height:1.6}.panel{padding:16px;background:white}.panel h2{margin-bottom:10px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px;background:#eee}.rules{padding-left:20px;line-height:1.8}.profession{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #ddd;padding:10px 0}.profession small{display:block;margin-top:4px}.empty{padding:25px;color:#777;text-align:center}.muted{color:#777}.error{color:#a94442;line-height:1.5;margin:8px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#notice{background:#fcf8e3;color:#8a6d3b;padding:10px}dialog{border:1px solid #aaa;border-radius:4px;padding:0;max-width:640px;width:calc(100% - 30px);max-height:90dvh;box-shadow:0 5px 20px #0004}dialog::backdrop{background:#0005}#dialog-form{padding:16px}.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;padding-bottom:10px;margin-bottom:15px}.dialog-head button{font-size:20px;line-height:1;background:none;border:0}label{display:block}#dialog-fields>label,.login label{margin:12px 0;line-height:1.5}#dialog-fields input:not([type=checkbox]),#dialog-fields select,.login input,.login select{display:block;width:100%;margin-top:5px}.check{display:flex;gap:8px;align-items:center}.login{min-height:100dvh;display:grid;place-items:center;background:#eee}.login-card{width:min(380px,calc(100% - 30px));padding:25px;background:white;border:1px solid #ccc;border-radius:4px}.login-card h1{text-align:center;font-size:30px;margin-bottom:20px}.login-card h2{font-weight:normal}.login-card button{width:100%;margin:6px 0 18px}
@media(max-width:900px){.working-area{gap:6px;padding:6px}aside{width:180px}.search-tools input{width:160px}.toolbar{flex-wrap:wrap}.economics{grid-template-columns:repeat(2,minmax(0,1fr))}.details-fields{grid-template-columns:1fr}.pilot-label{display:none}}
@media(max-width:600px){.main-toolbar{height:auto;min-height:51px;gap:8px;padding:6px}.brand{font-size:22px}.user-area{gap:6px;font-size:11px}.user-area small,#workday{display:none}#day-toggle{font-size:10px;padding:5px}#logout{font-size:11px;padding:5px}.working-area{padding:4px}aside{position:absolute;z-index:5;top:60px;bottom:6px;left:4px;width:216px;box-shadow:3px 3px 10px #0004}aside:not(.mobile-open){display:none}.search-tools{width:100%}.search-tools input{flex:1;width:0}.search-tools select{width:140px}.screen-heading{padding:8px}.screen-heading #metrics{font-size:10px}.grid-pane{min-height:120px;height:40%}.grid-footer span:last-child{display:none}.details-fields,.section{padding:10px}.field-pair{grid-template-columns:115px 1fr;gap:8px}.detail-tabs button{padding:8px}.stage{align-items:flex-start;flex-direction:column}.stage-controls{align-self:flex-end}.grid{grid-template-columns:1fr}.economics{grid-template-columns:1fr 1fr}.economics b{font-size:12px}footer{font-size:9px}.detail-caption{flex-wrap:wrap}.orders-grid{min-width:880px}}

progress{display:block;width:80px;height:6px;margin-top:4px;border:0;appearance:none}progress::-webkit-progress-bar{background:#eee}progress::-webkit-progress-value{background:#5cb85c}

.reference-note{padding:8px 10px;font-size:12px;color:#777;border-bottom:1px solid #ddd}#content>.grid-scroll td{max-width:500px;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-title{display:flex;justify-content:space-between;padding:10px;border-bottom:1px solid #ddd}.preserve-lines{white-space:pre-wrap}.imported-filters{justify-content:flex-start;flex-wrap:wrap}.imported-filters label{display:flex;align-items:center;gap:5px}.detail-pane .panel>h3,.detail-pane .panel>p{margin:12px 0}.detail-pane .panel td{max-width:550px;overflow-wrap:anywhere}#imported-product .panel{padding:15px}#imported-product h4{margin:15px 0 6px}@media(max-width:600px){#order-source{max-width:165px}.toolbar-actions{flex-wrap:wrap}.imported-filters select{max-width:230px}.detail-title{gap:10px}.detail-pane .panel td{max-width:300px}}
#content>.imported-time-grid table{min-width:850px}#content>.imported-time-grid td{overflow-wrap:normal}#content>.imported-time-grid td:nth-child(3),#content>.imported-time-grid td:nth-child(4){white-space:nowrap}.orders-workspace .grid-pane table{min-width:820px}#imported-detail>.panel{overflow:auto;min-height:0;flex:1}
#site-options>label,#site-led>label{margin:12px 0;line-height:1.5}#site-options select,#site-led input,#site-led select{display:block;width:100%;margin-top:5px}#site-led,#site-quote{margin-top:15px;padding:10px;background:#f8f8f8;line-height:1.5}#site-led p{margin-bottom:10px}#catalog-source{max-width:180px}

.product-specification{white-space:normal;min-width:0;max-width:700px;overflow-wrap:anywhere}.product-specification p{margin:5px 0}.product-specification details{margin-top:8px}.product-specification summary{cursor:pointer;color:#276594}.product-specification .preserve-lines{padding:8px 0;max-width:100%;line-height:1.5}

.stage-description{margin:6px 0;max-width:800px;overflow-wrap:anywhere}.stage-description summary{cursor:pointer;color:#276594}.stage-description p{line-height:1.5}.stage>div:first-child{min-width:0}#site-production-notes p{line-height:1.45;overflow-wrap:anywhere}

#content>.legacy-archive-grid{flex:1;min-height:120px}#content>.legacy-archive-grid table{min-width:780px}#content>.legacy-archive-grid td{vertical-align:top}#content>.legacy-archive-grid td:first-child{white-space:nowrap}

#legacy-option-detail h3{margin-top:18px}#legacy-option-detail p{margin:10px 0}#legacy-option-detail td{white-space:pre-wrap;max-width:420px;overflow-wrap:anywhere}#legacy-option-detail .grid-scroll{overflow:auto}

.source-catalog-panel{overflow:auto;flex:1;min-height:0;padding:12px}.source-catalog-panel h2,.source-catalog-panel h3{margin:12px 0}.source-catalog-nav{margin-bottom:12px}.source-catalog-panel .grid-scroll{overflow:auto;max-height:70vh}.source-catalog-panel table{min-width:660px}.source-catalog-panel td{white-space:pre-wrap;overflow-wrap:break-word;min-width:80px;max-width:480px;vertical-align:top}.source-product-photo{display:block;max-width:100%;max-height:500px;object-fit:contain}#legacy-option-detail table:has(th:nth-child(7)){min-width:960px}#legacy-option-detail table:has(th:nth-child(7)) td{min-width:70px}#legacy-option-detail table:has(th:nth-child(7)) td:nth-child(4){min-width:230px}

.anya-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.anya-filter label{min-width:150px;max-width:260px}.metric{display:inline-block;padding:12px}#order-features fieldset{margin:12px 0}#order-features .section{margin-bottom:24px}
