/* Shared, theme-independent customer and staff workspace. */
.nj-workspace,.njw-admin{--njw-blue:#304fef;--njw-ink:#172746;--njw-line:#dde5f2;--njw-muted:#71829d;color:var(--njw-ink);font:inherit;font-size:16px;line-height:1.85;box-sizing:border-box}.nj-workspace *,.njw-admin *{box-sizing:border-box}.nj-workspace{clear:both;margin:28px 0;min-width:0}.njw-admin{max-width:1250px;margin:24px 20px 24px 0}.njw-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px;background:#fff;border:1px solid var(--njw-line);border-radius:14px}.njw-eyebrow{font-size:11px;color:#8997af}.njw-hero h2{font-size:26px;line-height:1.5;margin:6px 0 10px;color:var(--njw-ink)}.njw-hero p{font-size:14px;color:#7b8ba5;margin:0}.nj-status{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;background:#edf1ff;color:#304ab3;border:1px solid #dae2fa;border-radius:24px;padding:7px 13px;font-size:12px;font-weight:700}.nj-status:before{content:'';width:6px;height:6px;background:currentColor;border-radius:50%;flex-shrink:0}.nj-status-review,.nj-status-revision{background:#fff1e7;color:#a15022;border-color:#f1dcca}.nj-status-approved{background:#edf6f1;color:#327655;border-color:#d1e8dc}.njw-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none!important;margin:22px 0 28px!important;padding:24px 12px!important;background:#fafbff;border:1px solid #e8edf6;border-radius:12px;direction:rtl}.njw-progress li{position:relative;min-width:0;text-align:center;padding:0 4px;margin:0;list-style:none;color:#8b99ae}.njw-progress li:after{content:'';position:absolute;top:17px;right:calc(50% + 22px);width:calc(100% - 44px);height:2px;background:#e0e7f3}.njw-progress li:last-child:after{display:none}.njw-progress li.done:after{background:#304fef}.njw-progress li>span{position:relative;z-index:1;width:36px;height:36px;margin:0 auto 12px;border:1px solid #d6e0ef;border-radius:50%;display:grid;place-items:center;background:white;font:700 12px/1 Arial,sans-serif}.njw-progress li.done>span{background:#304fef;border-color:#304fef;color:white;font-size:16px}.njw-progress li.active>span{color:#a15022;border:2px solid #e8834c;background:#fff3eb;box-shadow:0 0 0 4px #fff3eb}.njw-progress li>b{font-size:12px;line-height:1.7;font-weight:700;display:block}.njw-progress li.done>b{color:#526583}.njw-progress li.active>b{color:#a15022}.njw-delivery{background:white;border:1px solid var(--njw-line);border-radius:12px;padding:24px;margin:0 0 28px}.njw-delivery-title{display:flex;align-items:center;gap:12px;margin-bottom:16px}.njw-delivery-title>span{width:36px;height:36px;flex:0 0 36px;background:#edf1ff;color:#304fef;border-radius:10px;display:grid;place-items:center;font-size:20px}.nj-workspace h3{font-size:21px;line-height:1.5;color:var(--njw-ink);margin:0 0 8px}.njw-delivery-title p{font-size:13px;color:#7b8ba5;margin:0}.nj-workspace button,.nj-workspace .button{font-family:inherit;font-size:14px;line-height:1.5;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;border:1px solid #304fef;border-radius:8px;background:#304fef;color:white;padding:11px 20px;text-decoration:none;cursor:pointer;box-shadow:none;transform:none}.nj-workspace button:hover,.nj-workspace .button:hover{background:#2541cc;border-color:#2541cc;color:white;transform:none}.njw-delivery button{margin-top:16px}.njw-delivery p{font-size:14px;line-height:1.9;color:#6d7e98}.njw-delivery label{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.8;margin:14px 0}.njw-delivery input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin-top:4px;accent-color:#304fef}.njw-delivery-editor{padding-top:20px;border-top:1px solid #e1e8f3;margin-top:20px}.njw-delivery-editor summary{font-size:15px;font-weight:700;color:#3855bd;cursor:pointer}.njw-delivery-editor small{font-size:11px;color:#8393ae}.njw-approval{padding:18px;border-radius:10px;background:#f4f6ff;margin-top:20px}.nj-attachment{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;border:1px solid #d7e1f2;border-radius:8px;background:#fafbfe;color:#304baf;padding:10px 14px;margin:10px 0;overflow-wrap:anywhere;text-decoration:none;font-size:13px;line-height:1.8}.nj-attachment:hover{background:#edf2ff;color:#203b9a}.njw-conversation-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.njw-conversation-head p{font-size:13px;line-height:1.8;color:#7c8ba4;margin:0}.njw-refresh{font-size:13px;font-weight:700;color:#506da9;border:1px solid #d9e2f2;background:white;border-radius:8px;padding:8px 12px;white-space:nowrap}.nj-messages{background:#f4f6fb;border:1px solid #e0e7f2;border-radius:12px;padding:22px;max-height:650px;overflow:auto;overscroll-behavior:auto;margin-bottom:22px}.nj-message{max-width:91%;background:white;border:1px solid #e1e7f1;border-radius:12px 3px 12px 12px;padding:18px;margin:0 0 18px;overflow-wrap:anywhere}.nj-message:last-child{margin-bottom:0}.nj-message.staff{background:#edf1ff;border-color:#dbe3fa;margin-inline-start:auto;border-radius:3px 12px 12px 12px}.nj-message-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px}.njw-avatar{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;background:#e8edf7;color:#60769e;border-radius:9px;font-weight:700}.staff .njw-avatar{background:#304fef;color:white}.nj-message-meta time{margin-inline-start:auto;direction:ltr;font-size:11px;color:#7c8ea9}.nj-message p{font-size:15px;line-height:1.95;color:#455a7d;margin:12px 0 0;white-space:normal}.nj-message .nj-attachment{background:#ffffffcc}.nj-message-form{background:white;border:1px solid #dfe7f2;border-radius:12px;padding:24px;margin:24px 0;scroll-margin-top:24px}.nj-message-form label{display:block;font-size:14px;font-weight:700;color:#3b5074;margin:18px 0 8px}.njw-compose-intro{font-size:13px;color:#7b8da6;margin:0}.nj-message-form textarea,.nj-message-form select,.nj-message-form input:not([type=hidden]):not([type=checkbox]):not([type=file]){display:block;width:100%;max-width:100%;font:inherit;font-size:16px;line-height:1.7;min-height:46px;color:#263f68;background:#fafbff;border:1px solid #c1cee5;border-radius:8px;padding:12px}.nj-message-form textarea{min-height:130px;resize:vertical}.nj-message-form button{margin-top:18px}.njw-upload{background:#f8faff;border:1px dashed #bdcdeb;border-radius:10px;padding:0 16px 14px;margin-top:20px}.njw-upload input[type=file]{max-width:100%;font:inherit;font-size:13px}.njw-upload input::file-selector-button{border:1px solid #c9d6f1;background:#edf2ff;color:#3b54a0;border-radius:6px;padding:8px 12px;font:inherit;cursor:pointer;margin-inline-end:10px}.njw-upload small,.nj-help{display:block;font-size:12px;line-height:1.9;color:#7b8da7;margin:12px 0}.njw-file-list{font-size:12px;line-height:1.9;padding-right:18px;overflow-wrap:anywhere}.nj-notice{border-right:3px solid #829bf0;background:#edf2ff;border-radius:8px;padding:14px 18px;font-size:14px;line-height:1.9;color:#526c9d;margin:20px 0}.njw-jump{display:inline-flex;align-items:center;background:white;border:1px solid #d6e1f3;border-radius:8px;padding:9px 14px;font-size:14px;font-weight:700;color:#3d58ad;margin-bottom:18px}.nj-page-link{display:inline-block;margin:0 0 0 18px;font-size:14px}.njw-admin-heading{background:#172746;color:#fff;border-radius:12px;padding:24px 28px;margin-bottom:24px}.njw-admin-heading h1{font-size:28px;line-height:1.5;color:white;padding:10px 0}.njw-admin-heading span{font-size:12px;color:#aabce4}.njw-admin-heading p{font-size:14px;color:#b8c8e4}.njw-admin .widefat th,.njw-admin .widefat td{padding:14px;font-size:14px}.njw-admin .widefat th{background:#edf2fb;color:#38517f}.njw-admin .widefat a.button{background:#304fef;border-color:#304fef;color:white;border-radius:6px}.njw-admin .nj-workspace{font-family:inherit}.nj-workspace :is(a,button,input,select,textarea):focus-visible,.njw-admin :is(a,button,input,select,textarea):focus-visible{outline:3px solid #a7bbf7;outline-offset:3px}.njw-ticket-list{display:grid;gap:16px}.njw-ticket-list article{padding:20px;background:white;border:1px solid #dfe7f2;border-radius:10px}.njw-ticket-list h3{font-size:19px;margin:0 0 8px}.njw-ticket-list p{font-size:13px;margin:0}.njw-tickets time{font-size:11px;color:#7d8da6}.njw-tickets>form{margin-top:20px}.nj-workspace .button.outline{background:white;color:#304fef;border-color:#bfcdf3}.nj-workspace .button.outline:hover{background:#edf2ff}.nj-workspace button:disabled{opacity:.65;cursor:wait}
@media(max-width:760px){.njw-hero{padding:22px;flex-direction:column;align-items:flex-start;gap:16px}.njw-hero h2{font-size:23px}.njw-progress{grid-template-columns:1fr;padding:18px!important;gap:0}.njw-progress li{display:flex;align-items:flex-start;gap:14px;text-align:right;min-height:64px;padding:0}.njw-progress li:last-child{min-height:36px}.njw-progress li:after{width:2px;height:calc(100% - 36px);right:17px;top:36px}.njw-progress li>span{margin:0;flex:0 0 36px}.njw-progress li>b{padding-top:8px;font-size:14px}.njw-conversation-head{flex-direction:column;align-items:flex-start;gap:12px}.njw-delivery{padding:18px}.njw-delivery h3{font-size:20px}.njw-delivery button{width:100%;font-size:14px}.njw-delivery label{font-size:13px}.nj-messages{max-height:none;overflow:visible;padding:14px}.nj-message{max-width:100%;padding:15px}.nj-message-meta time{width:100%;margin-inline-start:39px;font-size:10px}.nj-message p{font-size:15px}.nj-message-form{padding:18px}.nj-message-form h3{font-size:21px}.nj-message-form button{width:100%}.njw-admin{margin:16px 10px 16px 0}.njw-admin .widefat{display:block;overflow-x:auto}.njw-admin .widefat td,.njw-admin .widefat th{min-width:110px;padding:12px}.njw-admin-heading{padding:22px}.njw-delivery-editor label{flex-wrap:wrap}.njw-approval{padding:16px}.njw-upload{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.nj-workspace *{transition:none!important;scroll-behavior:auto}}

/* 2.5.1: private workspace action rhythm and matching review hover. */
.nj-workspace .njw-jump{transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.nj-workspace .njw-jump:is(:hover,:focus-visible){background:#304fef;border-color:#304fef;color:#fff}
.nj-workspace .njw-delivery .nj-attachment{margin-block:16px;transition:transform .18s ease,background-color .18s ease,color .18s ease}
.nj-workspace .njw-delivery button{margin-top:20px;transition:transform .18s ease,background-color .18s ease,border-color .18s ease}
.nj-workspace .njw-delivery label{margin-block:16px 20px}
.nj-workspace .njw-delivery button:is(:hover,:focus-visible),.nj-workspace .njw-delivery .nj-attachment:is(:hover,:focus-visible){transform:translateY(-3px)}
@media(prefers-reduced-motion:reduce){.nj-workspace .njw-delivery button:is(:hover,:focus-visible),.nj-workspace .njw-delivery .nj-attachment:is(:hover,:focus-visible){transform:none;transition:none}}

/* 2.5.1: one workspace, an explicit next step, and a versioned delivery decision. */
.nj-workspace{font-family:Tajawal,Arial,sans-serif;line-height:1.8}
.nj-workspace .njw-hero{padding:24px;border-radius:14px;background:#fff;border:1px solid #dfe6f1}
.nj-workspace .njw-hero h2{font-size:25px;margin:4px 0 8px}
.nj-workspace .njw-next-step{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:20px 22px;background:#eef2ff;border:1px solid #dce4ff;border-radius:12px}
.njw-next-step b{display:block;font-size:17px;color:#243c7b;line-height:1.7}
.njw-next-step p{font-size:14px;line-height:1.9;color:#657a9d;margin:4px 0 0}
.nj-workspace .njw-next-step .button{white-space:nowrap;min-height:44px;padding:10px 16px;flex-shrink:0;font-size:13px}
.nj-workspace .njw-delivery{padding:24px;margin-bottom:28px;border:1px solid #dce4f1;background:#fff;border-radius:14px;scroll-margin-top:24px}
.nj-workspace .njw-delivery-title{margin:0 0 18px}
.nj-workspace .njw-delivery-title>span{background:#edf2ff;color:#304fef;width:42px;height:42px;flex-basis:42px;font-size:22px}
.nj-workspace .njw-delivery-title h3{font-size:21px;margin:0 0 5px}
.nj-workspace .njw-delivery-title p{font-size:13px;line-height:1.8;color:#7c8ba4;margin:0}
.njw-delivery-note{padding:16px 18px;background:#f7f9fd;border:1px solid #e6ebf4;border-radius:10px;margin-bottom:18px;overflow-wrap:anywhere}
.njw-delivery-note>b{font-size:12px;color:#7a8dab}
.nj-workspace .njw-delivery-note>p{margin:8px 0 0;font-size:15px;color:#344d71;line-height:1.95}
.njw-delivery-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin:18px 0 22px;min-width:0}
.nj-workspace .njw-delivery .njw-file-card{display:flex;width:100%;gap:14px;margin:0;padding:16px;background:#fff;border:1px solid #dbe4f4;border-radius:10px;transition:background-color .18s ease,border-color .18s ease,transform .18s ease}
.nj-workspace .njw-delivery .njw-file-card:hover{background:#f3f6ff;border-color:#aebff3;transform:translateY(-2px)}
.njw-file-card>span:last-child{min-width:0}
.njw-file-card b{display:block;direction:ltr;text-align:right;overflow-wrap:anywhere;font-size:14px;font-weight:700;color:#273c60;line-height:1.8}
.njw-file-card small{display:block;font-size:12px;color:#7a8eaa;margin-top:4px}
.njw-file-badge{display:grid;place-items:center;width:40px;height:44px;flex:0 0 40px;border-radius:8px;background:#edf2ff;color:#304fef;font-size:24px}
.nj-workspace .njw-decision{border-top:1px solid #e4eaf4;padding-top:22px;margin-top:20px}
.nj-workspace .njw-decision h4{font-size:18px;line-height:1.8;color:#1c3155;margin:0 0 4px}
.nj-workspace .njw-decision>div>p{font-size:14px;color:#788ba7;margin:0 0 18px}
.nj-workspace .njw-approval{padding:0;background:transparent;border:0;margin:0;border-radius:0}
.nj-workspace .njw-approval .njw-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.9;margin:18px 0 22px;color:#5a6f90}
.njw-consent span{min-width:0}
.nj-workspace .njw-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:3px 0}
.nj-workspace .njw-delivery .njw-action-row>.button{margin:0;min-width:180px;flex:1;min-height:48px;white-space:normal}
.nj-workspace .njw-approve-button{background:#304fef;border-color:#304fef;color:white}
.nj-workspace .njw-approve-button:hover{background:#233fcd;color:white}
.nj-workspace .njw-revision-button{background:#fff;color:#304fef;border-color:#c4d1f2}
.nj-workspace .njw-revision-button:hover{background:#edf2ff;border-color:#aabbec;color:#233fcd}
.nj-workspace .njw-staff-tip{background:#f5f7fc;border:1px solid #e4eaf4;border-radius:10px;padding:16px 18px;margin:18px 0 0;font-size:14px;color:#627796;line-height:1.9}
.njw-staff-tip b{color:#3c5278}
.nj-workspace .njw-empty{font-size:14px;line-height:1.9;color:#8190a8;padding:18px;border:1px dashed #d9e1ee;border-radius:10px;background:#fcfdff;margin:0}
.nj-workspace .njw-success{background:#eef8f2;border-color:#75ad8b;color:#3a7957}
.njw-file-options{display:grid;gap:10px;margin:16px 0;max-height:320px;overflow:auto}
.nj-workspace .njw-file-options label{padding:12px;background:#fafbff;border:1px solid #e2e8f4;border-radius:8px;margin:0;font-size:14px;overflow-wrap:anywhere}
.njw-file-options label>span{min-width:0}
.njw-file-options small{display:block;margin-top:4px;font-size:11px;color:#8b99ae}
.nj-workspace .njw-conversation-head{margin:28px 0 18px}
.nj-workspace .njw-conversation-head h3{font-size:21px;margin:0 0 4px}
.nj-workspace .njw-refresh{font-size:13px;border-color:#ccd8ee;border-radius:8px;padding:10px 14px;color:#536d9a}
.nj-workspace .nj-messages{padding:20px;background:#f5f7fb;border-color:#e1e7f2;border-radius:12px;max-height:620px;scrollbar-width:thin}
.nj-workspace .nj-message{max-width:90%;border-color:#e1e7f2;box-shadow:0 2px 4px #13274203;padding:18px;margin-bottom:18px}
.nj-workspace .nj-message.staff{background:#edf2ff;border-color:#dce5fb}
.nj-workspace .nj-message-form{margin-top:24px;border:1px solid #dce5f2;border-radius:14px;padding:24px;background:white}
.nj-workspace .nj-message-form h3{font-size:21px;margin:0 0 5px}
.nj-workspace .nj-message-form textarea{background:#fff;border-color:#c8d4e8;min-height:150px;border-radius:9px}
.nj-workspace .nj-message-form select{background:#fff;border-color:#c8d4e8;border-radius:9px;min-height:48px;padding:12px;font-size:14px}
.nj-workspace .njw-upload{background:#fafbfe;border-color:#c6d4eb;padding:2px 16px 14px}
.nj-workspace .njw-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:20px;border-top:1px solid #e7ecf5}
.nj-workspace .njw-compose-footer button{margin:0;min-width:170px;min-height:48px}
.njw-compose-status{font-size:13px;line-height:1.9;color:#7486a1;max-width:65%}
.nj-workspace #njw-compose.njw-revision-mode{border-color:#c4d0f8;box-shadow:0 0 0 3px #304fef0a}
.njw-admin .nj-workspace{font-family:Arial,sans-serif;max-width:1100px;margin-inline:auto}
.njw-admin .njw-admin-heading{background:#172746;border-radius:14px;padding:22px 28px;margin-bottom:24px}
.njw-admin .widefat{border:1px solid #dae3f1;border-radius:10px;overflow:hidden;box-shadow:none}
.njw-admin .widefat td{vertical-align:middle;line-height:1.8}
.njw-admin .widefat tr:nth-child(odd) td{background:#fafbfe}
@media(max-width:760px){.nj-workspace .njw-next-step{padding:18px;align-items:flex-start;flex-direction:column;gap:14px}.nj-workspace .njw-next-step .button{width:100%}.nj-workspace .njw-delivery{padding:18px}.njw-delivery-files{grid-template-columns:1fr;gap:14px}.nj-workspace .njw-action-row{flex-direction:column;gap:16px}.nj-workspace .njw-action-row>.button{width:100%;min-width:0;flex:auto}.nj-workspace .nj-message{max-width:100%}.nj-workspace .nj-messages{padding:14px;max-height:none}.nj-workspace .nj-message-form{padding:18px}.nj-workspace .njw-compose-footer{align-items:stretch;flex-direction:column;gap:14px}.njw-compose-status{max-width:none}.nj-workspace .njw-compose-footer button{width:100%}.njw-admin .njw-admin-heading{padding:18px}.njw-file-card b{text-align:right}.nj-workspace .njw-consent{font-size:13px}}
@media(prefers-reduced-motion:reduce){.nj-workspace .njw-delivery .njw-file-card:hover{transform:none}}
@font-face{font-family:NunjizWorkspace;src:url('fonts/Tajawal-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:NunjizWorkspace;src:url('fonts/Tajawal-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
.njw-admin,.njw-admin .nj-workspace{font-family:NunjizWorkspace,Tajawal,Arial,sans-serif}
/* A compact mobile progress rail; full step names remain available to assistive tools. */
@media(max-width:760px){.nj-workspace .njw-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:20px 12px!important;gap:0;margin:18px 0 22px!important}.nj-workspace .njw-progress li,.nj-workspace .njw-progress li:last-child{display:block;min-height:28px;text-align:center;padding:0}.nj-workspace .njw-progress li>span{width:28px;height:28px;margin:0 auto;font-size:12px}.nj-workspace .njw-progress li:after{height:2px;width:calc(100% - 36px);top:14px;right:calc(50% + 18px)}.nj-workspace .njw-progress li>b{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}}
.nj-workspace .njw-next-step .button:is(:hover,:focus-visible){background:#304fef;border-color:#304fef;color:#fff}

/* 2.5.1: bounded conversations with native scroll chaining, not page-height message logs. */
.njw-chat-card{border:1px solid #dce5f2;border-radius:14px;background:#fff;overflow:visible;margin:22px 0 24px;min-width:0}
.nj-workspace .njw-chat-card>.njw-conversation-head{margin:0;padding:20px 22px;border-bottom:1px solid #e6ecf5;gap:16px}
.njw-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 18px;background:#fff;border-bottom:1px solid #e6ecf5;font-size:12px;color:#8290a7;border-radius:12px 12px 0 0}
.njw-chat-card .njw-chat-toolbar{border-radius:0}
.njw-chat-toolbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.nj-workspace .njw-chat-toolbar button,.njw-chat-toolbar a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:0;padding:7px 11px;border:1px solid #dbe4f2;border-radius:7px;background:#f8faff;font-family:inherit;font-size:12px;font-weight:700;line-height:1.6;color:#506dab;margin:0;text-decoration:none;transform:none}
.nj-workspace .njw-chat-toolbar button:hover,.njw-chat-toolbar a:hover{background:#edf2ff;color:#304fef;transform:none}
.nj-workspace .nj-messages.njw-thread{height:420px;height:clamp(280px,52vh,520px);min-height:0;max-height:520px!important;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior-y:auto!important;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#bdcae4 #f3f6fc;scroll-behavior:auto;overflow-anchor:none;position:relative;padding:20px;margin:0;border:0;border-radius:0;background:#f5f7fb}
.nj-workspace .nj-messages.njw-thread[data-count="0"]{height:160px;max-height:160px!important}
.njw-thread:focus-visible{outline:2px solid #91a9ed;outline-offset:-2px}
.nj-workspace .njw-thread>.nj-message{margin-bottom:16px;max-width:92%;padding:16px;border-radius:12px 3px 12px 12px}
.nj-workspace .njw-thread>.nj-message:last-child{margin-bottom:0}
.nj-workspace .njw-thread>.nj-message.staff{border-radius:3px 12px 12px 12px}
.njw-message-pages{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 18px;border-top:1px solid #e5ebf5;min-height:0}
.njw-message-pages:empty{display:none}
.nj-workspace .njw-message-pages .nj-page-link{margin:0;font-size:13px}
.njw-order-tools{display:flex;justify-content:flex-end;gap:12px;margin:0 0 18px;font-size:13px}
.njw-order-tools a{color:#4a64a0;border-bottom:1px solid #c8d5ed;text-decoration:none;padding:4px 0}
.njw-order-tools a:hover{color:#304fef;border-color:#304fef}
.njw-tickets{font-family:NunjizWorkspace,Tajawal,Arial,sans-serif;max-width:1100px}
.njw-support-context{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin:18px 0;background:#edf2ff;border:1px solid #dce5fc;border-radius:10px;font-size:14px}
.njw-support-context a{font-size:13px;color:#3a58ae}
.njw-support-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:20px 0}
.njw-support-intro p{font-size:14px;line-height:1.9;color:#7285a2;margin:0}
.njw-support-intro .button{white-space:nowrap;flex-shrink:0}
.njw-ticket-list article{position:relative;border:1px solid #dfe6f2;border-radius:12px;padding:18px 22px}
.njw-ticket-form{scroll-margin-top:24px}
.njw-ticket-form select{width:100%;max-width:100%;font:inherit}
@media(max-width:760px){.nj-workspace .nj-messages.njw-thread{height:340px;height:clamp(240px,48svh,400px);max-height:400px!important;padding:14px}.nj-workspace .njw-thread>.nj-message{max-width:96%;padding:14px}.nj-workspace .njw-chat-card>.njw-conversation-head{padding:18px;flex-direction:row;align-items:flex-start}.njw-chat-toolbar{padding:10px 12px;gap:10px}.njw-chat-toolbar>span{font-size:11px}.njw-chat-toolbar>div{gap:6px}.nj-workspace .njw-chat-toolbar button,.njw-chat-toolbar a{font-size:11px;padding:6px 9px;min-height:36px}.njw-support-intro,.njw-support-context{flex-direction:column;align-items:stretch;gap:12px}.njw-support-intro .button{width:100%}.njw-tickets{margin-inline:0}.njw-order-tools{justify-content:flex-start}}

/* A single conversation surface: history and reply stay together. */
.nj-workspace .njw-chat-card{border-radius:16px;overflow:hidden;box-shadow:0 8px 26px #14244a06}
.nj-workspace .njw-chat-card>.njw-conversation-head{padding:18px 22px;background:white}
.nj-workspace .njw-thread>.nj-message{max-width:84%;width:fit-content;margin-inline-start:0;margin-inline-end:auto;background:#fff;border:1px solid #dfe6f1;border-radius:12px 3px 12px 12px;box-shadow:none;line-height:1.9}
.nj-workspace .njw-thread>.nj-message.njw-own{margin-inline-start:auto;margin-inline-end:0;background:#edf1ff;border-color:#dbe3ff;border-radius:3px 12px 12px 12px}
.nj-workspace .nj-message-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:8px}.nj-workspace .nj-message-meta time{margin-inline-start:auto;font-size:11px;color:#71829e;direction:ltr}.nj-workspace .nj-message p{margin:0;white-space:normal;overflow-wrap:anywhere;font-size:15px}.nj-workspace .nj-attachment{display:flex;align-items:center;gap:10px;padding:12px;margin-top:10px;border:1px solid #d9e2f3;border-radius:8px;background:#fff;font-size:13px;overflow-wrap:anywhere}
.nj-workspace .njw-chat-card .nj-message-form{margin:0;padding:20px 22px;border:0;border-top:1px solid #dfe6f1;border-radius:0;background:#fff;box-shadow:none}.nj-workspace .njw-chat-card .nj-message-form h3{font-size:17px;margin:0 0 6px}.nj-workspace .njw-chat-card .njw-compose-intro{font-size:13px;margin:0 0 14px;color:#75839a}.nj-workspace .njw-chat-card textarea{min-height:90px;resize:vertical;font-size:16px;line-height:1.8}.nj-workspace .njw-chat-card .njw-upload{padding:12px 14px;margin:12px 0;background:#f8faff;border:1px dashed #ccd8ef}.nj-workspace .njw-chat-card .njw-upload small{font-size:11px;line-height:1.8}.nj-workspace .njw-chat-card .njw-compose-footer{margin-top:16px;gap:18px;align-items:center}.nj-workspace .njw-chat-card .njw-compose-footer button{margin:0;min-width:140px;min-height:46px;transform:none}.nj-workspace .njw-chat-card>.nj-help{padding:0 22px 16px;margin:0;font-size:12px}.nj-workspace .njw-message-pages:empty{display:none}
@media(max-width:760px){.nj-workspace .njw-thread>.nj-message{max-width:93%;padding:12px}.nj-workspace .nj-message-meta{gap:6px}.nj-workspace .nj-message-meta time{font-size:10px}.nj-workspace .njw-chat-card .nj-message-form{padding:16px}.nj-workspace .njw-chat-card .njw-compose-footer{flex-wrap:wrap}.nj-workspace .njw-chat-card .njw-compose-footer button{width:100%}.nj-workspace .njw-chat-card>.nj-help{padding-inline:16px}.nj-workspace .njw-chat-card .njw-upload input{max-width:100%;font-size:12px}}

.njw-upload summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;color:#304fef;font-weight:700;font-size:14px}.njw-upload[open] summary{margin-bottom:14px}.nj-workspace .njw-chat-card .njw-compose-intro{display:none}.nj-workspace .njw-chat-card [hidden]{display:none!important}

.njw-live-status:empty{display:none}.njw-live-status{margin:0;padding:10px 18px;font-size:12px;background:#edf1ff;color:#304fef;border-bottom:1px solid #dce5f2}.njw-live-status a{text-decoration:underline;font-weight:700}

/* Three-column account: account navigation, conversation, delivery. */
.njw-work-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start;direction:rtl}.njw-conversation-column{grid-column:1;grid-row:1;min-width:0}.njw-delivery-side{grid-column:2;grid-row:1;min-width:0;position:sticky;top:24px;scroll-margin-top:24px}.njw-work-grid .njw-chat-card{margin:0}.nj-workspace .njw-next-step>a{display:none}.nj-workspace .njw-next-step{margin:18px 0;padding:16px 20px}.nj-workspace .njw-next-step p{margin-bottom:0}.nj-workspace .njw-hero{padding:20px 22px}.nj-workspace .njw-hero h2{font-size:22px;margin:4px 0 6px}.nj-workspace .njw-progress{padding:16px 10px!important;margin:16px 0!important}.nj-workspace .njw-progress li>span{width:30px;height:30px;margin-bottom:6px}.nj-workspace .njw-progress li:after{top:14px}.njw-live-label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;color:#71829d}.njw-live-label i{width:6px;height:6px;background:#304fef;border-radius:50%}
.nj-workspace .njw-delivery-side .njw-delivery{padding:20px;margin:0;border-radius:14px;border-top:3px solid #ed8850}.nj-workspace .njw-delivery-side h3{font-size:19px}.nj-workspace .njw-delivery-side .njw-delivery-title{align-items:flex-start;gap:10px}.nj-workspace .njw-delivery-side .njw-delivery-title p{font-size:12px}.nj-workspace .njw-delivery-side .njw-delivery-files{grid-template-columns:1fr;gap:12px;margin:18px 0}.nj-workspace .njw-delivery-side .njw-file-card{padding:12px;gap:10px}.nj-workspace .njw-delivery-side .njw-file-card b{font-size:12px}.njw-delivery-side .njw-file-badge{width:32px;height:36px;flex-basis:32px}.nj-workspace .njw-delivery-side .njw-action-row{display:flex;flex-direction:column;gap:14px;padding-top:4px}.nj-workspace .njw-delivery-side .njw-action-row>.button{width:100%;min-width:0;flex:auto;min-height:46px}.nj-workspace .njw-delivery-side .njw-approve-button{background:#ed8850;border-color:#ed8850;color:#241a16}.nj-workspace .njw-delivery-side .njw-approve-button:hover{background:#dc753b;border-color:#dc753b;color:#1e1713}.nj-workspace .njw-delivery-side .njw-consent{font-size:12px;margin:16px 0 20px}.nj-workspace .njw-delivery-side .njw-decision h4{font-size:16px}.nj-workspace .njw-delivery-side .njw-decision>div>p{font-size:12px}.nj-workspace .njw-delivery-side .njw-decision{padding-top:16px;margin-top:16px}.nj-workspace .njw-delivery-note{padding:12px;border:1px solid #e3e9f4;border-radius:8px;background:#f8faff;margin:12px 0}.njw-delivery-note summary{font-size:13px;cursor:pointer;font-weight:700;color:#3b5078}.nj-workspace .njw-delivery-note p{font-size:13px;margin:10px 0 0}.nj-workspace .njw-delivery-side .njw-staff-tip{padding:12px;font-size:12px}.nj-workspace .njw-delivery-side .njw-order-tools{justify-content:center;margin:14px 0 0}.njw-delivery-editor summary{font-size:13px}
@media(max-width:1100px){.njw-work-grid{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.nj-workspace .njw-delivery-side .njw-delivery{padding:16px}.nj-workspace .njw-chat-card>.njw-conversation-head{padding:16px}.nj-workspace .njw-conversation-head h3{font-size:18px}.njw-live-label{display:none}}
@media(max-width:960px){.njw-work-grid{display:flex;flex-direction:column;gap:18px}.njw-conversation-column,.njw-delivery-side{width:100%}.njw-delivery-side{position:static;order:2}.njw-layout-review .njw-delivery-side{order:0}.njw-conversation-column{order:1}.nj-workspace .njw-delivery-side .njw-delivery-files{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.nj-workspace .njw-delivery-side .njw-action-row{flex-direction:row}.nj-workspace .njw-delivery-side .njw-action-row>.button{flex:1;min-width:150px}}
@media(max-width:480px){.nj-workspace .njw-delivery-side .njw-action-row{flex-direction:column}.nj-workspace .njw-delivery-side .njw-action-row>.button{flex:auto}.nj-workspace .njw-hero{padding:18px;flex-wrap:wrap}.nj-workspace .njw-hero h2{font-size:20px}.nj-workspace .njw-hero p{font-size:12px}.nj-workspace .njw-next-step{padding:14px 16px}.nj-workspace .njw-next-step b{font-size:14px}.nj-workspace .njw-next-step p{font-size:12px}}
.nj-workspace .njw-next-step>a.button{display:none!important}
@media(max-width:760px){.nj-workspace .njw-progress{display:none}.nj-workspace .njw-hero{padding:16px}.nj-workspace .njw-next-step{margin:14px 0}.nj-workspace .njw-hero h2{font-size:20px}}

.njw-connection{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#637995}.njw-connection:before{content:'';width:6px;height:6px;border-radius:50%;background:#3c976d}.njw-connection.njw-offline:before{background:#ed8850}.njw-write-closed{background:#edf1ff;border:1px solid #dbe3f6;padding:12px;border-radius:8px;font-size:13px}.njw-compose-status{overflow-wrap:anywhere}
/* Use the bundled Tajawal in every workspace, independent of theme/admin heading fonts. */
.nj-workspace,.njw-admin{font-family:NunjizWorkspace,Tajawal,Arial,sans-serif!important}
.nj-workspace :is(h1,h2,h3,h4,h5,h6,label,button,textarea,select),.njw-admin :is(h1,h2,h3,h4,h5,h6){font-family:NunjizWorkspace,Tajawal,Arial,sans-serif!important}
.nj-workspace :is(h1,h2,h3,h4,h5,h6),.njw-admin :is(h1,h2,h3,h4,h5,h6){font-weight:700}
.nj-workspace .njw-chat-card>.njw-conversation-head{background:#edf2ff;border-bottom:1px solid #cfdbfa;border-top:3px solid #4162ff;padding:18px 22px}
.nj-workspace #njw-chat-title{display:flex;align-items:center;gap:11px;font-size:22px;color:#203b92;margin:0 0 7px}
.njw-chat-symbol{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#4162ff;color:white}.njw-chat-symbol svg{width:23px;height:23px}
.nj-workspace .njw-delivery-side a.button.njw-revision-button{background:#fff!important;color:#304fef!important;border-color:#bdccf5!important}
.nj-workspace .njw-delivery-side a.button.njw-revision-button:hover,.nj-workspace .njw-delivery-side a.button.njw-revision-button:focus-visible{background:#dfe7ff!important;color:#203d9c!important;border-color:#8ea5ee!important;transform:none!important}
.njw-file-list{list-style:none!important;padding:0!important;margin:12px 0 0!important;display:grid;gap:8px}
.njw-file-list>li{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbe4f5;background:white;padding:10px 12px;border-radius:9px;min-width:0;margin:0}
.njw-pending-name{font-size:13px;overflow-wrap:anywhere;min-width:0;direction:ltr;text-align:right}
.nj-workspace .njw-file-list .njw-remove-file{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:5px;min-height:36px;min-width:36px;padding:6px 9px;margin:0;border:1px solid #e6c8c8;background:#fff5f5;color:#a23e3e;border-radius:7px;font-size:12px;transform:none}
.nj-workspace .njw-file-list .njw-remove-file:hover{background:#fbe2e2;color:#862b2b;border-color:#dca6a6;transform:none}.njw-remove-file svg{width:17px;height:17px}
.njw-revision-context{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;margin:16px 0;background:#edf1ff;color:#304fef;border:1px solid #d9e2ff;border-radius:8px;font-size:13px}.njw-revision-context[hidden]{display:none!important}.nj-workspace .njw-revision-context button{background:#fff;color:#304fef;border-color:#cbd7fa;font-size:12px;padding:6px 10px;min-height:32px;margin:0}
.nj-workspace .njw-file-list .njw-remove-file{width:auto;max-width:100px}.njw-pending-name{flex:1}
.nj-workspace .njw-revision-context button{width:auto;flex:0 0 auto}.njw-revision-context>span{flex:1;min-width:0}
.nj-workspace .njw-purchased-services{font-size:14px!important;font-weight:700;color:#304f9e!important;margin-top:10px!important;line-height:1.8}
.njw-ticket-card{padding:22px!important;border-radius:14px!important;margin:0!important;min-width:0}.njw-ticket-card.is-open,.njw-ticket-heading.is-open{background:#f1f5ff!important;border:1px solid #cbd8ff!important;border-inline-start:4px solid #4162ff!important}.njw-ticket-card.is-closed,.njw-ticket-heading.is-closed{background:#fafbfe!important;border:1px solid #dfe5ee!important}
.njw-ticket-card-top,.njw-ticket-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.njw-ticket-card-top{margin-bottom:14px}.njw-ticket-card small,.njw-ticket-heading small{font-size:12px;color:#7285a6}.njw-ticket-state{display:inline-flex;align-items:center;gap:7px;border-radius:20px;padding:5px 12px;color:#304fbc;background:#e0e9ff;font-size:12px;font-weight:700}.njw-ticket-state:before{content:'';width:6px;height:6px;background:currentColor;border-radius:50%}.is-closed .njw-ticket-state{background:#e9edf3;color:#6e7b90}.njw-ticket-heading{padding:20px;border-radius:12px;margin:18px 0 22px}.njw-ticket-heading h3{margin:6px 0 0}.njw-ticket-service{font-size:13px;color:#71829e;line-height:1.8}.njw-ticket-open-link{display:inline-flex;align-items:center;min-height:38px;margin-top:10px;font-size:13px;color:#304fef;font-weight:700;text-decoration:none}.njw-ticket-list{gap:18px}
.nj-workspace .njw-delivery-title>span{width:44px;height:44px;flex:0 0 44px;background:#edf1ff;color:#304fef;border-radius:12px}.njw-delivery-title>span svg{width:28px;height:28px}
.nj-workspace .njw-delivery-side .njw-file-badge,.njw-download-symbol{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;background:#e8efff;color:#304fef;border:1px solid #d2ddfa;border-radius:10px}.njw-file-badge svg,.njw-download-symbol svg{width:28px;height:28px}.nj-workspace .njw-support-download{display:flex;gap:12px;width:100%;padding:12px;background:#fff}.njw-support-download>span:last-child{min-width:0}.njw-support-download b{display:block;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.njw-support-download small{display:block;color:#7689a7;font-size:12px;margin-top:5px}.njw-ticket-form .njw-upload{margin-top:20px}.njw-ticket-form>.button{margin-top:18px}
/* Delivery and conversation share the same visual header, with distinct icons. */
.nj-workspace .njw-delivery-side .njw-delivery{padding:0;border:1px solid #dce5f2;overflow:hidden;border-radius:16px}
.nj-workspace .njw-delivery-side .njw-delivery-title{display:block;padding:18px 22px;margin:0;background:#edf2ff;border-top:3px solid #ed8850;border-bottom:1px solid #cfdbfa}
.nj-workspace .njw-delivery-side .njw-delivery-title h3{display:flex;align-items:center;gap:11px;font-size:22px;line-height:1.6;color:#203b92;margin:0 0 7px}
.njw-review-symbol{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#4162ff;color:#fff}.njw-review-symbol svg{width:23px;height:23px}
.nj-workspace .njw-delivery-side .njw-delivery-title p{font-size:13px;line-height:1.8;color:#7c8ba4;margin:0}
.njw-delivery-body{padding:20px}
@media(max-width:1100px){.nj-workspace .njw-delivery-side .njw-delivery-title{padding:18px 16px}.njw-delivery-body{padding:16px}}
.njw-review-symbol{background:#ed8850;color:#241a16}

/* Center the attachment control inside its complete clickable field. */
.nj-workspace .nj-message-form .njw-upload>summary{position:relative;display:flex;justify-content:center;align-items:center;min-height:28px;padding:0 36px;text-align:center;line-height:1.6;list-style:none}
.nj-workspace .nj-message-form .njw-upload>summary::-webkit-details-marker{display:none}
.nj-workspace .nj-message-form .njw-upload>summary>span{position:absolute;inset-inline-end:4px;top:50%;transform:translateY(-50%);width:24px;text-align:center}
/* One protected delivery card per order; filenames wrap without a table column. */
.njw-download-groups{display:grid;gap:22px;margin:0;min-width:0}
.njw-download-group{border:1px solid #dce5f2;border-radius:16px;background:#fff;overflow:hidden;min-width:0}
.njw-download-group-header{display:flex;align-items:center;gap:13px;padding:20px 22px;background:#f3f6ff;border-bottom:1px solid #e1e8f5}
.njw-download-group-header h2{font-family:inherit;font-weight:700;font-size:19px;line-height:1.6;margin:0;color:#172746}
.njw-download-group-header h2 a{color:inherit;text-decoration:none}
.njw-download-group-header h2 a:hover{color:#304fef}
.njw-download-group-header .njw-download-symbol{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:12px;background:#e7edff;color:#304fef}
.njw-download-group-header svg{width:26px;height:26px}
.njw-download-group-header small{display:block;color:#72829b;font-size:13px;line-height:1.8;margin-top:3px}
.njw-download-group-files{display:grid;gap:12px;padding:20px 22px}
.njw-download-file{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dfe6f3;border-radius:12px;padding:14px 16px;min-width:0}
.njw-download-filename{min-width:0;overflow-wrap:anywhere;font-size:14px;font-weight:700;color:#243954;line-height:1.8}
.njw-download-filename small{display:block;font-size:12px;font-weight:400;color:#75849b}
.woocommerce .njw-download-file a.njw-download-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:46px;border:1px solid #304fef;border-radius:9px;background:#304fef;color:white;padding:10px 14px;font-family:inherit;font-weight:700;font-size:14px;line-height:1.5;text-decoration:none;white-space:nowrap}
.woocommerce .njw-download-file a.njw-download-action:hover{background:#2541cc;border-color:#2541cc;color:#fff}
.njw-download-action svg{width:24px;height:24px;flex-shrink:0}
@media(max-width:760px){.njw-download-groups{gap:18px}.njw-download-group-header{padding:16px}.njw-download-group-header h2{font-size:18px}.njw-download-group-files{padding:14px;gap:12px}.njw-download-file{flex-direction:column;align-items:stretch;gap:12px;padding:14px}.woocommerce .njw-download-file a.njw-download-action{width:100%;min-height:46px;white-space:normal}}

/* Continue each header's accent around its complete workspace section. */
.nj-workspace .njw-chat-card{border:2px solid #4162ff}
.nj-workspace .njw-chat-card>.njw-conversation-head{border-top:0}
.nj-workspace .njw-delivery-side .njw-delivery{border:2px solid #ed8850}
.nj-workspace .njw-delivery-side .njw-delivery-title{border-top:0}
/* Equal space above and below the attachment summary in support and order chat. */
.nj-workspace .nj-message-form details.njw-upload{padding:8px 14px}
/* Keep the native select interaction, with a chevron inset from its RTL edge. */
.nj-workspace .nj-message-form select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center;background-size:14px 14px;padding-inline-start:14px;padding-inline-end:42px}
@media(forced-colors:active){.nj-workspace .nj-message-form select{appearance:auto;background-image:none}}
/* Compact the delivery group without removing any file or download action. */
.njw-download-group-header{gap:10px;padding:14px 16px}
.woocommerce .njw-download-group .njw-download-group-header h2{font-size:18px;line-height:1.5;margin:0;padding:0}
.njw-download-group-header .njw-download-symbol{width:38px;height:38px;flex-basis:38px}
.njw-download-group-header svg{width:24px;height:24px}
.njw-download-group-files{padding:14px 16px;gap:8px}
.njw-download-file{padding:10px 12px;gap:14px}
.woocommerce .njw-download-file a.njw-download-action{min-height:44px;padding:8px 12px}
@media(max-width:760px){.njw-download-group-header{padding:12px 14px}.njw-download-group-files{padding:12px;gap:8px}.njw-download-file{padding:10px;gap:10px}}
