:root{--font-ui:'Microsoft YaHei','Microsoft YaHei UI','PingFang SC','Noto Sans SC','Segoe UI',Arial,sans-serif;--ui-font:var(--font-ui)}
html,body,body *,body *::before,body *::after{font-family:var(--font-ui)!important}

.maintenance-top{padding:9px 14px;gap:12px;flex-wrap:nowrap;min-height:50px}.maintenance-top>div:first-child{display:flex;align-items:center;gap:16px;white-space:nowrap;min-width:0}.maintenance-top h2{font-size:18px;line-height:1.4;flex-shrink:0}.maintenance-top p{margin:0;line-height:1.4;white-space:nowrap}.maintenance-top>div:last-child{flex-shrink:0}.maintenance-top .button{height:30px;min-height:30px;padding:4px 12px;line-height:20px;white-space:nowrap}@media(max-width:850px){.maintenance-top{overflow-x:auto}.maintenance-top>div:first-child{flex-shrink:0}}

.maintenance-child{padding-left:28px;font-size:13px}.system-maintenance-card{display:flex;flex-direction:column;gap:8px;text-align:left;background:white;border:1px solid #dbe5e8;border-radius:8px;padding:20px;margin-top:16px;min-width:280px;color:#244e61}.system-maintenance-card strong{font-size:17px}.system-maintenance-card span{font-size:13px;color:#71828e}.staff-access-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:170px}.staff-access-controls .button{padding:3px 7px!important;height:28px}.staff-access-controls small{width:100%;font-size:11px}#staff-account-dialog{width:560px;max-width:95vw;padding:22px}#staff-account-dialog>form>label{display:block;margin:10px 0;font-size:13px}#staff-account-dialog label>input:not([type=checkbox]),#staff-account-dialog select{display:block;width:100%;margin-top:5px;padding:7px;border:1px solid #d3e1e7;border-radius:5px}#staff-account-dialog fieldset{border:1px solid #d3e1e7;border-radius:8px;margin-top:14px;padding:8px 12px 12px}.staff-module-options{display:grid;grid-template-columns:1fr;gap:0}.staff-module-permission{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-bottom:1px solid #e4ecef;padding:8px 4px}.staff-module-permission:last-child{border-bottom:0}.staff-module-permission.is-history{margin-top:-1px;padding-left:18px;background:#f7faf5;color:#607a46}.staff-module-permission label{display:flex!important;align-items:center;gap:7px;margin:0!important;line-height:1.35}.staff-access-note{font-size:12px;color:#738995}#staff-access-error{color:#c04854;font-size:12px}

.account-status{border-radius:5px;padding:4px 9px;font-size:12px;border:1px solid transparent;white-space:nowrap}.account-status.pending-account{background:#f1f4f6;color:#71828e;border-color:#dbe4e9}.account-status.created-account{background:#eef5df;color:#4e732c;border-color:#cedeb2}.account-status.disabled-account{background:#fff1ed;color:#a96344;border-color:#edc9ba}.user>.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.account-button{display:flex;align-items:center;gap:7px}.login-avatar{width:24px;height:24px;object-fit:cover;border-radius:50%}.role-permission-library{background:#fff;border:1px solid #dce5e9;border-radius:8px;overflow-x:auto}.role-permission-library table{width:100%;border-collapse:collapse;min-width:950px;font-size:13px}.role-permission-library th,.role-permission-library td{padding:12px 9px;text-align:center;border-bottom:1px solid #e4edf1;white-space:nowrap}.role-permission-library th:first-child,.role-permission-library td:first-child{text-align:left;padding-left:18px}.role-permission-library td small{display:block;color:#82969e;font-size:11px;margin-top:4px}.role-permission-library input{width:16px;height:16px;accent-color:#6d943c}.role-permission-library .button{height:28px;padding:3px 12px;font-size:12px}

.sidebar .maintenance-chevron{margin-left:auto;font-size:18px;transition:transform .15s}.sidebar [aria-expanded=true] .maintenance-chevron{transform:rotate(180deg)}
#maintenance-subnav[hidden]{display:none!important}

.sidebar svg.maintenance-chevron{width:16px;height:16px;flex:0 0 16px;margin-left:auto;align-self:center;color:#a8c5ce;transition:transform .2s ease,color .2s ease}.sidebar [aria-expanded]:hover .maintenance-chevron{color:#d4e879}

.station-dropdown svg.station-edit{width:14px;height:14px;flex:0 0 14px;align-self:center;transform:none;transition:transform .2s ease}.station-dropdown[open] svg.station-edit{transform:rotate(180deg)}.sidebar .maintenance-child svg.subnav-icon{width:14px;height:14px;flex:0 0 14px;align-self:center;color:#89adb9}.sidebar .maintenance-child.active svg.subnav-icon{color:#d4e879}

.staff-access-controls select,.staff-access-controls .account-status{box-sizing:border-box;font-size:13px!important;font-weight:400!important;line-height:20px!important;height:30px!important;min-height:30px!important;border-radius:5px;vertical-align:middle}.staff-access-controls select{width:94px;min-width:94px;padding:4px 24px 4px 9px!important}.staff-access-controls .account-status{display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:4px 8px!important}

.material-state:not(.ready) select{background:#35596b!important;color:#fff!important;border-color:#35596b!important;color-scheme:dark}.material-state select option{background:white;color:#244e61}.shortfall-close{grid-column:1/-1;display:flex;gap:10px;align-items:center;margin-top:6px}.shortfall-close label{display:flex!important;align-items:center;gap:6px;white-space:nowrap}.shortfall-close input[type=checkbox]{width:16px!important;height:16px;min-height:0}.shortfall-close .shortfall-reason{flex:1;min-width:140px}

#catalog-context-menu button[data-catalog-context],#context-menu button[data-context]{background:transparent;color:#294d5d;font-size:13px;font-weight:400;border:0;margin:0;border-radius:5px}
#catalog-context-menu button[data-catalog-context]:hover,#context-menu button[data-context]:hover{background:#edf3f5}
#catalog-context-menu button[data-catalog-context=alarm],#context-menu button[data-context=alarm]{background:#fae2e5;color:#8c182c;font-weight:600}
#catalog-context-menu button[data-catalog-context=rework],#context-menu button[data-context=rework]{background:#fff0d6;color:#7c4108;font-weight:600}
#catalog-context-menu button[data-catalog-context=alarm]:hover,#context-menu button[data-context=alarm]:hover{background:#f5cdd3}
#catalog-context-menu button[data-catalog-context=rework]:hover,#context-menu button[data-context=rework]:hover{background:#ffe3b6}
#catalog-context-menu button[data-catalog-context=deleteOrder]{color:#b83f4d;font-weight:600;border-top:1px solid #e8eef1;margin-top:4px;padding-top:11px}
#catalog-context-menu button[data-catalog-context=deleteOrder]:hover{background:#fdebed;color:#982d39}

.material-state.ready select{background:#47732d!important;color:#fff!important;border-color:#47732d!important;font-weight:600!important;color-scheme:dark}.material-state.ready select:hover{background:#385f22!important;border-color:#385f22!important}.material-state.ready select:focus-visible{outline:2px solid #a7c978;outline-offset:2px}

.sidebar nav,.sidebar #maintenance-subnav{min-width:0;width:100%;box-sizing:border-box}.sidebar .nav-item{box-sizing:border-box;max-width:100%;min-width:0}.sidebar .nav-item>span:nth-child(2){min-width:0;flex:1;overflow-wrap:normal}.sidebar .nav-item>span:first-child,.sidebar .nav-item>svg{flex-shrink:0}.sidebar .nav-item>b,.sidebar .nav-item>i{flex-shrink:0;margin-left:auto}html[lang=en] .sidebar .nav-item{font-size:13px;gap:9px;padding:11px 10px;line-height:1.4}html[lang=en] .sidebar .maintenance-child{padding-left:27px}html[lang=en] .material-state{width:152px;flex:0 0 152px}html[lang=en] .material-state select{box-sizing:border-box;width:152px!important;min-width:152px!important;max-width:152px!important;padding:7px 24px 7px 9px!important;font-size:12px!important}html[lang=en] .order-inline{gap:9px}html[lang=en] .catalog-actions{flex-shrink:0}html[lang=en] .production-stage .stage-caption{font-size:12px}html[lang=en] .staff-access-controls select{width:124px;min-width:124px}html[lang=en] .staff-access-controls .account-status{min-width:88px}html[lang=en] .maintenance-top{flex-wrap:wrap}html[lang=en] .factory-library-head{flex-wrap:wrap;gap:12px}html[lang=en] .factory-add-form{flex-wrap:wrap}

#master-dialog .master-section{margin-top:12px}#master-dialog .master-grid{gap:10px 12px}#master-dialog .master-section-title{margin-bottom:10px;padding-bottom:8px}#master-dialog input,#master-dialog select{min-height:36px;padding:7px 10px}#order-process-dropdown{border:1px solid #d3e1e7;border-radius:6px}#order-process-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;cursor:pointer;list-style:none}#order-process-dropdown summary::-webkit-details-marker{display:none}#order-process-dropdown[open] summary svg{transform:rotate(180deg)}.order-process-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border-top:1px solid #e1e9ed}.order-process-options section>strong{display:block;margin-bottom:8px;font-size:13px}.order-process-options label{display:flex!important;align-items:center;gap:8px;margin:7px 0!important;font-size:13px}.order-process-options input[type=checkbox]{width:16px!important;height:16px;min-height:16px!important;margin:0}.entry-stage .master-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.entry-stage .shortfall-close input[type=checkbox]{min-height:16px!important}.entry-stage .master-grid>label:only-child{max-width:320px}#master-dialog .master-label small,#master-dialog .recognition-box>p{display:none}#catalog-table .order-progress{grid-template-columns:repeat(3,minmax(0,1fr)) 110px;grid-auto-flow:row}#catalog-table .order-progress .warehouse-slot{grid-column:4;grid-row:1}@media(max-width:700px){.order-process-options{grid-template-columns:1fr}.entry-stage .master-grid{grid-template-columns:1fr}}

#master-dialog .master-layout{padding:16px 20px;gap:18px}#master-dialog .dialog-head{padding:18px 20px}#master-dialog .dialog-bottom{position:sticky;bottom:0;background:#fff;z-index:2;padding:12px 20px;border-top:1px solid #e3ebef}#master-dialog .master-section{margin-top:8px}#master-dialog .master-section-title{margin-bottom:7px;padding-bottom:6px}

.common-process-heading{padding:10px 12px 0;font-size:13px;font-weight:600;color:#294d5d}.common-process-heading+.order-process-options{border-top:0;padding-top:8px}.uncommon-processes{border-top:1px solid #e1e9ed;background:#f7f9fa;border-radius:0 0 6px 6px}.uncommon-processes>summary{font-size:13px;color:#607986}.uncommon-processes .order-process-options{background:#fff}.entry-stage{padding:12px 14px!important;margin-top:12px!important;border:1px solid #e0e9ed;border-radius:7px;background:#f5f8fa}.entry-stage:nth-child(even){background:#fff}.entry-stage .master-section-title{border-bottom:0!important;margin-bottom:9px!important;padding-bottom:0!important}.entry-stage .master-grid input{background:#fff}

#order-process-dropdown .uncommon-processes>summary .uncommon-chevron{transform:none;transition:transform .2s ease;flex:0 0 16px}#order-process-dropdown .uncommon-processes[open]>summary .uncommon-chevron{transform:rotate(180deg)}.order-number-note{font-size:12px;color:#81949e;font-weight:400;margin-left:5px}.compact-order-basics .master-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

#master-dialog .compact-order-basics .order-number-note{display:inline!important;white-space:nowrap;line-height:inherit;margin:0 0 0 6px;padding:0}#master-dialog .compact-order-basics label{display:block;white-space:nowrap}#master-dialog .compact-order-basics label>input,#master-dialog .compact-order-basics label>select{display:block;margin-top:6px}

.board-section>.toolbar{display:flex;align-items:center;flex-wrap:nowrap;gap:9px;overflow-x:auto;padding:10px 14px}.board-section>.toolbar>.week-controls{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:0;margin:0;border:0;background:transparent;white-space:nowrap}.toolbar .week-controls #week-title{font-size:13px;white-space:nowrap}.toolbar .week-controls .icon-btn{width:26px;min-width:26px;height:32px;padding:3px}.toolbar .week-controls #toggle-weekend{height:32px;min-height:32px;padding:4px 9px;font-size:12px;white-space:nowrap}.board-section>.toolbar>.search{flex:1 1 180px;min-width:155px;width:auto;max-width:300px}.board-section>.toolbar>select{flex:0 0 114px;min-width:114px;width:114px;padding:7px 8px;font-size:12px;height:34px}.board-section>.toolbar>#date-filter{flex:0 0 130px;width:130px;min-width:130px;height:34px;padding:6px 8px;font-size:12px}.board-section>.toolbar>#clear-filter{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:5px 4px}html[lang=en] .board-section>.toolbar>select{flex-basis:126px;min-width:126px;width:126px}

.stage-target-value{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.stage-target-unit{font-size:12px!important;font-weight:600;color:#476776}.compact-quantity .stage-target-value strong{font-size:16px}.compact-quantity small{white-space:normal;font-size:11px}.compact-output{gap:7px}.compact-output b{white-space:nowrap}.other-process-row{grid-column:1/-1;background:#f3f7f9;border-top:1px solid #d5e1e7;border-bottom:1px solid #d5e1e7;padding:8px 12px}.other-process-row button{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:3px 0;color:#486778;font-size:13px;cursor:pointer}.other-process-row svg{transition:transform .2s ease}.other-process-row [aria-expanded=true] svg{transform:rotate(180deg)}.other-process-count{color:#8197a2;font-size:11px}.schedule-cell .order-card .compact-main{gap:9px}.schedule-cell .order-card .compact-quantity{min-width:0}
#catalog-table .order-inline .catalog-number{flex:0 0 var(--order-number-width,8ch);width:var(--order-number-width,8ch);white-space:nowrap;font-variant-numeric:tabular-nums}

/* Consistent production cards and compact order-process summaries. */
#board .order-card{border-radius:7px;min-height:0;display:flex;flex-direction:column}
#board .order-card .card-head{padding:7px 9px 5px;min-height:29px;box-sizing:border-box}
#board .order-card .card-head .mmr{font-size:18px;line-height:1.3;font-weight:650;letter-spacing:0;color:#173e4d}
#board .order-card .card-head .grip{width:auto;max-width:45%;height:22px;padding:0 4px;color:#536f7d;font-size:11px;line-height:1.2;white-space:normal;border:0;background:transparent}
#board .order-card .compact-main{padding:0 9px;gap:8px;min-height:54px;align-items:center}
#board .order-card .compact-main .label-strip{width:64%;height:auto;aspect-ratio:3/1;max-width:64%;margin:0;flex:0 0 64%;border-radius:4px}
#board .order-card .compact-quantity{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;flex:1}
#board .order-card .compact-quantity>span{font-size:12px;line-height:1.3;color:#718895;font-weight:400}
#board .order-card .stage-target-value{gap:5px;line-height:1.25;flex-wrap:wrap}
#board .order-card .stage-target-value strong{font-size:18px;font-weight:650;color:#244654}
#board .order-card .stage-target-unit{font-size:12px!important;font-weight:500;color:#536f7d}
#board .order-card .card-goal-formula{font-size:11px;color:#718895;line-height:1.25;min-height:0;font-weight:400}
#board .card-processes{padding:5px 9px 5px;display:flex;align-items:flex-start;gap:7px;min-height:30px;box-sizing:border-box}
#board .card-process-caption{font-size:12px;color:#718895;line-height:24px;flex-shrink:0}
#board .card-process-list{display:flex;align-items:flex-start;gap:4px;flex:1;min-width:0;flex-wrap:wrap}
#board .card-process-chip{font-size:11px;font-weight:500;line-height:22px;padding:0 6px;border-radius:4px;background:#f1f5f7;color:#526e7c;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#board .card-process-chip.current{background:#dce9ee;color:#173e4d;font-weight:650}
#board .card-process-empty{font-size:12px;color:#8195a0;line-height:24px}
#board .card-process-more{font-size:11px;min-width:35px}
#board .card-process-more summary{list-style:none;display:flex;align-items:center;gap:2px;border-radius:4px;padding:0 5px;line-height:22px;background:#f1f5f7;color:#526e7c;cursor:pointer}
#board .card-process-more summary::-webkit-details-marker{display:none}
#board .card-process-more[open]{flex-basis:100%;width:100%}
#board .card-process-more[open] summary{width:max-content}
#board .card-process-more[open] svg{transform:rotate(180deg)}
#board .card-process-menu{display:flex;flex-wrap:wrap;gap:4px;padding-top:5px}
#board .order-card .compact-output{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 9px 5px;font-size:12px;color:#718895;line-height:1.4}
#board .order-card .compact-output b{font-size:12px;font-weight:500;color:#365866}
#board .order-card .card-bottom{padding:5px 9px;min-height:28px;margin-top:0;box-sizing:border-box;flex-wrap:nowrap}
#board .order-card .card-bottom .status{font-size:11px;font-weight:500;padding:3px 6px;line-height:1.4}
#board .order-card .card-action{font-size:12px;font-weight:500;color:#536f7d;white-space:nowrap}
#board .day-head strong{font-size:14px;font-weight:600}
#board .day-head small{font-size:12px}
#board .process-head strong{font-size:14px;font-weight:600;line-height:1.4}
#board .process-head small{font-size:12px;line-height:1.4}
#board .card-process-more summary:focus-visible{outline:2px solid #7594a2;outline-offset:2px}
#board .card-process-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#board .card-process-chip{display:block;text-align:center}#board .card-process-more{grid-column:1/-1}#board .card-process-more summary{width:max-content}
html[lang=en] #board .order-card .compact-main{min-height:54px}
#board .order-card .stage-target-value strong{font-size:14px}#board .order-card>.card-goal-formula{padding:2px 9px 0;margin:0;line-height:14px}
#catalog-table td{padding-left:9px}#catalog-table .order-large-label{user-select:none;-webkit-user-drag:none}
#board .card-footer-actions{display:flex;align-items:center;gap:8px}#board .card-progress-value{font-size:12px;font-weight:600;color:#365866}

#board .order-card .card-label{position:relative;margin:7px 9px 0;padding-top:23px;background:#fff;border-radius:4px;overflow:hidden}
#board .order-card .card-label-number{position:absolute;top:0;left:0;z-index:1;background:#fff;padding:0 8px 3px 0;font-size:18px;line-height:23px;font-weight:650;color:#173e4d}
#board .order-card .card-label .label-strip{width:100%;max-width:100%;height:auto;aspect-ratio:3/1;margin:0;border-radius:3px}
#board .order-card .card-label .label-strip img{width:100%;height:100%;object-fit:contain;display:block}
#board .card-target-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px;padding:5px 9px 0;font-size:11px;line-height:16px;color:#718895}
#board .card-target-line strong{font-size:12px;color:#244654;font-weight:650;white-space:nowrap}
#board .card-target-formula{color:#536f7d;font-size:11px}
#board .order-card .card-label{padding-top:0}#board .order-card .card-label-number{padding:1px 7px 3px 3px;border-radius:0 0 5px 0;font-size:16px;line-height:20px;box-shadow:1px 1px 2px #173e4d15}
#board .order-card .card-label .label-strip{aspect-ratio:3/1;overflow:hidden;background:#e8eff2}#board .order-card .card-label .label-strip img{width:100%;height:100%;object-fit:cover;object-position:center}#board .order-card .card-label-number{background:#e4efc6;border:1px solid #bfd587;border-top:0;border-left:0;color:#173e4d;box-shadow:1px 1px 3px #173e4d20}

#board .card-order-summary{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:7px;padding:7px 9px 5px;min-width:0}
#board .card-order-number{font-size:18px;line-height:1.25;font-weight:650;color:#173e4d;white-space:nowrap;flex-shrink:0}
#board .card-order-summary .card-process-label{justify-self:end;max-width:100%;overflow:hidden}
#board .card-order-summary .card-process-name{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#board .card-order-summary .card-target-line{padding:0;justify-content:flex-end;gap:3px;flex:1;min-width:0;line-height:14px;text-align:right}
#board .card-order-summary .card-target-line strong{font-size:12px}
#board .card-order-summary .card-target-formula{font-size:10px;line-height:12px}
#board .order-card .card-label{margin-top:0}
#board .day-head{display:flex;align-items:center;gap:9px;padding:8px 12px;min-height:0;box-sizing:border-box}#board .day-head strong,#board .day-head small{margin:0;white-space:nowrap;line-height:20px}#board .grid-corner{display:flex;align-items:center;padding:8px 10px;min-height:0;box-sizing:border-box}

.schedule-export{display:flex;justify-content:flex-end;padding:10px 14px;border-top:1px solid #e0e9ed}.page-heading[hidden]{display:none!important}

#board .process-head{padding:12px;display:flex;flex-direction:column;justify-content:center;gap:4px;box-sizing:border-box}#board .process-head strong,#board .process-head small{margin:0}
.board-section>.board-meta{display:none!important}
#board .schedule-grid.with-weekend{grid-template-columns:118px repeat(7,minmax(0,1fr));min-width:1100px}#board .schedule-grid.with-weekend .schedule-cell{min-width:0;padding:5px!important}#board .schedule-grid.with-weekend .order-card{zoom:.78;width:128.205128%;min-width:0;max-width:none;box-sizing:border-box}#board .schedule-grid.with-weekend .day-head{gap:5px;padding:7px 8px}#board .schedule-grid.with-weekend .day-head strong{font-size:12px}#board .schedule-grid.with-weekend .day-head small{font-size:10px}#board .schedule-grid.with-weekend .card-order-number{font-size:16px}
#board .schedule-grid.with-weekend .order-card{width:100%}

#daily-report-dialog{width:min(820px,94vw);max-height:92vh;padding:0}#daily-report-dialog h2{font-size:22px}#daily-report-dialog .dialog-scroll{max-height:65vh;padding:18px 22px;overflow:auto}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.report-grid label{display:flex;flex-direction:column;gap:6px;color:#536f7d;font-size:13px}.report-grid input,.report-grid textarea{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #d5e1e7;border-radius:5px;background:#fff;color:#173e4d;font-size:15px}.report-grid input[readonly]{background:#eef4f6;font-weight:600}.report-grid .report-full{grid-column:1/-1}#daily-report-dialog .dialog-head,#daily-report-dialog .dialog-bottom{padding:16px 22px}@media(max-width:600px){.report-grid{grid-template-columns:1fr}}

.board-section>.section-top{display:none!important}
#board .grid-corner{background:#fff!important;color:transparent!important;border-bottom-color:#dce5e9!important;font-size:0}
#board .schedule-grid{grid-template-columns:90px repeat(5,minmax(192px,1fr))}#board .schedule-grid.with-weekend{grid-template-columns:90px repeat(7,minmax(0,1fr))}#board .process-head{padding:10px 8px}html[lang=en] #board .schedule-grid{grid-template-columns:105px repeat(5,minmax(192px,1fr))}html[lang=en] #board .schedule-grid.with-weekend{grid-template-columns:105px repeat(7,minmax(0,1fr))}
#board .grid-corner{background:#12313e!important}
#board .grid-corner{background:#102d3b!important}

#catalog-context-menu{overflow:visible}.status-submenu{position:relative}.status-submenu-options{display:none;position:absolute;left:100%;top:0;min-width:150px;padding:5px;background:#fff;border:1px solid #d6e2e8;border-radius:7px;box-shadow:0 8px 24px #0a293d25;z-index:2}.status-submenu:hover .status-submenu-options,.status-submenu:focus-within .status-submenu-options{display:block}.status-submenu.open-left .status-submenu-options{left:auto;right:100%}.status-submenu-trigger{text-align:left}.order-group-heading.status-drop-target td{box-shadow:inset 0 0 0 2px #a6c85b;background:#edf5d9!important}

.catalog-insert-line{position:fixed;height:3px;background:#a6c943;z-index:1102;pointer-events:none;box-shadow:0 0 0 1px #fff,0 1px 5px #173e4d30}.catalog-insert-line::before{content:"";position:absolute;left:-3px;top:-3px;width:9px;height:9px;border-radius:50%;background:#a6c943}.catalog-insert-line[hidden]{display:none}

@keyframes staging-blue{0%,100%{background:#e4f2fc;box-shadow:inset 0 0 0 1px #5da9db55}50%{background:#a9d6f4;box-shadow:inset 0 0 0 2px #3186c877}}
#board .order-card.staging-pending{animation:staging-blue 1.6s ease-in-out infinite;border-color:#68a9d5}
#catalog-table .production-stage.stage-staging{animation:staging-blue 1.6s ease-in-out infinite;color:#174e79}
#catalog-table .stage-staging .health-track{background:#8bc2e8;border-color:#599bca}#catalog-table .stage-staging .health-track>span{background:#428ec7}
#catalog-table .stage-staging .stage-caption,#catalog-table .stage-staging small{color:#174e79}
@media(prefers-reduced-motion:reduce){#board .order-card.staging-pending,#catalog-table .production-stage.stage-staging{animation:none;background:#d0e8f9}}

@keyframes staging-frame{0%,100%{box-shadow:inset 0 0 0 1px #70add7}50%{box-shadow:inset 0 0 0 3px #2382c4}}
#catalog-table tr.staging-pending-order>td{animation:staging-frame 1.6s ease-in-out infinite}
#board .order-card.staging-pending{animation:staging-frame 1.6s ease-in-out infinite;background:#fff;border-color:#68a9d5}
#context-menu [data-context=staging],#catalog-context-menu [data-catalog-context=staging]{background:#e1effb;color:#185e94;font-weight:600}
#context-menu [data-context=staging]:hover,#catalog-context-menu [data-catalog-context=staging]:hover{background:#c9e2f7;color:#124b78}
@media(prefers-reduced-motion:reduce){#catalog-table tr.staging-pending-order>td,#board .order-card.staging-pending{animation:none;box-shadow:inset 0 0 0 2px #2382c4}}
#context-menu [data-context=staging],#catalog-context-menu [data-catalog-context=staging]{background:#e1effb!important;color:#185e94!important;font-weight:600}#context-menu [data-context=staging]:hover,#catalog-context-menu [data-catalog-context=staging]:hover{background:#c9e2f7!important}
#context-menu [data-context=staged],#catalog-context-menu [data-catalog-context=staged]{background:#e1effb!important;color:#185e94!important;font-weight:600}#context-menu [data-context=staged]:hover,#catalog-context-menu [data-catalog-context=staged]:hover{background:#c9e2f7!important}

#board .card-total-progress{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px;font-size:11px;color:#718895;border-top:1px solid #edf1f3;line-height:16px}#board .card-total-progress b{font-weight:600;color:#365866;white-space:nowrap}

#language{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;white-space:nowrap}#language>span{display:inline-block;white-space:nowrap}#language .language-flag{width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #d8e2e8;flex-shrink:0}.task-notification-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 9px;border:1px solid #dce6ea;border-radius:8px;background:#f7fafb;color:#486977;font:inherit;font-size:11px;white-space:nowrap}.task-notification-button[hidden]{display:none!important}.task-notification-button:hover,.task-notification-button:focus-visible{background:#eef5e2;color:#264c58}.task-notification-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.task-notification-button.has-unread{border-color:#e8c2c7;background:#fff7f8;color:#a9434d}.task-notification-badge{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border:2px solid #fff;border-radius:10px;background:#c6414e;color:#fff;font-size:9px;font-weight:700;line-height:1}.task-notification-badge[hidden]{display:none}.task-filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:8px!important;padding:0 6px;border-radius:10px;background:#dfe9cd;color:#526f31!important;font-size:10px!important;font-weight:700;font-variant-numeric:tabular-nums}#tasks-section .task-view-filter button.selected .task-filter-count{background:#cae36e;color:#294716!important}

#board .card-total-progress{gap:6px;padding:5px 9px}#board .card-total-track{position:relative;flex:0 0 50%;height:24px;min-width:0}#board .card-total-caption{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:3px;padding:0 6px;color:#365866;font-size:11px;white-space:nowrap}#board .card-total-progress>span{text-align:right;flex:1;min-width:0;white-space:nowrap;font-size:10px}

#board .card-total-track{margin-left:-7px;flex-basis:calc(50% + 7px)}
/* Shared typography for every production process card. */
#board .order-card{font-size:12px;line-height:20px}
#board .order-card :is(span,strong,b,small,summary,button,div){font-size:12px!important;line-height:20px!important}
#board .order-card .card-order-number{font-size:18px!important;line-height:24px!important;font-weight:650}
#board .order-card .card-order-summary{padding:6px 9px;align-items:center}
#board .order-card .card-target-line{align-items:center;row-gap:0}
#board .order-card .card-processes{padding:5px 9px;align-items:center;min-height:30px}
#board .order-card .card-process-caption{line-height:22px!important}
#board .order-card .card-process-chip,#board .order-card .card-process-more summary{padding:1px 4px;line-height:20px!important}
#board .order-card .compact-output{padding:0 9px 5px;align-items:center}
#board .order-card .card-total-progress{padding:5px 9px;align-items:center}
#board .order-card .card-total-caption{padding:0 6px;align-items:center}
#board .order-card .card-total-progress>span{line-height:20px!important}
/* Thin gradient separators between catalog orders. */
#catalog-table tr[data-master]>td{position:relative;padding-bottom:15px;border-bottom:0}
#catalog-table tr[data-master]>td::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#a4c452 0%,#afc3ca 16%,#afc3ca 100%);pointer-events:none}

.california-clock{display:flex;flex-direction:column;align-items:flex-end;gap:0;font-size:12px;line-height:16px;color:#526e7c;white-space:nowrap;font-variant-numeric:tabular-nums}.california-clock .clock-time{color:#244654}#board .day-head.is-today{background:#cbe768!important;color:#041824!important}#board .day-head.is-today strong,#board .day-head.is-today small{color:#041824!important}html[lang=en] #catalog-table .material-state{width:154px;flex:0 0 154px}html[lang=en] #catalog-table .material-state select{width:154px!important;min-width:154px!important;max-width:154px!important;padding:6px 18px 6px 5px!important;font-size:11px!important;letter-spacing:-.15px}html[lang=en] #catalog-table .order-inline-summary{grid-column:1 / 3;flex-wrap:nowrap}html[lang=en] #catalog-table .shared-order-note{grid-column:3}html[lang=en] #catalog-table .order-inline .inline-meta{min-width:76px}

.california-clock{flex-direction:row;align-items:center;gap:6px}
.account-button.avatar-only{width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;justify-content:center}.account-button.avatar-only .login-avatar{width:32px;height:32px}

#information-guide-dialog{width:min(900px,94vw);max-height:90vh;padding:24px}#information-guide-dialog .dialog-head p{margin:6px 0;color:#748b97;font-size:13px}.guide-scroll{max-height:65vh;overflow:auto;padding:4px 8px 4px 0}.guide-section{border:1px solid #dce6eb;border-radius:8px;padding:14px 18px;margin-bottom:12px}.guide-section h3{font-size:16px;margin:0 0 10px;color:#153744}.guide-section:first-child{background:#f1f6e6;border-color:#dce8bd}.guide-section p{font-size:14px;line-height:1.8;margin:6px 0;color:#426170}#information-guide-dialog .dialog-bottom>span{font-size:12px;color:#748b97}
.new-role-form{background:#fff;border:1px solid #dce5e9;border-radius:8px;padding:18px;margin-bottom:16px}.new-role-heading{display:flex;align-items:end;gap:16px;margin-bottom:14px}.new-role-heading label{display:flex;flex-direction:column;gap:6px;font-size:14px}.new-role-heading input{padding:9px 12px;border:1px solid #d5e1e7;border-radius:6px;min-width:220px}.role-sync-note{font-size:13px;color:#718996;margin:12px 0}.new-role-form .staff-module-options{display:flex;gap:14px 24px;flex-wrap:wrap}.new-role-form .staff-module-options label{font-size:14px;display:flex;align-items:center;gap:7px}
.deleted-order-summary{display:flex;align-items:center;gap:24px;padding:18px 12px;color:#718996}.deleted-order-summary .catalog-number{color:#456675}.deleted-order-summary>span:last-child{margin-left:auto;font-size:12px}.order-group-heading.deleted{background:#eef1f3}

.role-grip{display:inline-block;margin-right:10px;cursor:grab;color:#7796a5}.role-permission-library tr[draggable=true]{cursor:grab}.role-permission-library tr.role-lifted{opacity:.5}.role-permission-library tr.role-drop-before td{border-top:3px solid #cbe768}.role-permission-library tr.role-drop-after td{border-bottom:3px solid #cbe768}

.role-permission-library input.role-name-input{width:130px;height:34px;box-sizing:border-box;max-width:100%;padding:6px 8px;border:1px solid #d6e3e8;border-radius:6px;color:#173c4a;font:inherit;font-weight:600}.role-permission-library td:last-child .button{margin:3px;padding:8px 10px}.role-delete-dialog{max-width:500px}
.role-permission-library .role-name-fields{display:inline-grid;grid-template-columns:1fr;gap:7px;vertical-align:middle;min-width:190px}.role-permission-library .role-name-fields label{display:grid;grid-template-columns:58px minmax(120px,1fr);align-items:center;gap:7px;font-size:10px;color:#82969e}.role-permission-library .role-name-fields input.role-name-input,.role-permission-library .role-name-fields input.role-name-en-input{width:100%;height:34px;box-sizing:border-box;padding:6px 8px;border:1px solid #d6e3e8;border-radius:6px;color:#173c4a;font:inherit;font-weight:600}.new-role-heading{flex-wrap:wrap}.new-role-heading label{min-width:230px;flex:1}.new-role-heading .button{flex:0 0 auto}html[lang=en] .role-permission-library table{min-width:1180px}html[lang=en] .role-permission-library th{white-space:normal;line-height:1.3;min-width:112px}html[lang=en] .sidebar .nav-item>span:nth-child(2){font-size:12px;line-height:1.25}html[lang=en] .sidebar .maintenance-child>span:nth-child(2){font-size:11px}html[lang=en] .personal-account-menu{width:270px}

/* Shared sidebar submenu template: stable typography and SVG stroke in all states. */
.sidebar .nav-item.sidebar-submenu-item,.sidebar .nav-item.sidebar-submenu-item.active{padding-left:28px;font-size:13px;font-weight:400;line-height:20px;gap:12px}.sidebar .sidebar-submenu-item>span{font-weight:400;flex:1;min-width:0;white-space:normal}.sidebar .nav-item.sidebar-submenu-item>.subnav-icon{width:14px;height:14px;flex:0 0 14px;font-weight:400;align-self:center}.sidebar .sidebar-submenu-item .subnav-icon path{stroke-width:1.6}html[lang=en] .sidebar .nav-item.sidebar-submenu-item{padding-left:28px}
@media(min-width:801px){.sidebar>nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}.sidebar>nav::-webkit-scrollbar{width:0;height:0}.sidebar>.platform-logo,.sidebar>.nav-label,.sidebar>.user{flex-shrink:0}.sidebar>.user{margin-top:14px}}

.personnel-info-dialog{width:min(760px,94vw);max-height:90vh;overflow:auto;padding:22px}.personnel-info-dialog select{padding:9px 11px;border:1px solid #d5e1e7;border-radius:5px;font:inherit;color:#173e4d}.personnel-info-dialog fieldset{margin:14px 0;border:1px solid #d5e1e7;border-radius:6px;padding:14px}

.factory-library-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#fff;border:1px solid #d6e3e9;border-radius:10px;overflow:hidden}.factory-library-panel>.factory-library{border:0;border-radius:0;min-width:0;overflow:auto}.factory-library-panel>.factory-library+ .factory-library{border-left:1px solid #d6e3e9}.factory-library-panel .factory-library-head{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.factory-library-panel .factory-add-form{flex-wrap:wrap}.factory-library-panel .factory-add-form input{width:150px}.factory-library-panel .factory-process-table th,.factory-library-panel .factory-process-table td{padding:9px 10px}.factory-library-panel .factory-process-table td:nth-child(2){width:auto}.factory-library-panel .factory-process-table td:last-child{width:auto}@media(max-width:1000px){.factory-library-panel{grid-template-columns:1fr}.factory-library-panel>.factory-library+ .factory-library{border-left:0;border-top:1px solid #d6e3e9}}

.factory-library-panel{gap:20px;background:transparent;border:0;border-radius:0;overflow:visible;align-items:start}.factory-library-panel>.factory-library,.factory-library-panel>.factory-library+ .factory-library{border:1px solid #d6e3e9;border-radius:10px;background:#fff;box-shadow:0 2px 7px #173b4906}.factory-library-panel [data-library=processes] .factory-library-head{border-top:3px solid #b9d568}.factory-library-panel [data-library=workstations] .factory-library-head{border-top:3px solid #8aadb9}

.permission-pair{display:inline-flex;gap:10px;align-items:center;white-space:nowrap}.permission-pair label{font-size:12px;display:inline-flex;align-items:center;gap:4px}.permission-pair strong{font-size:13px}.role-permission-library{overflow:auto}

.catalog-readonly #catalog-table tr[data-master],.board-readonly [draggable=true]{cursor:default}.catalog-readonly #import-button,.catalog-readonly #recognize-button,.catalog-readonly #create-button{opacity:.45}

.factory-library-panel{grid-template-columns:minmax(0,3fr) minmax(280px,1fr)}
.factory-library-panel [data-library=processes] .factory-process-table{min-width:780px}
.factory-library-panel [data-library=workstations] .factory-process-table{min-width:0}
.factory-library-panel [data-library=workstations] .factory-process-table td:first-child{width:35px}
.factory-library-panel [data-library=workstations] .factory-process-table td:last-child{width:110px}
.factory-library-panel .factory-process-table td:nth-child(3){width:auto}
.factory-capacity-input{width:100%;min-width:80px;max-width:125px;box-sizing:border-box;padding:7px 8px;border:1px solid #cfdee5;border-radius:5px;font:inherit;color:#173b49;background:#fff}
.shell{width:calc(100% - 164px);min-width:0}.topbar,.header-metrics{min-width:0}.role-permission-library{max-width:100%}@media(min-width:1600px){.shell{width:calc(100% - 244px)}}@media(max-width:1100px){.shell{width:calc(100% - 72px)}}@media(max-width:800px){.sidebar{position:static;inset:auto;width:100%;height:auto;min-height:0;padding:8px 10px;flex-direction:row;align-items:center;gap:8px;overflow:visible}.sidebar .platform-logo{width:84px;height:38px;min-height:38px;flex-basis:84px;margin:0}.sidebar .platform-logo svg{width:84px;height:18px}.sidebar .nav-label,.sidebar .user,.sidebar .sidebar-sync-status{display:none}.sidebar nav{display:flex;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;gap:3px;padding:0;scrollbar-width:thin}.sidebar nav>div:not([hidden]){display:flex;gap:3px}.sidebar .nav-item{width:auto;flex:0 0 auto;padding:8px;justify-content:center}.sidebar .nav-item>span:nth-child(2){display:none}.sidebar .maintenance-child{padding-left:8px}.shell{width:100%;margin-left:0}}@media(max-width:1550px){html[lang=en] .header-metrics .metric{padding:0 8px;gap:6px}html[lang=en] .header-metrics .metric-label{font-size:10px}html[lang=en] .top-actions{gap:5px}html[lang=en] .california-clock{font-size:11px}html[lang=en] .nex-primary{width:150px}}
.factory-process-table [data-capacity-unit]{padding:7px;border:1px solid #cfdee5;border-radius:5px;font:inherit;color:#173b49;background:#fff}
.factory-library-panel [data-library=workstations] .factory-add-form input{width:120px}
@media(max-width:1150px){.factory-library-panel{grid-template-columns:minmax(0,1fr)}.factory-library-panel [data-library=workstations]{max-width:500px;width:100%;box-sizing:border-box}}

.factory-capacity-status{display:block;min-height:14px;font-size:11px;color:#79929c;margin-bottom:3px}.factory-capacity-status:empty{display:none}

#personnel-info-section>.maintenance-top{display:flex;align-items:center;justify-content:space-between;background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 20px}#personnel-info-section>.maintenance-top h2{font-size:var(--size-title,26px);margin:0;color:#142c38}

.label-strip .label-placeholder{display:block;width:100%;height:100%;min-height:70px;background:center/cover no-repeat url('assets/label-no-label.svg');font-size:0;color:transparent}

/* Header task notifications use a compact inbox instead of leaving the schedule. */
.task-notification-control{position:relative;flex:0 0 auto}.task-notification-control[hidden]{display:none!important}.task-notification-menu{position:absolute;z-index:1200;top:calc(100% + 10px);right:0;width:360px;max-height:min(440px,calc(100vh - 84px));overflow:hidden;border:1px solid #d8e4e9;border-radius:12px;background:#fff;box-shadow:0 18px 48px #0b293638;color:#244653}.task-notification-menu[hidden]{display:none!important}.task-notification-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 12px;border-bottom:1px solid #e6edef}.task-notification-head>div{display:flex;align-items:baseline;gap:9px;min-width:0}.task-notification-head strong{font-size:14px;color:#153b48}.task-notification-head span{font-size:10px;color:#8a9da6;white-space:nowrap}.task-notification-head>b{padding:4px 7px;border-radius:9px;background:#fff0f2;color:#b34450;font-size:9px;white-space:nowrap}.task-notification-list{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.task-notification-item{display:grid;grid-template-columns:12px minmax(0,1fr) 16px;align-items:center;gap:10px;width:100%;padding:12px 15px;border:0;border-bottom:1px solid #edf2f4;background:#fff;color:inherit;text-align:left;cursor:pointer}.task-notification-item:hover,.task-notification-item:focus-visible{background:#f5f8ee;outline:0}.task-notification-item>i{justify-self:center;width:6px;height:6px;border-radius:50%;background:#d3dee2}.task-notification-item.is-unread>i{width:12px;height:12px;background:#c9414e;box-shadow:0 0 0 3px #fdecef}.task-notification-item>span{display:block;min-width:0}.task-notification-item strong{display:block;overflow:hidden;white-space:normal;max-height:2.9em;font-size:12px;line-height:1.45;color:#244653}.task-notification-item small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.4;color:#81969f}.task-notification-item em{display:inline-block;margin-right:6px;padding:1px 5px;border-radius:4px;background:#fff0f2;color:#c04a55;font-size:9px;font-style:normal;vertical-align:1px}.task-notification-item>svg{width:16px;height:16px;fill:none;stroke:#91a4ac;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.task-notification-empty{margin:0;padding:30px 16px;text-align:center;font-size:11px;color:#90a2aa}.task-notification-all{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 16px;border:0;background:#f7fafb;color:#476b78;font:inherit;font-size:11px;font-weight:600;cursor:pointer}.task-notification-all:hover,.task-notification-all:focus-visible{background:#eef5df;color:#294d59;outline:0}.task-notification-all span{font-size:16px}.task-notification-button[aria-expanded=true]{background:#eef5e2;color:#264c58;border-color:#cbdca1}@media(max-width:1100px){.task-notification-menu{width:390px}}html.tablet-device .task-notification-menu{width:460px;max-height:560px}html.tablet-device .task-notification-item{grid-template-columns:15px minmax(0,1fr) 16px;padding:15px 17px}html.tablet-device .task-notification-item>i{width:8px;height:8px}html.tablet-device .task-notification-item.is-unread>i{width:15px;height:15px;box-shadow:0 0 0 4px #fdecef}html.tablet-device .task-notification-item strong{font-size:14px}html.tablet-device .task-notification-item small{font-size:12px}
