:root{font-family:Inter,Pretendard,'Apple SD Gothic Neo','Malgun Gothic',Arial,sans-serif;color:#18283e;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}#app{min-height:100vh;display:flex}.sidebar{width:238px;background:#14263d;color:#fff;flex-shrink:0;display:flex;flex-direction:column;padding:28px 17px;position:sticky;top:0;height:100vh}.logo{display:flex;gap:12px;align-items:center;padding:0 12px}.logo-mark{width:40px;height:40px;border-radius:11px;background:#3678ed;display:grid;place-items:center;font-weight:900;font-size:22px}.logo strong{display:block;font-size:21px;letter-spacing:-.8px}.logo small{display:block;color:#a7b8ce;font-size:9px;letter-spacing:2px;margin-top:2px}.side-label{font-size:10px;letter-spacing:2px;color:#8295af;margin:48px 12px 13px}.sidebar nav{display:grid;gap:7px}.nav{border:0;text-align:left;width:100%;background:transparent;color:#b3c3d9;border-radius:11px;padding:14px 16px;font-weight:600;display:flex;gap:13px;align-items:center}.nav.active,.nav:hover{background:#283e5e;color:#fff}.side-bottom{margin-top:auto}.mode-indicator{font-size:11px;color:#a9c1db;margin:14px 10px}.user-card{border-top:1px solid #334762;padding:21px 4px 4px;display:flex;gap:10px;align-items:center}.avatar{background:#4a668b;border-radius:50%;height:36px;width:36px;display:grid;place-items:center;font-weight:700}.user-card b{font-size:13px;display:block}.user-card small{font-size:11px;color:#9fb4ce}.logout{margin-top:12px;width:100%;color:white}main{flex:1;min-width:0}.topbar{background:white;border-bottom:1px solid #e5eaf1;display:flex;justify-content:space-between;align-items:center;padding:31px 42px;gap:20px}.eyebrow{letter-spacing:1.6px;font-size:10px;font-weight:800;color:#5683ba}.topbar h1{margin:7px 0 0;font-size:27px;letter-spacing:-1px}.header-actions{display:flex;align-items:center;gap:13px}.role-switch{font-size:12px;color:#67788e}.role-switch select{padding:9px;margin-left:5px}.primary{border:0;background:#2563eb;color:white;padding:12px 19px;border-radius:9px;font-weight:700;white-space:nowrap}.primary:hover{background:#174bc1}.secondary,.month-buttons button{border:1px solid #dce4ee;background:#fff;color:#30435a;padding:11px 15px;border-radius:9px;font-weight:650}.ghost{border:0;background:transparent}.content{padding:32px 42px;max-width:1500px;margin:auto}.view{display:none}.view.active{display:grid;gap:24px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat,.panel{background:white;border:1px solid #e6eaf0;box-shadow:0 3px 18px rgba(36,60,89,.03);border-radius:15px}.stat{padding:22px 25px}.stat span{display:block;color:#6c7c91;font-size:13px;font-weight:650}.stat strong{font-size:37px;display:block;margin:9px 0 4px}.stat small,.section-head p,.hint{color:#8390a2;font-size:12px}.panel{padding:26px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}.panel h2{font-size:18px;letter-spacing:-.5px;margin:0}.section-head p{margin:8px 0 0}.month-buttons{display:flex;gap:6px}.month-buttons button{min-width:38px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e3e9f0;border-left:1px solid #e3e9f0}.dow{text-align:center;padding:13px 3px;font-weight:750;font-size:12px;color:#6b7c91;background:#f8fafd;border-right:1px solid #e3e9f0;border-bottom:1px solid #e3e9f0}.day{min-height:103px;background:#fff;border:0;border-right:1px solid #e3e9f0;border-bottom:1px solid #e3e9f0;text-align:left;display:flex;flex-direction:column;gap:7px;padding:9px;min-width:0;color:#435168}.day.outside{background:#fafbfd;color:#b1bac8}.day.selected{background:#edf4ff;box-shadow:inset 0 0 0 2px #4d83dc}.day.today .day-num{background:#2563eb;color:#fff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}.day-num{font-weight:700;font-size:12px}.event{display:block;background:#dff4e9;color:#0b8159;padding:5px 7px;border-radius:4px;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.event.more{background:#e4edff;color:#3563a7}.list{display:grid;gap:10px}.item{border:1px solid #e5eaf1;border-radius:10px;display:flex;justify-content:space-between;align-items:center;padding:17px;text-align:left;background:white;gap:14px}.item:hover{background:#f7faff}.item b{display:block;font-size:14px}.item small{display:block;color:#8897a8;margin-top:5px}.empty{padding:35px;text-align:center;color:#8996a7;background:#f8fafd;border-radius:9px;font-size:13px}.pill{border-radius:18px;padding:5px 10px;font-size:11px;font-weight:800;white-space:nowrap}.pill.pending{background:#fff1d5;color:#9e6916}.pill.progress{background:#dceaff;color:#285cb3}.pill.completed{background:#daf7e7;color:#118259}.filters{display:flex;gap:11px;margin-bottom:16px}.filters input{flex:1}.filters input,.filters select,form input,form textarea,form select{border:1px solid #d9e2ed;border-radius:9px;padding:11px 12px;background:#fff;min-width:0;color:#18283e}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#f7f9fc;text-align:left;color:#75879c;font-size:12px}td,th{padding:17px 13px;border-bottom:1px solid #ecf0f5}td b{display:block}td small{display:block;color:#8896a8;margin-top:4px}.link-btn{background:transparent;color:#2563eb;border:0;font-weight:700;padding:6px}.workflow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.workflow>div{padding:19px;background:#f2f6fc;border-radius:10px}.workflow b{font-size:13px}.workflow p{font-size:12px;color:#6d8096;line-height:1.7}.modal-backdrop{position:fixed;inset:0;background:rgba(9,22,40,.58);z-index:5;display:grid;place-items:center;padding:18px}.modal{width:min(640px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:17px;box-shadow:0 20px 70px #0c18284d}.modal-header,.modal-footer{padding:20px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9edf2}.modal-header h2{margin:0;font-size:19px}.modal-footer{border-top:1px solid #e9edf2;border-bottom:0;justify-content:flex-end;gap:9px}.icon-btn{border:0;background:#f0f3f7;border-radius:8px;padding:9px 12px}.form-body{padding:23px 25px;display:grid;gap:20px}.form-body label,.login-card label{display:grid;gap:9px;color:#46576b;font-weight:700;font-size:12px}.form-body em{color:#db485d}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}textarea{resize:vertical}.image-preview,.detail-images{display:flex;gap:9px;flex-wrap:wrap}.photo{width:110px;height:90px;object-fit:cover;border-radius:8px;border:1px solid #e0e5ec;cursor:pointer}.photo-wrap{position:relative}.remove-photo{position:absolute;right:3px;top:3px;border:0;border-radius:50%;background:#243247dd;color:white;width:22px;height:22px}.error{color:#d1374c;font-size:12px;margin:0}.detail-field{display:grid;gap:5px}.detail-field small{color:#8593a5}.detail-field div{white-space:pre-wrap;line-height:1.6}.login-screen{position:fixed;inset:0;background:#f2f6fc;z-index:8;display:grid;place-items:center;padding:20px}.login-card{background:white;border:1px solid #e1e9f1;padding:32px;width:min(420px,100%);display:grid;gap:19px;border-radius:16px;box-shadow:0 12px 30px #15253d0d}.login-logo{padding:0}.login-logo small{color:#8fa0b4}.login-card h2{margin:8px 0 0}.login-card p{font-size:13px;color:#728298;margin:0}.login-card label{display:grid}.login-card .primary{width:100%}@media(max-width:950px){.sidebar{width:76px;padding:24px 10px}.sidebar .logo>div,.side-label,.nav span,.side-bottom .user-card div,.mode-indicator,.logout{display:none}.logo{padding:0 7px}.nav{justify-content:center;font-size:19px}.user-card{justify-content:center}.content{padding:24px}.topbar{padding:24px}.workflow{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){#app{display:block;padding-bottom:68px}.sidebar{height:65px;position:fixed;bottom:0;top:auto;left:0;width:100%;padding:4px 8px;z-index:4;flex-direction:row;justify-content:center}.sidebar .logo,.side-bottom{display:none}.sidebar nav{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.nav{font-size:20px;display:flex;flex-direction:column;gap:2px;padding:7px 2px;border-radius:7px}.nav span{display:block!important;font-size:10px}.topbar{padding:23px 18px 18px;display:block}.topbar h1{font-size:23px}.header-actions{margin-top:15px;justify-content:space-between}.header-actions .primary{padding:11px;font-size:12px}.content{padding:16px}.stats{gap:8px}.stat{padding:14px}.stat span{font-size:11px}.stat strong{font-size:27px}.stat small{font-size:10px}.panel{padding:15px}.section-head{flex-wrap:wrap;margin-bottom:15px}.section-head h2{font-size:16px}.calendar-grid .day{min-height:73px;padding:4px;gap:3px}.event{font-size:8px;padding:3px}.day-num{font-size:11px}.dow{font-size:10px}.form-row{grid-template-columns:1fr}.form-body{padding:17px}.modal-header,.modal-footer{padding:16px}.workflow{grid-template-columns:1fr}.filters{flex-wrap:wrap}.filters input{flex-basis:100%}table{min-width:620px}.role-switch{font-size:11px}.modal{max-height:88vh}}

/* Maintenance Hub mobile usability patch — v2.1 */
html,body{max-width:100%;overflow-x:hidden}#app,main,.content,.view,.panel,.table-scroll{min-width:0;max-width:100%}
@media(max-width:650px){
  #app{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
  .sidebar{height:calc(65px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}
  .topbar{padding:20px 16px 16px}
  .content{padding:14px 12px 24px}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .stat{min-width:0;padding:12px 9px}
  .stat span,.stat small{overflow-wrap:anywhere}
  .stat strong{font-size:25px}
  .panel{padding:14px 12px;min-width:0}
  .section-head{align-items:flex-start}
  .section-head .primary{max-width:100%}
  .calendar-grid{width:100%;min-width:0}
  .day{overflow:hidden}
  .month-buttons{flex-wrap:wrap}
  .filters input,.filters select{width:100%;max-width:100%}
  .table-scroll{overflow:visible}
  table{min-width:0!important;display:block;width:100%}
  thead{display:none}
  tbody{display:grid;gap:12px}
  tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px 9px;padding:15px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;min-width:0}
  tbody td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;font-size:13px}
  tbody td:first-child{grid-column:1/-1;font-weight:650}
  tbody td:nth-child(2):before{content:'접수일';display:block;color:#73859a;font-size:11px;font-weight:650;margin-bottom:4px}
  tbody td:nth-child(3):before{content:'상태';display:block;color:#73859a;font-size:11px;font-weight:650;margin-bottom:4px}
  tbody td:nth-child(4):before{content:'담당자';display:block;color:#73859a;font-size:11px;font-weight:650;margin-bottom:4px}
  tbody td:nth-child(5){display:flex;align-items:flex-end;justify-content:flex-end;gap:6px;flex-wrap:wrap}
  .modal-backdrop{padding:0;align-items:end;justify-items:stretch;overscroll-behavior:contain}
  .modal{width:100%;max-width:100%;height:auto;max-height:calc(100dvh - 12px);max-height:calc(100svh - 12px);border-radius:18px 18px 0 0;display:flex;flex-direction:column;overflow:hidden;min-width:0}
  .modal-header{flex:0 0 auto;padding:16px 18px;gap:12px}
  .modal-header h2{font-size:19px}
  .modal form{display:flex;flex-direction:column;min-height:0;min-width:0;flex:1}
  .modal .form-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;min-width:0;flex:1;padding:18px 16px 28px;gap:17px}
  .modal .form-row{grid-template-columns:minmax(0,1fr)}
  .modal .form-body label,.modal .form-body input,.modal .form-body select,.modal .form-body textarea{min-width:0;max-width:100%;width:100%}
  .modal .form-body input[type=file]{padding:10px 8px}
  .modal .form-body input,.modal .form-body textarea,.modal .form-body select,.filters input,.filters select{font-size:16px}
  .modal-footer{flex:0 0 auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -4px 12px #18283e0c;position:relative;z-index:1}
  .modal-footer button{min-height:44px}
  .detail-modal>.form-body{flex:1;overflow-y:auto}
  .photo{max-width:100%}
}

/* v2.2: Prevent wide requests view from shifting the shared modal on mobile. */
@media (max-width:650px) {
  html, body {width:100%;max-width:100%;overflow-x:clip}
  #app, main, .content, .view, .panel, .table-scroll {width:100%;min-width:0;max-width:100%}
  .table-scroll {overflow-x:clip}
  .table-scroll table, .table-scroll tbody, .table-scroll tr {max-width:100%;min-width:0}
  #modal.modal-backdrop, #detailModal.modal-backdrop {
    position:fixed!important;inset:0!important;
    width:100vw!important;max-width:100vw!important;
    height:100dvh;max-height:100dvh;
    margin:0!important;padding:8px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    overflow:hidden;box-sizing:border-box;
  }
  #modal[hidden], #detailModal[hidden] {display:none!important}
  #modal>.modal, #detailModal>.modal {
    position:relative!important;left:auto!important;right:auto!important;top:auto!important;
    transform:none!important;margin:0!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto;max-height:calc(100dvh - 16px)!important;
    border-radius:16px!important;overflow:hidden;
    display:flex;flex-direction:column;
  }
  #modal .form-body, #detailModal .form-body {min-height:0;overflow-y:auto;overflow-x:hidden}
  #modal .form-row, #modal .form-body label {min-width:0;max-width:100%}
  #modal input, #modal select, #modal textarea {box-sizing:border-box;max-width:100%;min-width:0}
}

/* v2.3: 회원가입·승인·세션 유지 */
.auth-form{display:grid;gap:15px}.auth-form[hidden]{display:none}.remember-row{display:flex!important;align-items:center;gap:9px!important;cursor:pointer}.remember-row input{width:18px;height:18px;flex:none}.login-screen{overflow-y:auto;align-items:safe center}.login-card{max-height:calc(100dvh - 24px);overflow:auto}.notice{background:#eaf3ff;padding:12px;border-radius:9px;color:#24518c!important;line-height:1.5}.approval-list{display:grid;gap:12px}.approval-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px;border:1px solid #e1e7ef;border-radius:12px}.approval-item small{display:block;margin-top:4px;color:#728298}.approval-item button{flex-shrink:0}@media(max-width:650px){.approval-item{align-items:stretch;flex-direction:column}.approval-item button{width:100%}.sidebar nav{grid-template-columns:repeat(4,1fr)}}

/* v2.4 direct mobile capture */
.capture-panel{display:grid;gap:10px;min-width:0}.capture-label{font-weight:700}.capture-actions{display:flex;gap:10px;flex-wrap:wrap}.capture-actions button,.capture-actions .file-label{min-height:44px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:10px 14px;border-radius:10px;border:1px solid #cbd5e1}.file-label input{display:none}.visually-hidden{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none}.approval-item select{min-height:38px;max-width:150px}@media(max-width:650px){.capture-actions{display:grid;grid-template-columns:1fr 1fr}.capture-actions>*{min-width:0;font-size:13px;padding:10px 6px!important}}

/* v2.4 notice center */
.notification-container{position:relative}.notification-popover{position:absolute;z-index:90;right:0;top:calc(100% + 10px);width:min(380px,calc(100vw - 24px));max-height:70vh;overflow:auto;padding:14px;background:#fff;border:1px solid #dbe2ee;border-radius:14px;box-shadow:0 16px 36px #14263d33}.notification-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.notification-heading button{font-size:12px}.notice-row{padding:12px 4px;border-top:1px solid #ebeff5;display:grid;gap:4px;cursor:pointer}.notice-row small{color:#64748b}.notice-row.unread{background:#edf4ff}.notification-container button{white-space:nowrap}#bellCount{display:inline-block;min-width:20px;text-align:center;border-radius:50%;background:#e4efff}.notification-popover[hidden],.notification-container[hidden]{display:none!important}@media(max-width:700px){.notification-popover{position:fixed;top:auto;bottom:75px;left:12px;right:12px;width:auto;max-height:65dvh}.header-actions{min-width:0}.notification-container{flex-shrink:0}}

/* v2.4.1: clarify request intake vs completed maintenance */
.pending-hint {background:#eef6ff;border:1px solid #bdd7fa;color:#173c63;padding:12px;border-radius:10px;line-height:1.55;font-size:14px;}
#quickRequestBtn {margin-right:8px;}
@media(max-width:600px){#quickRequestBtn{margin-right:0;margin-bottom:8px;}}

/* v2.4.2 - compact single call-to-action and mobile modal actions clear of Netlify overlay. */
.header-actions #newBtn{margin:0;}
@media(max-width:650px){
  .header-actions{justify-content:space-between;flex-wrap:nowrap;gap:8px;}
  .header-actions #newBtn{margin-left:auto;max-width:calc(100vw - 110px);white-space:normal;text-align:center;min-height:44px;}
  /* Increase separation from bottom-right hosting badge without hiding it. */
  #modal>.modal{max-height:calc(100dvh - 20px)!important;}
  #modal .modal-footer{padding:12px 16px calc(100px + env(safe-area-inset-bottom,0px))!important;justify-content:flex-end;gap:12px;}
  #modal .modal-footer button{min-height:46px;min-width:96px;}
  #modal .form-body{padding-bottom:18px;}
}

/* v2.4.3 관리자 전용 삭제 */
.danger-delete{background:#fff1f2!important;color:#b42330!important;border:1px solid #f5b6bd!important;font-weight:700;cursor:pointer}
.danger-delete:hover{background:#ffe1e5!important}
.danger-delete:disabled{opacity:.55;cursor:wait}
.modal-footer{gap:10px;flex-wrap:wrap}

/* v2.5 clickable dashboard and camera completion */
.stat-link{cursor:pointer;text-align:left;display:flex;flex-direction:column;align-items:flex-start;font:inherit;color:inherit;width:100%;transition:box-shadow .15s,transform .15s}.stat-link:hover{box-shadow:0 8px 22px #14263d22;transform:translateY(-1px)}.stat-link:focus-visible{outline:3px solid #4865e8;outline-offset:2px}.stat-link small{color:#5370ab}.complete-video{display:block;width:100%;max-height:48vh;object-fit:contain;background:#13243a;border-radius:12px}.complete-video[hidden]{display:none!important}.complete-photo{max-width:100%;max-height:48vh;object-fit:contain;border-radius:12px}.complete-modal .modal-footer{gap:8px}@media(max-width:650px){#completeModal.modal-backdrop{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:110;padding:8px!important;}#completeModal[hidden]{display:none!important}#completeModal>.modal{width:100%;max-height:calc(100dvh - 18px);display:flex;flex-direction:column;overflow:hidden}#completeModal .form-body{overflow:auto}#completeModal .modal-footer{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));}#completeModal .modal-footer button{min-height:43px}}

/* v2.5.3 — mobile sign-out and shared equipment name autocomplete */
.mobile-logout{display:none;position:absolute;right:16px;top:22px;border:1px solid #d7e0eb;border-radius:9px;background:#fff;color:#334155;padding:8px 10px;font-size:12px;font-weight:700;cursor:pointer;z-index:1}
@media(max-width:650px){.topbar{position:relative}.mobile-logout:not([hidden]){display:block}.topbar .eyebrow{padding-right:100px}.topbar #pageTitle{padding-right:88px}}
.search-suggest-wrap{position:relative;flex:1;min-width:0}
.search-suggest-wrap #search{width:100%}
.form-body label:has(>#entryAsset){position:relative}
.suggestion-list{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:100;background:white;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 12px 25px #14263d25;max-height:240px;overflow-y:auto;padding:5px}
.suggestion-list[hidden]{display:none!important}
.suggestion-item{width:100%;background:white;border:0;border-radius:7px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 10px;color:#1d3148;min-height:44px}
.suggestion-item:hover,.suggestion-item:focus-visible{background:#edf4ff;outline:0}
.suggestion-item small{color:#73849a;font-size:11px;white-space:nowrap}
@media(max-width:650px){.search-suggest-wrap{flex-basis:100%;width:100%}.suggestion-list{max-height:190px}.form-body label:has(>#entryAsset) .suggestion-list{position:static;margin-top:-5px}}

/* v2.5.6 중간 사진 */
.progress-photo-feedback{padding:0 22px;color:#385778;font-size:12px;line-height:1.5}.progress-photo-feedback:empty{display:none}
#progressPhotoButton{min-height:43px;white-space:normal}
@media(max-width:650px){#detailModal .modal-footer{flex-wrap:wrap}#progressPhotoButton{flex:1 1 140px}}

/* v2.5.6 release: compact mobile actions and PC-only destructive action */
@media(max-width:650px){#detailDelete{display:none!important}#detailModal .modal-footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:12px 10px calc(22px + env(safe-area-inset-bottom,0px))!important}#detailModal .modal-footer button:not([hidden]){min-width:0!important;min-height:42px;padding:8px 3px;font-size:12px;white-space:nowrap}#progressPhotoButton{flex:initial}}

/* v2.5.7 additions */
.pill.hold{background:#f7e5ee;color:#a23b63}.vendor-event{background:#e8e5ff;color:#5645a3}.field-actions{display:flex;gap:8px;flex-wrap:wrap}.field-actions button{font-size:12px}.notification-heading{flex-wrap:wrap}.notification-heading button{font-size:11px;padding:7px}.detail-field textarea{width:100%;padding:10px;border:1px solid #d9e2ed;border-radius:8px}@media(max-width:650px){.field-actions button{flex:1;min-width:68px}}
.feedback-history{border:1px solid #e1e8f2;padding:10px 12px;border-radius:9px;font-size:12px}.feedback-history p{white-space:pre-wrap;margin:6px 0 0;color:#35465a}

/* v2.5.8: 출장 기간/자체 예정 작업/예정일/요청사항 표시 */
.planned-event{background:#e6f0ff!important;color:#1e4aa0!important}
.vendor-event{background:#f4eaff!important;color:#6e36a1!important}
.inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.compact-btn{padding:7px 11px!important;font-size:12px!important;min-height:32px}
.field-request-preview{white-space:pre-wrap;line-height:1.55;background:#f3f7fc;border:1px solid #dce5f0;border-radius:10px;padding:12px;margin:7px 0 9px;overflow-wrap:anywhere}
.checkbox-inline{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;min-height:40px}
.checkbox-inline input[type=checkbox]{width:18px!important;height:18px!important;flex:none}
#plannedPanel .item,#vendorPanel .item{width:100%;text-align:left}
#plannedPanel .item small,#vendorPanel .item small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){#plannedModal.modal-backdrop,#vendorModal.modal-backdrop,#dueModal.modal-backdrop{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px!important;z-index:120;overflow:hidden}#plannedModal[hidden],#vendorModal[hidden],#dueModal[hidden]{display:none!important}#plannedModal>.modal,#vendorModal>.modal,#dueModal>.modal{width:100%;max-height:calc(100dvh - 16px);overflow:hidden;display:flex;flex-direction:column}#plannedModal .form-body,#vendorModal .form-body,#dueModal .form-body{overflow-y:auto;min-height:0}#plannedModal .modal-footer,#vendorModal .modal-footer,#dueModal .modal-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}}

/* v2.5.8 photo gallery: full-screen swipe / keyboard navigation and download. */
.photo-viewer[hidden]{display:none!important}
.photo-viewer{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:clamp(10px,3vw,24px);color:#fff}
.photo-viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(8,16,28,.93);cursor:default}
.photo-viewer-panel{position:relative;display:flex;flex-direction:column;width:min(1080px,100%);height:min(90dvh,880px);z-index:1;min-height:0}
.photo-viewer-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 12px;font-size:16px;font-weight:700}
.photo-viewer-close{border:1px solid #ffffff44;border-radius:10px;background:#ffffff20;color:#fff;min-width:44px;min-height:44px;font-size:22px}
.photo-viewer-viewport{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;min-height:0;flex:1;touch-action:pan-y}
#photoViewerImage{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.photo-viewer-nav{height:60px;background:#ffffff1a;color:#fff;border:1px solid #ffffff25;border-radius:12px;font-size:44px;line-height:1;min-width:0}
.photo-viewer-nav:disabled{opacity:.2;cursor:default}
.photo-viewer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 8px 18px}
#photoViewerName{font-size:13px;color:#d5dcea;overflow-wrap:anywhere;min-width:0}
#photoViewerDownload{color:#10233f;background:#fff;border:0;border-radius:10px;padding:12px 16px;font-weight:800;min-height:44px}
#photoViewerDownload:disabled{opacity:.5}
#photoViewerError{width:100%;margin:0;min-height:16px;color:#cbd5e1;font-size:12px}
.photo:focus-visible{outline:3px solid #426be7;outline-offset:2px}
@media(max-width:650px){.photo-viewer{padding:8px}.photo-viewer-panel{height:calc(100dvh - 20px)}.photo-viewer-viewport{grid-template-columns:34px minmax(0,1fr) 34px}.photo-viewer-nav{font-size:34px;height:52px}.photo-viewer-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}#photoViewerName{width:100%;text-align:center}#photoViewerDownload{width:100%}}

/* v2.6.0 photo markup / compact schedule control */
.schedule-checkbox{display:flex;align-items:center;gap:10px;font-weight:700}.schedule-checkbox input{width:17px;height:17px;min-width:17px}
.edit-photo{position:absolute;bottom:4px;right:4px;border:0;border-radius:5px;padding:5px 7px;background:#153d7ddd;color:white;font-size:12px}
.photo-edit-modal{width:min(900px,100%)}.photo-edit-tools{display:flex;flex-wrap:wrap;gap:7px}.photo-edit-tools button{font-size:12px;padding:7px 10px}
#photoEditCanvas{display:block;max-width:100%;height:auto;max-height:55dvh;object-fit:contain;touch-action:none;border:1px solid #e2e8f0;border-radius:8px;margin:auto}
#photoViewerImage{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:auto}


/* v2.6.0 dashboard: integrated maintenance status and item cards */
.dashboard-panel{max-width:1100px;width:100%;margin:0 auto;padding:26px}
.dashboard-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border-bottom:1px solid #e8edf4;padding:7px 0 20px;margin-bottom:18px}
.dashboard-status{border:0;background:transparent;border-radius:10px;display:flex;align-items:center;flex-direction:column;gap:5px;padding:13px 6px;color:#14263d}
.dashboard-status:hover,.dashboard-status:focus-visible{background:#f0f5fe;outline-offset:2px}
.dashboard-status strong{font-size:28px;line-height:1.15}.dashboard-status span{font-size:12px;color:#7b8798}
.dashboard-cards{display:grid;gap:10px}.dashboard-card{width:100%;text-align:left;background:#fff;border:1px solid #dfe6ef;border-radius:12px;padding:16px 18px;display:grid;gap:8px;color:#23364e}
.dashboard-card:hover,.dashboard-card:focus-visible{border-color:#7ca1e9;background:#fafcff}
.dashboard-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dashboard-card-top strong{font-size:15px;min-width:0;overflow-wrap:anywhere}.dashboard-card small{font-size:12px;color:#718197;overflow-wrap:anywhere}
@media(max-width:650px){.dashboard-panel{padding:17px 13px}.dashboard-status strong{font-size:24px}.dashboard-status-grid{gap:2px}.dashboard-card{padding:14px 12px}}
/* Desktop photo: keep the entire portrait/landscape image visible without cropping. */
@media(min-width:651px){.photo-viewer-panel{width:min(1320px,calc(100vw - 44px));height:calc(100dvh - 44px);max-height:none}.photo-viewer-viewport{overflow:hidden;min-height:0}.photo-viewer-viewport #photoViewerImage{display:block;min-width:0;min-height:0;max-width:100%;max-height:100%;width:auto!important;height:auto!important;object-fit:contain!important;justify-self:center;align-self:center}.photo-viewer-nav{align-self:center}}

/* v2.6.0 PC/mobile photo zoom controls; overlays existing lightbox */
.photo-zoom-stage{position:relative;width:100%;height:100%;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.photo-zoom-stage.is-zoomed{cursor:grab;touch-action:none}
.photo-zoom-stage.is-zoomed:active{cursor:grabbing}
.photo-zoom-stage #photoViewerImage{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;flex-shrink:1;transform-origin:center center;will-change:transform;pointer-events:none}
.photo-zoom-toolbar{display:flex;align-items:center;justify-content:center;gap:9px;padding:9px 8px 0;color:#fff}
.photo-zoom-toolbar button{border:1px solid #ffffff55;border-radius:9px;color:#fff;background:#ffffff20;min-width:44px;min-height:42px;padding:5px 12px;font-size:19px;cursor:pointer}
.photo-zoom-toolbar button:disabled{opacity:.3;cursor:default}
#photoZoomReset{font-size:13px;font-weight:700}
#photoZoomPercent{min-width:56px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:650px){.photo-zoom-toolbar{padding-top:5px}.photo-zoom-toolbar button{min-height:44px}}

/* 2.6.1 - management list emphasizes the equipment (asset) */
.dashboard-work-title{display:block;margin-top:1px;color:#657990;font-size:13px;font-weight:500}

/* v2.7.0 PC-only read-only maintenance analytics */
.analytics-panel{max-width:960px;margin:auto}.analytics-quick{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.analytics-quick button{background:#fff;border:1px solid #d3dae5;border-radius:9px;padding:10px 12px;color:#233247;cursor:pointer}.analytics-messages{display:flex;flex-direction:column;gap:13px;min-height:250px;max-height:56vh;overflow-y:auto;padding:18px 8px}.analytics-answer,.analytics-user{padding:13px 16px;border-radius:12px;max-width:85%;white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}.analytics-answer{background:#f1f4f8;align-self:flex-start;color:#17293d}.analytics-user{background:#e4ebf6;align-self:flex-end}.analytics-form{display:flex;gap:9px}.analytics-form input{flex:1;min-width:0}.analytics-form button{flex:none}
@media(max-width:650px){.analytics-nav{display:none!important}#analyticsView{display:none!important}}

/* v2.7.0 floating desktop analytics: hidden entirely on phones */
.analytics-widget{position:fixed;right:24px;bottom:22px;z-index:500;display:flex;flex-direction:column;align-items:flex-end;gap:10px}.analytics-launch{background:#1c3555;color:#fff;border:0;border-radius:99px;box-shadow:0 6px 22px #12243a40;padding:13px 19px;font-weight:700;cursor:pointer}.analytics-launch:hover{background:#24466f}.analytics-popup{width:min(390px,calc(100vw - 36px));height:min(570px,calc(100vh - 110px));background:#fff;border:1px solid #dbe2e9;border-radius:16px;box-shadow:0 12px 40px #11223840;display:flex;flex-direction:column;overflow:hidden}.analytics-popup[hidden]{display:none!important}.analytics-popup-head{padding:15px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5eaf0}.analytics-popup-head strong{display:block}.analytics-popup-head small{display:block;color:#738398;margin-top:3px;font-size:11px}.analytics-popup-head button{border:0;background:#f1f4f8;border-radius:8px;padding:7px 10px;cursor:pointer}.analytics-popup .analytics-quick{flex:none;padding:9px 12px;margin:0;gap:5px}.analytics-popup .analytics-quick button{font-size:11px;padding:7px 8px}.analytics-popup .analytics-messages{flex:1;min-height:0;max-height:none;padding:12px;gap:8px}.analytics-popup .analytics-answer,.analytics-popup .analytics-user{font-size:12px;padding:10px 12px;max-width:92%}.analytics-popup .analytics-form{padding:10px;border-top:1px solid #e5eaf0;gap:6px}.analytics-popup .analytics-form input{min-height:39px;font-size:12px;padding:8px}.analytics-popup .analytics-form button{min-height:39px;padding:7px 11px;font-size:12px}.analytics-disclaimer{padding:0 12px 10px;margin:0;color:#77869a;font-size:10px}@media(max-width:650px){.analytics-widget{display:none!important}}

/* v3.0 개발 테스트: 기존 시안과 동일한 무채색 17설비 x 7일 엑셀형 가로 1칸 및 연차·반차 */
.production-only-nav{display:flex}
.production-panel{min-width:0}
.prod-top-actions,.prod-toolbar,.prod-tabs,.prod-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.prod-toolbar{justify-content:space-between;margin:16px 0 9px}
.prod-tabs .prod-active{background:#e5e7eb;border-color:#a1a1aa;color:#18181b;font-weight:700}
.prod-period{margin:8px 0;font-size:16px;color:#262626}
.prod-swipe-hint{color:#6b7280;font-size:12px;margin:8px 0}
.prod-table-scroll{overflow:auto;max-width:100%;border:1px solid #9ca3af;background:white;border-radius:3px;overscroll-behavior-x:contain}
.prod-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;color:#1f2937}
.prod-table col.prod-col-machine{width:112px}.prod-table col.prod-col-day{width:calc((100% - 112px)/7)}
.prod-table th,.prod-table td{border-right:1px solid #b8bec6;border-bottom:1px solid #b8bec6;padding:0;text-align:center;vertical-align:middle;background:#fff;color:#1f2937}
.prod-table .prod-machine{position:sticky;left:0;z-index:3;padding:5px 4px;background:#fff;border-right:2px solid #9299a4;font-weight:700;vertical-align:middle}
.prod-table thead .prod-machine{z-index:5;background:#f7f7f7}
.prod-table .prod-date-head{height:35px;background:#eef2f7;font-weight:750;border-bottom:1px solid #9ca3af}
.prod-table .prod-group th{padding:4px 9px;background:#f3f4f6;color:#374151;text-align:left;font-weight:700;border-bottom:1px solid #9ca3af}
.prod-table tbody tr:not(.prod-group){height:39px}
.prod-table .prod-day-cell{min-width:0;overflow:hidden}
.prod-entry{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-width:0;min-height:30px;padding:4px 5px;border:0;border-bottom:1px solid #e5e7eb;background:#fff;color:#111827;font-size:12px;font-weight:700;cursor:pointer;line-height:1.3}
.prod-entry:hover{background:#f3f4f6}
.prod-entry-main{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.prod-entry-personnel{display:block;width:100%;font-size:10px;font-weight:500;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;margin-top:2px}
.prod-needs-review{box-shadow:inset 3px 0 #c08432}
.prod-add{display:block;min-width:45px;margin:2px auto;padding:3px 8px;background:#fff;border:1px dashed #a3a3a3;border-radius:3px;color:#52525b;font-size:10px;cursor:pointer;opacity:.15}
.prod-day-cell:hover .prod-add,.prod-add:focus-visible{opacity:1}.prod-add:hover{background:#f4f4f5}
.prod-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #d4d4d8;border-radius:6px;overflow:hidden}
.prod-month-grid .dow{text-align:center;font-size:12px;padding:7px;background:#f5f5f5}
.prod-month-day{min-height:72px;text-align:left;background:#fff;border:0;border-right:1px solid #e4e4e7;border-bottom:1px solid #e4e4e7;padding:7px;color:#262626;cursor:pointer}
.prod-month-day small{display:block;margin-top:8px;color:#71717a}.prod-month-day.is-selected{background:#ededed}.prod-month-day.outside{background:#fafafa;color:#aaa}
.prod-import-modal{width:min(820px,95vw);max-height:90vh;overflow:auto}.prod-preview-scroll{max-height:220px;overflow:auto;border:1px solid #e4e4e7;margin-top:12px}
.prod-preview-table{width:100%;border-collapse:collapse;font-size:12px}.prod-preview-table th,.prod-preview-table td{padding:6px 9px;text-align:left;border-bottom:1px solid #e4e4e7}.prod-preview-table th{background:#fafafa}.prod-preview-summary{background:#f4f4f5;border-radius:5px;padding:10px 12px;margin-top:10px;font-size:13px}
@media(max-width:650px){.production-only-nav,#productionView{display:none!important}}


/* v3.0.1: PC 전용 주간 생산표 전체화면 + 화면 크기 자동 맞춤 */
#prodFullscreen{display:inline-flex;align-items:center;justify-content:center;min-width:110px}
@media(min-width:651px){
 body.production-fullscreen{width:100%;height:100dvh;overflow:hidden;background:#fff}
 body.production-fullscreen #app{height:100dvh;min-height:0;max-width:none;padding:0}
 body.production-fullscreen #app>.sidebar,
 body.production-fullscreen #app .topbar{display:none!important}
 body.production-fullscreen #app>main{height:100dvh;width:100%;max-width:none;overflow:hidden;flex:1}
 body.production-fullscreen #app .content{height:100%;padding:0;max-width:none;overflow:hidden}
 body.production-fullscreen #productionView.active{display:block;height:100%;max-width:none}
 body.production-fullscreen .production-panel{width:100%;height:100%;max-width:none;min-height:0;display:flex;flex-direction:column;padding:12px 16px 10px;border:0;border-radius:0;box-shadow:none}
 body.production-fullscreen .production-panel>.section-head{flex:0 0 auto;margin:0 0 7px;min-height:38px}
 body.production-fullscreen .production-panel>.section-head h2{font-size:19px}
 body.production-fullscreen .production-panel>.section-head p{font-size:10px;margin:3px 0 0}
 body.production-fullscreen .prod-top-actions{gap:5px}
 body.production-fullscreen .prod-top-actions button,
 body.production-fullscreen .prod-toolbar button{padding:6px 9px;font-size:11px;border-radius:6px}
 body.production-fullscreen .prod-toolbar{flex:0 0 auto;margin:0 0 5px;gap:6px}
 body.production-fullscreen .prod-period{flex:0 0 auto;font-size:13px;margin:2px 0 4px}
 body.production-fullscreen #prodMessage{flex:0 0 auto;margin:0 0 5px;font-size:10px;line-height:1.15}
 body.production-fullscreen #prodWeekArea{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body.production-fullscreen #prodWeekArea .prod-swipe-hint{display:none}
 body.production-fullscreen #prodWeekArea .prod-table-scroll{flex:1 1 auto;min-height:0;max-width:none;width:100%;height:100%;overflow:auto;border-radius:0}
 body.production-fullscreen .prod-table{width:100%;min-width:0;max-width:none;height:100%;font-size:clamp(9px,.72vw,12px);table-layout:fixed}
 body.production-fullscreen .prod-table col.prod-col-machine{width:7.5%}
 body.production-fullscreen .prod-table col.prod-col-day{width:13.214285%}
 body.production-fullscreen .prod-table .prod-machine{width:auto;min-width:0;max-width:none;padding:2px;background:#fafafa;font-size:clamp(9px,.73vw,12px)}
 body.production-fullscreen .prod-table thead .prod-machine{background:#f7f7f7}
 body.production-fullscreen .prod-table .prod-date-head{height:29px;line-height:1.15;font-size:clamp(10px,.78vw,12px)}
 body.production-fullscreen .prod-table .prod-group{height:22px}
 body.production-fullscreen .prod-table .prod-group th{padding:2px 8px;font-size:clamp(10px,.75vw,12px)}
 body.production-fullscreen .prod-table tbody tr:not(.prod-group){height:auto}
 body.production-fullscreen .prod-table .prod-day-cell{width:auto;min-width:0;max-width:none;overflow:hidden}
 body.production-fullscreen .prod-entry{font-size:clamp(9px,.76vw,12px);line-height:1.2;min-height:23px;padding:3px 2px}
 body.production-fullscreen .prod-entry-personnel{font-size:clamp(8px,.63vw,10px);margin-top:1px}
 /* 표 안의 + 일정 버튼을 감춰 7일/17설비를 한 화면에 최대한 표시.
    상단의 일정 수동 등록 버튼은 그대로 사용 가능. */
 body.production-fullscreen .prod-add{display:none!important}
 body.production-fullscreen #prodMonthArea{flex:1 1 auto;min-height:0;overflow:auto}
 body.production-fullscreen .analytics-widget{display:none!important}
}
@media(min-width:651px) and (max-width:1024px){
 body.production-fullscreen .production-panel{padding:8px}
 body.production-fullscreen .production-panel>.section-head p{display:none}
 body.production-fullscreen .prod-table .prod-machine{font-size:9px}
}

/* v3.0.4: 공정 코드 및 17개 설비 표기 (전체화면 포함) */
.prod-code-legend{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px;color:#64748b;margin:3px 0 9px}
.prod-code-legend span{padding:3px 6px;border-radius:4px;border:1px solid #e5e7eb;background:white}
.prod-code-legend .prod-legend-w,.prod-entry.prod-code-w{background:#e7f5ed;color:#165f3b}
.prod-code-legend .prod-legend-p,.prod-entry.prod-code-p{background:#fff0db;color:#805013}
.prod-code-legend .prod-legend-r,.prod-entry.prod-code-r{background:#e9efff;color:#2b448a}
.prod-entry.prod-code-w,.prod-entry.prod-code-p,.prod-entry.prod-code-r{font-weight:700}
#prodGridOptions,#prodRowOptions{padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;margin-top:8px;background:#fafbfc}
#prodGridOptions[hidden],#prodRowOptions[hidden]{display:none!important}
@media(min-width:651px){body.production-fullscreen .prod-code-legend{margin:0 0 4px;gap:4px;font-size:10px}body.production-fullscreen .prod-code-legend span{padding:1px 4px}}

/* v3.0.4 생산계획 엑셀형 1일=1칸, 연차/반차 인원 무제한 선택 */
.prod-leave-row .prod-machine{background:#f8fafc}
.prod-leave-cell{height:39px;min-width:0}
.prod-leave-trigger{width:100%;min-height:35px;display:flex;align-items:center;justify-content:center;gap:5px;position:relative;border:0;background:#fff;color:#1f2937;cursor:pointer;padding:3px 5px}
.prod-leave-trigger:hover{background:#eef2ff}
.prod-leave-names{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:11px;font-weight:650}
.prod-leave-plus{color:#a1a1aa;font-size:10px}
.prod-leave-num{flex:none;font-size:10px;color:#64748b}
.prod-leave-modal{width:min(610px,95vw);max-height:min(85vh,800px);display:flex;flex-direction:column;overflow:hidden}
.prod-leave-modal .form-body{flex:1 1 auto;min-height:0;overflow-y:auto}
.prod-leave-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 7px;font-size:13px;font-weight:700}
.prod-leave-toolbar button{padding:5px 9px;font-size:12px}
.prod-leave-picklist{max-height:45vh;overflow:auto;border:1px solid #dbe2ea;border-radius:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.prod-leave-person{padding:10px 9px;display:flex!important;align-items:center;gap:9px!important;border-bottom:1px solid #eef2f7;font-size:13px;cursor:pointer;min-width:0}
.prod-leave-person[hidden]{display:none!important}
.prod-leave-person input{width:17px!important;height:17px!important;flex:none}
.prod-leave-person small{display:block;color:#94a3b8;font-size:10px}
.prod-leave-person:has(input:checked){background:#eff6ff}
.prod-leave-person:has(input:disabled){color:#94a3b8;cursor:default}
.prod-month-leave{font-size:12px}
@media(min-width:651px){body.production-fullscreen .prod-leave-cell{height:auto}body.production-fullscreen .prod-leave-trigger{min-height:23px;padding:2px 3px;max-height:100%;font-size:10px}body.production-fullscreen .prod-leave-names{font-size:clamp(8px,.65vw,10px)}body.production-fullscreen .prod-leave-num{font-size:9px}body.production-fullscreen .prod-table tbody tr:not(.prod-group){height:auto}body.production-fullscreen .prod-table .prod-group th{padding:1px 7px}body.production-fullscreen .prod-table .prod-date-head{height:26px}}
@media(max-width:750px){.prod-leave-picklist{grid-template-columns:1fr}}


/* v3.0.5: 날짜마다 제품명/사수/부사수 복원. 제품명은 칸 전체 높이를 사용. */
.prod-table{width:2080px;min-width:2080px;table-layout:fixed}
.prod-table col.prod-col-machine{width:126px}
.prod-table col.prod-col-product{width:150px}
.prod-table col.prod-col-worker{width:64px}
.prod-table .prod-subhead{height:27px;background:#f8fafc;font-weight:650;font-size:12px;white-space:nowrap}
.prod-table .prod-product-cell,.prod-table .prod-leader-cell,.prod-table .prod-assistant-cell{position:relative;padding:0;vertical-align:middle;overflow:hidden}
.prod-table .prod-product-cell{height:1px}
.prod-product-stack{position:absolute;inset:0;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;min-height:100%}
.prod-product-stack .prod-entry{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;height:auto;margin:0;padding:2px 5px;border:0;line-height:1.1;font-weight:750;font-size:15px;white-space:nowrap;overflow:hidden}
.prod-entry-main{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:center}
.prod-product-empty{flex:1}
.prod-table .prod-add{position:absolute;z-index:2;margin:0;padding:0;min-width:0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.prod-table .prod-add-empty{inset:0;width:100%;height:100%;background:transparent;color:#8c96a5;font-weight:550;font-size:11px;opacity:.15}
.prod-table .prod-product-cell:hover .prod-add-empty,.prod-table .prod-add-empty:focus-visible{opacity:1;background:#f8fafc}
.prod-table .prod-add-overlay{right:1px;top:1px;width:17px;height:17px;background:#eef2f7;color:#334155;border:1px solid #cbd5e1;border-radius:3px;opacity:0;font-size:13px;line-height:1}
.prod-table .prod-product-cell:hover .prod-add-overlay,.prod-table .prod-add-overlay:focus-visible{opacity:.98}
.prod-worker-stack{height:100%;min-height:31px;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}
.prod-table .prod-worker-text{flex:1 1 0;min-height:0;height:100%;display:flex;align-items:center;justify-content:center;margin:0;border:0;background:transparent;font-size:12px;font-weight:650;text-align:center;line-height:1.15;white-space:normal;overflow-wrap:anywhere;padding:2px 3px;cursor:pointer;color:#334155}
.prod-table .prod-worker-text:hover{background:#f1f5f9}
.prod-table .prod-worker-text.prod-unassigned{color:#9ca3af;font-weight:400}
.prod-worker-empty{display:block;width:100%;min-height:30px}
.prod-table .prod-leave-cell{height:39px}
@media(min-width:651px){
 body.production-fullscreen .prod-table{width:100%;min-width:0;table-layout:fixed;height:100%}
 body.production-fullscreen .prod-table col.prod-col-machine{width:7.5%}
 body.production-fullscreen .prod-table col.prod-col-product{width:6.607142857%}
 body.production-fullscreen .prod-table col.prod-col-worker{width:3.303571429%}
 body.production-fullscreen .prod-table .prod-product-cell,body.production-fullscreen .prod-table .prod-leader-cell,body.production-fullscreen .prod-table .prod-assistant-cell{width:auto;min-width:0;max-width:none}
 body.production-fullscreen .prod-table .prod-subhead{height:20px;font-size:clamp(9px,.75vw,11px)}
 body.production-fullscreen .prod-table tbody tr:not(.prod-group){height:auto}
 body.production-fullscreen .prod-product-stack .prod-entry{font-size:clamp(12px,.94vw,16px);min-height:0;padding:1px 2px;line-height:1.08;display:flex;text-align:center}
 body.production-fullscreen .prod-table .prod-worker-text{font-size:clamp(9px,.76vw,12px);line-height:1.08;white-space:normal;overflow-wrap:anywhere;min-height:0;padding:1px}
 body.production-fullscreen .prod-worker-stack{min-height:20px}
 body.production-fullscreen .prod-worker-empty{min-height:20px}
 body.production-fullscreen .prod-table .prod-add-overlay{display:none!important}
 body.production-fullscreen .prod-table .prod-add-empty{display:flex!important;opacity:0}
 body.production-fullscreen .prod-table .prod-product-cell:hover .prod-add-empty,body.production-fullscreen .prod-table .prod-add-empty:focus-visible{opacity:1}
 body.production-fullscreen .prod-table .prod-leave-cell{height:auto}
}

/* v3.0.6: 연차/반차 한 행으로 통합, 전체화면에서 과도한 세로 확장 방지 */
.prod-table tbody tr.prod-leave-row{height:32px}
.prod-table .prod-leave-row .prod-machine{height:32px;padding:2px 4px}
.prod-table .prod-leave-row .prod-leave-cell{height:32px;max-height:32px}
.prod-table .prod-leave-row .prod-leave-trigger{height:30px;min-height:0;padding:1px 4px;overflow:hidden}
.prod-table .prod-leave-row .prod-leave-names{font-size:11px;line-height:1.1}
@media(min-width:651px){
 body.production-fullscreen .prod-table tbody tr.prod-leave-row{height:29px!important;max-height:29px}
 body.production-fullscreen .prod-table .prod-leave-row .prod-machine{height:29px;max-height:29px}
 body.production-fullscreen .prod-table .prod-leave-row .prod-leave-cell{height:29px!important;max-height:29px}
 body.production-fullscreen .prod-table .prod-leave-row .prod-leave-trigger{height:27px;min-height:0;max-height:27px;padding:0 3px}
 body.production-fullscreen .prod-table .prod-leave-row .prod-leave-names{font-size:clamp(9px,.7vw,11px)}
}

/* v2.8.0: PC-only permit action beside maintenance work title */
.permit-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px}
.permit-title-row>b{flex:1;min-width:0;overflow-wrap:anywhere}
.permit-print-button{flex:none;white-space:nowrap;font-weight:700;border-color:#b4c9e4;color:#1a4d8c;background:#f5f9ff}
.permit-print-button:hover{background:#e7f0ff}
@media(max-width:650px){.permit-print-button{display:none!important}.permit-title-row{min-height:0}}

/* v3.1.0 오프라인 안내 */


/* v3.2.0 JANDI reporting */
.jandi-report-button{white-space:nowrap;background:#fff8e1;border-color:#efd160;color:#6d5100;font-weight:700}
.jandi-report-summary{display:grid;grid-template-columns:1fr;gap:4px}
.jandi-report-summary small{font-size:12px;color:#64748b;margin-top:5px}
.jandi-report-summary p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.jandi-report-modal{max-width:570px;width:min(95vw,570px)}
#jandiReportStatus{min-height:20px;white-space:pre-wrap}
@media(max-width:650px){.permit-title-row{flex-wrap:wrap;align-items:flex-start}.jandi-report-button{display:block!important;max-width:100%;margin-top:6px}.jandi-report-modal{max-height:94dvh;display:flex;flex-direction:column}.jandi-report-modal .form-body{overflow-y:auto;min-height:0}}

/* v3.3 production: compact inline worker selection */
/* v3.3.1: arrow-free worker picker; selecting the name still opens the native list and saves immediately. */
.prod-table .prod-inline-worker{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;min-width:0;height:100%;min-height:29px;border:0;border-radius:0;background:transparent;background-image:none;color:#334155;text-align:center;text-align-last:center;font-size:14px;font-weight:700;line-height:1.2;padding:2px 1px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:clip}
.prod-table .prod-inline-worker:hover,.prod-table .prod-inline-worker:focus{background:#eef2ff;outline:1px solid #94a3b8;outline-offset:-1px}
.prod-table .prod-inline-worker.prod-leave-conflict{background:#fef3c7;color:#9a3412}
.prod-table .prod-inline-worker:disabled{opacity:.6;cursor:default}

/* Suppress the browser dropdown arrow in legacy Edge/IE renderers as well. */
.prod-table .prod-inline-worker::-ms-expand{display:none}
@media(min-width:651px){body.production-fullscreen .prod-table .prod-inline-worker{font-size:clamp(11px,.86vw,14px);padding-inline:0}}

/* v3.3.3 production staff self-highlight, desktop only */
.prod-table .prod-my-assignment{background:#dff2ff!important;color:#075985!important;font-weight:900!important;box-shadow:inset 0 0 0 1px #89cffa!important}
.prod-import-leave-option{display:flex;align-items:center;gap:8px;margin:10px 0;font-weight:650}.prod-import-leave-option input{width:auto}.analytics-quick[hidden]{display:none!important}

/* v3.4 unattended production TV status */
.prod-tv-status{margin:4px 0 8px;font-size:12px;color:#366d81;font-weight:600}
#prodTvAuto[aria-pressed="true"]{border-color:#77b9d0;background:#e6f6fc;color:#17637b}

/* v3.4.0 mobile production read-only prototype */
.production-permission-toggle{display:inline-flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;color:#334155;}
.production-permission-toggle input{width:17px;height:17px;accent-color:#5065e7;}
.prod-mobile-zoom{display:none;align-items:center;gap:6px;margin-right:5px;}
.prod-mobile-zoom button{border:1px solid #cbd5e1;border-radius:5px;padding:5px 9px;background:#fff;}
.prod-mobile-zoom output{min-width:40px;text-align:center;font-weight:700;}
@media(max-width:650px){
 .production-only-nav{display:flex!important}
 body.prod-mobile-blocked .production-only-nav{display:none!important}
 #productionView.view.active{display:block!important}
 .prod-mobile-zoom{display:inline-flex}
 #productionView .production-panel{padding:8px!important}
 #productionView .prod-top-actions{flex-wrap:wrap;gap:5px}
 #prodNew,#prodImport{display:none!important}
 #productionView .prod-table-scroll{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch;}
 #productionView .prod-table{width:calc(1150px * var(--prod-mobile-zoom, 1));min-width:calc(1150px * var(--prod-mobile-zoom, 1));font-size:calc(11px * var(--prod-mobile-zoom, 1));table-layout:fixed;}
 #productionView .prod-table .prod-machine{font-size:calc(10px * var(--prod-mobile-zoom, 1));}
 #productionView .prod-entry,#productionView .prod-worker-text{font-size:calc(11px * var(--prod-mobile-zoom, 1));}
 #productionView .prod-worker-text,#productionView .prod-entry,#productionView .prod-leave-trigger{pointer-events:none;cursor:default;}
 #productionView .prod-toolbar{flex-wrap:wrap}
 #productionView .prod-table .prod-add{display:none!important}
}

/* v3.4.0: 연차/반차 직원명 전체 표시, 생략 금지 */
.prod-leave-cell{height:auto!important;min-height:39px;vertical-align:middle}
.prod-leave-trigger{height:auto!important;min-height:35px;white-space:normal;overflow:visible}
.prod-leave-names{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:keep-all;line-height:1.45;padding:3px 1px}

@media(max-width:650px){body.prod-mobile-blocked #productionView{display:none!important}}

/* Production five-working-day board — 2026-11-13. Only the production table
   is changed; NAS readers, permissions, mobile access gates remain intact. */
#productionView .prod-table{width:100%;min-width:1220px;table-layout:fixed}
#productionView .prod-table col.prod-col-machine{width:7.5%}
#productionView .prod-table col.prod-col-product{width:7.4%}
#productionView .prod-table col.prod-col-processing{width:3.7%}
#productionView .prod-table col.prod-col-worker{width:3.7%}
#productionView .prod-table .prod-processing-cell{font-size:13px;font-weight:750;color:#1f3b63;white-space:nowrap;letter-spacing:-.3px}
#productionView .prod-table .prod-category-subhead th{padding:2px 4px;text-align:center;background:#f3f6fa;white-space:nowrap;font-size:11px}
#productionView .prod-table .prod-category-subhead .prod-machine{text-align:left;font-size:12px}
#productionView .prod-table .prod-proc-head{color:#294969}
#productionView .prod-table .prod-today-label{font-weight:900}
#productionView .prod-today-badge{font-size:10px;background:#cf2c31;color:white;border-radius:10px;padding:1px 6px;margin-left:4px;white-space:nowrap}
#productionView .prod-table-scroll{position:relative}
#productionView .prod-today-outline{display:none!important}
#productionView .prod-today-outline[hidden]{display:none!important}
#productionView .prod-no-schedule{padding:25px 12px;text-align:center;color:#64748b}
@media(min-width:651px){
 body.production-fullscreen #productionView .prod-table{width:100%;min-width:0;height:100%;table-layout:fixed}
 body.production-fullscreen #productionView .prod-table col.prod-col-machine{width:7.5%}
 body.production-fullscreen #productionView .prod-table col.prod-col-product{width:7.4%}
 body.production-fullscreen #productionView .prod-table col.prod-col-processing{width:3.7%}
 body.production-fullscreen #productionView .prod-table col.prod-col-worker{width:3.7%}
 body.production-fullscreen #productionView .prod-table .prod-category-subhead{height:19px}
 body.production-fullscreen #productionView .prod-table .prod-category-subhead th{padding:1px 3px;font-size:clamp(9px,.7vw,11px)}
 body.production-fullscreen #productionView .prod-table tbody tr.prod-schedule-row{height:auto}
 body.production-fullscreen #productionView .prod-table .prod-processing-cell{font-size:clamp(10px,.8vw,14px)}
 body.production-fullscreen #productionView .prod-table .prod-date-head{height:28px}
}
@media(max-width:650px){
 #productionView .prod-table{width:calc(1250px * var(--prod-mobile-zoom, 1));min-width:calc(1250px * var(--prod-mobile-zoom, 1));}
 #productionView .prod-table .prod-processing-cell{font-size:calc(12px * var(--prod-mobile-zoom, 1));}
}

/* v3.4.4 offline review: optional leave-service warning remains inside leave row */
.prod-leave-service-warning{display:inline-block;margin-left:10px;padding:2px 7px;border:1px solid #d7dfe8;border-radius:5px;background:#f6f8fb;color:#65758a;font-size:10px;font-weight:600;vertical-align:middle}

/* v3.4.4 visual refinement — stable production board cell geometry.
   Applies only to the 5-day production view, not other application tables. */
@media (min-width:651px) {
  #productionView .prod-table-scroll {
    scrollbar-gutter: stable;
    overflow-x: auto;
  }
  #productionView .prod-table {
    width: 100% !important;
    min-width: 1220px;
    max-width: none;
    table-layout: fixed !important;
  }
  #productionView .prod-table col.prod-col-machine { width: 7.5% !important; }
  #productionView .prod-table col.prod-col-product { width: 7.4% !important; }
  #productionView .prod-table col.prod-col-processing,
  #productionView .prod-table col.prod-col-worker { width: 3.7% !important; }
  #productionView .prod-table tr.prod-schedule-row {
    height: 39px !important;
    max-height: 39px;
  }
  #productionView .prod-table tr.prod-schedule-row > th,
  #productionView .prod-table tr.prod-schedule-row > td {
    height: 39px;
    max-height: 39px;
    overflow: hidden;
  }
  #productionView .prod-table .prod-processing-cell {
    overflow: hidden;
    text-overflow: clip;
  }
  #productionView .prod-table .prod-product-stack .prod-entry {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  body.production-fullscreen #productionView .prod-table {
    min-width: 0;
    width: 100% !important;
    table-layout: fixed !important;
  }
  body.production-fullscreen #productionView .prod-table tr.prod-schedule-row {
    height: 39px !important;
  }
}

/* v3.5 mobile production: 5-day landscape fit, pinch-to-zoom, logged-in work highlighting.
   Desktop and maintenance views keep their v3.4.4 styles. */
.prod-mobile-back,.prod-mobile-mywork,.prod-mobile-hint{display:none}
.prod-my-task-entry{color:#064d9c!important;font-weight:900!important}
.prod-table .prod-my-task-cell{background:#e1efff!important;box-shadow:inset 0 0 0 1px #9ac5ff}
.prod-table .prod-my-task-cell .prod-entry{background:transparent!important;color:#084a98!important;font-weight:900!important}
.prod-table .prod-my-task-cell .prod-worker-text,.prod-table .prod-my-task-cell .prod-inline-worker{background:transparent!important;color:#084a98!important}
body.production-mobile-view #productionView.view.active{display:block!important}
body.production-mobile-view .production-only-nav{display:flex!important}
body.production-mobile-view .analytics-widget:not([hidden]){display:flex!important;right:max(10px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
body.production-mobile-view .analytics-launch{padding:10px 13px;font-size:12px}
body.production-mobile-view .analytics-popup{width:min(380px,calc(100vw - 20px));height:min(460px,calc(100dvh - 28px))}
body.production-mobile-view #productionView .production-panel{padding:10px!important}
body.production-mobile-view #productionView .prod-top-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
body.production-mobile-view .prod-mobile-zoom{display:inline-flex!important;gap:4px;margin:0}
body.production-mobile-view .prod-mobile-zoom button{font-size:12px;min-height:31px;padding:4px 7px}
body.production-mobile-view .prod-mobile-zoom output{font-size:12px;min-width:40px}
body.production-mobile-view .prod-mobile-mywork{display:inline-flex;background:#1d64dc;color:#fff;border:0;border-radius:6px;padding:8px 12px;font-size:12px;font-weight:750}
body.production-mobile-view .prod-mobile-hint{display:block;font-size:11px;color:#66778b;margin:4px 0 9px}
body.production-mobile-view #productionView .prod-table-scroll{width:100%;max-width:100%;overflow:auto!important;position:relative;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-gutter:auto!important}
body.production-mobile-view #prodBoardCanvas{position:relative;display:block;width:100%;max-width:none!important;min-width:0;overflow:visible}
body.production-mobile-view #productionView .prod-table{position:absolute;top:0;left:0;transform-origin:top left;width:1250px!important;min-width:1250px!important;max-width:1250px!important;table-layout:fixed!important;height:auto!important;font-size:12px!important}
body.production-mobile-view #productionView .prod-table col.prod-col-machine{width:7.5%!important}
body.production-mobile-view #productionView .prod-table col.prod-col-product{width:7.4%!important}
body.production-mobile-view #productionView .prod-table col.prod-col-processing,body.production-mobile-view #productionView .prod-table col.prod-col-worker{width:3.7%!important}
body.production-mobile-view #productionView .prod-table tr.prod-schedule-row,body.production-mobile-view #productionView .prod-table tr.prod-schedule-row>th,body.production-mobile-view #productionView .prod-table tr.prod-schedule-row>td{height:39px!important;max-height:39px!important}
body.production-mobile-view #productionView .prod-table .prod-entry,body.production-mobile-view #productionView .prod-table .prod-worker-text{font-size:12px!important;line-height:1.2!important}
body.production-mobile-view #productionView .prod-table .prod-processing-cell{font-size:12px!important}
body.production-mobile-view #productionView .prod-table .prod-worker-text,body.production-mobile-view #productionView .prod-table .prod-entry,body.production-mobile-view #productionView .prod-table .prod-leave-trigger{pointer-events:none;cursor:default}
body.production-mobile-view #productionView .prod-table .prod-add{display:none!important}
@media(orientation:landscape){
 body.production-mobile-view{overflow:hidden!important}
 body.production-mobile-view #app{display:block!important;padding-bottom:0!important;min-height:100dvh!important}
 body.production-mobile-view .sidebar,body.production-mobile-view .topbar{display:none!important}
 body.production-mobile-view main,body.production-mobile-view .content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 body.production-mobile-view #productionView .production-panel{padding:7px 9px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 body.production-mobile-view #productionView .section-head{margin-bottom:5px;gap:6px;flex-wrap:nowrap;align-items:center}
 body.production-mobile-view #productionView .section-head h2{font-size:15px;white-space:nowrap}
 body.production-mobile-view .prod-mobile-back{display:inline-flex;padding:7px 9px;font-size:12px;min-height:31px}
 body.production-mobile-view .prod-mobile-hint{display:none!important}
 body.production-mobile-view #productionView .prod-toolbar{margin-bottom:3px!important;gap:6px;flex-wrap:nowrap}
 body.production-mobile-view #productionView .prod-toolbar button{padding:6px 7px!important;font-size:11px!important}
 body.production-mobile-view #productionView .prod-tv-status{margin:2px 0!important;font-size:10px}
 body.production-mobile-view #productionView .prod-period{font-size:12px;margin:4px 0!important}
 body.production-mobile-view #productionView .prod-code-legend{display:none!important}
 body.production-mobile-view #productionView .prod-table-scroll{height:calc(100dvh - 135px);max-height:calc(100dvh - 135px);border:1px solid #d8e1ed}
 body.production-mobile-view .analytics-widget{bottom:max(9px,env(safe-area-inset-bottom))}
}
@media(orientation:portrait){
 body.production-mobile-view #productionView .prod-table-scroll{max-height:65dvh}
}
/* v3.5: expose the production tab BEFORE entering the production view. */
@media(max-width:650px){
 .production-only-nav{display:flex!important}
 .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 .sidebar .nav{min-width:0;padding:7px 1px;font-size:18px}
 .sidebar .nav span{font-size:9px;white-space:nowrap;letter-spacing:-.3px}
}
@media(orientation:landscape){
 body.production-mobile-view .analytics-popup{height:min(310px,calc(100dvh - 76px))!important;max-height:calc(100dvh - 76px)}
}


/* v3.5.1 Mobile landscape/fullscreen production-board experience.
   Only activated by production-mobile-immersive on touch devices.
   Desktop production, maintenance, auth and Supabase are untouched. */
#prodImmersiveControls[hidden]{display:none!important}
.prod-immersive-controls{display:none}
body.production-mobile-immersive{
  margin:0!important;width:100%!important;height:100dvh!important;
  min-height:0!important;overflow:hidden!important;background:#fff!important;
}
body.production-mobile-immersive #app{
  display:block!important;width:100%!important;height:100dvh!important;
  min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;
}
body.production-mobile-immersive #app>.sidebar,
body.production-mobile-immersive #app .topbar{display:none!important}
body.production-mobile-immersive #app>main,
body.production-mobile-immersive #app .content{
  display:block!important;width:100%!important;max-width:none!important;
  height:100dvh!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
}
body.production-mobile-immersive #productionView.active{
  position:fixed!important;inset:0!important;z-index:400!important;
  display:block!important;height:100dvh!important;width:100vw!important;
  margin:0!important;padding:0!important;background:#fff!important;overflow:hidden!important;
}
body.production-mobile-immersive #productionView .production-panel{
  display:flex!important;flex-direction:column!important;
  width:100%!important;height:100dvh!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
}
body.production-mobile-immersive #productionView .production-panel>.section-head,
body.production-mobile-immersive #productionView .prod-toolbar,
body.production-mobile-immersive #productionView .prod-tv-status,
body.production-mobile-immersive #productionView .prod-period,
body.production-mobile-immersive #productionView .prod-code-legend,
body.production-mobile-immersive #productionView .prod-mobile-hint,
body.production-mobile-immersive #productionView #prodMessage,
body.production-mobile-immersive .analytics-widget,
body.production-mobile-immersive .analytics-popup{
  display:none!important;
}
body.production-mobile-immersive #prodWeekArea{
  display:flex!important;position:relative!important;flex:1 1 auto!important;
  flex-direction:column!important;min-height:0!important;width:100%!important;
  height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;
}
body.production-mobile-immersive #productionView .prod-table-scroll{
  flex:1 1 auto!important;width:100%!important;height:100%!important;
  min-height:0!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  overflow:auto!important;overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;
  scrollbar-gutter:auto!important;background:#fff!important;
}
body.production-mobile-immersive #prodBoardCanvas{
  position:relative!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;overflow:visible!important;
}
body.production-mobile-immersive #productionView .prod-table{
  width:1250px!important;min-width:1250px!important;max-width:1250px!important;
  height:auto!important;table-layout:fixed!important;
  position:absolute!important;top:0!important;left:0!important;transform-origin:top left!important;
}
body.production-mobile-immersive .prod-immersive-controls{
  display:block!important;position:fixed!important;inset:0!important;
  z-index:950!important;pointer-events:none!important;
}
body.production-mobile-immersive .prod-immersive-controls button{
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(96,119,145,.37);border-radius:12px;
  color:#152c44;background:rgba(255,255,255,.89);
  box-shadow:0 2px 10px rgba(15,23,42,.18);
  cursor:pointer;touch-action:manipulation;pointer-events:auto!important;
  -webkit-tap-highlight-color:transparent;
}
body.production-mobile-immersive .prod-immersive-edge{
  position:absolute;top:50%;transform:translateY(-50%);
  width:38px;height:68px;font-size:33px;font-weight:800;
  border-radius:12px;opacity:.90;
}
body.production-mobile-immersive .prod-immersive-prev{left:max(4px,env(safe-area-inset-left))}
body.production-mobile-immersive .prod-immersive-next{right:max(4px,env(safe-area-inset-right))}
body.production-mobile-immersive .prod-immersive-close{
  position:absolute;right:max(6px,env(safe-area-inset-right));
  top:max(5px,env(safe-area-inset-top));
  width:36px;height:36px;font-size:29px;font-weight:600;line-height:1;
  color:#13273c;background:rgba(255,255,255,.96)
}
body.production-mobile-immersive .prod-immersive-zoom{
  position:absolute;left:50%;bottom:max(5px,env(safe-area-inset-bottom));
  transform:translateX(-50%);display:flex;align-items:center;gap:4px;
  padding:4px 6px;border-radius:12px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(248,250,252,.89);box-shadow:0 2px 10px rgba(15,23,42,.10);
  pointer-events:auto!important;
}
body.production-mobile-immersive .prod-immersive-zoom button{
  min-width:31px;height:28px;padding:1px 6px;border-radius:7px;
  font-size:17px;box-shadow:none;background:rgba(255,255,255,.94);
}
body.production-mobile-immersive .prod-immersive-zoom #prodImmersiveZoomFit{font-size:11px;font-weight:800;min-width:38px}
body.production-mobile-immersive .prod-immersive-zoom output{
  min-width:35px;text-align:center;font-size:11px;font-weight:750;color:#2e435c;
}
@media(max-height:430px){
  body.production-mobile-immersive .prod-immersive-edge{width:33px;height:56px;font-size:29px}
  body.production-mobile-immersive .prod-immersive-close{width:31px;height:31px;font-size:26px}
  body.production-mobile-immersive .prod-immersive-zoom{padding:2px 4px}
  body.production-mobile-immersive .prod-immersive-zoom button{height:25px;min-width:27px}
}


/* v3.5.2: Isolate the production timetable from the legacy mobile
   maintenance-request CARD conversion. This was the root cause of the
   two-column staggered layout in portrait fullscreen. */
body.production-mobile-view #productionView table.prod-table{
  display:table!important;
  width:1250px!important;min-width:1250px!important;max-width:1250px!important;
  table-layout:fixed!important;border-spacing:0!important;
}
body.production-mobile-view #productionView table.prod-table colgroup{display:table-column-group!important}
body.production-mobile-view #productionView table.prod-table col{display:table-column!important}
body.production-mobile-view #productionView table.prod-table thead{display:table-header-group!important}
body.production-mobile-view #productionView table.prod-table tbody{
  display:table-row-group!important;gap:0!important;grid-template-columns:none!important;
}
body.production-mobile-view #productionView table.prod-table tr,
body.production-mobile-view #productionView table.prod-table thead tr,
body.production-mobile-view #productionView table.prod-table tbody tr{
  display:table-row!important;grid-template-columns:none!important;gap:0!important;
  padding:0!important;border-radius:0!important;
  min-width:0!important;box-shadow:none!important;
}
body.production-mobile-view #productionView table.prod-table th,
body.production-mobile-view #productionView table.prod-table td,
body.production-mobile-view #productionView table.prod-table tbody td:nth-child(5){
  display:table-cell!important;grid-column:auto!important;
  padding:3px 2px!important;min-width:0!important;
  border:1px solid #c4cbd5!important;vertical-align:middle!important;
  white-space:nowrap!important;overflow:hidden!important;
  text-align:center!important;
  overflow-wrap:normal!important;word-break:normal!important;
}
body.production-mobile-view #productionView table.prod-table tbody td::before{
  display:none!important;content:none!important;
}
body.production-mobile-view #productionView table.prod-table tbody td:first-child{
  grid-column:auto!important;font-weight:inherit;
}
body.production-mobile-view #productionView table.prod-table .prod-machine{
  display:table-cell!important;
}

/* If Android/iOS does not grant orientation.lock(), create a landscape-sized
   board within the portrait viewport. Turn the phone sideways to read it. */
@media (orientation: portrait){
  body.production-mobile-immersive #productionView.active{
    inset:auto!important;top:0!important;left:100vw!important;
    width:100dvh!important;height:100vw!important;
    max-width:none!important;max-height:none!important;
    transform-origin:top left!important;transform:rotate(90deg)!important;
  }
  body.production-mobile-immersive #productionView .production-panel{
    width:100%!important;height:100%!important;min-height:0!important;
  }
  body.production-mobile-immersive #prodWeekArea{
    width:100%!important;height:100%!important;min-height:0!important;
  }
  body.production-mobile-immersive #productionView .prod-table-scroll{
    height:100%!important;max-height:none!important;
  }
  /* transformed #productionView is the fixed-position containing block */
  body.production-mobile-immersive .prod-immersive-controls{
    position:absolute!important;inset:0!important;
  }
}

/* v3.5.3 - PC-only production change notification control. */
#prodBroadcastRow[hidden]{display:none!important}
.prod-broadcast-row{display:flex;justify-content:flex-end;align-items:center;margin:1px 0 9px}
.prod-broadcast-row .primary{white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.prod-broadcast-modal{width:min(520px,calc(100vw - 24px))}
.prod-broadcast-modal .form-body p{margin-top:2px;line-height:1.55}
.prod-broadcast-modal textarea{width:100%;box-sizing:border-box}
@media(max-width:650px),(pointer:coarse){#prodBroadcastRow{display:none!important}}

/* v3.6.0 — PC-first equipment status overview. All visuals from persisted records. */
#statusView{gap:18px}
.status-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.status-heading h2{margin:0;font-size:22px;color:#15273e}
.status-heading p{margin:5px 0 0;color:#8493a8;font-size:12px}
.status-tools{display:flex;align-items:center;gap:12px;color:#74869c;font-size:11px}
.status-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.status-kpi{border:1px solid #e0e8f0;background:white;border-radius:13px;padding:15px;box-shadow:0 2px 11px #11274408;min-width:0}
.status-kpi>small{font-weight:750;font-size:12px;color:#50637b}
.status-kpi strong{display:block;font-size:31px;color:#1b3558;margin:10px 0 2px}
.status-kpi strong span{font-size:13px;margin-left:3px;color:#7f92aa}
.status-kpi p{font-size:10px;color:#96a3b4;margin:0;line-height:1.4}
.status-board,.status-analytics{padding:19px}
.status-board .section-head,.status-analytics .section-head{margin-bottom:15px}
.status-board-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.status-lane{border:1px solid #e7edf6;border-radius:12px;background:#f8fafe;padding:9px;min-width:0}
.status-lane.critical{background:#fff5f5}.status-lane.today{background:#f2f7ff}.status-lane.working{background:#f1faf5}.status-lane.waiting{background:#f7f5ff}
.status-lane-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 4px 12px;font-size:13px;color:#243c5a}
.status-lane-head span{font-size:12px;color:#71849b}
.status-job{display:flex;flex-direction:column;text-align:left;width:100%;gap:6px;background:#fff;border:1px solid #e2eaf3;border-radius:9px;padding:12px 10px;margin-bottom:8px;box-shadow:0 3px 9px #1d3f6610}
.status-job:hover{border-color:#80a8e8;background:#fcfdff}
.status-job strong{font-size:12px;color:#1a2b41}.status-job span{font-size:11px;color:#4f637c;line-height:1.45}.status-job small{font-size:10px;color:#8a99ac}.status-job em{color:#d94755;font-size:10px;font-style:normal;font-weight:700}
.status-lane-empty,.status-lane-more{padding:8px;font-size:11px;color:#96a3b4;text-align:center}
.status-chart-grid{display:grid;grid-template-columns:1.1fr 1.1fr .95fr;gap:13px}
.status-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:14px}
.status-widget{min-width:0;border:1px solid #e4ebf3;background:#fff;border-radius:12px;padding:15px;min-height:175px}
.status-widget h3{font-size:13px;color:#233954;margin:0 0 15px}.status-widget h4{font-size:12px;margin:17px 0 8px}
.status-barplot{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:end;height:148px}
.status-bar-item{display:flex;align-items:center;flex-direction:column;gap:4px;min-width:0;height:100%;justify-content:flex-end}
.status-bar-item strong{font-size:11px}.status-bar-item small{font-size:10px;color:#72859c}
.status-bar-rail{width:min(37px,100%);height:112px;display:flex;align-items:flex-end}
.status-bar-fill{width:100%;border-radius:5px 5px 0 0;background:#347be3}.grade-2{background:#4e91f1}.grade-3{background:#82b5f6}.grade-4{background:#b0d1fa}.grade-5{background:#d3e3f8}
.status-chart-foot{margin-top:12px;color:#7990a8;font-size:10px;text-align:center}
.grade-guide>div{font-size:11px;padding:7px 0;border-bottom:1px solid #edf1f6;color:#38516e}.grade-guide>p{font-size:10px;color:#73859e}
.grade-note{color:#6482a8;font-size:11px}
.status-mini-list{display:grid;gap:10px}.status-mini-list>div{display:flex;justify-content:space-between;gap:9px;align-items:center;padding-bottom:7px;border-bottom:1px solid #edf1f5;font-size:11px;color:#4d6178}
.status-mini-list strong{color:#183a6a;font-size:11px;white-space:nowrap}
.status-none,.status-disclaimer{font-size:11px;color:#8194ab;line-height:1.55}.status-disclaimer{display:block;margin-top:12px}.status-equipment-total{font-size:26px;font-weight:800;color:#2967bf;margin-bottom:13px}.status-equipment-total small{font-size:10px;color:#8d9ab0;font-weight:400}
.status-trend{display:flex;gap:9px;height:150px;align-items:end;justify-content:space-around}.status-trend>div{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
.status-trend span{display:block;background:#4188e8;min-height:1px;width:22px;border-radius:3px 3px 0 0}.status-trend b{font-size:11px}.status-trend small{font-size:10px;color:#7c8fa5}
.status-priority-row{background:transparent;border:0;border-bottom:1px solid #e9eff6;display:flex;text-align:left;flex-direction:column;gap:4px;width:100%;padding:10px 1px}.status-priority-row:hover{background:#f6faff}.status-priority-row b{font-size:12px}.status-priority-row small{font-size:10px;color:#7085a1}
.status-highlight{font-size:12px;margin-bottom:13px;color:#53667e}.status-highlight b{font-size:22px;color:#d44d5f;margin-left:8px}.status-ai-status{display:block;font-size:11px;color:#275a99;line-height:1.5}
.status-grade-field{background:#f6f9ff;padding:12px;border:1px solid #dde7f6;border-radius:8px}.status-grade-editor{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.status-grade-editor select{min-width:200px;flex:1;border:1px solid #ccd8e8;border-radius:8px;padding:9px}.status-grade-editor small{flex-basis:100%;color:#647b94}
@media(max-width:1250px) and (min-width:651px){.status-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.status-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.desktop-status-nav,#statusView{display:none!important}}

/* v3.6.0 manual priority and AI candidate display */
.status-priority-editor{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.status-priority-editor select{border:1px solid #cad7e7;border-radius:8px;padding:8px}
.status-priority-editor label{display:flex;gap:5px;align-items:center;font-size:12px;color:#3a526e}
.status-priority-editor small{flex-basis:100%;color:#7385a1}
.status-ai-matches{display:grid;gap:8px;margin-top:10px}
.status-ai-match{padding:9px;border:1px solid #e4ebf6;border-radius:8px;background:#f9fbff;display:grid;gap:5px}
.status-ai-match b{font-size:11px;color:#203c62}
.status-ai-match small{font-size:10px;color:#667e9a}
.status-ai-match button{background:transparent;border:0;text-align:left;font-size:10px;color:#2870bd;padding:3px 0}

/* v3.6.1 — compact status overview, exactly five workflow columns */
#statusView .status-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#statusView .status-kpi-link{display:block;text-align:left;width:100%;cursor:pointer;font:inherit}
#statusView .status-kpi-link:hover{border-color:#96b7ef;box-shadow:0 6px 18px #2b579521}
#statusView .status-kpi-link:focus-visible{outline:3px solid #72a6eb;outline-offset:2px}
#statusView .status-board{padding:16px 18px}
#statusView .status-board-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:stretch}
#statusView .status-lane{padding:9px;display:flex;flex-direction:column;min-height:210px;background:#f7f8fd}
#statusView .status-lane.critical{background:#fff4f4}
#statusView .status-lane.today{background:#f1f6ff}
#statusView .status-lane.upcoming{background:#fff9ed}
#statusView .status-lane.working{background:#f0faf4}
#statusView .status-lane.waiting{background:#f5f3fc}
#statusView .status-lane-head{background:transparent;border:0;text-align:left;display:flex;justify-content:space-between;align-items:center;width:100%;padding:5px 3px 10px;cursor:pointer}
#statusView .status-lane-head:hover b{color:#386fd0}
#statusView .status-lane-head b{font-size:12px;line-height:1.25}
#statusView .status-lane-head span{font-size:10px;white-space:nowrap}
#statusView .status-lane-cards{display:grid;gap:7px;align-content:start;min-height:0}
#statusView .status-job{padding:9px 9px 8px;margin:0;gap:3px;min-height:67px;box-shadow:0 2px 6px #1d3f6609}
#statusView .status-job strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#statusView .status-job span{font-size:10px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#statusView .status-job small{font-size:9px;line-height:1.35;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#statusView .status-job em{font-size:9px}
#statusView .status-visit-tag{color:#8b6508!important}
#statusView .status-lane-more{display:block;width:100%;margin-top:auto;border:1px dashed #ccdaee;border-radius:8px;padding:9px 4px;background:#ffffffad;color:#3267ad;font-weight:750;cursor:pointer}
#statusView .status-lane-more:hover{background:#fff;border-color:#8ab2e9}
#statusView .status-bar-item{border:0;background:transparent;cursor:pointer;font:inherit;padding:2px}
#statusView .status-bar-item:hover .status-bar-fill{filter:brightness(.88)}
#statusView .status-trend .status-month-column{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0;background:transparent;border:0;cursor:pointer;padding:0}
#statusView .status-trend .status-month-column:hover span{background:#155cb8}
#statusView .status-mini-list .status-asset-link,#statusView .status-mini-list .status-dept-link,#statusView .status-mini-list .status-equipment-link{display:flex;justify-content:space-between;gap:7px;text-align:left;align-items:center;border:0;border-bottom:1px solid #edf1f5;background:transparent;padding:7px 1px;width:100%;font-size:11px;cursor:pointer;color:#50627b}
#statusView .status-mini-list .status-asset-link:hover,#statusView .status-mini-list .status-dept-link:hover,#statusView .status-mini-list .status-equipment-link:hover{color:#195cba;background:#f8fbff}
#statusView .status-mini-list .status-asset-link strong,#statusView .status-mini-list .status-dept-link strong,#statusView .status-mini-list .status-equipment-link strong{color:#27588e;white-space:nowrap}
#statusView .status-urgent-drill{width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px;background:transparent;border:0;text-align:left;font-size:11px;color:#526781;padding:4px 1px 12px;cursor:pointer}
#statusView .status-urgent-drill b{color:#d04758;font-size:17px}
.status-drill-dialog{width:min(610px,calc(100vw - 36px));max-height:min(78vh,750px)}
.status-drill-dialog.status-postit{width:min(470px,calc(100vw - 36px));max-height:min(76vh,620px)}
.status-drill-dialog .status-drill-body{padding:15px 18px;overflow-y:auto;min-height:0;flex:1}
.status-drill-list{display:grid;gap:8px}
.status-drill-list .status-drill-row{padding:12px 14px;border-radius:10px;min-height:unset;margin:0}
.status-drill-list .status-drill-row strong{font-size:13px}
.status-drill-list .status-drill-row span{font-size:12px}
.status-drill-list .status-drill-row small{font-size:11px}
.status-asset-total{font-size:13px;color:#51657f;margin:2px 0 12px}
.status-asset-total strong{font-size:26px;color:#183b71}
.status-asset-total small{display:block;font-size:10px;color:#8999ad;margin-top:3px}
.status-stacked-grade{display:flex;width:100%;height:22px;border-radius:7px;overflow:hidden;background:#edf1f6}
.status-stacked-grade span{height:100%;display:block;min-width:0}
.status-grade-legend{display:flex;flex-wrap:wrap;gap:7px 10px;margin:12px 0 17px;color:#546b83;font-size:10px}
.status-grade-legend span{white-space:nowrap;display:inline-flex;gap:4px;align-items:center}
.status-grade-legend i{display:inline-block;width:10px;height:10px;border-radius:3px}
.status-asset-dates{border-top:1px solid #e4eaf2;padding-top:10px;display:grid;gap:3px}
.status-asset-dates h3{font-size:12px;color:#324f71;margin:0 0 7px}
.status-asset-record{padding:9px 2px;background:transparent;border:0;border-bottom:1px solid #eff3f8;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;width:100%;cursor:pointer}
.status-asset-record:hover{background:#f6faff}
.status-asset-record>span{display:grid;gap:3px;min-width:0}
.status-asset-record strong{font-size:11px;color:#2c4664}
.status-asset-record small{color:#74889f;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.status-asset-record b{background:#f0f3f7;color:#65768c;border-radius:5px;font-size:10px;padding:4px 6px;white-space:nowrap}
.status-asset-record b.status-grade-five{background:#ffe5e8;color:#c6384d}
@media (min-width:651px) and (max-width:1450px){#statusView .status-board-grid{gap:6px}#statusView .status-lane{padding:6px}#statusView .status-job{padding:8px 6px}#statusView .status-lane-head b{font-size:11px}}
@media (min-width:651px) and (max-width:1070px){#statusView .status-board-grid{grid-template-columns:repeat(5,minmax(155px,1fr));overflow-x:auto;padding-bottom:8px}#statusView .status-board{overflow:hidden}}
@media (max-width:650px){#statusDrillModal{display:none!important}}


/* ===== v3.6.1 PC overview / reference-inspired design system ===== */
@media (min-width:651px) {
 #statusView {gap:12px;color:#1d334d}
 #statusView .status-heading {margin-bottom:0;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:2px 0 1px}
 #statusView .status-eyebrow {font-size:10px;letter-spacing:.18em;color:#6682a8;font-weight:900;margin-bottom:4px}
 #statusView .status-heading h2 {font-size:26px;letter-spacing:-.05em;margin:0 0 4px;color:#172d4a;line-height:1.13}
 #statusView .status-heading h2 small{font-size:12px;font-weight:600;letter-spacing:0;color:#7690ad;margin-left:4px}
 #statusView .status-heading p{font-size:11px;color:#7187a1;margin:0}
 #statusView .status-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#8ca1b8}
 #statusView .status-tools button{border:1px solid #d8e3f0;background:#fff;border-radius:8px;color:#3a5e85;padding:8px 13px;font-weight:750}
 #statusView .status-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
 #statusView .status-kpi{min-height:104px;display:flex;align-items:center;gap:15px;padding:14px 17px 14px 15px;border-radius:12px;border:1px solid #e0e8f2;background:#fff;box-shadow:0 4px 15px #192f500a;transition:box-shadow .15s,border-color .15s}
 #statusView .status-kpi:hover{box-shadow:0 8px 18px #173c661b;transform:none;border-color:#a9c7ee}
 #statusView .status-kpi-icon{flex-shrink:0;display:flex;width:58px;height:58px;border-radius:13px;align-items:center;justify-content:center;background:#e9f2ff;color:#1a66c5}
 #statusView .status-kpi-wait .status-kpi-icon{background:#fff2dc;color:#bd7a13}
 #statusView .status-kpi-work .status-kpi-icon{background:#e6f8f0;color:#208767}
 #statusView .status-kpi-body{display:flex;flex-direction:column;min-width:0;flex:1;align-items:flex-start}
 #statusView .status-kpi-body small{font-size:12px;font-weight:800;color:#465f7e}
 #statusView .status-kpi-body strong{font-size:28px;letter-spacing:-.04em;line-height:1.15;margin:4px 0;color:#142b4d;font-variant-numeric:tabular-nums}
 #statusView .status-kpi-body strong span{font-size:13px;color:#627b9b;margin-left:3px}
 #statusView .status-kpi-body p{font-size:10px;line-height:1.3;margin:0;color:#8da0b6}
 #statusView .status-kpi-action{font-size:10px;color:#6688b7;display:flex;align-items:center;gap:3px;white-space:nowrap;margin-left:auto;align-self:flex-end}
 #statusView .status-board,#statusView .status-analytics{padding:14px 15px 16px;border:1px solid #dfe8f1;border-radius:13px;background:#fff;box-shadow:0 3px 18px #192f5008}
 #statusView .status-board .section-head,#statusView .status-analytics .section-head{margin:0 0 12px;gap:12px}
 #statusView .status-board .section-head h2,#statusView .status-analytics .section-head h2{font-size:16px;letter-spacing:-.035em;display:flex;align-items:center;gap:9px;margin:0 0 4px;color:#142d4c}
 #statusView .status-board .section-head h2::before,#statusView .status-analytics .section-head h2::before{content:"";display:block;background:#2d7be1;width:4px;height:19px;border-radius:4px;flex-shrink:0}
 #statusView .status-board .section-head p,#statusView .status-analytics .section-head p{font-size:10px;line-height:1.4;color:#8395a9;margin:0 0 0 13px}
 #statusView .status-board .section-head button{font-size:11px;padding:9px 13px;border-radius:7px;white-space:nowrap}
 #statusView .status-board-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:start;overflow:visible;padding:0}
 #statusView .status-lane{padding:7px;border-radius:10px;min-height:112px;border:1px solid #e6edf6;box-shadow:none;display:flex;flex-direction:column;gap:0;min-width:0}
 #statusView .status-lane.critical{background:#fff2f2;--lane:#d84d53;--lane-dark:#aa2631;--chip-bg:#ffe4e5}
 #statusView .status-lane.today{background:#eef5ff;--lane:#317bda;--lane-dark:#235fb5;--chip-bg:#e2efff}
 #statusView .status-lane.upcoming{background:#fff7e7;--lane:#cb9224;--lane-dark:#a76a0c;--chip-bg:#fff0c9}
 #statusView .status-lane.working{background:#effaf4;--lane:#19a56d;--lane-dark:#0d7953;--chip-bg:#def7e9}
 #statusView .status-lane.waiting{background:#f5f1ff;--lane:#8a68d6;--lane-dark:#6543a8;--chip-bg:#eee5ff}
 #statusView .status-lane-head{padding:4px 4px 10px;border-radius:0;display:flex;justify-content:space-between;gap:5px;align-items:center;color:var(--lane-dark)}
 #statusView .status-lane-title{display:inline-flex;gap:5px;align-items:center;min-width:0}
 #statusView .status-lane-title svg{flex:0 0 auto;color:var(--lane)}
 #statusView .status-lane-title b{font-size:12px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #statusView .status-lane-count{color:var(--lane-dark);border-radius:12px;font-size:10px;font-weight:800;background:var(--chip-bg);padding:3px 7px;white-space:nowrap}
 #statusView .status-lane-cards{display:flex;flex-direction:column;gap:6px;min-height:0}
 #statusView .status-job{border:1px solid #e3e8ef;border-left:3px solid var(--lane);background:#fff;padding:8px 7px 7px 9px;min-height:68px;gap:4px;margin:0;border-radius:7px;box-shadow:0 3px 7px #173f6610;color:#243c57}
 #statusView .status-job:hover{border-color:#adc6e9;border-left-color:var(--lane);box-shadow:0 5px 14px #285a8619}
 #statusView .status-job-main{display:flex;justify-content:space-between;align-items:center;gap:4px;max-width:100%}
 #statusView .status-job-main strong{font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#21354d}
 #statusView .status-job-main em{font-size:9px;font-weight:850;font-style:normal;color:var(--lane-dark);background:var(--chip-bg);padding:3px 5px;border-radius:11px;flex-shrink:0;max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #statusView .status-job .status-job-description{font-size:10px;color:#5f7188;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.3}
 #statusView .status-job .status-job-meta{font-size:9px;color:#8394a8;line-height:1.3;display:flex;justify-content:space-between;gap:4px;overflow:hidden;white-space:nowrap}
 #statusView .status-job .status-job-meta span{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 #statusView .status-job .status-job-meta span:last-child{text-align:right}
 #statusView .status-lane-empty{font-size:10px;color:#a4afbe;min-height:54px;padding:23px 2px 11px}
 #statusView .status-lane-more{margin-top:7px;background:#fff;border:1px dashed #d5dfee;border-radius:7px;padding:7px 4px;color:var(--lane-dark);font-size:10px;font-weight:850}
 #statusView .status-lane-more:hover{border-color:var(--lane);background:#fff}
 #statusView .grade-note{color:#8594a9;font-size:10px}
 #statusView .status-chart-grid{grid-template-columns:1.1fr 1.1fr .95fr;gap:11px}
 #statusView .status-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:10px}
 #statusView .status-widget{padding:13px;border:1px solid #e3eaf4;border-radius:10px;min-height:192px;background:linear-gradient(180deg,#fff 0%,#fff 88%,#fcfdff 100%);box-shadow:0 2px 8px #1f476207;min-width:0}
 #statusView .status-widget h3{font-size:12px;font-weight:850;color:#243e5f;display:flex;align-items:center;gap:6px;margin:0 0 8px;letter-spacing:-.02em}
 #statusView .status-widget h3::before{content:"";display:block;height:13px;width:3px;border-radius:3px;background:#3185ec}
 #statusView .status-widget h3 span{font-size:10px;color:#8395a9}
 #statusView .status-chart-units{font-size:9px;color:#8394a7;text-align:right;height:13px}
 #statusView .status-chart-stage{display:grid;grid-template-columns:25px 1fr;gap:5px;height:145px;position:relative}
 #statusView .status-chart-y{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;font-size:9px;color:#7f91a6;padding:1px 0 18px}
 #statusView .status-barplot{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;height:145px;align-items:end;border-bottom:1px solid #e4ecf6;background:linear-gradient(to bottom,transparent calc(50% - 1px),#e9eef6 50%,transparent calc(50% + 1px));position:relative}
 #statusView .status-bar-item{gap:2px;min-width:0;height:100%;position:relative;justify-content:flex-end}
 #statusView .status-bar-item strong{font-size:10px;color:#34516e;font-weight:850}
 #statusView .status-bar-item small{font-size:9px;color:#70849b;white-space:nowrap}
 #statusView .status-bar-rail{height:112px;display:flex;width:min(36px,95%);align-items:flex-end}
 #statusView .status-bar-fill{border-radius:4px 4px 0 0;background:#1a67d0;min-height:0!important;box-shadow:inset 0 1px 0 #ffffff66}
 #statusView .status-bar-fill.grade-2{background:#4292ec}
 #statusView .status-bar-fill.grade-3{background:#78b4ee}
 #statusView .status-bar-fill.grade-4{background:#adcef4}
 #statusView .status-bar-fill.grade-5{background:#e85e70}
 #statusView .status-chart-foot{margin-top:9px;text-align:center;font-size:9px;color:#8da0b3}
 #statusView .grade-guide{padding-bottom:9px}
 #statusView .grade-guide>div{display:flex;align-items:center;gap:8px;padding:5px 2px!important;border-bottom:1px solid #edf1f6;font-size:10px!important;line-height:1.25;white-space:normal}
 #statusView .grade-guide .grade-tag{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;border-radius:6px;padding:3px 7px;font-size:9px;min-width:42px;font-weight:800;background:#1e65c4}
 #statusView .grade-guide .grade-tag-2{background:#3885e4}
 #statusView .grade-guide .grade-tag-3{background:#77aae3}
 #statusView .grade-guide .grade-tag-4{background:#e0a45b}
 #statusView .grade-guide .grade-tag-5{background:#da5262}
 #statusView .grade-guide p{font-size:9px;margin:8px 0 0;color:#8b9aae}
 #statusView .status-donut-layout{display:flex;align-items:center;justify-content:center;gap:15px;margin:7px auto 0;max-width:100%;min-height:125px}
 #statusView .status-donut{width:127px;height:127px;flex:0 0 127px;border-radius:50%;padding:0;border:0;display:grid;place-items:center;cursor:pointer;position:relative;box-shadow:0 0 0 1px #e7ecf4}
 #statusView .status-donut::before{content:"";display:block;width:71px;height:71px;position:absolute;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #ffffffad}
 #statusView .status-donut>span{position:relative;display:flex;flex-direction:column;text-align:center;line-height:1.35}
 #statusView .status-donut strong{font-size:22px;letter-spacing:-.06em;color:#183658}
 #statusView .status-donut small{font-size:10px;color:#90a0b4}
 #statusView .status-donut-legend{min-width:0;flex:1;display:grid;gap:3px}
 #statusView .status-donut-row{padding:3px 0;background:transparent;border:0;display:flex;align-items:center;gap:5px;text-align:left;cursor:pointer;min-width:0;font-size:10px;color:#54708d}
 #statusView .status-donut-row i{display:block;width:8px;height:8px;border-radius:2px;flex-shrink:0}
 #statusView .status-donut-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #statusView .status-donut-row b{font-variant-numeric:tabular-nums;white-space:nowrap;color:#34516c}
 #statusView .status-donut-row small{font-weight:500;font-size:9px;color:#8193a7}
 #statusView .status-disclaimer{font-size:9px;line-height:1.35;color:#99a9b8;display:block;margin-top:6px}
 #statusView .status-line-svg{display:block;width:100%;height:auto;max-height:175px;margin:4px 0}
 #statusView .status-line-svg [role="button"]:hover .status-line-dot{r:6.1;stroke:#145bba}
 #statusView .status-top-assets-head{display:grid;grid-template-columns:38px minmax(0,1fr) 66px;background:#f3f7fc;border-bottom:1px solid #e5edf6;border-radius:5px 5px 0 0;min-height:26px;align-items:center;text-align:center;font-size:10px;color:#6683a3;font-weight:800}
 #statusView .status-top-assets-head span:nth-child(2){text-align:left}
 #statusView .status-top-asset-row{display:grid;grid-template-columns:38px minmax(0,1fr) 66px;align-items:center;gap:0;width:100%;border:0;border-bottom:1px solid #edf2f6;min-height:29px;background:transparent;text-align:left;color:#334966;cursor:pointer;font-size:10px;padding:0 2px}
 #statusView .status-top-asset-row:hover{background:#f2f8ff}
 #statusView .status-top-asset-row strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #statusView .status-top-asset-row b{text-align:right;font-size:10px;color:#38669e;font-weight:800}
 #statusView .status-asset-rank{justify-self:center;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e7eef7;color:#415b7d;font-weight:850;font-size:10px}
 #statusView .status-asset-rank.rank-1{background:#f8db88;color:#79500e}.status-asset-rank.rank-2{background:#dfe5ec;color:#5d7185}.status-asset-rank.rank-3{background:#f3ddc2;color:#966028}
 #statusView .status-priority-row{padding:8px 4px}
 #statusView .status-mini-list .status-asset-link{padding:7px 1px}
}
@media(min-width:651px) and (max-width:1270px){
 #statusView .status-board-grid{grid-template-columns:repeat(5,minmax(173px,1fr));overflow-x:auto;padding-bottom:6px}
 #statusView .status-job .status-job-meta{flex-direction:column;gap:1px}
 #statusView .status-job .status-job-meta span:last-child{text-align:left}
 #statusView .status-donut-layout{gap:7px}
 #statusView .status-donut{width:100px;height:100px;flex-basis:100px}
 #statusView .status-donut::before{width:61px;height:61px}
 #statusView .status-donut strong{font-size:19px}
}
@media(max-width:650px){
 #statusView{display:none!important} /* keep mobile page unchanged */
}

/* v3.6.1: remove duplicate status heading; retain refresh at right */
#statusView .status-heading-compact{justify-content:flex-end;padding:0;margin:0 0 6px;min-height:32px}
#statusView .status-heading-compact .status-tools{margin-left:auto}

/* v3.6.2 - completed maintenance records without an assigned grade */
#statusView .status-ungraded-link{appearance:none;border:0;background:transparent;color:#275eae;font:inherit;font-weight:800;line-height:1.4;padding:1px 3px;margin:-1px 0;cursor:pointer;text-decoration:underline;text-decoration-color:#a5c3ed;text-underline-offset:2px;border-radius:4px}
#statusView .status-ungraded-link:hover{background:#eaf2ff;color:#144ba5;text-decoration-color:currentColor}
#statusView .status-ungraded-link:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
#statusView .status-ungraded-link:disabled{color:#8da0b3;text-decoration:none;cursor:default;background:transparent;font-weight:normal}
.status-ungraded-list .status-ungraded-record b{background:#eef2f7;color:#5c6d83}
.status-ungraded-list .status-ungraded-record span small:last-child{font-size:10px;color:#8394a8;margin-top:3px}


/* v3.7.0 - Consumables: desktop table and mobile cards */
.consumable-hint{font-size:12px!important;color:#2563eb!important;margin:0;line-height:1.5}
.consumable-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.consumable-stats>div{background:#f8faff;border:1px solid #e5ebf5;border-radius:10px;padding:14px 15px;display:grid;gap:6px}
.consumable-stats small{color:#75879c;font-size:11px;font-weight:700}.consumable-stats strong{font-size:23px}
.consumable-role-hint{font-size:12px;color:#75879c;margin:-1px 0 10px}
.consumable-check-col{white-space:nowrap}.consumable-check-label{display:flex;align-items:center;justify-content:flex-end;gap:6px;cursor:pointer;white-space:nowrap;font-size:12px}
.consumable-check-label input{width:20px;height:20px;accent-color:#2563eb;cursor:pointer}
.consumable-check-label input:disabled{cursor:not-allowed}.consumable-check-label span{color:#60728b;font-size:11px}
.consumable-mobile-cards{display:none}.consumable-detail-images{display:grid;gap:8px}
.consumable-image-link{display:block;border:1px solid #e4ebf5;border-radius:8px;padding:9px 12px;color:#2563eb;word-break:break-all}
.consumable-audit-list{display:grid;gap:7px;font-size:12px;color:#38516d}.consumable-audit-list>div{background:#f6f9fe;padding:10px;border-radius:7px}
#consumablesView td{vertical-align:middle}
@media(max-width:650px){
 .sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
 .sidebar .nav{font-size:17px;padding:7px 0;gap:2px}
 .sidebar .nav span{font-size:8px;letter-spacing:-.35px;white-space:nowrap}
 .consumable-desktop-table{display:none}.consumable-mobile-cards{display:grid;gap:10px}
 .consumable-card{border:1px solid #e2e8f2;border-radius:11px;background:#fff;padding:14px;display:grid;gap:8px}
 .consumable-card-top{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}
 .consumable-card-top b{font-size:14px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
 .consumable-card p{margin:0;font-size:12px;color:#41546c}
 .consumable-card small{font-size:11px;color:#8393a8}
 .consumable-card-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eef2f7;padding-top:8px}
 .consumable-stats>div{padding:11px 9px}.consumable-stats strong{font-size:20px}
 .consumable-stats small{font-size:10px}
 #consumablesView .filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 #consumablesView .filters input{grid-column:span 2;width:100%}
}

/* v3.7.1 — Mobile navigation cleanup only.
   PC navigation, pages and the approval authorization rules are unchanged. */
@media (max-width:650px) {
  .sidebar nav > .nav[data-view="overview"],
  .sidebar nav > .nav[data-view="approvals"] {
    display:none!important;
  }
  .sidebar nav {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px;
  }
  .sidebar nav > .nav:not([hidden]) {
    min-width:0;
    padding:7px 4px;
    font-size:20px;
    gap:3px;
    justify-content:center;
    align-items:center;
  }
  .sidebar nav > .nav span[data-mobile-label] {
    font-size:0!important;
    letter-spacing:0!important;
    line-height:1.3;
    white-space:nowrap;
  }
  .sidebar nav > .nav span[data-mobile-label]::after {
    content:attr(data-mobile-label);
    font-size:11px;
    font-weight:700;
  }
}

/* v3.7.2: Manufacturing chatbot visibility + portrait placement above the
   fixed 65px mobile navigation. PC layout and landscape fullscreen unchanged. */
.analytics-widget[hidden],.prod-mobile-mywork[hidden]{display:none!important}
@media (max-width:650px) and (orientation:portrait) {
  body.production-mobile-view:not(.production-mobile-immersive) .analytics-widget:not([hidden]) {
    right:max(10px, env(safe-area-inset-right,0px))!important;
    bottom:calc(65px + env(safe-area-inset-bottom,0px) + 10px)!important;
  }
  body.production-mobile-view:not(.production-mobile-immersive) .analytics-popup {
    height:min(460px,calc(100dvh - 165px))!important;
    max-height:calc(100dvh - 165px)!important;
  }
}

/* v3.7.2 — 소모품 규격·수량을 항상 같은 줄의 두 칸으로 표시 */
.consumable-fields{display:grid;gap:14px;min-width:0}
.consumable-spec-qty{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.consumable-spec-qty>label{min-width:0}
.consumable-spec-qty input{width:100%;min-width:0}
@media (max-width:380px){.consumable-spec-qty{gap:8px}}

/* v3.7.2 mobile analytics visibility fix: hidden always beats production layout. */
body.production-mobile-view #analyticsWidget[hidden],#analyticsWidget[hidden]{display:none!important}


/* ============================================================
 * 엠보드 / M-BOARD v3.8.0 · Visual identity only
 * Source: v3.7.2 mobile analytics hotfix
 * Keeps all existing workflows, screens, permissions and data logic.
 * ============================================================ */
:root{--mboard-yellow:#FFC300;--mboard-yellow-dark:#E6AF00;--mboard-charcoal:#17191C;--mboard-ink:#232323;--mboard-background:#F6F6F4;--mboard-edge:#E5E5E0;--mboard-muted:#667078;accent-color:var(--mboard-yellow)}
body{background:var(--mboard-background);color:var(--mboard-ink)}
.sidebar{background:linear-gradient(170deg,#202226 0%,#141517 74%,#1B1D21 100%);color:#F8F8F7}
.logo{gap:11px}.logo-mark{width:43px;height:43px;min-width:43px;border-radius:11px;background:#151515;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #454441;box-shadow:0 2px 10px #0003;font-size:0}
.logo-mark img{display:block;width:100%;height:100%;object-fit:contain}
.logo strong{font-size:22px;color:#fff;letter-spacing:-.7px}
.logo small{font-size:9px;letter-spacing:.9px;color:#BFC0BD;font-weight:700}
.side-label{color:#AFAEA8}.sidebar .nav{color:#D0D0CF;transition:background .14s,color .14s}
.sidebar .nav.active,.sidebar .nav:hover{background:var(--mboard-yellow);color:#161719;box-shadow:0 4px 14px #0002}
.sidebar .nav:focus-visible{outline:2px solid var(--mboard-yellow);outline-offset:2px}
.sidebar .mode-indicator,.sidebar .user-card small{color:#A8A9AC}
.sidebar .user-card{border-top-color:#424344}.avatar{background:#383A3E;color:#FFDE65}
.topbar{border-bottom:1px solid #E9E9E5;background:#FFFFFF}
.topbar .eyebrow{color:#8A6913;font-weight:850;letter-spacing:.9px}
.topbar h1{color:#1E2123}
.content{background:var(--mboard-background)}
.panel,.stat,.status-widget{border-color:var(--mboard-edge);box-shadow:0 4px 18px rgba(30,30,30,.035)}
.primary,#prodNew.primary,#prodBroadcastOpen.primary{background:var(--mboard-yellow);color:#17191C;border:1px solid var(--mboard-yellow-dark);font-weight:850;box-shadow:0 2px 7px #8C6D001B}
.primary:hover,#prodNew.primary:hover,#prodBroadcastOpen.primary:hover{background:#FFD33D;color:#17191C;border-color:#E5A800}
.primary:focus-visible,.secondary:focus-visible{outline:3px solid #FFC30099;outline-offset:2px}
.secondary,.month-buttons button{background:#FFF;color:#333A42;border-color:#DDDFDF}
.secondary:hover,.month-buttons button:hover{border-color:#C8A031;background:#FFFCF0}
.link-btn{color:#9D7200}.link-btn:hover{text-decoration:underline}
.stat-link:hover,.item:hover{background:#FFFDF5;border-color:#ECD891}
.day.selected{background:#FFF6D8;box-shadow:inset 0 0 0 2px #EDB600}
.day.today .day-num{background:#FFC300;color:#161719}.event.more{background:#FFF0B8;color:#785700}
.filters input:focus, .filters select:focus,form input:focus,form textarea:focus,form select:focus{outline:2px solid #F5C73F;border-color:#D9B034}
input[type=checkbox],input[type=radio]{accent-color:#E0AA00}
.consumable-check-label input{accent-color:#D99F00}
.consumable-image-link{color:#916D00}.consumable-hint{color:#9C7200!important}
.consumable-stats>div{background:#FFFDF6;border-color:#F1EBD7}
.analytics-launch{background:#222428;color:#FFD44A;box-shadow:0 5px 20px #0003}
.analytics-launch:hover{background:#34363B}
#statusView .status-board .section-head h2::before,#statusView .status-analytics .section-head h2::before,#statusView .status-widget h3::before{background:var(--mboard-yellow)}
#statusView .status-widget{border-color:#E7E7E1;background:#FFF}
#statusView .status-widget h3{color:#303030}
#statusView .status-bar-fill{background:#B98700}
#statusView .status-bar-fill.grade-2{background:#E0AE14}
#statusView .status-bar-fill.grade-3{background:#FFC83C}
#statusView .status-bar-fill.grade-4{background:#FCE7A7}
#statusView .status-bar-fill.grade-5{background:#E55C62}
#statusView .grade-guide .grade-tag{background:#967000;color:#fff}
#statusView .grade-guide .grade-tag-2{background:#C58A00}
#statusView .grade-guide .grade-tag-3{background:#E8B62F;color:#242424}
#statusView .grade-guide .grade-tag-4{background:#F5D376;color:#30280C}
#statusView .grade-guide .grade-tag-5{background:#DA5262;color:#fff}
#statusView .status-ungraded-link{color:#966C00;text-decoration-color:#E6CA77}
#statusView .status-ungraded-link:hover{background:#FFF4CD;color:#5D4300}
#statusView .status-ungraded-link:focus-visible{outline-color:#D1A700}
#statusView .status-lane.today{background:#FFF8E4;--lane:#DCA700;--lane-dark:#8F6900;--chip-bg:#FFF0B4}
#statusView .status-job:hover{border-color:#E8D99F;border-left-color:var(--lane)}
#statusView .status-top-asset-row:hover{background:#FFFBEB}
#statusView .status-asset-rank.rank-1{background:#FFD251;color:#4A3500}
#statusView .status-top-assets-head{background:#FAF8F0;border-bottom-color:#E8E3D5}
#statusView .status-chart-foot,#statusView .status-disclaimer{color:#7C7C76}
#statusView .status-donut strong{color:#292929}
#statusView .status-priority-row:hover{background:#FFFBEA}
.login-screen{background:radial-gradient(circle at 80% 10%,#41390F 0%,#17191C 55%,#121315 100%)}
.login-card{border:1px solid #EFEDE6;box-shadow:0 20px 80px #0003}
.login-logo{padding:0 0 14px}.login-logo strong{color:#191919}.login-logo small{color:#80631C}
/* Avoid recoloring severity/status semantics and the manufacturing schedule source cell colors. */
@media(max-width:650px){
 .topbar .eyebrow{color:#8A6808;font-size:11px;letter-spacing:.4px}
 .sidebar{background:#17191C;border-top:1px solid #383A3B}
 .sidebar .nav{color:#D8D9D6}
 .sidebar .nav.active,.sidebar .nav:hover{background:#FFC300;color:#1C1C1C}
 .sidebar nav > .nav span[data-mobile-label]::after{font-weight:850}
 .mobile-logout{background:#FFF;color:#323438;border-color:#E1E1DD}
 #statusView{display:none!important}
}

/* v3.9.0 production notice area: keep hidden TV indicators for synchronization logic. */
#productionView #prodTvStatus,#productionView #prodTitle,#productionView .prod-code-legend{display:none!important}
#productionView .prod-notice-panel{margin:5px 0 8px;padding:9px 12px;border:1px solid #deded8;border-radius:7px;background:#fff;flex:0 0 auto;min-height:48px}
#productionView .prod-notice-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px;font-size:15px}
#productionView .prod-notice-head>div{display:flex;gap:5px}
#productionView .prod-notice-head button,#productionView .prod-notice-line button{font-size:11px;min-height:24px;padding:3px 7px;margin:0}
#productionView .prod-notice-line{display:flex;align-items:center;gap:6px;margin-top:3px;line-height:1.35;font-size:14px}
#productionView .prod-notice-line>span{flex:1;white-space:pre-wrap;overflow-wrap:anywhere}
#productionView .prod-notice-empty{font-size:13px;color:#6b7280}
#productionView .prod-notice-panel #prodNoticeList{max-height:94px;overflow:auto}
#productionView .prod-table .prod-date-head{font-size:15px!important}
body.production-fullscreen #productionView .prod-table .prod-date-head{font-size:clamp(12px,.94vw,16px)!important}
body.production-mobile-view #productionView .prod-table .prod-date-head{font-size:12px!important}
#productionView .prod-product-stack .prod-entry{flex-direction:column;gap:1px}
#productionView .prod-entry-line{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;min-width:0;overflow:hidden}
#productionView .prod-entry-line .prod-entry-main{width:auto;flex:0 1 auto;min-width:0}
#productionView .prod-entry-note{color:#125dc6!important;font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:0 1 auto}
#productionView .prod-entry-warning{font-size:10px;font-weight:750;color:#674500;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.15}
#productionView .prod-product-stack .prod-entry.prod-notice-hit{background:#ffdf52!important;color:#222!important;box-shadow:inset 0 0 0 1px #dab200;border-radius:0}
#productionView .prod-notice-month{background:#ffef9c!important}
#prodNoticeHistoryList .prod-audit-item{border-bottom:1px solid #ddd;padding:9px 0}
#prodNoticeHistoryList pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f6f6f4;padding:6px;max-height:180px;overflow:auto}
body.production-mobile-immersive #productionView .prod-notice-panel{display:block!important;padding:4px 8px;margin:0;max-height:90px;overflow:auto}
body.production-mobile-immersive #productionView .prod-notice-head{font-size:11px;margin-bottom:1px}
body.production-mobile-immersive #productionView .prod-notice-line{font-size:11px}
@media(max-width:650px),(pointer:coarse){#prodNoticeHistory,#prodNoticeEdit,#prodNoticeList [data-notice-edit],#prodNoticeList [data-notice-delete]{display:none!important}}

/* v3.9.0: only the production notice dialog is draggable on PC. */
@media (min-width:651px) and (pointer:fine){
 #prodNoticeModal.modal-backdrop{background:transparent;}
 #prodNoticeModal>.modal{max-height:calc(100dvh - 16px);border:1px solid #c9cdd3;box-shadow:0 12px 40px #10182840;}
 #prodNoticeModal>.modal.prod-notice-moved{position:absolute;margin:0;}
 #prodNoticeModal .modal-header{cursor:move;user-select:none;touch-action:none;}
 #prodNoticeModal .modal-header.prod-notice-dragging{cursor:grabbing;}
 #prodNoticeModal .modal-header button{cursor:pointer;}
 #prodNoticeModal .prod-notice-drag-hint{font-size:11px;font-weight:400;color:#78818d;margin-left:auto;}
}
@media (max-width:650px), (pointer:coarse){#prodNoticeModal .prod-notice-drag-hint{display:none;}}

/* v3.9.1 feature gates */
body.production-access-denied .production-only-nav{display:none!important} .chat-only-panel{display:none!important} body.production-chat-only #productionView>*:not(.chat-only-panel){display:none!important}body.production-chat-only #productionView>.chat-only-panel{display:block!important} .production-permission-group{display:grid;gap:7px;min-width:210px}.production-permission-group .production-permission-toggle{white-space:normal}#equipmentEditor{scroll-margin-top:16px}#eqSavedStatus:not(:empty){color:#276843;margin-bottom:8px}

/* v3.9.2: cancel a saved vendor visit */
#vendorDelete{margin-right:auto;border-radius:10px;padding:10px 16px;white-space:nowrap;min-height:44px;}
@media(max-width:650px){#vendorModal .modal-footer{display:flex;flex-wrap:nowrap;gap:8px}#vendorModal .modal-footer button{min-width:0;white-space:nowrap}}
