/* Edition 11 remediation: keep overrides minimal and last in the cascade. */
/* Disable the old image-strip pseudo layer: there is one real, full-bleed photo on .pub-intro. */
html body .pub-main:not(.is-landing) .pub-intro::before,
html body .pub-main:not(.is-landing) .pub-intro::after{content:none!important;display:none!important;background:none!important}
html body .pub-main:not(.is-landing) .pub-intro{background-size:cover,cover!important;background-repeat:no-repeat!important;background-position:center,center!important;isolation:isolate}
html body .pub-main:not(.is-landing) .pub-intro :is(h1,p){max-width:min(770px,94%)!important;text-shadow:0 1px 8px rgba(0,22,38,.45)}
/* All native single-line select controls, including filters, role editors, public complaint and inspector forms. */
html[dir=rtl] body select:not([multiple]):is(:not([size]),[size="1"]),html[dir=ltr] body select:not([multiple]):is(:not([size]),[size="1"]){
 appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;
 background-color:#fff!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b6482' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-size:18px 18px!important;
 min-height:44px!important;line-height:1.4!important;color:#123c54!important;box-sizing:border-box!important;
}
html[dir=rtl] body select:not([multiple]):is(:not([size]),[size="1"]){background-position:left 13px center!important;padding-left:42px!important;padding-right:14px!important}
html[dir=ltr] body select:not([multiple]):is(:not([size]),[size="1"]){background-position:right 13px center!important;padding-right:42px!important;padding-left:14px!important}
/* Public forms: edition07's `.pub-main .field :is(input:not()...,select,textarea)` background shorthand outranks the rule above
   (:is() takes its most specific argument) and removed the arrow; restate it with higher specificity. */
html[dir] body .pub-main .field select:not([multiple]):is(:not([size]),[size="1"]){background-color:#fbfdfe!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b6482' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:18px 18px!important}
html[dir] body .pub-main .field select:not([multiple]):is(:not([size]),[size="1"]):focus{background-color:#fff!important}
html[dir=rtl] body .pub-main .field select:not([multiple]):is(:not([size]),[size="1"]){background-position:left 13px center!important;padding-left:42px!important;padding-right:16px!important}
html[dir=ltr] body .pub-main .field select:not([multiple]):is(:not([size]),[size="1"]){background-position:right 13px center!important;padding-right:42px!important;padding-left:16px!important}
html body select:not([multiple]):disabled{background-color:#ecf3f6!important;color:#596f7c!important;opacity:.75!important}
html body select:not([multiple]):focus-visible{outline:2px solid #0c7a9b!important;outline-offset:2px}
html body select[multiple],html body select[size]:not([size="1"]){background-image:none!important;appearance:auto!important}
/* Keep photo and input card visible and fit login at ordinary desktop heights. */
html body .auth.auth-premium .auth-story-top{display:none!important}
@media(min-width:900px) and (max-height:790px){
 html body .auth.auth-premium{padding-block:8px!important;min-height:0!important}
 html body .auth.auth-premium .auth-stage{height:calc(100dvh - 120px)!important;min-height:0!important;padding:clamp(14px,2.5vw,32px)!important}
 html body .auth.auth-premium .auth-card{padding:clamp(18px,2.5vw,34px)!important;gap:8px!important}
}
.e11-conversation .is-system{background:#f2f5f6!important;border-color:#dce7eb!important}
.e11-customer-reply{margin-block:18px 8px;padding:20px;border:1px solid #daeaf1;border-radius:14px;background:#f8fcfd}
.e11-customer-reply textarea{width:100%;min-height:110px}
.e11-pages-info{padding:12px 20px 0;color:#4f6c7a;font-size:.85rem}
[data-e11-results] .e11-pagination{border-top:1px solid #e4edf2;margin-top:12px}
@media(max-width:600px){html body .pub-main:not(.is-landing) .pub-intro :is(h1,p){max-width:100%!important}.e11-customer-reply{padding:14px}}
@media(prefers-reduced-motion:reduce){html body select{transition:none!important}}
html body .rvw.rv-dash>.iw-top:has(.ph){background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body .rvw.rv-dash>.iw-top>.ph{min-height:174px!important;width:100%!important;max-width:none!important;background:linear-gradient(90deg,rgba(4,36,57,.85),rgba(5,46,66,.30)),url('photos/harbor.webp') center 55%/cover no-repeat!important}
html[dir=rtl] body .rvw.rv-dash>.iw-top>.ph{background-image:linear-gradient(270deg,rgba(4,36,57,.85),rgba(5,46,66,.30)),url('photos/harbor.webp')!important}
html body .ja-authority-story{background-image:url('photos/harbor.webp')!important;background-position:56% 50%!important;background-size:cover!important}
html body .ja-authority-story::before{background:linear-gradient(180deg,rgba(3,35,54,.28),rgba(3,34,51,.04) 46%,rgba(3,32,50,.56))!important}

.e11-all-load{margin:13px 0 7px;padding:16px;background:#f5fafc;border:1px solid #dfebf0;border-radius:14px}
.e11-all-load .op-load{max-height:none}
.e11-all-load .e11-pagination{padding:14px 0 5px}
.e11-all-load .btn{margin-top:6px}
@media(max-width:760px){.e11-all-load{padding:12px}.e11-load-summary{flex-wrap:wrap}.e11-pagination{gap:4px}.e11-drawer[open]>.op-form{width:100vw!important}}

/* General-comment archive gets independently navigable pages without horizontal overflow. */
#general-notes{scroll-margin-block-start:88px}
.e11-note-pages{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 20px}
.e11-note-pages .chip{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:600px){.e11-note-pages{padding:12px 14px;gap:6px}.e11-note-pages .chip{min-height:44px}}

/* Edition 11.3 — dynamic quotations: one row to start, full-width add/remove, responsive labels. */
[hidden]{display:none!important}
.op-qform .op-lines{gap:10px}
.op-qform .op-line{grid-template-columns:24px minmax(0,1fr) 90px 125px 110px 100px 65px;gap:8px;align-items:center}
.op-qform .op-unit-wrap{min-width:0;display:flex;flex-direction:column;gap:5px}
.op-qform .op-unit-wrap .input{width:100%;min-width:0;max-width:100%;font-size:.88rem}
.op-qform .op-line .op-remove{width:100%;min-width:0;min-height:38px;padding:6px 8px}
.op-qform .op-row-error{grid-column:1/-1;display:block;color:#a32930;font-size:.82rem;line-height:1.5}
.op-qform .op-row-error:empty{display:none}
.op-qform .op-line.op-invalid{border:1px solid #d89498;border-radius:12px;padding:8px;background:#fff7f7}
.op-qform .op-line-tools{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:12px 0 4px}
.op-qform [data-op-count]{font-variant-numeric:tabular-nums;color:#4f6c7a;font-size:.86rem}
.op-qform .op-form-help{font-size:.85rem;color:#41677b;min-height:1.4em;margin:8px 0}
.op-qform [data-op-save]:not([hidden]){min-height:46px}
.e13-toast{position:fixed;z-index:10000;inset:auto 20px 22px auto;width:min(450px,calc(100vw - 40px));padding:14px 18px;background:#fff1f1;color:#8e2834;border:1px solid #e9bdc4;border-radius:12px;box-shadow:0 16px 38px rgba(8,38,57,.16);transform:translateY(110px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.7}
html[dir=rtl] .e13-toast{inset-inline-start:20px;inset-inline-end:auto}
.e13-toast.on{transform:translateY(0);opacity:1;pointer-events:auto}
.e13-ajax-loading{opacity:.63;transition:opacity .15s;pointer-events:none}
@media(max-width:1140px){.op-qform .op-lh{display:none}.op-qform .op-line{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;border:1px solid #dfebf1;border-radius:12px}.op-qform .op-ln,.op-qform .op-line .op-d{grid-column:1/-1;text-align:start}.op-qform .op-lt{grid-column:1/3;text-align:start}.op-qform .op-line .op-remove{grid-column:3}.op-qform .op-line .op-row-error{grid-column:1/-1}}
@media(max-width:580px){.op-qform .op-line{grid-template-columns:repeat(2,minmax(0,1fr))}.op-qform .op-line .op-d,.op-qform .op-ln{grid-column:1/-1}.op-qform .op-line .op-unit-wrap{grid-column:1/-1}.op-qform .op-line .op-lt,.op-qform .op-line .op-remove{grid-column:auto}.op-qform .op-line .op-row-error{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.e13-toast,.e13-ajax-loading{transition:none}}

/* Edition 11.4: withheld completion decisions never appear until the server
   has provided the prerequisites. Keep the explanatory text visible. */
button[data-e14-hide-unready][disabled], button[data-e14-hide-unready][hidden] { display: none !important; }
/* Revision 11.5 ---------------------------------------------------------------------------------------- */
/* Required-fields note now opens each form (R115-01). */
form > .req-note{margin:0 0 16px!important}
/* General comment mode: no stars and no service code (R115-31). Outranks `.pub-main.is-feedback .rating-field`. */
.pub-main.is-feedback .e11-general-mode .rating-field,.pub-main.is-feedback .e11-general-mode .group:has(#r-code){display:none!important}
/* Show/hide password (R115-41): the eye sits inside the field's end edge in both directions. */
.e115-pw{position:relative;display:block}
.e115-pw > input{width:100%;padding-inline-end:48px!important}
.e115-pw-toggle{position:absolute;inset-block:0;inset-inline-end:4px;margin:auto 0;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#2f5b70;cursor:pointer}
.e115-pw-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.e115-pw-toggle:hover{background:#eaf3f7}
.e115-pw-toggle:focus-visible{outline:2px solid #0c7a9b;outline-offset:1px}
/* Authority portal: test-account notice as a compact badge with tooltip (R115-44). */
.pv.is-auth .pv-search .pv-test.pv-test-badge{position:relative;display:inline-flex!important;max-width:none!important;margin-top:12px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.pv.is-auth .pv-search .pv-test.pv-test-badge .pv-tip{color:#fff!important}
.pv-tip-btn{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 12px;border:1px solid #f0c4b4;border-radius:999px;background:#fff7f4;color:#79351e;font:inherit;font-size:.82rem;font-weight:700;cursor:help}
.pv-tip-btn .ic{width:16px;height:16px;stroke:#79351e}
.pv-tip-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.pv-tip{position:absolute;top:calc(100% + 8px);inset-inline-start:0;z-index:20;width:max-content;max-width:min(320px,80vw);padding:10px 12px;border-radius:10px;background:#1c2f3b;color:#fff;font-size:.82rem;font-weight:500;line-height:1.6;box-shadow:0 10px 26px rgba(8,30,44,.28);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s,transform .15s,visibility .15s}
.pv-test-badge:hover .pv-tip,.pv-test-badge:focus-within .pv-tip,.pv-test-badge.is-open .pv-tip{opacity:1;visibility:visible;transform:none}
@media (prefers-reduced-motion:reduce){.pv-tip{transition:none}}
/* Team search (R115-27). */
.e11-page-size[role=search]{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.e115-team-q input{min-width:220px;min-height:44px}
.e115-empty{text-align:center;color:#5b7484;padding:22px!important}
@media (max-width:640px){.e115-team-q,.e115-team-q input{width:100%;min-width:0}}
.e115-load-split{display:block;margin-top:2px;color:#5b7484;font-size:.8rem}
/* Complaint conversation (R115-16): customer on one side, the organisation (staff + system) on the other. */
.e11-conversation .tl-item.is-system{margin-inline-start:auto!important}
.e11-conversation .e11-sender{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;font-weight:700;color:#123c54}
.e11-conversation .e115-role{font-size:.75rem;font-weight:600;color:#5b7484;padding:1px 8px;border-radius:999px;background:rgba(15,94,124,.08)}
.e11-conversation .tl-item.is-customer{border-inline-start:4px solid #c9a35b!important}
.e11-conversation .tl-item.is-staff{border-inline-end:4px solid #0f7fa3!important}
.e11-conversation .note p{margin:4px 0 0}
@media(max-width:800px){.e11-conversation .tl-item{max-width:92%!important}}
/* Stars (R115-31/32): the five visually hidden radios are 1px boxes stacked over the middle star and stole its clicks
   (clicking star 3 selected 5). Labels take every pointer event; keyboard focus on the radios is unchanged. */
.rating input[type=radio]{pointer-events:none!important;clip-path:inset(50%)}
/* Stars show the value (R115-32): 1..n gold, the rest grey; hovering previews 1..hovered. DOM order is input,label,...
   so "labels after the checked one" are the higher, unselected stars in both RTL and LTR. Outranks maritime-design's all-gold rule. */
.pub-main.is-feedback .rating:not(:has(input:checked)) label .star,
.pub-main.is-feedback .rating input:checked + label ~ label .star{color:#cfd9df!important;fill:#cfd9df!important}
.pub-main.is-feedback .rating-surface .rating:hover label .star{color:#dfa02f!important;fill:#dfa02f!important}
.pub-main.is-feedback .rating-surface .rating label:hover ~ label .star{color:#cfd9df!important;fill:#cfd9df!important}
.pub-main.is-feedback .rating label .star{transition:fill .12s ease,color .12s ease}
@media (prefers-reduced-motion:reduce){.pub-main.is-feedback .rating label .star{transition:none}}
.e115-gate-hint{margin:0;color:#5b7484;font-size:.85rem;align-self:center}
/* Narrower screens: the search hero clips floating content, so the notice opens in the flow under the badge. */
@media (max-width:1199px){
 .pv.is-auth .pv-search .pv-test.pv-test-badge{flex-direction:column;align-items:flex-start}
 .pv-tip{position:static;display:none;width:auto;max-width:100%;margin-top:8px;opacity:1;visibility:visible;transform:none;transition:none}
 .pv-test-badge:hover .pv-tip,.pv-test-badge:focus-within .pv-tip,.pv-test-badge.is-open .pv-tip{display:block}
}
@media (min-width:1200px){
 .pv-tip{top:50%;inset-inline-start:calc(100% + 10px);transform:translateY(-50%) translateX(0)}
 .pv-test-badge:hover .pv-tip,.pv-test-badge:focus-within .pv-tip,.pv-test-badge.is-open .pv-tip{transform:translateY(-50%)}
}
/* Sign-in redesign (R115-45) following approved-references/JeddahAnchor_10Screens_Mockup.png screen 1:
   full-bleed harbour photo, one centred card, icon fields, full-width button. Same markup, routes and fields. */
html body main#main.auth.auth-premium,html body main#main.pv-main:has(.ja-authority-frame){max-width:none!important;width:100%!important;margin:0!important;padding:0!important;background:none!important}
html body main#main.auth.auth-premium .auth-stage,html body main#main.pv-main .ja-authority-frame{
 position:relative!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;gap:0!important;
 width:100%!important;max-width:none!important;height:auto!important;min-height:calc(100vh - 150px)!important;min-height:calc(100dvh - 150px)!important;
 margin:0!important;padding:28px 16px!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
 background:linear-gradient(180deg,rgba(5,34,52,.30),rgba(5,34,52,.55)),url('photos/harbor.webp') center 58%/cover no-repeat #0b3a55!important}
html body main#main.auth.auth-premium .auth-story,html body main#main.pv-main .ja-authority-story{display:none!important}
html body main#main.auth.auth-premium .auth-card,html body main#main.pv-main .ja-authority-frame .pv-card.pv-login{
 position:relative!important;inset:auto!important;transform:none!important;width:min(440px,100%)!important;max-width:440px!important;min-height:0!important;height:auto!important;
 margin:0!important;padding:30px 34px 24px!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:20px!important;
 background:rgba(255,255,255,.97)!important;box-shadow:0 24px 60px rgba(4,28,44,.35)!important;text-align:center!important}
html body main#main.auth.auth-premium .auth-brand{display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;margin:0 0 14px!important;padding:0 0 14px!important;border-bottom:1px solid #e5eef3!important;text-align:center!important}
html body main#main.auth.auth-premium .auth-brand img{width:64px!important;height:64px!important}
html body main#main.auth.auth-premium .auth-brand strong{font-size:1.05rem!important;color:#0b3a55!important}
html body main#main.auth.auth-premium .auth-brand small{font-size:.72rem!important;letter-spacing:.06em!important;color:#5b7484!important}
html body main#main.pv-main .ja-authority-frame .pv-big-ic{margin:0 auto 10px!important;width:60px!important;height:60px!important}
html body main#main.auth.auth-premium .auth-card h1,html body main#main.pv-main .ja-authority-frame .pv-login h1{margin:4px 0 6px!important;font-size:1.65rem!important;line-height:1.3!important;color:#0b2f45!important;text-align:center!important}
html body main#main.auth.auth-premium .auth-card > p.muted,html body main#main.pv-main .ja-authority-frame .pv-login > p:not(.pv-small){margin:0 0 18px!important;font-size:.9rem!important;line-height:1.6!important;color:#5b7484!important;text-align:center!important}
html body main#main.auth.auth-premium .auth-card form,html body main#main.pv-main .ja-authority-frame .pv-form{text-align:start!important;display:grid!important;gap:12px!important;margin:0!important}
html body main#main.auth.auth-premium .auth-card .field,html body main#main.pv-main .ja-authority-frame .pv-form .field{margin:0!important}
html body main#main.auth.auth-premium .auth-card label,html body main#main.pv-main .ja-authority-frame .pv-form label{display:block!important;margin:0 0 6px!important;font-weight:600!important;font-size:.88rem!important;color:#18435a!important}
/* Leading icons: user for the e-mail field, lock for the password field. */
html body main#main.auth.auth-premium input[name=email],html body main#main.pv-main .ja-authority-frame input[name=email],
html body main#main.auth.auth-premium input[name=password],html body main#main.pv-main .ja-authority-frame input[name=password]{
 width:100%!important;min-height:50px!important;border-radius:12px!important;border:1px solid #cfdfe7!important;background-color:#f8fbfd!important;
 background-repeat:no-repeat!important;background-size:18px 18px!important;padding-inline-start:44px!important;font-size:1rem!important}
html[dir=rtl] body main#main input[name=email]:not([dir=ltr]),html[dir=rtl] body main#main input[name=password]:not([dir=ltr]){background-position:right 14px center!important}
html body main#main input[name=email][dir=ltr],html body main#main input[name=password][dir=ltr],html[dir=ltr] body main#main input[name=email],html[dir=ltr] body main#main input[name=password]{background-position:left 14px center!important}
html body main#main.auth.auth-premium input[name=email],html body main#main.pv-main .ja-authority-frame input[name=email]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%235b7484%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6%22/%3E%3C/svg%3E")!important}
html body main#main.auth.auth-premium input[name=password],html body main#main.pv-main .ja-authority-frame input[name=password]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%235b7484%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224.5%22 y=%2210.5%22 width=%2215%22 height=%2210%22 rx=%222.2%22/%3E%3Cpath d=%22M8 10.5V8a4 4 0 0 1 8 0v2.5%22/%3E%3C/svg%3E")!important}
html body main#main.auth.auth-premium input:focus-visible,html body main#main.pv-main .ja-authority-frame .pv-form input:focus-visible{outline:2px solid #0c7a9b!important;outline-offset:1px!important;background-color:#fff!important}
html body main#main.auth.auth-premium .auth-card form > button[type=submit],html body main#main.pv-main .ja-authority-frame .pv-form > button[type=submit]{width:100%!important;min-height:52px!important;margin-top:6px!important;border-radius:12px!important;background:#0b4f72!important;border-color:#0b4f72!important;color:#fff!important;font-size:1.02rem!important;justify-content:center!important}
html body main#main.auth.auth-premium .auth-card form > button[type=submit]:hover,html body main#main.pv-main .ja-authority-frame .pv-form > button[type=submit]:hover{background:#083d59!important}
html body main#main.auth.auth-premium .auth-foot,html body main#main.pv-main .ja-authority-frame .pv-small{margin:16px 0 0!important;font-size:.8rem!important;color:#607b8d!important;text-align:center!important}
@media (max-width:640px){
 html body main#main.auth.auth-premium .auth-stage,html body main#main.pv-main .ja-authority-frame{min-height:calc(100vh - 140px)!important;padding:20px 16px!important;place-items:start center!important}
 html body main#main.auth.auth-premium .auth-card,html body main#main.pv-main .ja-authority-frame .pv-card.pv-login{padding:24px 20px 20px!important}
}
/* Fit header + stage + footer inside 1366x768 (acceptance: no page-design scroll on a normal desktop). */
@media (min-width:641px){
 html body main#main.auth.auth-premium .auth-stage,html body main#main.pv-main .ja-authority-frame{padding:14px 16px!important}
 html body main#main.auth.auth-premium .auth-card,html body main#main.pv-main .ja-authority-frame .pv-card.pv-login{padding:22px 32px 18px!important}
 html body main#main.auth.auth-premium .auth-brand{gap:4px!important;margin:0 0 10px!important;padding:0 0 10px!important}
 html body main#main.auth.auth-premium .auth-brand img{width:52px!important;height:52px!important}
 html body main#main.pv-main .ja-authority-frame .pv-big-ic{width:52px!important;height:52px!important;margin-bottom:6px!important}
 html body main#main.auth.auth-premium .auth-card > p.muted,html body main#main.pv-main .ja-authority-frame .pv-login > p:not(.pv-small){margin-bottom:12px!important}
 html body main#main.auth.auth-premium .auth-card form,html body main#main.pv-main .ja-authority-frame .pv-form{gap:10px!important}
 html body main#main.auth.auth-premium input[name=email],html body main#main.pv-main .ja-authority-frame input[name=email],
 html body main#main.auth.auth-premium input[name=password],html body main#main.pv-main .ja-authority-frame input[name=password]{min-height:46px!important}
 html body main#main.auth.auth-premium .auth-card form > button[type=submit],html body main#main.pv-main .ja-authority-frame .pv-form > button[type=submit]{min-height:48px!important;margin-top:4px!important}
 html body main#main.auth.auth-premium .auth-foot,html body main#main.pv-main .ja-authority-frame .pv-small{margin-top:12px!important}
}
/* Toasts (R115-08): text + Close button; never wider than the viewport. */
.e13-toast{display:flex!important;align-items:flex-start;gap:10px;max-width:calc(100vw - 32px)}
.e13-toast .e13-toast-text{flex:1;min-width:0;overflow-wrap:anywhere}
.e13-toast-close{flex:none;width:32px;height:32px;margin:-6px -8px -6px 0;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:inherit;font-size:1.35rem;line-height:1;cursor:pointer;opacity:.75}
html[dir=rtl] .e13-toast-close{margin:-6px 0 -6px -8px}
.e13-toast-close:hover{opacity:1;background:rgba(0,0,0,.06)}
.e13-toast-close:focus-visible{outline:2px solid currentColor;outline-offset:1px;opacity:1}
.notice.danger.e11-toast{display:flex;align-items:flex-start;gap:10px}
.notice.danger.e11-toast > div{flex:1;min-width:0}
.notice.danger.e11-toast .e13-toast-close{color:inherit;opacity:.85}
@media (max-width:640px){.e13-toast{inset-inline:16px!important;width:auto!important}}
/* Scope labels (R115-29): system-wide totals vs. search/filter results. */
.e115-sys{display:inline-block;margin-inline-start:10px;padding:2px 9px;border-radius:999px;background:#eef5f8;color:#3f6273;font-size:.72rem;font-weight:600;vertical-align:middle}
.e115-scope{margin:0 0 12px;color:#3f6273;font-size:.86rem}
.card-head .e115-scope{margin:0 8px;font-size:.78rem}
/* Sidebar (R115-48): exactly one viewport tall; brand and account/logout always visible; compact rhythm so the
   whole menu fits common laptop heights, and only the link list scrolls (thin) on shorter screens. Desktop only. */
@media (min-width:1025px){
 html body .shell > .sidebar{position:sticky!important;top:0!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 .sidebar > .sidebar-head,.sidebar > .side-foot{flex:none!important}
 .sidebar > .side-nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
 html body .shell > .sidebar > .side-nav > a{min-height:34px!important;padding-block:5px!important}
 html body .shell > .sidebar > .side-nav > .side-nav-label.ja-side-group{margin-top:10px!important;padding-top:8px!important}
 html body .shell > .sidebar > .sidebar-head{padding-block:14px!important}
}
@media (min-width:1025px) and (max-height:820px){
 html body .shell > .sidebar > .side-nav > a{min-height:32px!important;padding-block:4px!important}
 html body .shell > .sidebar > .side-foot .side-link{padding-block:6px!important;min-height:38px!important}
 html body .shell > .sidebar > .side-nav > .side-nav-label.ja-side-group{margin-top:4px!important;padding-top:6px!important;margin-bottom:3px!important}
 html body .shell > .sidebar > .sidebar-head{padding-block:10px!important}
}
/* Server error toast sits below the sticky header (it was under the language switch, so Close was unreachable). */
.notice.danger.e11-toast{inset-block-start:84px!important;z-index:10001!important}
/* Reserve room for the eye at the end of the text (input direction), above older padding rules. */
html body .e115-pw > input[dir=ltr]{padding-right:48px!important}
html body .e115-pw > input[dir=rtl],html[dir=rtl] body .e115-pw > input:not([dir]){padding-left:48px!important}
html body main#main.auth.auth-premium .e115-pw > input[dir=ltr],html body main#main.pv-main .e115-pw > input[dir=ltr]{padding-right:48px!important}
/* Admin hero photos (R11.5, PENDING OWNER APPROVAL): replace the cropped ship-funnel photo (cargo-ship) on
   Complaints and Ratings only. Existing Pexels-licensed assets (docs/IMAGE-ASSETS.md); no other page changes. */
.content[data-section="admin/complaints"] .content-in{--ja-hero-photo:url('photos/harbor.webp')}
.content[data-section="admin/feedback"] .content-in{--ja-hero-photo:url('photos/calm-sea.webp')}
.content[data-section="admin/complaints"] .content-in .page-head{background-position:center,50% 54%!important}
.content[data-section="admin/feedback"] .content-in .page-head{background-position:center,50% 78%!important}
/* Usernames (R115-42). */
.e115-uname-tag{display:block;margin-top:2px;color:#5b7484;font-size:.78rem}
.e115-uname-progress{margin-inline-start:8px;padding:2px 9px;border-radius:999px;background:#eef5f8;color:#3f6273;font-size:.75rem;font-weight:600}
.fi-li-act .e115-uname{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.fi-li-act .e115-uname input{width:170px;min-height:36px}
/* Dashboard examiner widget (R11.5): 2-row preview; full list in a side drawer; cards keep their own height. */
.dashboard-view .op-dash{align-items:start}
.e115-drawer{position:fixed;inset-block:0;inset-inline-end:0;inset-inline-start:auto;margin:0;width:min(460px,100vw);height:100vh;height:100dvh;max-height:none;max-width:100vw;padding:0;border:0;background:#fff;color:#123c54;box-shadow:0 0 40px rgba(6,30,44,.28);display:none;flex-direction:column}
.e115-drawer[open]{display:flex}
.e115-drawer::backdrop{background:rgba(6,30,44,.45)}
.e115-drawer-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e5eef3}
.e115-drawer-head h2{margin:0;font-size:1.1rem}
.e115-drawer-x{width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer}
.e115-drawer-x:hover{background:#eef5f8}
.e115-drawer-x:focus-visible{outline:2px solid #0c7a9b;outline-offset:1px}
.e115-drawer-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px 18px 22px}
.e115-drawer-body[aria-busy=true]{opacity:.6}
.e115-load-search{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.e115-load-search input[type=search]{flex:1 1 180px;min-width:0;min-height:42px}
.e115-load-search select{width:86px;min-height:42px}
.e115-drawer .e11-all-load > a.btn-ghost{display:none}
.e115-drawer .op-load{max-height:none}
/* Compact preview rows so the workload card sits level with "أقرب المواعيد". Dashboard only. */
.dashboard-view .op-dash > section .op-load{gap:6px!important;margin:8px 0 0!important}
.dashboard-view .op-dash > section .op-load > li{padding:8px 12px!important;min-height:0!important}
.dashboard-view .op-dash > section .e11-load-summary{padding:6px 0 4px!important;margin:0!important}
.dashboard-view .op-dash > section .e11-see-all{margin-top:10px!important}
.dashboard-view .op-dash > section .op-load > li{padding:6px 12px!important}
.dashboard-view .op-dash > section .e11-see-all{min-height:36px!important;padding:4px 14px!important;margin-top:8px!important}
/* Revision 11.6: Team card head (title, count, username progress, search) wraps on phones instead of overflowing the page (EN 390px: +10px). */
@media (max-width:640px){section[aria-labelledby="op-tm"] > .card-head{flex-wrap:wrap;row-gap:10px}section[aria-labelledby="op-tm"] > .card-head > form.e11-page-size{flex:1 1 100%;margin-inline-start:0}}
