:root{--navy:#0d3156;--navy-2:#123f6e;--navy-3:#0a2746;--gold:#d7a928;--gold-2:#b8860b;--bg:#f1f5f9;--card:#fff;--line:#d8e2ec;--text:#0c2f54;--muted:#687b91;--green:#119a61;--red:#c83e4d;--orange:#c77612;--purple:#6b4bb8}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Tahoma,Arial,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);direction:rtl}button,input,select,textarea{font-family:inherit}[hidden]{display:none!important}
.topbar{background:linear-gradient(135deg,var(--navy-3),var(--navy));color:#fff;border-bottom:3px solid var(--gold);padding:20px 24px;box-shadow:0 8px 26px rgba(10,39,70,.16)}
.topbar-inner{max-width:1500px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand h1{margin:0;font-size:27px;font-weight:900}.brand p{margin:7px 0 0;font-size:14px;font-weight:700;color:#d9e7f3}.brand-badge{border:1px solid rgba(215,169,40,.75);background:rgba(215,169,40,.12);padding:10px 14px;border-radius:14px;color:#ffe69a;font-weight:900;white-space:nowrap}
.container{max-width:1500px;margin:22px auto;padding:0 20px 38px}.intro-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 10px 30px rgba(13,49,86,.07)}.intro-card strong{font-size:20px;font-weight:900;color:var(--navy)}.intro-card p{margin:6px 0 0;font-weight:700;color:var(--muted);line-height:1.8}.flow-pill{background:var(--navy);color:#fff;border:1px solid var(--gold);border-radius:14px;padding:11px 16px;font-weight:900;white-space:nowrap}
.cards-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:26px 0 14px}.cards-title h2{margin:0;color:var(--navy);font-size:23px;font-weight:900}.cards-title span{font-size:13px;color:var(--muted);font-weight:800}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stage-card{appearance:none;text-align:right;min-height:188px;border:1px solid #dce5ee;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);padding:17px;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 10px 24px rgba(13,49,86,.07);transition:.2s ease;color:var(--text)}.stage-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--gold)}.stage-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(13,49,86,.15);border-color:#c7d6e5}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.stage-icon{width:46px;height:46px;border-radius:13px;background:var(--navy);border:2px solid var(--gold);color:#fff;display:grid;place-items:center;font-weight:900;font-size:19px}.stage-status{font-size:12px;color:#7b650e;background:#fff8d8;border:1px solid #efd67e;border-radius:999px;padding:6px 9px;font-weight:900}.stage-card h3{margin:13px 0 7px;font-size:18px;color:var(--navy);font-weight:900;line-height:1.5}.stage-card p{margin:0;color:#64758a;font-size:13px;font-weight:700;line-height:1.8;min-height:50px}.card-progress{height:5px;background:#e7edf3;border-radius:20px;margin:14px 0 9px;overflow:hidden}.card-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),#f1c544);border-radius:20px}.stage-card small{font-weight:900;color:#7a8795}
.page-view{animation:pageIn .2s ease}@keyframes pageIn{from{opacity:.25;transform:translateY(7px)}to{opacity:1;transform:none}}.detail-panel{background:#fff;border-radius:22px;overflow:hidden;border:1px solid var(--line);box-shadow:0 14px 38px rgba(13,49,86,.1)}.detail-panel-head{background:linear-gradient(135deg,var(--navy),#123b64);color:#fff;border-bottom:3px solid var(--gold);padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.detail-id{display:flex;align-items:center;gap:14px}.detail-number{width:50px;height:50px;border-radius:14px;border:2px solid var(--gold);display:grid;place-items:center;font-size:21px;font-weight:900;color:#ffe27a}.detail-panel-head h2{margin:0;font-size:23px;font-weight:900}.detail-panel-head p{margin:5px 0 0;color:#d9e7f3;font-size:13px;font-weight:800}.output-badge{max-width:520px;border:1px solid rgba(215,169,40,.75);background:rgba(215,169,40,.1);color:#ffe790;border-radius:13px;padding:10px 13px;font-weight:900;line-height:1.6}.detail-body{padding:20px}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.btn{border:none;border-radius:11px;padding:11px 16px;font-size:14px;font-weight:900;cursor:pointer;transition:.15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--navy);color:#fff}.btn.gold{background:var(--gold);color:#102c48}.btn.light{background:#edf3f8;color:var(--navy);border:1px solid #d5e0ea}.btn.danger{background:#fff0f1;color:#9f2632;border:1px solid #efc1c6}.btn.small{padding:7px 10px;font-size:12px}.file-label{display:inline-flex;align-items:center;gap:8px}.file-label input{display:none}
.filters{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;background:#f8fbfd;border:1px solid #dbe5ee;border-radius:16px;padding:14px;margin-bottom:16px}.field label{display:block;font-size:12px;font-weight:900;color:#516a82;margin:0 2px 6px}.field input,.field select,.field textarea{width:100%;border:1px solid #ccd9e5;border-radius:10px;background:#fff;padding:10px 11px;color:#173753;font-weight:700;outline:none}.field textarea{min-height:95px;resize:vertical;line-height:1.7}.field input:focus,.field select:focus,.field textarea:focus{border-color:#8aa9c5;box-shadow:0 0 0 3px rgba(13,49,86,.06)}
.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.kpi{border:1px solid #dce5ee;background:linear-gradient(180deg,#fff,#fbfdff);border-radius:15px;padding:14px;box-shadow:0 7px 18px rgba(13,49,86,.055)}.kpi span{display:block;color:#718399;font-size:12px;font-weight:900;margin-bottom:7px}.kpi strong{display:block;color:var(--navy);font-size:22px;font-weight:900}.kpi small{color:#7d8b99;font-weight:700}
.table-wrap{overflow:auto;border:1px solid #d6e0e9;border-radius:16px;max-height:66vh}.data-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;min-width:1450px}.data-table th,.data-table td{border-bottom:1px solid #e0e7ee;border-left:1px solid #edf1f5;padding:11px 12px;vertical-align:top;font-size:13px;line-height:1.6;font-weight:700;white-space:nowrap}.data-table th{position:sticky;top:0;z-index:2;background:#eef4f9;color:var(--navy);font-weight:900}.data-table td.wrap{white-space:normal;min-width:260px;max-width:420px}.data-table tr:hover td{background:#fbfdff}.data-table tr:last-child td{border-bottom:none}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;border:1px solid}.badge.new{background:#eef5ff;color:#24558a;border-color:#bfd3e9}.badge.ok{background:#eaf8f2;color:#14724b;border-color:#b6e4d0}.badge.warn{background:#fff7e5;color:#91600c;border-color:#ecd69b}.badge.no{background:#fff0f1;color:#9d2c36;border-color:#efc5c9}.badge.neutral{background:#f1f4f7;color:#56697c;border-color:#d7e0e8}
.detail-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e1e8ef;margin-top:16px;padding-top:16px}.step-indicator{font-size:13px;color:var(--muted);font-weight:900}.nav-buttons{display:flex;gap:10px}.nav-btn{border:none;border-radius:11px;padding:11px 18px;font-size:15px;font-weight:900;cursor:pointer}.nav-btn.primary{background:var(--navy);color:#fff}.nav-btn.secondary{background:var(--gold);color:#102c48}
.modal-backdrop{position:fixed;inset:0;background:rgba(4,19,33,.58);z-index:1000;display:grid;place-items:center;padding:20px}.modal{width:min(1180px,96vw);max-height:92vh;background:#fff;border-radius:22px;box-shadow:0 28px 90px rgba(0,0,0,.28);overflow:hidden;display:flex;flex-direction:column}.modal-head{background:linear-gradient(135deg,var(--navy-3),var(--navy));color:#fff;border-bottom:3px solid var(--gold);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head h3{margin:0;font-size:21px}.close-btn{border:none;background:rgba(255,255,255,.12);color:#fff;width:38px;height:38px;border-radius:10px;font-size:22px;cursor:pointer}.modal-body{padding:18px 20px;overflow:auto}.form-section{border:1px solid #dce5ee;border-radius:16px;margin-bottom:14px;overflow:hidden}.form-section-title{background:#eef4f9;padding:11px 14px;color:var(--navy);font-weight:900;border-bottom:1px solid #dce5ee}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}.form-grid .span2{grid-column:span 2}.form-grid .span4{grid-column:1/-1}.money-box{background:#fff8dd;border:1px solid #ecd676;border-radius:12px;padding:12px}.money-box span{display:block;color:#7a6418;font-size:11px;font-weight:900}.money-box strong{font-size:18px;color:#3c3211}.timeline{display:flex;flex-direction:column;gap:8px;margin-top:12px}.timeline-item{border-right:4px solid var(--gold);background:#f8fbfd;border-radius:10px;padding:10px 12px}.timeline-item strong{display:block;color:var(--navy);font-size:13px}.timeline-item small{color:#76889b;font-weight:700}.timeline-item p{margin:5px 0 0;color:#314b64;line-height:1.7;font-weight:700;white-space:pre-wrap}.modal-foot{border-top:1px solid #dfe7ee;padding:13px 20px;display:flex;justify-content:flex-start;gap:10px;background:#fbfdff}
.qa-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.qa-search{flex:1;min-width:260px}.qa-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.qa-tab{border:1px solid #d3dee8;background:#fff;color:var(--navy);border-radius:999px;padding:8px 13px;font-weight:900;cursor:pointer}.qa-tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}.accordion{border:1px solid #d8e2ec;border-radius:14px;background:#fff;margin-bottom:9px;overflow:hidden}.accordion button{width:100%;border:none;background:#fff;color:var(--navy);padding:14px 16px;font-size:15px;font-weight:900;text-align:right;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}.accordion button:hover{background:#fbfdff}.accordion .arrow{width:30px;height:30px;border-radius:9px;background:#eef4f9;display:grid;place-items:center;transition:.2s}.accordion.open .arrow{transform:rotate(180deg);background:#fff4c9}.accordion-body{display:none;padding:0 16px 16px;color:#294760;line-height:2;font-weight:700;border-top:1px solid #edf1f5;white-space:pre-line}.accordion.open .accordion-body{display:block}.group-heading{display:flex;align-items:center;gap:10px;margin:23px 0 10px;color:var(--navy)}.group-heading:before{content:"";width:7px;height:28px;border-radius:7px;background:var(--gold)}.group-heading h3{margin:0;font-size:18px}
.footer-note{margin-top:16px;padding:12px 14px;border:1px solid #f0cf72;background:#fff9e8;border-radius:13px;color:#745800;font-size:13px;font-weight:900;line-height:1.8}.toast{position:fixed;bottom:22px;left:22px;z-index:2000;background:#102f4f;color:#fff;border:1px solid var(--gold);border-radius:12px;padding:11px 14px;font-weight:900;box-shadow:0 12px 30px rgba(0,0,0,.18)}

.header-nav-wrap{max-width:1500px;margin:14px auto 0;padding:0 0 2px}.header-nav{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.header-nav-btn{appearance:none;border:1px solid rgba(255,255,255,.23);background:rgba(255,255,255,.08);color:#e9f3fb;border-radius:11px;padding:9px 15px;font-size:13px;font-weight:900;cursor:pointer;transition:.18s ease}.header-nav-btn:hover{background:rgba(255,255,255,.16);border-color:rgba(215,169,40,.75);transform:translateY(-1px)}.header-nav-btn.active{background:var(--gold);border-color:var(--gold);color:#102c48;box-shadow:0 6px 16px rgba(0,0,0,.15)}
.report-filter-bar{display:grid;grid-template-columns:minmax(300px,1.4fr) minmax(180px,.6fr);gap:12px;align-items:end;background:linear-gradient(180deg,#f8fbfd,#f3f7fb);border:1px solid #d7e2ec;border-radius:17px;padding:15px;margin-bottom:18px}.report-filter-meta{border:1px solid #ead17a;background:#fff9e5;border-radius:12px;padding:10px 13px;min-height:42px;display:flex;align-items:center;color:#69520a;font-size:12px;font-weight:900;line-height:1.7}
.profile-report-shell{max-width:1120px;margin:0 auto;border:1px solid #cedae5;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 14px 34px rgba(13,49,86,.09)}.profile-report-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;background:linear-gradient(135deg,#f8fbfd,#eef4f9);border-bottom:1px solid #d7e2ec}.profile-report-title strong{font-size:18px;color:var(--navy);font-weight:900}.profile-report-title span{font-size:12px;color:#6c7f93;font-weight:800}.profile-report-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.profile-report-table thead th{background:var(--gold);color:#102c48;padding:13px 16px;font-size:14px;font-weight:900;border-left:1px solid rgba(13,49,86,.15);text-align:right}.profile-report-table thead th:first-child{width:31%}.profile-report-table tbody th,.profile-report-table tbody td{padding:13px 16px;border-bottom:1px solid #dde6ee;vertical-align:top;line-height:1.9;font-size:13px}.profile-report-table tbody th{background:#eef4f9;color:var(--navy);font-weight:900;border-left:1px solid #d8e2ec}.profile-report-table tbody td{background:#fff;color:#173753;font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}.profile-report-table tbody tr:nth-child(even):not(.profile-section-row) td{background:#fbfdff}.profile-report-table tbody tr:hover:not(.profile-section-row) th{background:#e6eff7}.profile-report-table tbody tr:hover:not(.profile-section-row) td{background:#fffdf6}.profile-report-table .profile-section-row th{background:linear-gradient(135deg,var(--navy-3),var(--navy));color:#fff;border-right:5px solid var(--gold);border-left:none;padding:10px 16px;font-size:14px;letter-spacing:.1px}.profile-report-table tbody tr:last-child th,.profile-report-table tbody tr:last-child td{border-bottom:none}.empty-value{color:#8a98a7;font-weight:700}.report-actions-list{display:flex;flex-direction:column;gap:7px}.report-action-line{border-right:3px solid var(--gold);background:#f8fbfd;border-radius:8px;padding:7px 10px}.report-action-line b{color:var(--navy);font-size:12px;margin-left:6px}.report-action-line span{color:#314b64}.report-empty{padding:34px;text-align:center;color:#718399;font-weight:900;background:#fbfdff}
@media(max-width:1200px){.filters{grid-template-columns:repeat(3,1fr)}.kpi-grid{grid-template-columns:repeat(3,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.stage-grid{grid-template-columns:1fr}.topbar-inner,.intro-card,.detail-panel-head{align-items:flex-start;flex-direction:column}.output-badge{max-width:none;width:100%}.filters{grid-template-columns:repeat(2,1fr)}.kpi-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .span2,.form-grid .span4{grid-column:auto}}@media(max-width:560px){.container{padding:0 10px 25px}.filters{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr}.detail-actions{align-items:stretch;flex-direction:column}.nav-buttons{width:100%}.nav-btn{flex:1}}
@media print{body{background:#fff}.topbar,#homeView,.toolbar,.detail-actions,.filters,.qa-tools,.qa-tabs,.no-print{display:none!important}.container{max-width:none;margin:0;padding:0}.detail-panel{box-shadow:none;border:none}.detail-panel-head{background:#fff!important;color:#0d3156!important;border-bottom:2px solid #d7a928}.detail-panel-head p{color:#687b91!important}.output-badge{color:#0d3156!important;border-color:#d7a928}.table-wrap{max-height:none;overflow:visible;border:none}.data-table{min-width:0;font-size:9px}.data-table th,.data-table td{font-size:8px;padding:4px;white-space:normal}.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr)}.page-view{display:block!important}.page-view:not(.print-target){display:none!important}}

@media(max-width:820px){.header-nav-wrap{padding:0 20px}.header-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.header-nav-btn{width:100%}.report-filter-bar{grid-template-columns:1fr}.profile-report-table thead th:first-child{width:38%}.profile-report-table tbody th,.profile-report-table tbody td{padding:11px 10px;font-size:12px}}
@media(max-width:560px){.header-nav-wrap{padding:0 10px}.header-nav{grid-template-columns:1fr}.profile-report-title{align-items:flex-start;flex-direction:column}.profile-report-table thead th:first-child{width:42%}}
@media print{.header-nav-wrap{display:none!important}.profile-report-shell{max-width:none;box-shadow:none;border:1px solid #cdd8e2}.profile-report-table thead th{background:#d7a928!important;color:#102c48!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.profile-report-table tbody th{background:#eef4f9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.profile-report-table .profile-section-row th{background:#0d3156!important;color:#fff!important;border-right-color:#d7a928!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-filter-bar{display:none!important}}

/* WordPress standalone portal additions; original visual system remains unchanged. */
body.wgm-wordpress-portal{min-height:100vh}
.header-nav-btn.wgm-logout{margin-inline-start:auto;background:rgba(215,169,40,.14);border-color:rgba(215,169,40,.65);color:#ffe69a;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.header-nav-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.wgm-login-shell{max-width:560px;margin:48px auto;padding:0 20px}
.wgm-login-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 16px 44px rgba(13,49,86,.13)}
.wgm-login-head{background:linear-gradient(135deg,var(--navy),#123b64);color:#fff;border-bottom:3px solid var(--gold);padding:22px}
.wgm-login-head h2{margin:0;font-size:24px;font-weight:900}.wgm-login-head p{margin:7px 0 0;color:#d9e7f3;font-weight:700;line-height:1.8}
.wgm-login-body{padding:22px}.wgm-login-body .field{margin-bottom:15px}.wgm-login-body .btn{width:100%;padding:13px 16px;font-size:16px}
.wgm-login-error{border:1px solid #efb8bd;background:#fff0f1;color:#9f2632;border-radius:12px;padding:11px 13px;font-weight:800;line-height:1.7;margin-bottom:15px}
.wgm-login-note{margin-top:16px;padding:11px 13px;border:1px solid #f0cf72;background:#fff9e8;border-radius:12px;color:#745800;font-size:13px;font-weight:800;line-height:1.8}
.wgm-disabled{opacity:.55;pointer-events:none}
@media(max-width:820px){.header-nav-btn.wgm-logout{margin-inline-start:0}}
