@font-face{font-family:PortalArabic;src:local("Sakkal Majalla");font-display:swap}
:root{--ink:#173d3b;--muted:#687976;--petrol:#124e4b;--deep:#083d3a;--sage:#e7efeb;--beige:#f5f2ea;--paper:#fff;--line:#e3e8e1;--gold:#cdb671;--orange:#c8783c;--orange-pale:#fbefe2;--error:#9d3038;--error-bg:#fff0ef;--success:#246749;--success-bg:#eaf6ef;--radius:20px;--shadow:0 12px 35px #193f3910;font-family:PortalArabic,"Sakkal Majalla","Geeza Pro",Tahoma,Arial,sans-serif;color:var(--ink);background:var(--beige);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:18px;line-height:1.6}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #bf824d;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.25}h1{font-size:38px}h2{font-size:27px}h3{font-size:23px}p{color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;right:20px;z-index:100;background:var(--petrol);color:white;padding:10px 20px}.skip-link:focus{top:10px}.initial-state{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:16px}.loader{width:28px;height:28px;border:3px solid var(--sage);border-top-color:var(--petrol);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}svg.icon{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.digits{font-family:Arial,Tahoma,sans-serif;font-variant-numeric:tabular-nums;font-size:.88em}.brand-logo{display:block;object-fit:contain;width:auto;height:90px;max-width:100%}.brand-fallback{display:none}.brand.no-logo .brand-logo{display:none}.brand.no-logo .brand-fallback{display:block;font-size:25px;font-weight:bold;letter-spacing:1px}.eyebrow{display:block;color:var(--orange);font-size:15px;font-weight:bold;letter-spacing:.3px;margin-bottom:11px}.muted{color:var(--muted)}.small{font-size:15px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:8px 20px;border:1px solid var(--line);background:var(--paper);border-radius:11px;color:var(--petrol);font-weight:bold;text-decoration:none;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:var(--sage)}.button.primary{background:var(--petrol);color:white;border-color:var(--petrol)}.button.primary:hover:not(:disabled){background:var(--deep)}.button.ghost{border-color:transparent;background:transparent}.button.danger{color:var(--error);border-color:#ead0cf}.button:disabled{opacity:.48}.button.small{min-height:35px;padding:4px 12px}.button.wide{width:100%}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.text-link{border:0;padding:0;background:none;color:var(--petrol);font-weight:bold;text-decoration:underline;text-underline-offset:4px}.notice{padding:13px 17px;border-radius:12px;font-size:16px;line-height:1.6;background:#eff3f0;color:var(--ink);border:1px solid var(--line)}.notice.warning{background:var(--orange-pale);border-color:#eedbc4;color:#795234}.notice.error{color:var(--error);background:var(--error-bg);border-color:#efcfca}.notice.success{color:var(--success);background:var(--success-bg);border-color:#cce2d2}.notice:empty{display:none}.badge{display:inline-flex;gap:5px;align-items:center;font-size:14px;line-height:1.5;padding:4px 10px;border-radius:30px;background:var(--sage);color:var(--petrol);white-space:nowrap}.badge.neutral{background:#f0f0ec;color:#717771}.badge.warm{background:var(--orange-pale);color:#956238}.badge.admin{background:#fff3d7;color:#76602e}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:30px 0 18px}.section-head p{margin-top:6px;font-size:17px}.section-head .eyebrow{margin-bottom:6px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.panel + .panel{margin-top:20px}.source-details{border-top:1px solid var(--line);margin-top:18px;padding-top:13px;font-size:15px;color:var(--muted)}.source-details summary{cursor:pointer;display:list-item}.source-details p{margin-top:10px}.source-details ul{margin:10px 0;padding-right:20px}.empty-state{display:grid;justify-items:center;text-align:center;padding:38px 20px;gap:12px;background:#f6f8f5;border:1px dashed #cfdad1;border-radius:16px}.empty-state svg{width:38px;height:38px;color:#6a8a7d}.empty-state p{max-width:590px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:6px;font-weight:bold;font-size:18px}.field.full{grid-column:1/-1}.field small{font-size:14px;font-weight:normal;color:var(--muted)}input,select,textarea{min-width:0;width:100%;border:1px solid #cfd9d1;border-radius:10px;background:#fff;color:var(--ink);padding:10px 13px;min-height:46px;outline:none;font-size:17px}input:focus,select:focus,textarea:focus{border-color:var(--petrol)}input:disabled,select:disabled{background:#f1f3ef;color:#6d7973}input[dir=ltr]{text-align:left;font-family:Arial,Tahoma,sans-serif;font-size:15px}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--petrol)}.check-field{display:flex;align-items:center;gap:10px;font-weight:bold}.form-actions{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap;margin-top:22px}.form-message{margin-top:16px}.required-mark{color:var(--orange)}
/* الدخول — الشعار الرسمي مباشرة على خلفية الهوية */
.auth-layout{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(340px,.42fr) minmax(420px,.58fr)}
.auth-story{background:var(--petrol);color:#fff;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:52px clamp(36px,4.5vw,72px) 38px;gap:42px;min-height:100vh;min-height:100svh}
.auth-story .brand{background:none;padding:0;border:0;border-radius:0;flex:none}
.auth-story .brand-logo{width:auto;height:148px;max-height:none}
.auth-intro{width:100%;padding-block:8px 28px}
.auth-story .eyebrow{color:#e9e1cc;font-size:17px;letter-spacing:0;margin-bottom:17px}
.auth-story h1{font-size:clamp(38px,3.6vw,52px);line-height:1.25;margin:0 0 22px;font-weight:700}
.auth-story p{color:#d4e3dd;max-width:350px;font-size:21px;line-height:1.8}
.auth-line{width:38px;height:3px;background:#fb681a;margin-bottom:26px}
.auth-foot{width:100%;padding-top:20px;border-top:1px solid #ffffff26;font-size:16px;color:#c4d5cc}
.auth-form-area{padding:48px 40px;display:grid;place-items:center;background:#faf9f5}
.auth-card{width:100%;max-width:400px}
.auth-card h2{font-size:34px;margin-bottom:10px;line-height:1.35}
.auth-card>p{margin-bottom:28px}
.auth-card .field{margin-top:18px}
.auth-card input{min-height:50px}
.auth-card .button.wide{margin-top:24px;min-height:50px}
.auth-card .auth-help{font-size:15px;margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
.auth-kicker{display:inline-flex;align-items:center;gap:8px;font-size:16px;color:var(--petrol);margin-bottom:20px}
.auth-kicker svg{width:18px;height:18px}
/* إطار البوابة */
.portal-layout{min-height:100vh;padding-right:250px}.sidebar{position:fixed;inset:0 0 0 auto;width:250px;background:#fff;border-left:1px solid var(--line);padding:29px 24px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{display:flex;justify-content:center;padding-bottom:25px;border-bottom:1px solid var(--line)}.sidebar .brand-logo{width:auto;height:90px}.sidebar-title{margin:24px 8px 14px;font-size:14px;color:#83918a}.side-nav{display:grid;gap:7px}.nav-button{display:flex;align-items:center;gap:12px;min-height:47px;width:100%;border:0;border-radius:11px;background:none;color:#667a72;padding:10px 13px;text-align:right;font-weight:bold}.nav-button.active{background:var(--sage);color:var(--petrol)}.nav-button:hover{background:#f1f5ef}.sidebar-bottom{margin-top:auto;padding-top:30px}.sidebar-caption{font-size:14px;line-height:1.7;padding:16px 11px;border-top:1px solid var(--line);color:var(--muted)}.sidebar .account-chip{padding:13px 8px;display:flex;gap:11px;align-items:center}.avatar{width:39px;height:39px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:var(--orange-pale);color:#a36938;font-weight:bold}.account-chip b{display:block;font-size:17px;line-height:1.2;overflow-wrap:anywhere}.account-chip small{font-size:14px;color:var(--muted)}.topbar{height:82px;background:#fff9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 38px}.topbar .location{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:16px}.topbar .location b{color:var(--ink)}.topbar-actions{display:flex;align-items:center;gap:13px}.content{max-width:1600px;margin:0 auto;padding:32px 38px 40px}.global-message{margin-bottom:20px}.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:30px;border-radius:24px;background:var(--petrol);color:white;padding:34px 38px;position:relative;overflow:hidden}.hero h1{font-size:42px;position:relative}.hero p{color:#d0e0d8;max-width:650px;margin-top:14px;font-size:20px;position:relative}.hero .eyebrow{color:#d8c48e}.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;min-width:280px;border-right:1px solid #ffffff26;padding-right:32px}.hero-stats b{display:block;font-family:Georgia,Arial,serif;font-size:39px;font-weight:normal;color:#e1d1a4;line-height:1.2}.hero-stats span{display:block;color:#e4ebe4;font-size:15px;margin-top:10px;white-space:nowrap}.overview-note{display:flex;gap:11px;align-items:flex-start;font-size:15px;color:var(--muted);margin-top:17px;padding:0 4px}.overview-note svg{width:18px;height:18px;margin-top:4px}.unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.unit-card{display:flex;flex-direction:column;min-height:250px;padding:23px;border:1px solid var(--line);background:white;border-radius:19px;transition:box-shadow .18s,transform .18s;position:relative}.unit-card:has(button:not(:disabled)):hover{box-shadow:var(--shadow);transform:translateY(-2px)}.unit-card-top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:19px}.unit-icon{width:47px;height:47px;border-radius:14px;display:grid;place-items:center;background:#eaf0eb;color:var(--petrol)}.unit-card:nth-child(3n+2) .unit-icon{background:#f8efdd;color:#9b7c3e}.unit-card:nth-child(3n) .unit-icon{background:#f8ece3;color:#b07142}.unit-card h3{font-size:23px;margin-bottom:9px}.unit-card p{font-size:17px;line-height:1.65;margin-bottom:20px;flex:1}.unit-card button{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;border-top:1px solid var(--line);padding:13px 0 0;color:var(--petrol);font-weight:bold;text-align:right}.unit-card button:disabled{color:#939a93}.unit-card button svg{width:18px}.goal-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.goal-card{border:1px solid var(--line);border-radius:20px;background:#fff;padding:24px;align-self:start}.goal-heading{display:flex;align-items:center;gap:13px}.goal-number{width:34px;height:34px;display:grid;place-items:center;color:#a97942;background:var(--orange-pale);border-radius:10px;font-family:Arial;font-size:13px;flex-shrink:0}.goal-card h3{font-size:24px}.goal-card>p{font-size:17px;margin:12px 0 18px}.kpi-list{display:grid;gap:0}.kpi-row{border-top:1px solid var(--line);padding:15px 0}.kpi-row:last-child{padding-bottom:0}.kpi-name{font-weight:bold;font-size:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.kpi-unit{color:var(--muted);font-size:13px;white-space:nowrap;font-weight:normal}.kpi-values{display:flex;gap:25px;margin-top:8px;flex-wrap:wrap}.kpi-values>div{display:flex;align-items:center;gap:9px;font-size:15px}.kpi-values span{color:var(--muted)}.kpi-values b{font-weight:normal;color:#788078;background:#f4f5f1;padding:2px 9px;border-radius:6px}.kpi-values b.recorded{color:var(--petrol);font-weight:bold}.reference-strip{display:flex;gap:12px;align-items:flex-start;border-radius:16px;background:#eeeadd;padding:17px 20px;margin-top:24px;font-size:16px}.reference-strip svg{color:#9b8150;margin-top:3px}.reference-strip p{color:#756c58}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:35px;padding:21px 0 0;border-top:1px solid #dce1d7;font-size:14px;color:#849086}.unit-heading{display:flex;align-items:flex-start;gap:18px;margin:22px 0 24px}.unit-heading .unit-icon{width:59px;height:59px}.unit-heading p{margin-top:12px;max-width:820px}.unit-heading .badge{margin-top:14px}.unit-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--petrol);padding:26px;border-radius:18px;color:white;margin-bottom:24px}.unit-summary p{color:#dae7df;font-size:18px;margin-top:8px}.unit-summary .button{flex-shrink:0}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px}table{border-collapse:collapse;width:100%;text-align:right;font-size:17px}th{background:#f1f4ee;color:#5a6e65;font-weight:normal;font-size:15px;padding:13px 15px;white-space:nowrap}td{padding:14px 15px;border-top:1px solid var(--line);vertical-align:middle}tbody tr:hover{background:#fafbf8}td:first-child{font-weight:bold}td small{display:block;color:var(--muted);font-weight:normal;font-size:14px;max-width:620px;line-height:1.5;margin-top:4px}.table-number{font-family:Arial;font-size:14px;white-space:nowrap}.users-table td{white-space:nowrap}.users-table td:first-child{white-space:normal;min-width:170px}.grant-table td:first-child{font-weight:normal}.grant-table select{min-width:135px;max-width:220px;min-height:38px;padding:5px 9px;font-size:16px}.grant-table{font-size:17px}.source-caption{font-size:15px;margin-top:13px}.frame-shell{position:fixed;inset:0;background:var(--beige);z-index:50;display:flex;flex-direction:column}.frame-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 22px;background:white;border-bottom:1px solid var(--line);min-height:62px}.frame-topbar strong{font-size:20px}.frame-topbar .badge{margin-right:12px}.dashboard-frame{width:100%;height:100%;flex:1;border:0;background:white}.frame-loading{flex:1;display:grid;place-content:center;justify-items:center;gap:15px}.frame-loading .notice{max-width:600px}.portal-dialog{width:min(800px,calc(100vw - 30px));max-height:92vh;padding:0;border:1px solid var(--line);border-radius:22px;color:var(--ink);background:#fff;box-shadow:0 25px 80px #052e3933}.portal-dialog::backdrop{background:#092e3266;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:20px 25px}.dialog-body{padding:25px}.dialog-body>p{margin-bottom:20px}.dialog-body h3{margin:25px 0 12px}.dialog-close{border:0;background:#f1f3ef;width:34px;height:34px;border-radius:9px;font-size:25px;line-height:1;color:var(--muted)}.dialog-footer{padding:18px 25px;border-top:1px solid var(--line);display:flex;gap:10px;background:#fafbf8}.dialog-form .form-message{margin:0 25px 18px}.dialog-form .grant-note{font-size:15px;margin:12px 0}.account-form{max-width:660px}.account-form .notice{margin-bottom:22px}.page-loading{min-height:260px;display:grid;place-content:center;justify-items:center;gap:14px}
.pilot-banner{font-size:15px;color:#7c653e;background:#efe9dc;border:1px solid #e1d8c3;padding:9px 15px;border-radius:10px;margin-bottom:20px}.frame-pilot{display:block;font-size:13px;color:#7c653e}.kpi-meta{display:flex;flex-wrap:wrap;gap:3px 14px;font-size:13px;color:var(--muted);margin-top:9px;font-weight:normal;min-width:150px}.kpi-meta .kpi-source{flex-basis:100%;white-space:normal;overflow-wrap:anywhere}.kpi-review{color:#987339}.kpi-edit{font-size:14px;margin-top:6px;padding:3px 7px!important}.kpi-edit svg{width:15px;height:15px}.goal-card .kpi-meta{line-height:1.55}.goal-card .kpi-meta span{white-space:normal}.frame-topbar>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.frame-topbar .frame-pilot{flex-basis:100%;order:2}.frame-topbar .badge{margin:0}
@media(min-width:1500px){.hero h1{font-size:47px}.unit-card{min-height:270px}.goal-card{padding:29px}}
@media(max-width:1200px){.portal-layout{padding-right:220px}.sidebar{width:220px;padding:24px 17px}.content{padding:27px}.topbar{padding:0 27px}.hero{padding:29px;grid-template-columns:1fr}.hero-stats{border:0;border-top:1px solid #ffffff26;padding:20px 0 0;max-width:330px;min-width:0}.hero-stats b{font-size:30px}.hero-stats span{margin-top:4px}.hero h1{font-size:36px}.unit-grid{grid-template-columns:repeat(2,1fr)}.goal-grid{grid-template-columns:1fr}.auth-layout{grid-template-columns:minmax(320px,.44fr) minmax(380px,.56fr)}.auth-story{padding:42px 38px 32px}}
@media(max-width:760px){body{font-size:17px}.auth-layout{display:flex;flex-direction:column}.auth-story{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:22px;min-height:auto;padding:27px 24px}.auth-story .brand{padding:0;align-self:center}.auth-story .brand-logo{width:auto;height:90px;max-height:none}.auth-intro{padding:0}.auth-story h1{font-size:30px;margin:0 0 9px}.auth-story h1 br{display:none}.auth-story p{font-size:17px;line-height:1.6;max-width:440px}.auth-story .auth-line,.auth-story .auth-foot,.auth-story .eyebrow{display:none}.auth-form-area{padding:32px 24px;flex:1}.auth-card h2{font-size:29px}.portal-layout{padding:0}.sidebar{position:static;width:100%;padding:13px 18px;display:grid;grid-template-columns:1fr auto;border-left:0;border-bottom:1px solid var(--line);gap:8px}.sidebar .brand{padding:0;border:0;justify-content:flex-start;align-items:center}.sidebar .brand-logo{width:auto;height:62px}.sidebar-title,.sidebar-caption,.sidebar-bottom{display:none}.side-nav{display:flex;align-items:center;gap:3px}.nav-button{width:auto;min-height:42px;padding:7px 10px;font-size:15px;gap:6px}.nav-button svg{width:18px}.topbar{height:auto;min-height:66px;padding:12px 20px}.topbar .location{font-size:15px;gap:5px}.topbar .location>span{display:none}.topbar-actions .badge{display:none}.topbar .button{padding:5px 10px;min-height:37px;font-size:15px}.content{padding:22px 18px 30px}.hero{padding:25px;border-radius:18px;gap:20px}.hero h1{font-size:31px}.hero p{font-size:18px}.hero-stats{gap:16px;max-width:300px}.hero-stats span{font-size:14px}.unit-grid{gap:12px}.unit-card{padding:18px;min-height:230px}.unit-card h3{font-size:20px}.unit-card p{font-size:16px}.unit-card .badge{font-size:12px;padding:3px 7px}.unit-card-top{gap:5px;margin-bottom:14px}.unit-icon{width:39px;height:39px;border-radius:10px}.section-head{margin-top:27px;align-items:flex-start}.section-head h2{font-size:25px}.section-head>span{display:none}.goal-card{padding:20px}.goal-card h3{font-size:23px}.kpi-values{gap:18px}.kpi-values>div{font-size:15px}.page-footer{font-size:13px;align-items:flex-start}.page-footer>span:last-child{display:none}.panel{padding:19px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.unit-summary{flex-direction:column;align-items:flex-start;padding:21px}.unit-heading{gap:12px}.unit-heading h1{font-size:29px}.unit-heading .unit-icon{width:43px;height:43px;flex-shrink:0}.unit-heading p{font-size:17px}.frame-topbar{padding:9px 12px;gap:8px}.frame-topbar strong{font-size:17px}.frame-topbar .badge{display:none}.frame-topbar .button{font-size:15px;padding:6px 10px}.dialog-header{padding:18px}.dialog-body{padding:20px 18px}.dialog-footer{padding:17px 18px}.dialog-form .form-message{margin:0 18px 18px}.portal-dialog{max-height:94vh}th,td{padding:12px}.source-details{font-size:14px}}
@media(max-width:760px){.sidebar{grid-template-columns:1fr}.side-nav{justify-content:space-between;gap:4px}.nav-button{flex:1;justify-content:center;white-space:nowrap}.sidebar .brand{justify-content:center;padding-bottom:7px}}
@media(max-width:430px){.unit-grid{grid-template-columns:1fr}.unit-card{min-height:0}.unit-card p{margin-bottom:14px}.unit-card-top{margin-bottom:12px}.nav-button{font-size:0;padding:8px}.nav-button svg{width:24px}.nav-button::after{content:attr(data-short-label);font-size:14px}.hero-stats{gap:11px}.hero-stats b{font-size:27px}.hero-stats span{font-size:13px}.goal-number{width:29px;height:29px}.goal-heading{gap:10px}.kpi-values{gap:12px}.kpi-values>div{gap:5px}.page-footer{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,.actions,.button,.frame-shell,.portal-dialog{display:none!important}.portal-layout{padding:0}.content{padding:0}.hero{background:white;color:var(--ink);border:1px solid var(--line)}.hero p,.hero-stats span{color:var(--muted)}.unit-grid{grid-template-columns:repeat(2,1fr)}.goal-grid{grid-template-columns:1fr}.goal-card,.unit-card{break-inside:avoid;box-shadow:none}body{background:#fff}}
/* Department and portfolio workspaces */
.ops-hero .button{margin-top:21px;background:#fff;color:var(--petrol);font-size:16px;min-height:40px}.ops-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:20px 0 27px}.ops-stat{text-align:right;min-width:0;background:white;border:1px solid var(--line);border-radius:16px;padding:18px 21px;color:var(--ink)}button.ops-stat:hover{border-color:#b0c7bd;box-shadow:var(--shadow)}.ops-stat>span{display:block;font-size:16px;color:var(--muted)}.ops-stat>b{display:block;font-size:31px;margin:9px 0 2px;color:var(--petrol);line-height:1.3}.ops-stat>small{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.ops-stat>small svg{width:15px;height:15px}.danger-stat b{color:#a14338}.warning-stat b{color:#a0702b}.success-stat b{color:#2b7254}.unit-metrics{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px;border-top:1px solid var(--line);padding-top:15px;margin-bottom:13px}.unit-metrics b{display:block;font-size:21px;color:var(--petrol)}.unit-metrics small{display:block;font-size:13px;color:var(--muted)}.unit-last{font-size:12px;color:var(--muted);margin-bottom:14px}.unit-metrics .attention b,.attention{color:#a14338!important}.unit-card{min-height:330px}.attention-panel{margin-top:25px}.attention-panel .section-head,.work-panel>.section-head,.workspace-content .section-head{margin-top:0}.attention-list{display:grid;gap:8px}.attention-list>div{display:grid;grid-template-columns:1.3fr 1.4fr auto;align-items:center;gap:18px;border-top:1px solid var(--line);padding:17px 0}.attention-list span{font-size:16px;color:var(--muted)}.workspace-heading{display:flex;align-items:flex-start;gap:20px;margin:20px 0 27px}.workspace-heading>div:nth-child(2){flex:1;min-width:0}.workspace-heading>.unit-icon{width:59px;height:59px;flex-shrink:0}.workspace-heading h1{font-size:35px}.workspace-heading p{margin:12px 0;max-width:800px}.workspace-heading>.actions{flex-shrink:0;flex-wrap:wrap;max-width:220px;justify-content:flex-end}.workspace-tabs{display:flex;gap:8px;align-items:center;border-bottom:1px solid #d9e2dc;margin-bottom:24px}.workspace-tabs button{border:0;background:none;padding:14px 19px;color:var(--muted);display:flex;align-items:center;gap:10px;font-weight:bold;border-bottom:3px solid transparent;white-space:nowrap}.workspace-tabs button[aria-selected=true]{border-color:var(--petrol);color:var(--petrol)}.workspace-tabs button[data-action=open-dashboard]{margin-right:auto;font-weight:normal;font-size:16px}.task-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr .8fr;gap:13px;margin:24px 0}.task-filters .field{gap:6px;font-size:15px}.task-filters input,.task-filters select{min-width:0;width:100%}.tasks-table td:first-child{min-width:240px;max-width:340px}.tasks-table small{font-size:14px}.tasks-table td{font-size:17px}.task-status{display:inline-flex;font-size:14px;border-radius:6px;white-space:nowrap;padding:4px 10px;background:#f0f1ed;color:#687670}.status-in_progress{background:#e5f0f1;color:#18616a}.status-blocked{background:#fff0df;color:#9b642a}.status-completed{background:#e7f3eb;color:#226643}.status-cancelled{background:#f0eceb;color:#816c65}.badge.warm{color:#8d6332;background:#fcf0e1}.tasks-table .badge{font-size:12px;margin-top:8px}.template-panel{margin-top:22px}.template-panel>summary{cursor:pointer;color:var(--petrol);font-size:20px;font-weight:bold;display:flex;gap:10px;align-items:center}.template-panel>p{margin:15px 0}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template-grid button{text-align:right;border:1px solid var(--line);border-radius:12px;background:#fcfcf9;padding:17px;color:var(--ink)}.template-grid button:hover{border-color:#bacbc3}.template-grid button b{display:block;font-size:17px}.template-grid button span{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);margin-top:12px}.template-grid svg{width:16px;height:16px}.workspace-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.workspace-goals article{padding:21px;border-radius:15px;background:#f7f6ef;border:1px solid #ecebdf}.workspace-goals h3{font-size:22px;margin:14px 0}.workspace-goals .goal-link{display:flex;gap:8px;align-items:flex-start;color:var(--petrol);font-size:16px;line-height:1.6}.goal-link svg{width:18px;margin-top:3px;flex-shrink:0}.workspace-goals p{padding-top:14px;margin-top:14px;border-top:1px solid #e0e3d9;font-size:15px}.workspace-kpis th{white-space:normal;min-width:115px}.workspace-kpis td:first-child{min-width:260px;max-width:410px}.workspace-kpis td{font-size:16px}.workspace-kpis .source-details p{max-width:390px}.workspace-kpis .kpi-meta{min-width:175px}.task-details{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}.task-details>div{padding:13px;background:#f8f8f4;border-radius:10px;min-width:0}.task-details>div:nth-child(n+5){grid-column:1/-1}.task-details dt{color:var(--muted);font-size:14px}.task-details dd{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.workspace-tabs button:focus-visible{outline-offset:-4px}.ops-stat:focus-visible{outline-offset:3px}
@media(max-width:1200px){.ops-stats{gap:9px}.ops-stat{padding:15px}.ops-stat>span{font-size:14px}.workspace-heading{flex-wrap:wrap}.workspace-heading>.actions{max-width:none}.workspace-goals{grid-template-columns:1fr 1fr}.task-filters{grid-template-columns:1fr 1fr}.attention-list>div{grid-template-columns:1fr auto}.attention-list>div>span{grid-column:1/-1;grid-row:2}.workspace-tabs{flex-wrap:wrap}.workspace-tabs button[data-action=open-dashboard]{margin-right:0}.workspace-heading h1{font-size:30px}}
@media(max-width:760px){.ops-stats{grid-template-columns:repeat(2,1fr);gap:10px}.ops-stat:last-child{grid-column:1/-1;display:flex;gap:14px;align-items:center;justify-content:space-between}.ops-stat:last-child>b{margin:0}.ops-stat:last-child small{display:none}.ops-stat>span{font-size:16px}.ops-stat>b{font-size:27px}.workspace-heading{gap:13px}.workspace-heading>.unit-icon{width:43px;height:43px}.workspace-heading h1{font-size:28px}.workspace-heading>.actions{flex-basis:100%;justify-content:flex-start}.workspace-tabs{gap:0}.workspace-tabs button{font-size:15px;padding:12px 10px}.workspace-tabs button[data-action=open-dashboard]{width:100%;border-top:1px solid var(--line);padding-top:15px}.workspace-goals,.template-grid{grid-template-columns:1fr}.workspace-goals h3{font-size:23px}.task-filters{gap:10px}.tasks-table{border:0;overflow:visible}.tasks-table table,.tasks-table tbody,.tasks-table tr,.tasks-table td{display:block;width:100%;max-width:none!important;min-width:0!important}.tasks-table thead{display:none}.tasks-table tr{border:1px solid var(--line);border-radius:14px;padding:15px;margin:13px 0}.tasks-table td{padding:9px 0;border:0}.tasks-table td[data-label]{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.tasks-table td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:14px}.tasks-table td:first-child{padding-bottom:13px;border-bottom:1px solid var(--line)}.tasks-table td:last-child .button{width:100%;justify-content:center}.attention-list>div{gap:10px}.task-details{grid-template-columns:1fr}.task-details>div{grid-column:1!important}.unit-card{min-height:0}.ops-hero h1{font-size:31px}}
@media print{.workspace-tabs,.task-filters,.template-panel{display:none!important}.ops-stats{grid-template-columns:repeat(5,1fr)}.workspace-goals{grid-template-columns:1fr 1fr}.ops-stat,.workspace-goals article{break-inside:avoid}}

/* Tourism identity: authenticated pages only; approved sign-in stays unchanged. */
.portal-layout,.portal-dialog,.frame-shell{
  --ink:#163c43;--muted:#68787a;--petrol:#00545f;--deep:#003f48;
  --sage:#e9f0ef;--beige:#f6f4ee;--paper:#fff;--line:#dfe6e3;
  --orange:#bd6129;--orange-pale:#fcf0e5;--radius:17px;
  --shadow:0 5px 20px #123e4506;
  color:var(--ink);
}
.portal-layout{background:var(--beige);font-size:17px;line-height:1.65}
.portal-layout h1,.portal-layout h2,.portal-layout h3,.portal-dialog h2,.portal-dialog h3{font-weight:600}
.portal-layout h1{font-size:34px;line-height:1.25}
.portal-layout h2{font-size:26px;line-height:1.35}
.portal-layout h3{font-size:22px;line-height:1.4}
.portal-layout .eyebrow{font-size:14px;letter-spacing:0;margin-bottom:7px}
.portal-layout .panel{box-shadow:none;border-radius:var(--radius)}
.portal-layout .section-head{margin:26px 0 16px;align-items:center}
.portal-layout .section-head p{font-size:16px;line-height:1.65}
.portal-layout .button,.portal-dialog .button{font-weight:600}
.portal-layout .button:focus-visible,.portal-layout button:focus-visible,
.portal-dialog button:focus-visible,.portal-layout select:focus-visible{
  outline:3px solid #bd6129;outline-offset:3px;
}
.portal-layout .pilot-banner{display:flex;align-items:flex-start;gap:9px;font-size:14px;padding:9px 14px;border-radius:10px;background:#eeeade;color:#786647}
.portal-layout .pilot-banner .icon{width:18px;height:18px;margin-top:3px;flex-shrink:0}
.portal-layout .content{padding-top:26px}
.portal-layout .global-message{margin-bottom:16px}

/* Persistent office and unit navigation. */
.portal-layout .sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding:24px 20px;gap:0}
.portal-layout .sidebar .brand{flex-shrink:0;padding-bottom:20px}
.portal-layout .sidebar .brand-logo{height:78px;width:auto;max-height:none}
.portal-layout .sidebar-title{margin:19px 10px 10px;font-size:13px}
.portal-layout .side-nav,.portal-layout .account-nav{display:grid;gap:4px}
.portal-layout .nav-button{font-size:17px;font-weight:600;min-height:43px;padding:8px 12px;border-radius:9px;line-height:1.4}
.portal-layout .nav-button.active{background:#e5efee;color:var(--petrol)}
.unit-nav{display:grid;gap:3px;margin:13px 0 17px}
.nav-group-label{display:block;color:#81908f;font-size:13px;line-height:1.5;margin:4px 11px 7px}
.unit-nav-button{display:flex;align-items:center;gap:9px;width:100%;min-width:0;border:0;border-right:3px solid transparent;border-radius:0 8px 8px 0;background:transparent;text-align:right;color:var(--muted);font-size:16px;line-height:1.4;padding:8px 10px;overflow-wrap:anywhere}
.unit-nav-button .icon{width:18px;height:18px;flex-shrink:0}
.unit-nav-button:hover:not(:disabled){background:#f2f5f2;color:var(--petrol)}
.unit-nav-button.active{border-right-color:var(--orange);background:#e9f0ef;color:var(--petrol);font-weight:600}
.unit-nav-button:disabled{color:#8c9694;opacity:.65}
.portal-layout .account-nav{padding-top:13px;border-top:1px solid var(--line)}
.portal-layout .sidebar-bottom{padding-top:17px}
.portal-layout .sidebar-caption{padding:13px 9px;font-size:13px}
.portal-layout .sidebar .account-chip{padding:10px 6px}
.portal-layout .account-chip b{font-size:16px}
.portal-layout .account-chip small{font-size:13px}
.portal-layout .topbar{min-height:70px;height:auto;padding-top:12px;padding-bottom:12px;background:#fff;border-color:var(--line)}
.portal-layout .topbar .location{min-width:0;gap:9px;font-size:15px}
.portal-layout .topbar .location b{overflow-wrap:anywhere}
.topbar .location button{border:0;background:none;color:var(--muted);padding:3px 0;font:inherit;white-space:nowrap}
.topbar .location button:hover{color:var(--petrol);text-decoration:underline;text-underline-offset:4px}
.mobile-unit-switch{display:none}

/* Compact office introduction and primary view tabs. */
.office-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:26px 30px;background:var(--petrol);color:#fff;border-radius:18px;margin-top:18px}
.office-intro{min-width:0}
.office-intro .eyebrow{color:#e9d8b9}
.office-intro h1{font-size:34px;line-height:1.25;color:#fff}
.office-intro p{font-size:18px;line-height:1.65;color:#d9e6e4;margin-top:8px;max-width:680px}
.office-intro .actions{margin-top:16px}
.office-intro .button{min-height:36px;padding:5px 13px;background:#fff;color:var(--petrol);border-color:transparent;font-size:15px}
.office-intro .button:hover:not(:disabled){background:#edf4f0}
.office-structure{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;border-right:1px solid #ffffff2b;padding-right:24px;min-width:235px;text-align:center}
.office-structure>div{min-width:0}
.office-structure b,.office-structure strong{display:block;font-family:Arial,Tahoma,sans-serif;font-size:26px;font-weight:500;line-height:1.4;color:#e9dcc4}
.office-structure span,.office-structure small{display:block;font-size:14px;line-height:1.5;color:#e3eeea;margin-top:4px}
.home-tabs{display:flex;align-items:center;gap:5px;border-bottom:1px solid #d5dfdc;margin:21px 0 24px}
.home-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-bottom:3px solid transparent;padding:12px 20px;background:transparent;color:var(--muted);font-size:18px;font-weight:600;line-height:1.4}
.home-tabs button.active,.home-tabs button[aria-selected=true]{border-bottom-color:var(--petrol);color:var(--petrol)}
.home-tabs button:hover{color:var(--petrol);background:#edf1eb}
#home-overview>.section-head:first-child,#home-goals>.section-head:first-child{margin-top:0}
.portal-layout .ops-stats{margin:17px 0 24px;gap:12px}
.portal-layout .ops-stat{padding:15px 18px;border-radius:13px;box-shadow:none}
.portal-layout .ops-stat>span{font-size:15px}
.portal-layout .ops-stat>b{font-size:28px;margin:7px 0 0}
.portal-layout .ops-stat>small{font-size:12px;margin-top:3px}
.portal-layout .attention-panel{margin:20px 0 24px;border-right:3px solid #d99159;padding:18px 23px}
.portal-layout .attention-panel .section-head{margin:0 0 10px}
.portal-layout .attention-list{gap:0}
.portal-layout .attention-list>div{padding:13px 0;gap:14px}
.portal-layout .attention-list span{font-size:15px}
.portal-layout .reference-strip{font-size:15px;border-radius:12px;padding:14px 17px;margin:18px 0 24px}

/* Shared card proportions; no fixed card height. */
.portal-layout .unit-grid{gap:15px;align-items:stretch}
.portal-layout .unit-card{min-height:0;height:auto;padding:20px;border-radius:16px;box-shadow:none}
.portal-layout .unit-card:has(button:not(:disabled)):hover{transform:none;border-color:#b8ccca;box-shadow:0 4px 16px #00545f08}
.portal-layout .unit-card-top{margin-bottom:13px;gap:12px}
.portal-layout .unit-icon{width:42px;height:42px;border-radius:11px;background:#e8f0ee;color:var(--petrol)}
.portal-layout .unit-card:nth-child(3n+2) .unit-icon{background:#f2edde;color:#8d744d}
.portal-layout .unit-card:nth-child(3n) .unit-icon{background:#faece1;color:#b46d3d}
.portal-layout .unit-card h3{font-size:22px;margin-bottom:8px;line-height:1.35}
.portal-layout .unit-card p{font-size:16px;line-height:1.65;margin-bottom:17px}
.portal-layout .unit-metrics{padding-top:12px;gap:7px;margin-bottom:10px}
.portal-layout .unit-metrics b{font-size:20px;font-weight:600}
.portal-layout .unit-metrics small{font-size:12px;line-height:1.5;margin-top:2px}
.portal-layout .unit-last{font-size:12px;margin-bottom:13px}
.portal-layout .unit-card button{padding-top:11px;font-size:17px}
.portal-layout .goal-card{padding:22px;border-radius:16px}
.portal-layout .goal-card h3{font-size:24px;line-height:1.35}
.portal-layout .goal-card>p{font-size:16px;margin:11px 0 17px}
.portal-layout .kpi-name{font-weight:600;line-height:1.5}
.portal-layout .source-details{font-size:14px}

/* Unit identity, purpose and work/performance tabs. */
.portal-layout .workspace-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 26px;margin:17px 0 21px}
.workspace-identity{display:flex;align-items:flex-start;gap:15px;min-width:0}
.workspace-identity>div{min-width:0}
.portal-layout .workspace-identity>.unit-icon{width:48px;height:48px;flex-shrink:0}
.portal-layout .workspace-heading h1{font-size:31px;line-height:1.3;margin:0 0 9px}
.portal-layout .workspace-heading .eyebrow{margin-bottom:6px}
.portal-layout .workspace-heading>.actions{grid-column:2;grid-row:1;max-width:none;justify-content:flex-end;align-self:start;gap:8px}
.workspace-purpose{grid-column:1/-1;min-width:0;color:var(--muted);font-size:16px;border-top:1px solid var(--line);padding-top:11px}
.workspace-purpose summary{cursor:pointer;width:fit-content;color:var(--petrol);font-size:15px;font-weight:600}
.portal-layout .workspace-purpose p{margin:9px 0 0;max-width:950px;font-size:16px;line-height:1.7}
.portal-layout .workspace-tabs{gap:5px;flex-wrap:wrap;margin-bottom:23px;border-bottom-color:#d5dfdc}
.workspace-tablist{display:flex;align-items:stretch;gap:5px;min-width:0}
.portal-layout .workspace-tabs button{font-size:18px;line-height:1.4;padding:12px 18px;font-weight:600;white-space:normal}
.portal-layout .workspace-tabs button[aria-selected=true]{border-bottom-color:var(--petrol)}
.portal-layout .workspace-tabs button[data-action=open-dashboard]{font-size:15px}
.portal-layout .work-panel>.section-head,.portal-layout #workspace-content>.panel>.section-head:first-child{margin-top:0}
.portal-layout .task-filters{margin:20px 0;gap:12px}
.portal-layout .task-filters .field{font-size:15px;font-weight:600}
.portal-layout .tasks-table td:first-child{font-weight:500}
.portal-layout .tasks-table td:first-child>b{font-weight:600}
.portal-layout .workspace-goals{gap:14px}
.portal-layout .workspace-goals article{padding:19px;border-radius:13px;background:#f8f7f1;border-color:#e7e7dc;transition:border-color .15s,background .15s}
.portal-layout .workspace-goals article.active{background:#edf4f1;border-color:#6f9b9b;box-shadow:inset 0 3px 0 var(--petrol)}
.portal-layout .workspace-goals h3{font-size:22px;line-height:1.4;margin:12px 0}
.portal-layout .workspace-goals .goal-link{font-size:15px;flex-direction:column;gap:3px}
.portal-layout .workspace-goals .goal-link>span{color:var(--muted);font-size:14px}
.portal-layout .workspace-goals .goal-link>b{font-weight:500}
.portal-layout .workspace-goals p{font-size:14px;margin-top:12px;padding-top:12px}
.portal-layout .workspace-goals .button{padding:6px 0;margin-top:7px;text-align:right;justify-content:flex-start;white-space:normal;font-size:15px}
.portal-layout .workspace-goals .button.primary{color:#fff;padding:7px 11px}

/* Operational KPI cards separate saved values from reference material. */
.workspace-kpis{min-width:0}
.kpi-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 14px;background:#eff4f0;border-radius:10px;margin:0 0 17px;font-size:15px;color:var(--muted)}
.workspace-kpis .kpi-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}
.kpi-card{min-width:0;padding:22px;border:1px solid var(--line);border-radius:15px;background:#fff;display:flex;flex-direction:column;gap:17px;overflow-wrap:anywhere}
.kpi-card-head{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 12px;min-width:0}
.kpi-card-head>div{min-width:0;flex:1}
.portal-layout .kpi-card-head h3{font-size:23px;line-height:1.4;margin:0 0 6px;font-weight:600}
.kpi-card-head .kpi-unit,.kpi-card-head small{display:block;color:var(--muted);font-size:14px;white-space:normal}
.kpi-card-head .badge{font-size:12px;white-space:normal;max-width:100%;align-self:flex-start}
.kpi-live-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kpi-live-values>*{min-width:0;padding:15px 16px;border-radius:10px;background:#f1f6f4;border:1px solid #e3ece7}
.kpi-live-values span,.kpi-live-values label,.kpi-live-values small{display:block;color:var(--muted);font-size:15px;line-height:1.4}
.kpi-live-values b,.kpi-live-values strong{display:block;margin-top:7px;color:var(--petrol);font-weight:600;font-size:24px;line-height:1.35}
.kpi-live-values .digits{font-family:Arial,Tahoma,sans-serif;font-size:24px}
.kpi-live-values .value-missing{font-size:19px;font-weight:400;color:var(--muted)}
.kpi-reference{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 15px;padding:12px 14px;border-radius:9px;background:#f6f3e9;color:#776b54;font-size:14px;line-height:1.6}
.kpi-reference b,.kpi-reference strong{font-size:16px;color:#756448;font-weight:600}
.kpi-reference-note{margin:-7px 0 0;font-size:14px;line-height:1.65;font-weight:400;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.workspace-kpis .kpi-meta{min-width:0;margin:0;font-size:14px;line-height:1.65;display:grid;gap:3px;color:var(--muted)}
.workspace-kpis .kpi-meta .kpi-source{overflow-wrap:anywhere;white-space:normal}
.kpi-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:auto;padding-top:13px;border-top:1px solid var(--line)}
.kpi-card-footer .button{font-size:15px}
.kpi-card-footer:empty{display:none}
.kpi-no-period{font-size:14px;color:var(--muted)}
.definition-details{font-size:14px;color:var(--muted);line-height:1.7;border-top:1px solid var(--line);padding-top:12px;margin-top:0}
.definition-details summary{cursor:pointer;color:var(--petrol);font-size:15px}
.definition-details p{margin-top:8px;white-space:normal}

/* Keep actions visible while long forms scroll. */
.portal-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:17px}
.portal-dialog .dialog-header{position:sticky;top:0;z-index:2;flex:0 0 auto;padding:18px 24px;background:#fff}
.portal-dialog .dialog-header h2{font-size:26px;line-height:1.3}
.portal-dialog .dialog-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;overflow:hidden}
.portal-dialog .dialog-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;padding:23px 24px}
.portal-dialog .dialog-footer{position:sticky;bottom:0;z-index:2;flex:0 0 auto;background:#fbfcf9;padding:14px 24px;flex-wrap:wrap;gap:9px;box-shadow:0 -6px 18px #173d3b04}
.portal-dialog .dialog-form>.form-message{flex:0 0 auto;margin:0;padding:10px 24px;border-radius:0;border-right:0;border-left:0}
.portal-dialog .dialog-form>.form-message:empty{display:none}
.portal-dialog .field{font-size:17px;font-weight:600}
.portal-dialog .field small{font-size:14px;line-height:1.6}
.form-section{min-width:0;margin:0 0 24px;padding:0;border:0}
.form-section+.form-section{padding-top:19px;border-top:1px solid var(--line)}
.form-section:last-child{margin-bottom:0}
.form-section legend{float:none;max-width:100%;padding:0 0 12px;font-size:20px;line-height:1.4;font-weight:600;color:var(--petrol)}
.portal-layout .users-table td{font-size:16px}
.portal-layout .account-form{max-width:720px}
.portal-layout .account-form .field{font-size:17px;font-weight:600}

@media(max-width:1200px){
  .portal-layout .sidebar{padding:22px 15px}
  .portal-layout .content{padding:24px}
  .unit-nav-button{font-size:15px;padding:8px 9px}
  .office-hero{gap:22px;padding:24px;grid-template-columns:minmax(0,1fr) auto}
  .office-intro h1{font-size:31px}
  .office-intro p{font-size:17px}
  .office-structure{min-width:205px;gap:12px;padding-right:19px}
  .office-structure b,.office-structure strong{font-size:24px}
  .office-structure span,.office-structure small{font-size:13px}
  .portal-layout .workspace-heading{gap:16px}
  .portal-layout .workspace-heading h1{font-size:29px}
  .portal-layout .workspace-heading>.actions{flex-wrap:wrap;max-width:170px}
  .portal-layout .ops-stat{padding:14px}
  .kpi-card{padding:18px;gap:14px}
  .portal-layout .kpi-card-head h3{font-size:21px}
  .kpi-live-values>*{padding:13px}
}

@media(max-width:1000px) and (min-width:761px){
  .office-hero{grid-template-columns:1fr}
  .office-structure{border:0;border-top:1px solid #ffffff24;padding:16px 0 0;max-width:310px;text-align:right;gap:22px}
  .office-structure b,.office-structure strong{font-size:22px}
  .portal-layout .workspace-heading{grid-template-columns:1fr}
  .portal-layout .workspace-heading>.actions{grid-column:1;grid-row:auto;justify-content:flex-start;max-width:none}
  .workspace-kpis .kpi-card-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .portal-layout{font-size:17px}
  .portal-layout .sidebar{position:static;height:auto;overflow:visible;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:7px 10px;padding:13px 18px}
  .portal-layout .sidebar .brand{width:100%;justify-content:center;padding:0 0 7px;border:0}
  .portal-layout .sidebar .brand-logo{height:58px}
  .portal-layout .side-nav{display:flex;flex:1 1 85px;gap:3px}
  .portal-layout .account-nav{display:flex;flex:2 1 170px;gap:3px;padding:0;border:0}
  .portal-layout .nav-button{font-size:15px;flex:1;justify-content:center;min-height:40px;padding:7px 9px;white-space:nowrap}
  .unit-nav{display:none}
  .mobile-unit-switch{display:block;min-width:0;width:100%;font-size:14px;color:var(--muted);padding:10px 18px 13px;margin:0;background:#fff;border-bottom:1px solid var(--line)}
  .mobile-unit-switch label{display:block;margin-bottom:5px}
  .mobile-unit-switch select{font-size:16px;padding:8px 11px;min-height:42px;background:#f7f8f4}
  .portal-layout .topbar{padding:12px 18px;min-height:59px}
  .portal-layout .topbar .location{font-size:14px;gap:6px;flex-wrap:wrap}
  .portal-layout .content{padding:20px 17px 28px}
  .portal-layout .pilot-banner{font-size:13px;padding:9px 12px;line-height:1.65}
  .office-hero{grid-template-columns:1fr;gap:14px;padding:19px;border-radius:15px;margin-top:15px}
  .office-intro h1{font-size:27px}
  .office-intro p{font-size:16px;line-height:1.55;margin-top:7px}
  .office-intro .actions{margin-top:11px;gap:7px}
  .office-intro .actions small{font-size:12px;line-height:1.5}
  .office-intro .button{min-height:34px;font-size:14px;padding:5px 11px}
  .office-structure{border:0;border-top:1px solid #ffffff24;padding:12px 0 0;min-width:0;max-width:none;gap:16px;text-align:right}
  .office-structure b,.office-structure strong{font-size:21px}
  .office-structure span,.office-structure small{font-size:12px;line-height:1.4}
  .home-tabs{margin:17px 0 21px;gap:0}
  .home-tabs button{flex:1;font-size:17px;padding:11px 8px}
  .portal-layout .section-head{margin:23px 0 15px;align-items:flex-start;gap:12px;flex-wrap:wrap}
  .portal-layout .section-head h2{font-size:25px}
  .portal-layout .section-head p{font-size:16px}
  .portal-layout .ops-stats{gap:10px;margin:15px 0 21px}
  .portal-layout .ops-stat{padding:13px 15px}
  .portal-layout .ops-stat>b{font-size:26px}
  .portal-layout .ops-stat:last-child{padding-top:14px;padding-bottom:14px}
  .portal-layout .attention-panel{padding:17px;margin:18px 0 21px}
  .portal-layout .attention-list>div{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:start}
  .portal-layout .attention-list>div>span{grid-column:1/-1;grid-row:2}
  .portal-layout .attention-list .button{font-size:14px;padding:5px 9px}
  .portal-layout .unit-grid{gap:12px;grid-template-columns:1fr}
  .portal-layout .unit-card{padding:19px;border-radius:14px}
  .portal-layout .unit-card h3{font-size:22px}
  .portal-layout .unit-card p{font-size:16px;margin-bottom:15px}
  .portal-layout .unit-card-top{margin-bottom:11px}
  .portal-layout .goal-card{padding:19px}
  .portal-layout .goal-card h3{font-size:23px}
  .portal-layout .workspace-heading{grid-template-columns:1fr;gap:14px;margin:16px 0 17px}
  .workspace-identity{gap:12px}
  .portal-layout .workspace-identity>.unit-icon{width:41px;height:41px}
  .portal-layout .workspace-heading h1{font-size:28px;margin-bottom:9px}
  .portal-layout .workspace-heading>.actions{grid-column:1;grid-row:auto;justify-content:flex-start;max-width:none}
  .workspace-purpose{grid-column:1;font-size:15px;padding-top:11px}
  .portal-layout .workspace-tabs{gap:0;flex-wrap:wrap;margin-bottom:20px}
  .workspace-tablist{width:100%;gap:0}
  .portal-layout .workspace-tabs button{font-size:16px;padding:11px 9px;flex:1;justify-content:center;line-height:1.5}
  .portal-layout .workspace-tabs button[data-action=open-dashboard]{flex:1 1 100%;width:100%;font-size:15px;padding-top:13px}
  .portal-layout .workspace-goals{grid-template-columns:1fr;gap:12px}
  .portal-layout .workspace-goals article{padding:17px}
  .portal-layout .workspace-goals h3{font-size:22px}
  .workspace-kpis .kpi-card-grid{grid-template-columns:1fr;gap:13px}
  .kpi-card{padding:17px;border-radius:13px;gap:14px}
  .kpi-card-head{flex-direction:column;align-items:stretch;gap:10px}
  .kpi-card-head>div{flex:0 0 auto;width:100%}
  .kpi-card-head .badge{align-self:flex-start}
  .portal-layout .kpi-card-head h3{font-size:22px}
  .kpi-live-values{gap:9px}
  .kpi-live-values>*{padding:13px 12px}
  .kpi-live-values span,.kpi-live-values label,.kpi-live-values small{font-size:14px}
  .kpi-live-values b,.kpi-live-values strong,.kpi-live-values .digits{font-size:22px}
  .kpi-live-values .value-missing{font-size:18px}
  .kpi-reference{padding:11px 12px;font-size:14px}
  .portal-layout .tasks-table td{font-size:16px}
  .portal-layout .template-panel>summary{font-size:19px}
  .portal-dialog[open]{width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:14px}
  .portal-dialog .dialog-header{padding:15px 17px}
  .portal-dialog .dialog-header h2{font-size:24px}
  .portal-dialog .dialog-body{padding:19px 17px}
  .portal-dialog .dialog-footer{padding:12px 17px;gap:8px}
  .portal-dialog .dialog-footer .button{min-height:42px;padding:7px 13px;font-size:16px}
  .portal-dialog .dialog-form>.form-message{padding:10px 17px;font-size:14px}
  .form-section{margin-bottom:21px}
  .form-section legend{font-size:20px;padding-bottom:12px}
  .portal-dialog .form-grid{gap:16px}
  .portal-layout .table-wrap:has(.users-table){overflow:visible;border:0;border-radius:0}
  .portal-layout .users-table,.portal-layout .users-table tbody,
  .portal-layout .users-table tr,.portal-layout .users-table td{display:block;width:100%;min-width:0;max-width:none;white-space:normal}
  .portal-layout .users-table thead{display:none}
  .portal-layout .users-table tr{padding:15px;border:1px solid var(--line);border-radius:13px;background:#fff;margin:0 0 13px}
  .portal-layout .users-table td{padding:9px 0;border:0;font-size:16px;overflow-wrap:anywhere}
  .portal-layout .users-table td:first-child{padding-top:0;padding-bottom:12px;margin-bottom:5px;border-bottom:1px solid var(--line);font-size:19px;font-weight:600}
  .portal-layout .users-table td:first-child small{font-size:14px;margin-top:5px}
  .portal-layout .users-table td[data-label]{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
  .portal-layout .users-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:14px;font-weight:400}
  .portal-layout .users-table td:last-child{padding-top:13px;padding-bottom:0}
  .portal-layout .users-table .actions{display:flex;gap:8px;flex-wrap:wrap}
  .portal-layout .users-table .actions .button{flex:1 1 84px;padding:7px 9px;min-height:39px;font-size:14px;white-space:normal}
}

@media(max-width:430px){
  .portal-layout .nav-button{font-size:0;padding:7px 8px;gap:6px}
  .portal-layout .nav-button::after{font-size:14px}
  .portal-layout .nav-button .icon{width:20px;height:20px}
  .office-hero{padding:18px}
  .office-intro h1{font-size:26px}
  .office-structure{gap:11px}
  .office-structure span,.office-structure small{font-size:12px}
  .portal-layout .workspace-heading h1{font-size:26px}
  .portal-layout .task-filters{grid-template-columns:1fr 1fr;gap:10px}
  .portal-layout .task-filters input,.portal-layout .task-filters select{font-size:15px;padding:8px 10px}
  .kpi-live-values b,.kpi-live-values strong,.kpi-live-values .digits{font-size:21px}
  .kpi-live-values .value-missing{font-size:18px}
}

@media print{
  .home-tabs,.mobile-unit-switch{display:none!important}
  .office-hero{background:#fff;color:var(--ink);border:1px solid var(--line);break-inside:avoid}
  .office-intro h1,.office-intro p,.office-intro .eyebrow,.office-structure b,.office-structure strong,.office-structure span,.office-structure small{color:var(--ink)}
  .office-structure{border-color:var(--line)}
  .kpi-card{break-inside:avoid;box-shadow:none}
}

/* لوحة العروض والشراكات هي المدخل الافتراضي للإدارة. */
.offers-frame-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 20px;gap:10px 20px;background:#fff}
.offers-frame-bar .frame-identity{display:flex;align-items:center;gap:14px;min-width:0}
.offers-frame-bar .frame-identity>img{object-fit:contain;flex:none;width:29px;height:49px}
.offers-frame-bar .frame-identity>div{display:block}
.offers-frame-bar strong{display:block;font-size:22px;line-height:1.2}
.offers-frame-bar .frame-pilot{display:block;max-width:520px;line-height:1.5;margin-top:4px}
.frame-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.frame-navigation .button{white-space:nowrap}
@media(max-width:760px){.offers-frame-bar{padding:8px 12px;gap:8px}.offers-frame-bar strong{font-size:19px}.offers-frame-bar .frame-identity{gap:10px}.offers-frame-bar .frame-pilot{font-size:12px}.frame-navigation{width:100%;gap:5px}.frame-navigation .button{font-size:14px;min-height:34px;padding:4px 8px}.offers-frame-bar .frame-identity>img{height:41px;width:25px}}

/* A single task across unit goals, indicators and weekly follow-up. */
.unit-workflow-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px 13px;padding:12px 17px;border-radius:11px;background:#ebece3;border:1px solid #e2e5da;color:#52706f;font-size:14px;margin:18px 0 5px}
.unit-workflow-strip b{font-size:16px;font-weight:400;color:#af8451}
.task-scope-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 16px;background:#eef4f1;border-right:3px solid #75a39e;border-radius:9px;margin:16px 0;font-size:15px}
.task-scope-strip b{font-weight:500}
.task-scope-strip .button{flex-shrink:0}
.task-weekly-badge{display:block!important;margin-top:10px;padding:5px 8px;color:#386f70;background:#edf4f1;font-size:12px!important;line-height:1.5;border-radius:6px;max-width:210px;white-space:normal}
.task-weekly-action{margin-top:7px;font-size:13px!important;line-height:1.5;white-space:normal!important;text-align:right}
.task-weekly-action .icon{width:16px;height:16px}
.tasks-table td:last-child{min-width:170px}
.goal-task-link{margin-top:5px!important}
.workspace-goals .goal-task-link .digits,.kpi-card-footer [data-action=filter-kpi-tasks] .digits{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;background:#e7efeb;border-radius:6px;padding:2px 5px;font-size:12px}
.kpi-card-footer{flex-wrap:wrap;gap:7px}
.kpi-card-footer [data-action=filter-kpi-tasks]{font-size:14px}
.task-link-context{border-top:1px solid #e0e7e1;margin-top:16px;padding-top:13px;display:grid;gap:10px}
.task-link-context>div{padding:10px 13px;background:#f0f5f1;border-radius:8px}
.task-link-context span{display:block;font-size:13px;color:#6c807b}
.task-link-context b{display:block;font-weight:500;font-size:17px;color:#00545f;margin-top:3px}
.task-link-context>small{font-size:13px;color:#6d7e7b;line-height:1.6}
.task-link-context .notice{font-size:14px;margin:0}
#workspace-content>.weekly-workspace .wk-heading{margin-top:18px}
#workspace-content>.weekly-workspace .wk-heading h1{font-size:29px}
#workspace-content>.weekly-workspace .wk-controls{border-color:#d8e4df}
@media(max-width:900px){.workspace-tablist{flex-wrap:wrap}.workspace-tablist [data-tab=weekly]{white-space:normal}.task-scope-strip{align-items:flex-start;flex-direction:column}.tasks-table td:last-child{min-width:0}.task-weekly-badge{max-width:none}.task-weekly-action{width:100%}}
@media(max-width:600px){.unit-workflow-strip{font-size:12px;gap:5px 8px;padding:10px}.workspace-tablist{display:flex;gap:0;width:100%}.workspace-tablist button{font-size:14px;padding:10px 7px;gap:5px;flex:1}.workspace-tablist .icon{width:17px;height:17px}.workspace-tabs .legacy-shortcut{width:100%;justify-content:center}.task-link-context b{font-size:16px}}
/* Personal workspace and a quiet daily reflection, aligned with the office identity. */
.work-reflection{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 0;padding:22px 27px;border:1px solid #e9dfca;border-inline-start:4px solid var(--orange);border-radius:17px;background:linear-gradient(110deg,#fffdf8,#f8f3e9);}
.work-reflection .eyebrow{font-size:13px;margin-bottom:7px}.work-reflection h2{font-size:23px;font-weight:500;line-height:1.45}.work-reflection p{margin-top:5px;font-size:17px}.work-reflection>.button{flex-shrink:0}
.my-work-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}.my-work-stats .stat-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:1px solid var(--line);background:#fff;border-radius:15px;padding:20px;color:var(--ink);text-align:start}.my-work-stats .stat-tile b{font-size:30px}.my-work-stats .stat-tile[aria-pressed=true]{border-color:var(--petrol);background:#edf4f1;box-shadow:inset 0 -3px var(--petrol)}.my-work-filters{grid-template-columns:2fr 1fr}.my-work-list{display:grid;gap:12px}.my-work-card{border:1px solid var(--line);border-radius:14px;padding:21px;display:grid;gap:14px}.my-work-title h2{font-size:23px;line-height:1.4;margin:4px 0 10px;overflow-wrap:anywhere}.my-work-title>small{color:var(--muted)}.my-work-meta{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:16px;color:var(--muted)}.app-help-hero{display:flex;justify-content:space-between;align-items:center;gap:35px}.app-help-hero>div:first-child{max-width:750px}.app-help-hero .brand-logo{height:135px}.app-help-hero p,.app-help-grid p{margin:12px 0 20px}.app-help-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin:20px 0}.app-help-grid .panel{margin:0}.app-help-grid h2{font-size:24px}
@media(max-width:760px){.work-reflection{padding:18px;align-items:flex-start;flex-direction:column;gap:13px}.work-reflection h2{font-size:21px}.my-work-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.my-work-filters{grid-template-columns:1fr}.my-work-card{padding:16px}.app-help-hero{align-items:flex-start;gap:16px}.app-help-hero .brand-logo{height:90px}.my-work-card .actions .button{flex:1;white-space:nowrap}}
/* Internal synchronization details stay behind a compact admin-only control. */
.portal-layout .topbar-actions .sync-notes-button{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:6px 10px;color:#576f68;border:1px solid #d9e3db;background:#f8faf6;border-radius:10px;white-space:nowrap;font-size:19px}.sync-notes-button .icon{width:19px;height:19px}.sync-notes-button .sync-notes-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 5px;border-radius:14px;background:#e8ecdf;color:#53634f;font:600 12px Arial,sans-serif;box-sizing:border-box}.sync-notes-dialog .dialog-header{gap:16px}.sync-notes-dialog .dialog-header h2{display:flex;align-items:center;gap:10px;margin:3px 0}.sync-notes-dialog .dialog-header h2>span{display:inline-block;font:600 14px Arial,sans-serif;padding:5px 8px;border-radius:15px;background:#e9eee4;color:#52674e}.sync-notes-dialog .dialog-body{min-height:0;max-height:60vh;max-height:60dvh;overflow-y:auto;overscroll-behavior:contain}.sync-notes-dialog .sync-notes-intro{font-size:20px;line-height:1.45;color:#64796f;margin:0 0 17px}.sync-notes-dialog .sync-notes-list{padding:0;margin:0;list-style:none}.sync-notes-dialog .sync-notes-list li{font-size:21px;line-height:1.6;padding:12px 15px;background:#f6f8f3;border:1px solid #e0e7db;border-radius:10px;overflow-wrap:anywhere;white-space:pre-wrap;color:#45635a}.sync-notes-dialog .sync-notes-list li+li{margin-top:9px}.sync-notes-dialog .dialog-footer{justify-content:flex-end}.sync-notes-dialog .dialog-close{flex:none;min-width:42px;min-height:42px}
@media(max-width:720px){.portal-layout .topbar-actions .sync-notes-button{padding:6px 8px;gap:5px}.sync-notes-button .sync-notes-label{display:none}.sync-notes-dialog .sync-notes-list li{padding:10px 12px;font-size:20px}.sync-notes-dialog .dialog-body{max-height:62vh;max-height:62dvh}.sync-notes-dialog .sync-notes-intro{font-size:19px}.sync-notes-dialog .dialog-header h2{font-size:25px}}
@media print{.sync-notes-button,.sync-notes-dialog{display:none!important}}

/* One scrolling body per internal dialog, including legacy module windows. */
.portal-dialog .dialog-body,.portal-dialog .od-dialog-body,.wk-dialog-scroll,.imp-dialog-scroll{
 scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#72928e #eef3f1;scroll-padding-block:18px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
}
.portal-dialog .dialog-body::-webkit-scrollbar,.portal-dialog .od-dialog-body::-webkit-scrollbar,.wk-dialog-scroll::-webkit-scrollbar,.imp-dialog-scroll::-webkit-scrollbar{width:11px}
.portal-dialog .dialog-body::-webkit-scrollbar-thumb,.portal-dialog .od-dialog-body::-webkit-scrollbar-thumb,.wk-dialog-scroll::-webkit-scrollbar-thumb,.imp-dialog-scroll::-webkit-scrollbar-thumb{background:#72928e;border:3px solid #eef3f1;border-radius:10px}
.portal-dialog .dialog-body:focus-visible,.wk-dialog-scroll:focus-visible{outline:2px solid #83aaa4;outline-offset:-3px}
.portal-dialog.od-dialog>.od-dialog-head,.portal-dialog.imp-dialog>.od-dialog-head{flex:0 0 auto}
.portal-dialog.od-dialog>.od-dialog-body{overflow-y:auto;min-height:0;flex:1 1 auto}
.portal-dialog.imp-dialog>form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding:0!important}
.portal-dialog.imp-dialog .imp-dialog-scroll{overflow-y:auto;flex:1 1 auto;min-height:0;padding:22px 28px}
.portal-dialog.imp-dialog .form-actions{position:static;flex:0 0 auto;margin:0;padding:14px 28px!important;border-top:1px solid var(--line);background:#fff;display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:650px){.portal-dialog.imp-dialog .imp-dialog-scroll{padding:18px}.portal-dialog.imp-dialog .form-actions{padding:12px 18px!important}}

/* A modal owns scrolling; keep the page beneath it in place. */
body:has(dialog[open]){overflow:hidden}
