/* Site-wide form convention, including dynamically created dialogs. */
.sf-field{position:relative!important;min-width:0;box-sizing:border-box}
label.sf-field:not(:has(>svg)){display:block}
.sf-field .sf-old-caption,.sf-original-external{display:none!important}
.sf-field>.sf-caption{display:block!important;position:absolute!important;inset-inline-start:12px;top:22px;transform:translateY(-50%);font:400 13px/1.4 Tajawal,Arial,sans-serif!important;color:#7b8fa1;pointer-events:none;z-index:3;max-width:calc(100% - 30px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;background:transparent;transition:top .15s,font-size .15s;clip-path:none!important;width:auto!important;height:auto!important;margin:0!important}
.sf-field:focus-within>.sf-caption,.sf-field.sf-always>.sf-caption,.sf-field:has([data-sf-control]:not(:placeholder-shown))>.sf-caption{top:0!important;font-size:11px!important;background:var(--sf-surface,var(--du-surface,#fff));color:#637e94}
.sf-field.sf-textarea:not(:focus-within):not(:has([data-sf-control]:not(:placeholder-shown)))>.sf-caption{top:18px}
.sf-field [data-sf-control]{box-sizing:border-box;max-width:100%;min-width:0;font-weight:400!important}
.sf-field>input[data-sf-control],.sf-field>select[data-sf-control],.sf-field>.site-input-slot>input[data-sf-control]{width:100%;height:44px;min-height:44px;padding:10px 12px;border-radius:7px}
.sf-field>textarea[data-sf-control]{width:100%;padding:12px;min-height:88px;border-radius:7px;line-height:1.8}
.sf-field>select[data-sf-control]{padding-inline-end:32px}
.sf-field:has([data-sf-control]) .site-input-caption{display:none!important}
.sf-field:has(>svg)>.sf-caption{inset-inline-start:36px}
body :is(.sf-actions){display:flex;direction:rtl;align-items:center;justify-content:flex-start!important;gap:10px!important;flex-wrap:wrap}
body .sf-actions>:is(button,input[type=submit],a.button){flex:none!important;width:auto!important;margin-inline:0!important}
.sf-submit-alone{justify-self:start!important;align-self:flex-start!important;margin-inline-start:0!important;margin-inline-end:auto!important}
body dialog .sf-dialog-close{position:absolute!important;inset-inline-end:16px!important;inset-inline-start:auto!important;top:16px!important;display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border:1px solid #d7e4ed!important;border-radius:50%!important;padding:7px!important;background:#f2f7fa!important;color:#4f748c!important;margin:0!important;box-shadow:none!important;z-index:10}
body dialog .sf-dialog-close svg{width:15px!important;height:15px!important}
body dialog :is(.sem-form-grid,.field-grid,.academic-review-edit-grid,.academic-request-form-grid,.user-field-grid){gap:18px 16px}
body dialog form>label.sf-field+label.sf-field{margin-top:18px}
html[data-site-theme=dark] .sf-field>.sf-caption{color:#b5c7d5}
html[data-site-theme=dark] .sf-field:is(:focus-within,.sf-always)>.sf-caption,html[data-site-theme=dark] .sf-field:has([data-sf-control]:not(:placeholder-shown))>.sf-caption{background:#193649;color:#c8d9e4}
@media(prefers-reduced-motion:reduce){.sf-field>.sf-caption{transition:none}}

body dialog:has(input,select,textarea) footer{justify-content:flex-start!important;direction:rtl}
body dialog footer:empty{display:none!important}
body :is(dialog,.dashboard-unified,form) input:is([type=checkbox],[type=radio]):not([hidden]){box-sizing:border-box;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;padding:0!important;flex:none;accent-color:#315e77;vertical-align:middle}

body :is(dialog,.dashboard-unified) :is(.mail-actions,.form-actions,.user-modal-actions,.request-form-actions,.academic-form-actions,.sem-dialog-actions,.password-modal-actions,.delivery-modal-actions,.tg-config-actions,.follow-settings-actions,.qm-settings-actions){display:flex;direction:rtl;justify-content:flex-start!important;gap:10px;flex-wrap:wrap}
body :is(dialog,.dashboard-unified) :is(.mail-actions,.form-actions,.user-modal-actions,.request-form-actions,.academic-form-actions,.sem-dialog-actions,.tg-config-actions,.follow-settings-actions,.qm-settings-actions)>:is(button,a.button){margin-inline:0!important;flex:none;width:auto}
body dialog footer[hidden]{display:none!important}

html body dialog#notes-editor.notes-visual-viewport{position:fixed!important;top:var(--notes-vv-top)!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin:0!important;max-height:var(--notes-vv-height)!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-padding-block:55px 25px}

html body .dependent-field-trigger{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;z-index:4!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0!important;cursor:pointer!important}
#dependent-field-notice{position:fixed;bottom:24px;right:24px;z-index:2147483646;max-width:min(420px,calc(100vw - 48px));padding:13px 18px;border:1px solid #cbdce7;border-radius:10px;background:#f4f9fc;color:#203f54;box-shadow:0 6px 20px #1b384522;font-size:14px;direction:rtl}
#dependent-field-notice[hidden]{display:none}

dialog #dependent-field-notice{position:static;margin:8px 20px 16px;max-width:none;box-shadow:none;font-size:13px}
