.otw-page,.otw-dialog{color:#173b43;font-family:inherit;line-height:1.6}.otw-page{max-width:1200px;margin:0 auto;padding:12px 0 40px}.otw-page *,.otw-dialog *{box-sizing:border-box}.otw-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.otw-header h2{font-size:30px;margin:3px 0}.otw-header p{margin:0;color:#647780}.otw-eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700;color:#008c91}.otw-actions{display:flex;gap:10px;flex-wrap:wrap}.otw-page button,.otw-dialog button{min-height:44px;border:1px solid #cfdee1;border-radius:10px;background:white;color:#224750;padding:10px 16px;font:inherit;font-weight:600;cursor:pointer}.otw-page button:disabled,.otw-dialog button:disabled{opacity:.5;cursor:wait}.otw-page button.otw-primary,.otw-dialog button.otw-primary{background:#00898b;border-color:#00898b;color:white}.otw-mode{display:flex;gap:18px;align-items:center;padding:18px 22px;border:1px solid #d4e7e6;background:#f0f9f7;border-radius:14px;margin-bottom:24px}.otw-mode span{color:#55716f;font-size:13px}.otw-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.otw-tabs button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:18px}.otw-tabs button[aria-pressed=true]{border:2px solid #00898b;background:#ecf8f7;color:#007275}.otw-tabs b{background:#e9f0f1;border-radius:8px;padding:2px 10px}.otw-filter{display:flex;align-items:end;gap:16px;margin-bottom:18px}.otw-filter label{max-width:420px;width:100%}.otw-filter>span,.otw-hint{color:#667c82;font-size:13px}.otw-page label,.otw-dialog label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600}.otw-page input,.otw-dialog input,.otw-dialog select,.otw-dialog textarea,.otw-page select,.otw-page textarea{min-height:46px;border:1px solid #c9dadd;border-radius:9px;padding:11px 12px;font:inherit;background:white;color:#173b43;width:100%;min-width:0}.otw-dialog textarea,.otw-page textarea{min-height:90px;resize:vertical}.otw-page :focus-visible,.otw-dialog :focus-visible{outline:3px solid #9cdcd9;outline-offset:2px}.otw-card{display:flex;justify-content:space-between;gap:24px;padding:24px;border:1px solid #dce8e9;border-radius:14px;background:white;margin-bottom:14px}.otw-card h3{margin:9px 0 4px;font-size:18px}.otw-card h3 small{font-size:12px;font-weight:400;color:#687c82}.otw-card p{margin:6px 0;overflow-wrap:anywhere}.otw-card small{color:#647a80}.otw-card-side{display:flex;flex-direction:column;gap:14px;justify-content:center;align-items:end;flex-shrink:0}.otw-card-side strong{font-size:22px}.otw-badge{display:inline-block;font-size:12px;padding:4px 10px;border-radius:6px;background:#edf4f5;color:#387077}.otw-warning{color:#915817;background:#fff5e4;padding:12px;border-radius:8px}.otw-empty{padding:48px 24px;text-align:center;background:#fff;border:1px dashed #cbdcde;border-radius:14px;color:#647a80}.otw-empty h3{color:#244c52}.otw-dialog{border:0;border-radius:18px;padding:28px;width:min(720px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #1236}.otw-dialog::backdrop{background:#10323c77}.otw-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.otw-dialog h2{font-size:21px;margin:0}.otw-grid,.otw-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.otw-summary{padding:18px;background:#f5f8f8;border-radius:12px}.otw-summary span,.otw-summary strong{display:block}.otw-summary span{font-size:12px;color:#657b80}.otw-summary strong{font-size:15px;margin-top:5px}.otw-check{flex-direction:row!important;align-items:flex-start;margin:20px 0;font-weight:400!important}.otw-check input{width:20px!important;min-height:20px!important;height:20px;flex-shrink:0;margin-top:3px;accent-color:#00898b}.otw-preview{display:block;background:#edf8f5;padding:20px;border-radius:12px;margin:20px 0;font-weight:600}.otw-preview>strong{font-size:26px}.otw-preview p{font-size:13px;font-weight:400;overflow-wrap:anywhere}.otw-dialog [data-error],.otw-page [data-error]{color:#b13e32;overflow-wrap:anywhere}.otw-dialog details{margin-top:24px;border-top:1px solid #dce5e6;padding-top:16px}.otw-dialog summary{cursor:pointer;padding:10px 0;font-weight:600}.otw-history-detail{display:block;color:#63777c;overflow-wrap:anywhere}.otw-employee{max-width:680px;margin:auto;padding:24px 16px 60px}.otw-employee form{background:white;padding:24px;border:1px solid #dce8e9;border-radius:16px;margin:24px 0}.otw-employee>header h1{margin:4px 0;font-size:28px}.otw-employee>header p{margin:4px 0}.otw-employee .otw-card{display:block}.otw-employee button[type=submit]{width:100%;margin-top:12px}
@media(max-width:720px){.otw-header,.otw-mode,.otw-filter{align-items:stretch;flex-direction:column;gap:12px}.otw-header .otw-actions button{flex:1}.otw-tabs{grid-template-columns:1fr 1fr;gap:8px}.otw-tabs button{padding:12px;font-size:13px}.otw-card{flex-direction:column;padding:18px;gap:16px}.otw-card-side{align-items:stretch}.otw-card-side strong{font-size:20px}.otw-dialog{padding:20px 16px}.otw-grid,.otw-summary{grid-template-columns:1fr;gap:14px}.otw-dialog .otw-actions{flex-direction:column}.otw-employee form{padding:18px}.otw-dialog h2{font-size:18px}}
/* P10.54: make the next task, paid time and submission result explicit. */
.otw-section-title{font-size:16px;margin:0 0 14px}.otw-time-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.otw-break{max-width:260px;margin:16px 0}.otw-break small,.otw-paytime small{font-size:12px;font-weight:400;color:#536c73}.otw-duration{display:flex;flex-direction:column;gap:4px;background:#edf7f5;border:1px solid #d1e7e2;border-radius:12px;padding:16px;margin:20px 0;color:#225e59;font-size:14px}.otw-duration strong{font-size:25px}.otw-duration small{font-size:12px;color:#526e6a}.otw-duration.is-invalid{background:#fff4e5;border-color:#edd8b7;color:#83521b}.otw-stage-guide{border-left:3px solid #00898b;padding:2px 0 2px 16px;margin:0 0 24px}.otw-stage-guide strong{font-size:17px}.otw-stage-guide p{font-size:14px;color:#546f77;margin:5px 0}.otw-success{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #b9ddce;background:#eaf7ef;border-radius:14px;padding:18px 22px;margin:0 0 22px;color:#205b40}.otw-success p{margin:5px 0 0;font-size:14px}.otw-success:focus{outline:2px solid #00898b;outline-offset:3px}.otw-badge[data-status=pending]{background:#fff3dd;color:#855411}.otw-badge[data-status=approved]{background:#edf1ff;color:#445589}.otw-badge[data-status=ready]{background:#e1f4ed;color:#226847}.otw-badge[data-status=exported]{background:#e9f2f5;color:#386577}.otw-badge[data-status=attention],.otw-badge[data-status=rejected]{background:#fceee9;color:#9b432f}.otw-badge[data-status=cancelled]{background:#edf0f1;color:#606d73}.otw-requested{color:#516c75;font-size:14px}.otw-card>div:first-child{min-width:0}.otw-card h3,.otw-card small,.otw-dialog h2{overflow-wrap:anywhere}.otw-card-side{max-width:280px}.otw-card-side small{margin-top:-10px}.otw-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.otw-compare>div{border:1px solid #dce7e8;border-radius:12px;padding:16px}.otw-compare span{display:block;font-size:12px;color:#586f76}.otw-compare strong{display:block;font-size:23px;margin-top:6px}.otw-paytime{border:0;padding:0;margin:24px 0}.otw-paytime legend{font-weight:600;font-size:15px;padding:0}.otw-paytime .otw-time-pair{margin:10px 0}.otw-dialog .otw-preview{display:flex;flex-direction:column;gap:7px}.otw-dialog .otw-preview>span{font-size:13px;font-weight:400}.otw-dialog .otw-preview>strong{font-size:30px;line-height:1.4;font-variant-numeric:tabular-nums}.otw-dialog .otw-preview small{font-size:15px;font-weight:500}.otw-dialog .otw-help,.otw-page .otw-help{border:0;margin:12px 0 20px;padding:0;font-size:13px;color:#536f76}.otw-help summary{min-height:44px;display:list-item;padding:10px 0;cursor:pointer}.otw-help p{margin:8px 0 16px;line-height:1.7;overflow-wrap:anywhere}.otw-form-footer{border-top:1px solid #dce7e8;background:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 4px;margin-top:20px}.otw-form-footer>span{color:#566e74;font-size:12px;max-width:200px}.otw-form-footer button{flex-shrink:0}.otw-dialog header{position:sticky;top:-28px;background:white;z-index:2;padding:14px 0;margin-top:-14px;border-bottom:1px solid #e2eaec}.otw-dialog header button{flex-shrink:0}.otw-dialog .otw-form-footer{position:sticky;bottom:-28px;padding-bottom:20px;z-index:1}.otw-dialog [data-error]:not(:empty),.otw-page [data-error]:not(:empty),.otw-page [data-history-error]:not(:empty){padding:14px;background:#fff0ec;border:1px solid #e9b8aa;border-radius:10px;outline-offset:3px}.otw-employee{max-width:720px}.otw-employee-tabs{display:flex;gap:8px;margin:24px 0 20px;padding:5px;background:#e7eeee;border-radius:12px}.otw-employee-tabs button{border-color:transparent;background:transparent;flex:1;padding:10px 8px}.otw-employee-tabs button[aria-pressed=true]{background:white;color:#007d7e;box-shadow:0 2px 6px #173b4310}.otw-employee-tabs b{font-size:12px;padding:2px 6px;background:#e8f3f0;border-radius:5px}.otw-employee [hidden]{display:none!important}.otw-employee form{margin:0}.otw-employee .otw-form-footer{display:flex;flex-direction:column;gap:8px;position:sticky;bottom:0;padding:14px 0 8px}.otw-employee .otw-form-footer>span{max-width:none}.otw-employee .otw-form-footer button{margin:0}.otw-history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 20px}.otw-history-heading h2{font-size:18px;margin:0}.otw-employee .otw-card{margin-top:14px}.otw-decision{background:#f4f7f7;border-radius:8px;padding:12px}.otw-subtitle{color:#526e76}.otw-employee input,.otw-employee select,.otw-employee textarea,.otw-dialog input,.otw-dialog select,.otw-dialog textarea{font-size:16px}.otw-tabs{align-items:stretch}.otw-tabs button{min-width:0}.otw-tabs b{flex-shrink:0}
@media(max-width:720px){.otw-success{flex-direction:column;align-items:stretch;padding:18px}.otw-card-side{max-width:none}.otw-card-side small{margin-top:-6px}.otw-compare>div{padding:12px}.otw-compare strong{font-size:20px}.otw-dialog .otw-form-footer{flex-direction:column;align-items:stretch;gap:10px;bottom:-20px;padding-bottom:18px}.otw-dialog .otw-form-footer>span{max-width:none}.otw-dialog header{top:-20px}.otw-employee{padding-top:20px}.otw-employee form{padding:18px 14px}.otw-employee .otw-grid{gap:16px}.otw-time-pair{gap:10px}.otw-page input[type=time],.otw-dialog input[type=time]{padding:10px 7px}.otw-break{max-width:none}.otw-history-heading{align-items:center}.otw-employee-tabs button{font-size:14px}.otw-header h2{font-size:28px}.otw-stage-guide p{font-size:13px}.otw-tabs button{padding:12px 10px;gap:6px}.otw-tabs b{padding:2px 7px}.otw-compare span{min-height:38px}}
@media(prefers-reduced-motion:reduce){.otw-page *,.otw-dialog *{scroll-behavior:auto!important}}
.otw-dialog{box-sizing:border-box}.otw-mode-help{margin:0 0 20px;border-top:1px solid #dce7e8;border-bottom:1px solid #dce7e8;color:#4d6c73;font-size:13px}.otw-mode-help summary{padding:12px 0;min-height:44px;cursor:pointer}.otw-mode-help summary strong{color:#235860}.otw-mode-help p{margin:0 0 14px}.nk-ot-dialog button.primary-btn{background:#00898b;color:white;border-color:#00898b}.nk-ot-dialog details{border-top:1px solid #dbe5e6;margin-top:20px}.nk-ot-dialog summary{font-weight:600}.nk-ot-dialog h3{font-size:16px;margin:22px 0 10px}
/* Isolate dynamic OT dialogs from the legacy global three-row dialog form. */
#otwDialog,#nkOtDialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:fit-content;min-height:0;max-height:calc(100dvh - 32px);padding:28px;border:1px solid #dbe6e8;border-radius:18px;overflow:auto;scroll-padding:80px 0 125px}
#otwDialog>form,#nkOtDialog>form{display:block;grid-template-rows:none;height:auto;min-height:0;max-height:none;overflow:visible;padding:0;margin:0;min-width:0}
@media(max-width:720px){#otwDialog,#nkOtDialog{padding:20px 16px;max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);width:calc(100vw - 24px)}#otwDialog h2{font-size:18px;line-height:1.5}}
