/* STARS RCM PRO v2.8.0 — Planning Windows Workspace */
:root{--pw-bg:#0b0f17;--pw-panel:#131a26;--pw-panel2:#182232;--pw-border:#27344a;--pw-text:#eaf0f8;--pw-muted:#8f9db1;--pw-accent:#f5b700;--pw-blue:#4ba3ff;--pw-green:#34d399;--pw-red:#ff5d6c;--pw-yellow:#f5b700}
.pw-workspace{position:fixed;inset:0;z-index:12000;background:var(--pw-bg);color:var(--pw-text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}.pw-titlebar{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#0d131e;border-bottom:1px solid var(--pw-border);box-shadow:0 3px 18px rgba(0,0,0,.28)}.pw-brand{display:flex;align-items:center;gap:11px}.pw-app-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:linear-gradient(145deg,#ffd22f,#d99500);color:#16110a;font-weight:1000;font-size:18px;box-shadow:inset 0 1px rgba(255,255,255,.5)}.pw-brand b{display:block;font-size:13px;letter-spacing:.5px}.pw-brand small{display:block;color:var(--pw-muted);font-size:9px;margin-top:3px}.pw-title-actions{display:flex;gap:7px;align-items:center}.pw-title-actions button,.pw-head-actions button,.pw-table-wrap button,.pw-modal-actions button,.pw-filterbar button{border:1px solid var(--pw-border);border-radius:7px;background:#172131;color:var(--pw-text);padding:8px 11px;font-size:9px;font-weight:900;cursor:pointer}.pw-title-actions button:hover,.pw-head-actions button:hover,.pw-table-wrap button:hover{background:#223047}.pw-title-actions .pw-close{font-size:22px;padding:3px 11px;background:#331723;border-color:#633}.pw-body{display:grid;grid-template-columns:218px 1fr;height:calc(100vh - 62px)}.pw-sidebar{background:#0e1521;border-right:1px solid var(--pw-border);padding:12px 9px;overflow-y:auto}.pw-private-badge{font-size:8px;letter-spacing:1.2px;color:#ffb6bd;border:1px solid rgba(255,93,108,.35);background:rgba(255,93,108,.08);border-radius:7px;padding:8px 9px;margin:0 3px 10px}.pw-sidebar button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;border-radius:7px;background:transparent;color:#b8c4d4;padding:10px 11px;font-size:10px;font-weight:750;cursor:pointer;margin:2px 0}.pw-sidebar button span{width:20px;text-align:center;color:var(--pw-muted);font-size:13px}.pw-sidebar button:hover{background:#172131;color:white}.pw-sidebar button.active{background:linear-gradient(90deg,rgba(245,183,0,.2),rgba(245,183,0,.04));color:#ffd45c;border-left:3px solid var(--pw-accent);padding-left:8px}.pw-sidebar button.active span{color:#ffd45c}.pw-side-foot{font-size:7px;line-height:1.5;color:#5f6f85;border-top:1px solid var(--pw-border);margin:14px 4px;padding-top:12px;letter-spacing:.7px}.pw-main{overflow:auto;background:radial-gradient(circle at 80% -20%,rgba(63,102,164,.14),transparent 35%),var(--pw-bg)}#pwContent{min-width:960px;padding:20px 22px 40px}.pw-loading,.pw-empty{display:grid;place-items:center;min-height:180px;color:var(--pw-muted);text-align:center}.pw-empty b{color:#c8d2df;font-size:13px}.pw-empty p{font-size:9px;margin-top:6px}.pw-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:17px}.pw-page-head small{font-size:8px;letter-spacing:1.5px;color:var(--pw-accent);font-weight:900}.pw-page-head h1{font-size:24px;line-height:1.1;margin:5px 0 6px}.pw-page-head p{color:var(--pw-muted);font-size:10px;max-width:720px}.pw-head-actions{display:flex;gap:7px;align-items:center}.pw-primary{background:linear-gradient(145deg,#ffd12b,#d99a00)!important;color:#17120a!important;border-color:#e9ad05!important}.pw-primary:disabled{opacity:.55}.pw-kpis{display:grid;grid-template-columns:repeat(8,minmax(100px,1fr));gap:8px;margin-bottom:15px}.pw-kpis button{padding:12px;border:1px solid var(--pw-border);border-radius:9px;background:linear-gradient(145deg,#141d2b,#101722);color:var(--pw-text);text-align:left;cursor:pointer}.pw-kpis button:hover{border-color:#526b91;transform:translateY(-1px)}.pw-kpis small{display:block;color:var(--pw-muted);font-size:8px;text-transform:uppercase}.pw-kpis b{display:block;font-size:21px;margin-top:7px}.pw-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pw-panel{border:1px solid var(--pw-border);border-radius:10px;background:rgba(19,26,38,.92);padding:14px;overflow:hidden}.pw-panel h3{font-size:11px;margin-bottom:12px}.pw-span-2{grid-column:1/-1}.pw-table-wrap{border:1px solid var(--pw-border);border-radius:9px;overflow:auto;background:rgba(15,22,33,.95)}.pw-table-wrap table,.pw-panel table,.pw-detail-section table{width:100%;border-collapse:collapse;font-size:9px}.pw-table-wrap thead,.pw-panel thead,.pw-detail-section thead{position:sticky;top:0;z-index:2;background:#1b2637}.pw-table-wrap th,.pw-panel th,.pw-detail-section th{padding:10px 9px;text-align:left;color:#aebbd0;font-size:8px;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid var(--pw-border);white-space:nowrap}.pw-table-wrap td,.pw-panel td,.pw-detail-section td{padding:9px;border-bottom:1px solid rgba(39,52,74,.75);vertical-align:middle;white-space:nowrap}.pw-table-wrap tr:hover td{background:rgba(72,101,143,.09)}.pw-table-wrap td small,.pw-table-wrap td b{display:block}.pw-table-wrap td small{font-size:7px;color:var(--pw-muted);margin-top:3px;max-width:240px}.pw-wrap{white-space:normal!important;min-width:220px;max-width:380px;line-height:1.45}.pw-status{display:inline-block;border-radius:999px;padding:4px 7px;font-size:7px;font-weight:950;letter-spacing:.25px;background:#263248;color:#c8d2df;border:1px solid #3c4b64;white-space:nowrap}.pw-s-CLOSED,.pw-s-READY-CLOSE,.pw-s-AVAILABLE{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.45);color:#75e8bd}.pw-s-IN-PROGRESS,.pw-s-READY,.pw-s-READY-OPEN,.pw-s-SCHEDULED{background:rgba(75,163,255,.12);border-color:rgba(75,163,255,.45);color:#82c0ff}.pw-s-WAITING-PART,.pw-s-WAITING-RESOURCE,.pw-s-BACKLOG,.pw-s-PLANNING,.pw-s-PARTIAL,.pw-s-IN-ORDER{background:rgba(245,183,0,.12);border-color:rgba(245,183,0,.45);color:#ffd45b}.pw-s-CARRY-OVER,.pw-s-HOLD,.pw-s-SHORTAGE,.pw-s-OVER-ORDER-RISK{background:rgba(255,93,108,.12);border-color:rgba(255,93,108,.45);color:#ff8b96}.pw-priority{display:inline-block;padding:4px 6px;border-radius:5px;font-size:8px;font-weight:1000}.pw-p-P1x,.pw-p-P1{background:#ff4357;color:white}.pw-p-P2{background:#ff8f1f;color:#1b0e00}.pw-p-P3{background:#f5b700;color:#17120a}.pw-p-P4,.pw-p-P5{background:#37465c;color:#dbe4ef}.pw-progress{width:70px;height:5px;background:#273348;border-radius:999px;overflow:hidden}.pw-progress i{display:block;height:100%;background:linear-gradient(90deg,#ff5d6c,#f5b700,#34d399)}.pw-filterbar{display:flex;align-items:flex-end;gap:8px;margin:0 0 10px}.pw-filterbar input,.pw-filterbar select,.pw-filterbar label{border:1px solid var(--pw-border);border-radius:7px;background:#131c2a;color:var(--pw-text);padding:8px 10px;font-size:9px}.pw-filterbar input{min-width:270px}.pw-filterbar label{display:flex;flex-direction:column;gap:4px;color:var(--pw-muted);padding:5px 8px}.pw-filterbar label input{padding:2px;border:0;min-width:150px}.pw-budget-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.pw-budget-cards article{border:1px solid var(--pw-border);border-radius:10px;background:linear-gradient(145deg,#172131,#101722);padding:15px}.pw-budget-cards article>small{font-size:8px;color:var(--pw-accent);letter-spacing:1px}.pw-budget-cards h2{font-size:19px;margin:6px 0 12px}.pw-budget-cards article div{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--pw-border);font-size:9px}.pw-budget-cards article div span{color:var(--pw-muted)}.pw-budget-cards em{display:block;font-style:normal;font-size:8px;font-weight:950;color:#61ddb2;margin-top:10px}.pw-budget-cards em.risk{color:#ff7f8a}.pw-green{color:#6ee7b7}.pw-yellow{color:#ffd256}.pw-blue{color:#82c0ff}.pw-red{color:#ff8792}.pw-modal-backdrop{position:fixed;inset:0;z-index:13000;display:grid;place-items:center;padding:20px;background:rgba(1,4,9,.76);backdrop-filter:blur(6px)}.pw-modal{position:relative;width:min(620px,96vw);max-height:92vh;overflow:auto;border:1px solid #34455f;border-radius:13px;background:#111925;color:var(--pw-text);padding:21px;box-shadow:0 25px 80px rgba(0,0,0,.65)}.pw-modal.wide{width:min(1060px,96vw)}.pw-modal-x{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#aab6c8;font-size:24px;cursor:pointer}.pw-modal h2{font-size:19px;margin-bottom:5px}.pw-modal>p{font-size:9px;color:var(--pw-muted);margin-bottom:14px}.pw-lock-card{text-align:center;max-width:470px;margin:auto}.pw-lock-card.config{max-width:none}.pw-lock-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 9px;border-radius:15px;background:rgba(245,183,0,.11);border:1px solid rgba(245,183,0,.36);font-size:25px}.pw-lock-card>small{font-size:8px;color:var(--pw-accent);letter-spacing:1.4px}.pw-lock-card p{color:var(--pw-muted);font-size:10px;line-height:1.5;margin:8px auto 15px}.pw-lock-card>label{display:flex;flex-direction:column;gap:5px;text-align:left;font-size:8px;color:var(--pw-muted)}.pw-lock-card input,.pw-form-grid input,.pw-form-grid select,.pw-form-grid textarea{border:1px solid var(--pw-border);border-radius:7px;background:#0c121c;color:var(--pw-text);padding:9px;font-size:10px;outline:none}.pw-lock-card input:focus,.pw-form-grid input:focus,.pw-form-grid textarea:focus,.pw-form-grid select:focus{border-color:#8d701b;box-shadow:0 0 0 2px rgba(245,183,0,.08)}.pw-lock-actions,.pw-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.pw-lock-actions{justify-content:center}.pw-modal-actions.wrap{flex-wrap:wrap}.pw-security-note{margin-top:13px;border-top:1px solid var(--pw-border);padding-top:10px;color:#718096;font-size:7px;line-height:1.5}.pw-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pw-form-grid.three{grid-template-columns:repeat(3,1fr)}.pw-form-grid label{display:flex;flex-direction:column;gap:5px;color:#9caabc;font-size:8px;text-align:left}.pw-form-grid textarea{min-height:70px;resize:vertical}.pw-form-grid .span-3{grid-column:1/-1}.pw-readiness,.pw-role-box{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding:10px;border:1px solid var(--pw-border);border-radius:8px}.pw-readiness legend,.pw-role-box legend{font-size:8px;color:var(--pw-accent);padding:0 5px}.pw-readiness label,.pw-role-box label{display:flex;align-items:center;gap:5px;font-size:8px;color:#b9c5d5;background:#182231;border-radius:6px;padding:6px 8px}.pw-reset{display:flex;align-items:center;gap:7px;margin-top:10px;color:#ff9da6;font-size:8px}.pw-detail-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--pw-border);padding-bottom:12px}.pw-detail-head small{font-size:8px;color:var(--pw-accent)}.pw-detail-head h2{margin:3px 0}.pw-detail-head p{font-size:9px;color:var(--pw-muted)}.pw-detail-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.pw-detail-kpis div,.pw-detail-grid div{border:1px solid var(--pw-border);border-radius:7px;background:#172131;padding:9px}.pw-detail-kpis small,.pw-detail-grid small{display:block;font-size:7px;color:var(--pw-muted)}.pw-detail-kpis b,.pw-detail-grid b{display:block;font-size:12px;margin-top:4px}.pw-detail-section{margin-top:12px;border:1px solid var(--pw-border);border-radius:9px;background:#0e1622;padding:12px}.pw-detail-section h3{font-size:10px;margin-bottom:8px}.pw-detail-section>p{font-size:10px;line-height:1.55}.pw-detail-section>small{display:block;color:var(--pw-muted);font-size:8px;margin-top:6px}.pw-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.pw-modal button{border:1px solid var(--pw-border);border-radius:7px;background:#1a2535;color:var(--pw-text);padding:9px 12px;font-size:9px;font-weight:900;cursor:pointer}
@media(max-width:800px){.pw-titlebar{height:56px}.pw-brand b{font-size:10px}.pw-brand small{display:none}.pw-title-actions button:not(.pw-close){font-size:0;width:34px;height:34px;padding:0}.pw-title-actions button:first-child:before{content:'⇩';font-size:16px}.pw-title-actions button:nth-child(2):before{content:'🔒';font-size:14px}.pw-body{grid-template-columns:58px 1fr;height:calc(100vh - 56px)}.pw-sidebar{padding:8px 5px}.pw-private-badge,.pw-side-foot{display:none}.pw-sidebar button{justify-content:center;padding:10px 4px;font-size:0}.pw-sidebar button span{font-size:15px}.pw-sidebar button.active{padding-left:1px}.pw-main{overflow:auto}#pwContent{min-width:920px;padding:14px}.pw-modal-backdrop{padding:7px}.pw-modal{padding:16px}.pw-form-grid.three{grid-template-columns:1fr 1fr}.pw-form-grid .span-3{grid-column:1/-1}}
