.saas-page{display:grid;gap:18px}
.ops-attempts{display:grid;gap:14px;min-width:0;text-align:start}.ops-attempts .card,.ops-money{padding:clamp(14px,2vw,24px);min-width:0;overflow-wrap:anywhere}.ops-attempts h2,.ops-money h2{font-size:1.15rem;margin:0 0 .6rem}.ops-filters,.ops-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;align-items:end}.ops-filters input,.ops-filters select{min-width:0;width:100%;box-sizing:border-box}.ops-facts>div,.ops-row>div{min-width:0}.ops-facts dt,.ops-attempts small{color:#475569}.ops-facts dd{font-weight:700;margin:.35em 0}.ops-row,.ops-pager{display:flex;gap:1rem;align-items:center;justify-content:space-between}.ops-row small,.ops-timeline small{display:block}.ops-row strong,.ops-row small{overflow-wrap:anywhere}.ops-segment{padding:.7rem 0;border-block-start:1px solid #dbe1e9}.ops-segment summary{cursor:pointer}.ops-timeline li{padding:.4rem}.ops-timeline time{display:inline-block;color:#475569}.ops-attempts>.secondary-btn{justify-self:start}.ops-items{padding-inline-start:1.25rem}.ops-row .secondary-btn,.ops-filters .secondary-btn{white-space:normal;text-align:center}
@media(max-width:640px){.ops-row{display:grid;grid-template-columns:minmax(0,1fr)}.ops-row a,.ops-pager a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}.ops-filters{grid-template-columns:minmax(0,1fr)}.ops-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.inline-form{display:inline-flex;margin:0}
.ops-request-list .table-scroll td .table-row-actions a.action-control.action-view:not(.table-icon-btn){display:inline-flex!important;width:auto!important;min-width:6.5rem!important;max-width:100%;padding-inline:.7rem!important;flex:0 0 auto;gap:.35rem;align-items:center;justify-content:center}
.ops-facts dd a{display:inline-block;min-width:2em;padding:3px 6px;color:#4b268c;text-decoration:underline;text-underline-offset:.18em}.ops-attempts summary{cursor:pointer}.ops-attempts #ops-results{scroll-margin-top:6rem}
@media (max-width:680px){
  section.ops-request-list .table-scroll,section.ops-request-list .table-scroll table,section.ops-request-list tbody,section.ops-request-list thead{display:block!important;width:100%!important;min-width:0!important;max-width:100%;overflow:visible!important}
  section.ops-request-list thead tr{display:flex;flex-wrap:wrap;gap:4px}section.ops-request-list thead th{display:none}section.ops-request-list thead th:has(.table-sort){display:block;padding:4px;background:transparent}
  section.ops-request-list tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.8rem 0;border-block-end:1px solid #dbe1e9}
  section.ops-request-list tbody td{display:block;order:5;min-width:0!important;max-width:none!important;width:auto!important;padding:.25rem!important;white-space:normal!important;text-align:start;overflow-wrap:anywhere;border:0}
  section.ops-request-list tbody td[data-column-label]::before{display:block;content:attr(data-column-label);color:#475569;font-size:.8rem;font-weight:600}
  section.ops-request-list tbody td:nth-child(1){order:1}section.ops-request-list tbody td:nth-child(5){order:2}section.ops-request-list tbody td:nth-child(7){order:3}section.ops-request-list tbody td:nth-child(8){order:4}
  section.ops-request-list tbody td[colspan]{grid-column:1/-1}section.ops-request-list td .table-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-start}
  section.ops-request-list td .action-control{min-height:44px;max-width:100%;white-space:normal}section.ops-request-list td bdi{overflow-wrap:anywhere}
}
.saas-flash-stack{display:grid;gap:8px;margin-bottom:14px}
.saas-page>.page-header{margin-bottom:0}
.saas-page .table-card{min-width:0}
.saas-page .table-scroll td{vertical-align:middle}
.saas-page .empty-state{min-height:150px}
.relation-caption{display:block;margin-bottom:7px;color:#344054;font-size:13px;font-weight:700}
.relation-search{margin-bottom:8px;padding-inline:13px!important}
.relation-choice-panel{display:grid;max-height:238px;margin:8px 0;padding:5px;border:1px solid #dfe5ee;border-radius:12px;background:#fafbfd;overflow:auto}
.relation-choice{display:grid;grid-template-columns:minmax(0,1fr) 25px;align-items:center;gap:9px;width:100%;min-height:43px;padding:8px 11px;border:0;border-bottom:1px solid #e9edf3;background:transparent;color:#26334a;font:inherit;text-align:right;cursor:pointer}
.relation-choice:last-of-type{border-bottom:0}.relation-choice:hover{border-radius:8px;background:#f0eafa}.relation-choice i{display:none;place-items:center;width:22px;height:22px;border-radius:50%;background:#5b2994;color:#fff;font-style:normal;font-size:11px}
.relation-choice[aria-selected=true]{border-radius:8px;background:#eee7f8;color:#4d1f82;font-weight:800}.relation-choice[aria-selected=true] i{display:grid}
.relation-choice:disabled{opacity:.5;cursor:not-allowed}.relation-choice[hidden]{display:none}.relation-choice-empty{margin:0;padding:16px;color:#69758b;text-align:center}
.relation-field-large .relation-native-select{margin-top:4px}
.relation-field[hidden]{display:none}
.saas-public-body{min-height:100vh;margin:0;background:#f4f7fb;color:#18233b;font-family:Tajawal,"Segoe UI",sans-serif}
.saas-public-session{width:min(720px,calc(100% - 32px));margin:0 auto;padding:32px 0 48px}
.saas-public-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.saas-public-brand img{width:52px;height:52px;padding:7px;border-radius:15px;background:#fff;box-shadow:0 10px 30px rgba(30,46,82,.12)}
.saas-public-brand strong,.saas-public-brand span{display:block}
.saas-public-brand span{margin-top:3px;color:#69758b;font-size:12px}
.saas-public-card{display:grid;justify-items:center;gap:12px;padding:30px;border:1px solid #dfe6f0;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(30,46,82,.1);text-align:center}
.saas-public-card h1,.saas-public-card p{margin:0}
.beneficiary-catalog{width:min(980px,calc(100% - 32px))}
.catalog-heading{margin-bottom:18px;padding:22px;border:1px solid #e2e7f0;border-radius:20px;background:#fff;box-shadow:0 14px 38px rgba(30,46,82,.08)}
.catalog-heading span,.catalog-heading p{color:#69758b}.catalog-heading h1{margin:7px 0}.catalog-heading p{margin:0}
.beneficiary-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.beneficiary-service-card{display:grid;align-content:start;gap:12px;padding:22px;border:1px solid #e0e6ef;border-radius:20px;background:#fff;box-shadow:0 14px 38px rgba(30,46,82,.07)}
.beneficiary-service-card h2,.beneficiary-service-card p{margin:0}.beneficiary-service-card strong{color:#552487;font-size:24px}.beneficiary-service-card small{min-height:38px;color:#69758b;line-height:1.7}
.beneficiary-service-card .primary-btn,.beneficiary-service-card .success-btn{width:100%;margin-top:auto}.catalog-alert{padding:12px 15px;border-radius:12px;background:#fff1f2;color:#a71928}
@media(max-width:620px){.beneficiary-service-grid{grid-template-columns:1fr}.beneficiary-service-card{padding:18px}}
.saas-session-pulse{width:14px;height:14px;border-radius:50%;background:#22b681;box-shadow:0 0 0 8px rgba(34,182,129,.12)}
.saas-session-placeholder{display:grid;justify-items:center;gap:8px;width:100%;min-height:220px;margin-top:8px;padding:28px;border:1px dashed #b9c5d9;border-radius:18px;background:#f8faff;color:#52627e}
.saas-session-placeholder svg{width:36px;height:36px}
.saas-session-placeholder span{max-width:430px;font-size:13px}
.saas-privacy-note{padding:13px 15px;border-radius:14px;background:#fff8e8;color:#765b21;font-size:13px;line-height:1.7}
@media(max-width:760px){
  .saas-page{gap:14px}
  .saas-page .page-header-actions,.saas-page .page-header-actions>*{width:100%}
}
.queue-live-status{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:0 0 16px;padding:14px 16px;border:1px solid #eadff6;border-radius:16px;background:#fbf9ff}.queue-live-status strong,.queue-live-status small{display:block}.queue-live-status small{margin-top:3px;color:var(--muted)}.queue-live-status>b{padding:7px 11px;border-radius:999px;background:#f0e9fb;color:#56328f;font-size:12px}.queue-live-dot{width:11px;height:11px;border-radius:50%;background:#b9afc7;box-shadow:0 0 0 5px rgba(185,175,199,.16)}.queue-live-status.is-live{border-color:#c8ebd8;background:#f7fdf9}.queue-live-status.is-live .queue-live-dot{background:#20a968;box-shadow:0 0 0 5px rgba(32,169,104,.14)}
.request-items-panel{margin-bottom:18px}.request-item-add-form{display:grid;grid-template-columns:minmax(220px,1fr) 110px auto;align-items:end;gap:10px;margin-bottom:14px;padding:13px;border-radius:14px;background:#f7f5fb}.request-item-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.request-item-card{padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.request-item-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.request-item-card header strong,.request-item-card header small{display:block}.request-item-card header small{margin-top:4px;color:var(--muted)}.request-item-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.request-item-card dl>div{padding:9px;border-radius:10px;background:#f7f9fc}.request-item-card dt{color:var(--muted);font-size:9px}.request-item-card dd{margin:4px 0 0;font-weight:800}.request-item-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.request-item-actions details{flex:1;min-width:210px}.request-item-actions summary{cursor:pointer;padding:9px;border-radius:10px;background:#eef8f6;color:#0b7567;font-weight:800}.government-payment-item-form{display:grid;gap:8px;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:12px}@media(max-width:700px){.request-item-add-form{grid-template-columns:1fr}.request-item-add-form button{width:100%}}
.request-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.7fr);gap:16px}.workspace-conversation,.workspace-documents{padding:18px}.workspace-live-label{padding:6px 10px;border-radius:999px;background:#eaf9f1;color:#178153;font-size:11px;font-weight:800}.workspace-messages{display:flex;flex-direction:column;gap:9px;min-height:240px;max-height:520px;margin:16px 0;padding:15px;border:1px solid #e5e9f1;border-radius:16px;background:#f7f9fc;overflow:auto}.workspace-message{align-self:flex-start;max-width:min(82%,620px);padding:11px 13px;border:1px solid #e0e5ed;border-radius:15px 15px 15px 5px;background:#fff}.workspace-message.is-outbound{align-self:flex-end;border-color:#d9cdef;border-radius:15px 15px 5px 15px;background:#f1ebfa}.workspace-message p{margin:0;color:#25324a;line-height:1.75;white-space:pre-wrap}.workspace-message small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.workspace-message-form{display:grid;gap:10px}.workspace-message-form .primary-btn{justify-self:end}.workspace-message-form>small{min-height:18px;color:var(--muted)}.workspace-empty{display:grid;min-height:90px;place-items:center;color:var(--muted);text-align:center}.workspace-document-list{display:grid;gap:9px;margin-top:15px}.workspace-document{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:10px;padding:11px;border:1px solid #e5e9f1;border-radius:13px;color:#283650;text-decoration:none}.workspace-document:hover{border-color:#8f74c5;background:#faf8ff}.workspace-document>span{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#f0e9fb;color:#5b3aa4}.workspace-document strong,.workspace-document small{display:block;overflow-wrap:anywhere}.workspace-document small{margin-top:4px;color:var(--muted);font-size:10px}@media(max-width:900px){.request-workspace{grid-template-columns:1fr}.workspace-messages{max-height:none}}
.session-studio{padding:18px}.session-studio video{display:block;width:100%;max-height:460px;margin:14px 0;border-radius:16px;background:#111827;object-fit:contain}.session-studio [data-webrtc-status]{padding:6px 10px;border-radius:999px;background:#f0e9fb;color:#5b3aa4;font-size:11px;font-weight:800}.session-studio-actions{display:flex;flex-wrap:wrap;gap:9px}.session-studio-actions button{display:inline-flex;align-items:center;gap:7px}.session-studio>small{display:block;min-height:20px;margin-top:10px;color:var(--muted)}.beneficiary-live-session{display:grid;gap:14px;width:100%;margin-top:8px}.beneficiary-live-session video{display:block;width:100%;min-height:250px;max-height:65vh;border-radius:18px;background:#111827;object-fit:contain}.beneficiary-session-state{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.beneficiary-session-state .saas-session-pulse{position:static}.beneficiary-session-state button{display:inline-flex;align-items:center;gap:7px}
.daily-session-frame{display:none;width:100%;height:620px;margin:16px 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#121212}.daily-session-frame:has(iframe){display:block}.beneficiary-live-session .daily-session-frame{height:min(68vh,620px)}
.request-status-report { padding: 18px 16px; margin-bottom: 18px; }
.request-status-report .progress-report { display:block; border:1px solid var(--line); border-radius:12px; padding:13px 15px; color:inherit; text-decoration:none; }
.request-status-report .progress-report + .progress-report { margin-top:17px; }
.request-status-report .progress-report > div { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; font-size:12px; }
.request-status-report .progress-report progress { width:100%; height:10px; overflow:hidden; border:0; border-radius:999px; background:#eef1f5; }
.request-status-report progress::-webkit-progress-bar { background:#eef1f5; }
.request-status-report progress::-webkit-progress-value { background:var(--bar); border-radius:999px; }
.request-status-report progress::-moz-progress-bar { background:var(--bar); border-radius:999px; }
.request-status-report .green { --bar:#4fbd91; }.request-status-report .orange { --bar:#ff9100; }.request-status-report .blue { --bar:#468ec8; }.request-status-report .purple { --bar:#8463b0; }.request-status-report .red { --bar:#f44336; }
.request-status-report a:hover { background:var(--bg); }
.request-status-report a:focus-visible { outline:3px solid #468ec8; outline-offset:3px; }
