:root{
  --rk-bg:#eef3fb;
  --rk-card:#ffffff;
  --rk-primary:#1f5eff;
  --rk-primary-dark:#174bd1;
  --rk-dark:#101828;
  --rk-muted:#667085;
  --rk-border:#e4e7ec;
  --rk-green:#12b76a;
  --rk-red:#f04438;
  --rk-yellow:#f79009;
  --rk-blue:#2e90fa;
}
html,body{height:100%;}
body.nimbussf-login-modern{background:linear-gradient(135deg,#eaf0ff 0%,#f8fbff 50%,#eef7f2 100%);font-family:'Inter','Segoe UI',Arial,sans-serif;}
.rk-login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px;}
.rk-login-card{width:100%;max-width:460px;background:#fff;border-radius:24px;box-shadow:0 24px 80px rgba(16,24,40,.16);padding:34px;border:1px solid rgba(255,255,255,.7);}
.rk-login-logo{text-align:center;margin-bottom:18px}.rk-login-logo img{max-width:230px;height:auto}.rk-login-title{font-size:28px;font-weight:800;text-align:center;margin:10px 0 4px;color:var(--rk-dark)}.rk-login-subtitle{text-align:center;color:var(--rk-muted);margin-bottom:24px}.rk-form-label{font-size:13px;font-weight:700;color:#344054;margin-bottom:7px;display:block}.rk-input{height:50px;border:1px solid #d0d5dd;border-radius:14px;padding:10px 14px;width:100%;font-size:16px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04)}.rk-input:focus{outline:none;border-color:#84adff;box-shadow:0 0 0 4px rgba(47,111,237,.12)}.rk-password-row{display:flex;align-items:center;gap:8px;margin-top:8px;color:#667085;font-size:13px}.rk-btn-primary{height:52px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--rk-primary),#6d5cff);color:#fff;font-weight:800;font-size:16px;width:100%;box-shadow:0 12px 28px rgba(31,94,255,.25)}.rk-btn-primary:hover{background:linear-gradient(135deg,var(--rk-primary-dark),#5847e8);color:#fff}.rk-machine-note{background:#f2f4f7;border:1px dashed #d0d5dd;border-radius:14px;padding:10px 12px;font-size:12px;color:#475467;margin-bottom:16px}
body.nimbussf-hmi{margin:0;background:var(--rk-bg);font-family:'Inter','Segoe UI',Arial,sans-serif;color:var(--rk-dark);overflow-x:hidden}.hmi-page{min-height:100vh;padding:24px}.hmi-shell{max-width:1420px;margin:0 auto}.hmi-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.hmi-brand{display:flex;align-items:center;gap:14px}.hmi-logo-box{width:54px;height:54px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(16,24,40,.08)}.hmi-logo-box img{max-width:42px;max-height:42px}.hmi-title-small{font-size:13px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.07em}.hmi-machine-title{font-size:28px;font-weight:850;margin:2px 0 0}.hmi-actions-top{display:flex;gap:12px;align-items:center}.hmi-user-pill{background:#fff;border:1px solid var(--rk-border);border-radius:999px;padding:12px 16px;font-weight:700;color:#344054;box-shadow:0 8px 28px rgba(16,24,40,.07)}.hmi-logout{background:#fff;border:1px solid var(--rk-border);border-radius:999px;padding:12px 18px;color:#f04438;font-weight:800;text-decoration:none;box-shadow:0 8px 28px rgba(16,24,40,.07)}.hmi-logout:hover{text-decoration:none;color:#d92d20}.hmi-card{background:#fff;border:1px solid var(--rk-border);border-radius:28px;box-shadow:0 18px 60px rgba(16,24,40,.10)}.hmi-card.pad{padding:28px}.hmi-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.hmi-job-card{padding:28px}.hmi-job-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hmi-kv{background:#f8fafc;border:1px solid #eef2f6;border-radius:18px;padding:14px 16px}.hmi-kv label{display:block;font-size:12px;color:#667085;margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}.hmi-kv strong{font-size:18px;color:#101828}.hmi-process-name{font-size:44px;line-height:1.05;font-weight:900;margin:18px 0;text-transform:uppercase}.hmi-running-box{text-align:center;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border-radius:26px;padding:26px;border:1px solid #dbeafe}.hmi-running-label{font-size:15px;color:#667085;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.hmi-running-time{font-size:74px;line-height:1;font-weight:950;margin-top:8px;font-variant-numeric:tabular-nums;color:#101828}.hmi-btn-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.hmi-big-btn{border:0;border-radius:22px;min-height:86px;font-size:22px;font-weight:900;color:#fff;box-shadow:0 16px 34px rgba(16,24,40,.16)}.hmi-big-btn.finish{background:linear-gradient(135deg,#12b76a,#079455)}.hmi-big-btn.wait{background:linear-gradient(135deg,#f79009,#dc6803)}.hmi-big-btn.no{background:linear-gradient(135deg,#f04438,#d92d20)}.hmi-big-btn.blue{background:linear-gradient(135deg,#2e90fa,#175cd3)}.hmi-big-btn.dark{background:linear-gradient(135deg,#344054,#101828)}.hmi-big-btn.gray{background:linear-gradient(135deg,#667085,#475467)}.hmi-big-btn:hover{filter:brightness(.97)}.hmi-section-title{font-size:18px;font-weight:900;margin:0 0 14px}.hmi-timeline{display:flex;flex-direction:column;gap:12px}.hmi-time-item{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#f8fafc;border:1px solid #eef2f6;border-radius:16px;padding:14px 16px}.hmi-time-item .name{font-weight:800;color:#344054}.hmi-time-item .time{font-size:22px;font-weight:950;font-variant-numeric:tabular-nums}.hmi-time-item.active{background:#ecfdf3;border-color:#abefc6}.hmi-center{min-height:calc(100vh - 48px);display:flex;align-items:center;justify-content:center}.hmi-choice-card{max-width:980px;width:100%;padding:34px}.hmi-choice-title{text-align:center;font-size:38px;font-weight:950;margin:0 0 8px}.hmi-choice-sub{text-align:center;color:#667085;font-size:18px;margin-bottom:28px}.hmi-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hmi-choice-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;border-radius:30px;text-decoration:none;color:#fff;font-weight:900;box-shadow:0 22px 60px rgba(16,24,40,.18)}.hmi-choice-btn .icon{font-size:54px;margin-bottom:12px}.hmi-choice-btn .title{font-size:30px}.hmi-choice-btn .desc{font-size:14px;opacity:.9;margin-top:6px}.hmi-choice-btn.continue{background:linear-gradient(135deg,#2e90fa,#175cd3)}.hmi-choice-btn.new{background:linear-gradient(135deg,#12b76a,#079455)}.hmi-choice-btn:hover{color:#fff;text-decoration:none;filter:brightness(.98)}.hmi-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hmi-form-group label{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#667085;font-weight:800}.hmi-form-control{width:100%;height:56px;border:1px solid #d0d5dd;border-radius:16px;padding:10px 15px;font-size:20px;font-weight:700;background:#fff}.hmi-form-control:focus{outline:none;border-color:#84adff;box-shadow:0 0 0 4px rgba(47,111,237,.12)}.hmi-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.hmi-status-empty{text-align:center;max-width:820px;padding:42px}.hmi-status-empty .big{font-size:42px;font-weight:950;margin:10px 0}.hmi-status-empty .muted{font-size:18px;color:#667085}.hmi-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hmi-done-badge{display:inline-block;background:#ecfdf3;color:#067647;border:1px solid #abefc6;border-radius:999px;padding:10px 18px;font-weight:900}.hmi-finish-title{font-size:48px;font-weight:950;margin:16px 0 12px}.hmi-hidden-submit{display:none}.hmi-alert{border-radius:18px;padding:16px 18px;margin-bottom:16px;font-weight:700}.hmi-alert.error{background:#fef3f2;border:1px solid #fecdca;color:#b42318}.hmi-alert.ok{background:#ecfdf3;border:1px solid #abefc6;color:#067647}.admin-hmi-flow .flow-row{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}.admin-hmi-flow .flow-order{width:42px;height:42px;border-radius:12px;background:#eff6ff;color:#175cd3;font-weight:900;display:flex;align-items:center;justify-content:center;margin-right:12px}.admin-hmi-flow .flow-name{font-weight:800;font-size:16px}.admin-hmi-flow .flow-left{display:flex;align-items:center}.admin-hmi-flow .flow-actions{display:flex;gap:8px}.rk-modern-box{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 12px 32px rgba(16,24,40,.08);margin-bottom:16px}.rk-admin-title{font-size:24px;font-weight:900;margin:0 0 6px}.rk-admin-sub{color:#667085;margin-bottom:16px}
@media(max-width:1000px){.hmi-grid,.hmi-summary-grid{grid-template-columns:1fr}.hmi-job-grid{grid-template-columns:repeat(2,1fr)}.hmi-running-time{font-size:56px}.hmi-btn-row{grid-template-columns:1fr}.hmi-choice-grid{grid-template-columns:1fr}.hmi-form-grid{grid-template-columns:1fr}.hmi-page{padding:14px}.hmi-process-name{font-size:34px}}

/* HMI modal untuk keterangan WAIT / NOT FINISH */
.hmi-modal-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.58);z-index:9999;align-items:center;justify-content:center;padding:24px;}
.hmi-modal-card{width:100%;max-width:720px;background:#fff;border-radius:30px;padding:30px;box-shadow:0 30px 90px rgba(16,24,40,.30);border:1px solid rgba(255,255,255,.6);}
.hmi-modal-title{font-size:32px;font-weight:950;color:#101828;margin-bottom:6px;text-transform:uppercase;}
.hmi-modal-sub{font-size:16px;color:#667085;font-weight:700;}
.hmi-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px;}
