:root{font-family:'Tajawal','Cairo',system-ui,sans-serif;direction:rtl;color:#203640;background:#f5f6f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-size:15px}a{color:#136876;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-layout{display:flex;min-height:100vh}.sidebar{width:264px;flex:none;background:#102f3d;color:#e6eff0;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:#fff;padding:31px 22px 29px;text-decoration:none}.brand-mark{width:49px;height:49px;position:relative;display:grid;place-items:center;border:2px solid #d6a15d;border-radius:14px;font:bold 34px Georgia,serif;color:#f3c07c}.brand-mark span{position:absolute;bottom:4px;right:9px;font:9px sans-serif}.brand strong{display:block;font-weight:800;font-size:17px}.brand small{font-family:Arial,sans-serif;color:#b8b8b7;letter-spacing:.6px;display:block;font-size:10px;margin-top:6px}.sidebar-label{padding:22px 25px 10px;color:#7995a0;font-size:11px;font-weight:800;letter-spacing:.4px}.main-menu{display:grid;gap:4px;padding:0 12px}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:9px;color:#c0d1d5;font-weight:600}.nav-item span{font-size:19px;color:#adbdc2;display:inline-grid;width:25px;place-items:center}.nav-item:hover{color:#fff;background:#214556}.nav-item.active{background:#d69a4e;color:#162f3c;font-weight:800}.nav-item.active span{color:#162f3c}.sidebar-foot{margin:auto 17px 24px;background:#1c4352;border:1px solid #34606c;border-radius:13px;padding:15px;display:flex;gap:10px;color:#b8cbd0;font-size:12px;line-height:1.8}.foot-square{color:#ecc08d;font-size:25px}.workspace{flex:1;min-width:0}.topbar{height:83px;background:#fff;border-bottom:1px solid #e7ebea;display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:18px}.top-title{font-weight:800;font-size:14px;white-space:nowrap}.live-dot{display:inline-block;width:8px;height:8px;background:#58a88c;border-radius:50%;margin-left:8px}.top-path{font-weight:400;color:#96a1a4;font-size:12px;margin-right:12px}.top-actions{display:flex;align-items:center;gap:20px}.company-name{color:#7c8b90;font-size:13px}.profile{border-right:1px solid #e8eded;padding-right:18px;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;white-space:nowrap}.avatar{display:grid;place-items:center;border-radius:50%;background:#f5e7d4;color:#a16e36;width:35px;height:35px;font-size:16px}.profile small{color:#9caaae;font-size:10px}.content{padding:34px;min-height:calc(100vh - 83px)}.content-inner{max-width:1600px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-header h1{font-size:28px;color:#173947;margin:10px 0 9px;font-weight:800}.page-header p,.section-title p{color:#83949b;margin:0;line-height:1.6}.eyebrow{font-family:'Tajawal',sans-serif;font-size:11px;color:#b4824b;font-weight:900;letter-spacing:1px}.btn{border:0;border-radius:9px;padding:10px 18px;font-size:13px;font-weight:800;display:inline-flex;justify-content:center;align-items:center;gap:6px;white-space:nowrap}.btn.primary{background:#c99451;color:#102f3d;box-shadow:0 5px 13px #dca66525}.btn.primary:hover{background:#d5a563}.btn.soft{background:#eff5f4;color:#28606a}.btn.subtle{background:#f7f7f6;color:#697b81}.btn.full{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:24px}.kpi-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi{border:1px solid #e9edec;border-radius:13px;background:#fff;padding:21px 24px;min-height:145px;box-shadow:0 5px 26px #20364006;overflow:hidden}.kpi-head{display:flex;justify-content:space-between;align-items:center}.kpi span,.kpi-head{color:#74898f;font-size:13px}.kpi strong{display:block;font-size:30px;color:#163947;font-weight:900;margin:15px 0 7px;font-variant-numeric:tabular-nums;direction:ltr;text-align:right}.kpi small{font-size:11px;color:#9daaad}.kpi-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#b68445!important;background:#fff3e5;font-size:18px!important}.kpi.risk .kpi-symbol{background:#fff0ed;color:#c95c45!important}.content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.panel{background:#fff;border:1px solid #e6ecea;border-radius:14px;margin-bottom:24px;box-shadow:0 4px 23px #17394707}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 26px 18px}.panel-heading h2,.editor-heading h2{font-size:17px;margin:0 0 6px;color:#153944;font-weight:900}.panel-heading p{font-size:12px;margin:0;color:#94a3a5}.panel-heading a{font-weight:800;font-size:12px}.table-wrapper{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:right;min-width:700px}.data-table thead{background:#f9faf9}.data-table th{white-space:nowrap;color:#819196;font-size:12px;font-weight:800;padding:15px 23px;border-top:1px solid #eef1f0}.data-table td{padding:15px 23px;border-top:1px solid #f0f3f2;font-size:13px;color:#53676e;white-space:nowrap;max-width:230px;overflow:hidden;text-overflow:ellipsis}.data-table tr:hover td{background:#fbfcfc}.data-table .table-strong{display:block;font-weight:900;color:#1b4654;font-size:13px}.data-table small{display:block;color:#9babaf;font-size:11px;margin-top:5px}.pill{display:inline-flex;padding:5px 12px;background:#eaf3f1;color:#33776d;border-radius:30px;font-size:11px;font-weight:800}.progress-track{height:6px;min-width:65px;max-width:165px;background:#e9eff0;border-radius:6px;overflow:hidden;margin-bottom:7px}.progress-fill{background:#d6a15d;height:100%;border-radius:6px}.empty{text-align:center;padding:44px!important;color:#99a8ac!important}.loading-section{padding:55px 20px;text-align:center;color:#82999e}.search-input{background:#f9fbfb;border:1px solid #e5ebed;border-radius:9px;padding:10px 15px;min-width:255px;outline:0}.row-actions{display:flex;gap:10px}.mini-link{border:0;background:none;color:#17747b;font-size:12px;font-weight:800;padding:3px;cursor:pointer}.mini-link.delete{color:#c34f4f}.breadcrumbs{color:#94a7ae;font-size:12px;margin-bottom:19px}.breadcrumbs a{color:#147882}.project-hero{background:linear-gradient(120deg,#103240,#174655);border-radius:15px;padding:32px 34px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:20px;position:relative;overflow:hidden;color:#fff}.project-hero:after{content:'▧';position:absolute;left:16%;top:-50px;font-size:180px;color:#ffffff07}.project-hero .eyebrow{color:#deb074}.project-hero h1{font-weight:900;font-size:27px;margin:13px 0}.project-hero p{color:#a8c3c9;margin:0}.hero-badges{display:flex;gap:8px;margin-top:19px}.hero-badges span{padding:7px 12px;border:1px solid #51707b;background:#ffffff0d;border-radius:20px;font-size:11px}.hero-outline{background:transparent;border:1px solid #71909b;color:#fff;z-index:1}.stage-track{padding:15px 26px 28px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.stage-step{display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center;color:#9aabad;font-size:10px;font-weight:800;position:relative}.stage-dot{display:grid;place-items:center;width:36px;height:36px;background:#ebf0ef;border-radius:50%;color:#8ba1a5;font-size:13px}.stage-step.done .stage-dot{background:#e5f2e9;color:#2a9277}.stage-step.current .stage-dot{background:#d39a54;color:#14313d;box-shadow:0 0 0 5px #d39a5428}.stage-step.current{color:#1c434e}.requirements{border-top:1px solid #edf0ef;padding:20px 25px;margin:0 5px;display:flex;gap:9px;flex-wrap:wrap;align-items:center}.requirements strong{margin-left:9px}.requirement{border-radius:6px;padding:6px 10px;font-size:12px}.requirement.fulfilled{background:#e9f6f1;color:#388068}.requirement.missing{background:#fff3e9;color:#af7b39}.requirements+.btn{margin:0 25px 25px}.section-title{margin:31px 0 23px}.section-title h2{font-size:22px;color:#163c49;margin:8px 0}.module-section{margin:23px 0 28px}.module-section h3{font-size:15px;color:#335e67;border-right:3px solid #d4a367;padding-right:11px;margin:0 0 16px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.module-tile{display:flex;align-items:center;gap:12px;background:#fff;padding:17px;border-radius:12px;border:1px solid #e8eceb;color:#173c49;transition:.12s}.module-tile:hover{border-color:#d8b27c;box-shadow:0 4px 18px #ceaa7540}.module-tile-icon{width:39px;height:39px;border-radius:9px;flex:none;background:#f8f1e8;color:#bb8a46;display:grid;place-items:center;font-size:24px}.module-tile strong{font-size:13px;display:block}.module-tile small{font-size:10px;color:#8ea2a7;display:block;margin-top:5px}.tile-arrow{margin-right:auto;color:#a6b6ba}.alert{padding:13px 16px;border-radius:10px;margin:10px 0 17px;font-size:13px}.alert-danger{background:#faeeee;color:#a64242}.alert-warning{background:#fff4dd;color:#805b29}.text-danger{color:#cd5050!important}.text-success{color:#3b8569!important}.helper-text{font-size:12px;color:#819499}.modal-backdrop-custom{position:fixed;inset:0;background:#0b2430aa;z-index:20;display:flex;justify-content:center;align-items:center;padding:22px}.editor-card{width:min(810px,100%);max-height:92vh;overflow-y:auto;background:#fff;border-radius:14px;padding:28px;box-shadow:0 25px 65px #0003}.editor-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.editor-heading h2{font-size:21px;margin:9px 0 0}.icon-button{border:0;background:#f5f7f7;color:#637b84;border-radius:8px;width:33px;height:33px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid>div.wide{grid-column:1/-1}.form-grid label,.login-form label{font-weight:800;font-size:12px;color:#435f68;display:block;margin-bottom:8px}.form-control{display:block;width:100%;padding:11px 13px;background:#fbfcfc;border:1px solid #e0e7e7;border-radius:8px;outline:0;direction:inherit;color:#183a46}.form-control:focus{border-color:#cea268;box-shadow:0 0 0 3px #dbb17a21}.check-inline{display:flex!important;align-items:center;gap:12px;margin-top:10px}.check-inline input{width:18px;height:18px}.editor-actions{border-top:1px solid #e7eceb;padding-top:18px;display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.login-shell{display:grid;grid-template-columns:42% 58%;min-height:600px;max-width:1050px;margin:7vh auto;border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 20px 70px #0c29301a}.login-accent{padding:65px 55px;background:linear-gradient(140deg,#103340,#1b4c59);color:#fff;display:flex;flex-direction:column}.login-accent h2{font-size:29px;margin:33px 0 18px}.login-accent p{line-height:2;color:#b7cfd4}.login-symbol{display:grid;place-items:center;width:80px;height:80px;font:68px Georgia,serif;border:2px solid #d7a05a;border-radius:16px;color:#e3ac64}.login-architecture{margin-top:auto;font-size:56px;letter-spacing:20px;color:#79939b}.login-form{padding:80px 80px;display:flex;flex-direction:column;gap:12px}.login-form h1{font-size:29px;margin:7px 0}.login-form>p{color:#8da1a4;margin:0 0 19px}.login-form .btn{margin-top:15px}.login-help{color:#8f9fa3;font-size:11px;margin-top:15px}.boot{height:90vh;display:flex;justify-content:center;align-items:center;gap:12px;color:#1b4553}.boot span{display:grid;place-items:center;background:#143745;color:#dcaa65;width:39px;height:39px;border-radius:9px;font:30px Georgia}
@media(max-width:1150px){.sidebar{width:220px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 22px}}
@media(max-width:760px){.app-layout{display:block}.sidebar{position:static;width:100%;height:auto;min-height:0}.brand{padding:17px}.sidebar-label,.sidebar-foot{display:none}.main-menu{display:flex;overflow-x:auto;padding-bottom:10px}.nav-item{white-space:nowrap;font-size:11px}.topbar{height:auto;min-height:65px;padding:10px 15px;flex-wrap:wrap}.company-name,.top-path{display:none}.content{padding:20px 13px}.page-header{align-items:flex-start}.page-header h1{font-size:23px}.page-header> .btn{padding:10px;font-size:11px}.kpi-grid,.kpi-grid.four,.module-grid,.content-grid{grid-template-columns:1fr 1fr}.content-grid>section{grid-column:span 2!important}.kpi{padding:16px;min-height:117px}.kpi strong{font-size:23px}.stage-track{grid-template-columns:repeat(4,minmax(0,1fr))}.login-shell{display:block;min-height:0;margin:4vh auto}.login-accent{padding:25px}.login-accent h2,.login-architecture{display:none}.login-form{padding:35px 24px}.editor-card{padding:17px}.form-grid{grid-template-columns:1fr}}
@media(max-width:400px){.kpi-grid,.module-grid{grid-template-columns:1fr}.project-hero{padding:20px}.project-hero h1{font-size:22px}}

/* v0.2: dedicated certificate worksheet and variance reports */
.worksheet-toolbar{max-width:620px;padding:0 26px 24px}.worksheet-number{width:110px;padding:9px 8px;border:1px solid #d2e0e0;border-radius:7px;font:inherit;direction:ltr;text-align:left;font-variant-numeric:tabular-nums}.worksheet-number:focus{outline:2px solid #c9a56e}.worksheet-note{margin:0;padding:14px 24px;background:#f8faf9;color:#667d84;font-size:12px;line-height:1.8}.data-table td .worksheet-number{max-width:100%}
.registration-plan{padding:14px 18px;margin:12px 0;border:1px solid #ffffff40;border-radius:14px;background:#ffffff0b}.registration-plan p{margin:6px 0}.registration-plan span{color:#83f2df}.subscription-meta{display:block;color:#768b96;margin-top:5px}.subscription-invoice{margin-top:24px}@media print{.no-print,.sidebar,.topbar,.app-footer{display:none!important}.main-content,.app-main{margin:0!important;padding:0!important}.subscription-invoice{border:0;box-shadow:none}.subscription-invoice .table-wrapper{overflow:visible}body{background:white!important}}
.subscription-state{font-size:1.35rem!important}.subscription-date{font-size:1.2rem!important}@media print{.workspace-footer{display:none!important}.workspace{margin:0!important;width:100%!important}.content,.content-inner{padding:0!important;max-width:none!important}}
