:root {
    --admf-blue: #064a7f;
    --admf-blue-dark: #03385f;
    --admf-blue-soft: #eef6fc;
    --admf-cyan: #0f87a5;
    --admf-green: #18865f;
    --admf-green-soft: #eaf8f2;
    --admf-amber: #b26a08;
    --admf-amber-soft: #fff6e7;
    --admf-red: #ba3f45;
    --admf-red-soft: #fff0f1;
    --admf-ink: #17324a;
    --admf-muted: #6d7f90;
    --admf-border: #dce5ed;
    --admf-bg: #f4f7fa;
    --admf-white: #fff;
    --admf-shadow: 0 8px 28px rgba(34, 65, 91, .08);
    --admf-radius: 14px;
}

* {
    box-sizing: border-box;
}

html, body.admf-staff-portal-template {
    margin: 0 !important;
    min-height: 100%;
    background: var(--admf-bg);
}

body.admf-staff-portal-template {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--admf-ink);
    font-size: 14px;
    line-height: 1.5;
}

body.admf-staff-portal-template #wpadminbar {
    display: none !important;
}

body.admf-staff-portal-template a {
    color: var(--admf-blue);
    text-decoration: none;
}

body.admf-staff-portal-template button,
body.admf-staff-portal-template input,
body.admf-staff-portal-template select,
body.admf-staff-portal-template textarea {
    font: inherit;
}

body.admf-staff-portal-template input[type="text"],
body.admf-staff-portal-template input[type="email"],
body.admf-staff-portal-template input[type="search"],
body.admf-staff-portal-template input[type="number"],
body.admf-staff-portal-template input[type="date"],
body.admf-staff-portal-template input[type="datetime-local"],
body.admf-staff-portal-template input[type="password"],
body.admf-staff-portal-template select,
body.admf-staff-portal-template textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--admf-ink);
    background: #fff;
    border: 1px solid #cfdbe5;
    border-radius: 9px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
}

body.admf-staff-portal-template textarea {
    min-height: 84px;
    resize: vertical;
}

body.admf-staff-portal-template input:focus,
body.admf-staff-portal-template select:focus,
body.admf-staff-portal-template textarea:focus {
    border-color: #5c9bc6;
    box-shadow: 0 0 0 3px rgba(6, 74, 127, .1);
}

body.admf-staff-portal-template label {
    display: block;
    color: #334e64;
    font-size: 13px;
    font-weight: 600;
}

body.admf-staff-portal-template label small {
    display: block;
    margin-top: 4px;
    color: var(--admf-muted);
    font-size: 11px;
    font-weight: 400;
}

body.admf-staff-portal-template label > input,
body.admf-staff-portal-template label > select,
body.admf-staff-portal-template label > textarea {
    margin-top: 6px;
}

.admf-portal-shell {
    display: flex;
    min-height: 100vh;
}

.admf-portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    width: 244px;
    flex-direction: column;
    padding: 24px 16px 18px;
    color: #fff;
    background: linear-gradient(180deg, #063e69 0%, #022f51 100%);
    box-shadow: 6px 0 24px rgba(2, 47, 81, .14);
}

.admf-portal-brand {
    display: flex;
    min-height: 86px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 0 9px 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.admf-portal-brand img {
    width: 118px;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.admf-portal-brand span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .025em;
}

.admf-portal-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding-top: 22px;
}

.admf-portal-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    color: rgba(255,255,255,.72) !important;
    border-radius: 9px;
    font-weight: 600;
    transition: background .15s, color .15s, transform .15s;
}

.admf-portal-nav a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.admf-portal-nav a.is-active {
    color: #fff !important;
    background: rgba(255,255,255,.14);
    box-shadow: inset 3px 0 0 #72d5ef;
}

.admf-portal-nav .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.admf-portal-sidebar-close {
    position: absolute;
    top: 14px;
    right: 13px;
    z-index: 3;
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    cursor: pointer;
}

.admf-portal-sidebar-close:hover {
    background: rgba(255,255,255,.18);
}

.admf-portal-sidebar-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.admf-portal-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(17,38,54,.38);
    border: 0;
    cursor: pointer;
}

.admf-portal-main {
    width: calc(100% - 244px);
    min-width: 0;
    margin-left: 244px;
}

.admf-portal-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px 32px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--admf-border);
    backdrop-filter: blur(8px);
}

.admf-portal-topbar-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admf-portal-topbar h1 {
    margin: 0;
    color: #163d5c;
    font-size: 20px;
    line-height: 1.25;
}

.admf-portal-topbar p {
    margin: 3px 0 0;
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-portal-menu-button {
    display: none;
    padding: 8px;
    color: var(--admf-ink);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.admf-portal-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admf-portal-user > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 145px;
}

.admf-portal-user strong {
    font-size: 13px;
}

.admf-portal-user span {
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-portal-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--admf-blue);
    border-radius: 50%;
    font-weight: 700;
}

.admf-icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #667b8d !important;
    background: #f4f7f9;
    border: 1px solid var(--admf-border);
    border-radius: 9px;
    cursor: pointer;
}

.admf-icon-button:hover {
    color: var(--admf-red) !important;
    background: var(--admf-red-soft);
}

.admf-portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admf-notification-center {
    position: relative;
}

.admf-notification-button {
    position: relative;
    color: var(--admf-blue) !important;
}

.admf-notification-button:hover, .admf-notification-button[aria-expanded="true"] {
    color: var(--admf-blue) !important;
    background: var(--admf-blue-soft);
    border-color: #c8dfea;
}

.admf-notification-button > b {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    color: #fff;
    background: var(--admf-red);
    border: 2px solid #fff;
    border-radius: 99px;
    font-size: 9px;
    line-height: 1;
}

.admf-notification-button > b.is-clear {
    display: none;
}

.admf-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: min(360px, calc(100vw - 28px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 13px;
    box-shadow: 0 18px 50px rgba(21,54,78,.18);
}

.admf-notification-panel[hidden] {
    display: none;
}

.admf-notification-panel > div {
    display: flex;
    flex-direction: column;
    padding: 14px 15px 11px;
    background: #f7fafc;
    border-bottom: 1px solid var(--admf-border);
}

.admf-notification-panel > div strong {
    color: #24465f;
    font-size: 13px;
}

.admf-notification-panel > div span {
    color: var(--admf-muted);
    font-size: 10px;
}

.admf-notification-panel > a {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    color: #38566c !important;
    border-bottom: 1px solid #edf1f4;
}

.admf-notification-panel > a:last-child {
    border-bottom: 0;
}

.admf-notification-panel > a:hover {
    background: #f7fafc;
}

.admf-notification-panel > a > .dashicons {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--admf-blue);
    background: var(--admf-blue-soft);
    border-radius: 8px;
    font-size: 16px;
}

.admf-notification-panel p {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    font-size: 11px;
    font-weight: 650;
}

.admf-notification-panel p small {
    overflow: hidden;
    color: var(--admf-muted);
    font-size: 9px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-notification-panel > a > b {
    display: grid;
    min-width: 25px;
    height: 24px;
    padding: 0 7px;
    place-items: center;
    color: var(--admf-blue);
    background: #eef5fa;
    border-radius: 99px;
    font-size: 10px;
}

.admf-portal-content {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding: 28px 32px 52px;
}

.admf-portal-heading, .admf-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.admf-portal-heading h2, .admf-detail-header h2 {
    margin: 0;
    color: #163d5c;
    font-size: 24px;
    line-height: 1.25;
}

.admf-portal-heading p, .admf-detail-header p {
    margin: 5px 0 0;
    color: var(--admf-muted);
}

.admf-count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    margin-left: 5px;
    place-items: center;
    color: var(--admf-blue);
    background: var(--admf-blue-soft);
    border-radius: 99px;
    font-size: 12px;
    vertical-align: 3px;
}

.admf-heading-actions, .admf-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admf-back-link {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 8px;
    color: var(--admf-muted) !important;
    font-size: 12px;
    font-weight: 600;
}

.admf-back-link:hover {
    color: var(--admf-blue) !important;
}

.admf-back-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.admf-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--admf-blue) !important;
    background: #fff;
    border: 1px solid #c9d8e4;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(20,45,65,.03);
    transition: transform .15s, box-shadow .15s, background .15s;
}

.admf-button:hover {
    background: #f6fafc;
    box-shadow: 0 4px 12px rgba(30,65,90,.08);
    transform: translateY(-1px);
}

.admf-button.is-primary {
    color: #fff !important;
    background: var(--admf-blue);
    border-color: var(--admf-blue);
}

.admf-button.is-primary:hover {
    background: var(--admf-blue-dark);
}

.admf-button.is-light {
    background: #f7fafc;
}

.admf-button.is-small {
    min-height: 31px;
    padding: 5px 9px;
    font-size: 11px;
}

.admf-button.is-danger {
    color: #fff !important;
    background: var(--admf-red);
    border-color: var(--admf-red);
}

.admf-button.is-danger-light {
    color: var(--admf-red) !important;
    background: var(--admf-red-soft);
    border-color: #f2c9cc;
}

.admf-button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.admf-portal-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 13px 15px;
    color: #285d48;
    background: var(--admf-green-soft);
    border: 1px solid #bfe4d4;
    border-radius: 10px;
}

.admf-portal-notice p {
    margin: 0;
}

.admf-portal-notice.is-warning {
    color: #77500d;
    background: var(--admf-amber-soft);
    border-color: #eed59f;
}

.admf-portal-notice.is-error {
    color: #8b3136;
    background: var(--admf-red-soft);
    border-color: #efc6c9;
}

.admf-portal-notice .dashicons {
    flex: 0 0 18px;
    margin-top: 1px;
}

.admf-panel {
    min-width: 0;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: var(--admf-radius);
    box-shadow: var(--admf-shadow);
}

.admf-panel > h3 {
    margin: 0 0 16px;
    color: #1d435f;
    font-size: 15px;
}

.admf-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.admf-panel-heading h3 {
    margin: 0;
    color: #1d435f;
    font-size: 15px;
}

.admf-panel-heading p {
    margin: 4px 0 0;
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-panel-heading > a {
    font-size: 11px;
    font-weight: 650;
}

.admf-portal-grid {
    display: grid;
    gap: 20px;
}

.admf-grid-2-1 {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.admf-grid-1-2 {
    grid-template-columns: minmax(270px, 1fr) minmax(0, 2fr);
}

.admf-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admf-stat-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: var(--admf-ink) !important;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: var(--admf-radius);
    box-shadow: var(--admf-shadow);
}

.admf-stat-card > .dashicons {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--admf-blue);
    background: var(--admf-blue-soft);
    border-radius: 11px;
    font-size: 21px;
}

.admf-stat-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admf-stat-card small {
    color: var(--admf-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.admf-stat-card strong {
    margin: 2px 0;
    color: #173e5e;
    font-size: 25px;
    line-height: 1.1;
}

.admf-stat-card em {
    overflow: hidden;
    color: #7e8e9c;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-stat-card.is-blue > .dashicons {
    color: #1b689a;
    background: #e9f4fb;
}

.admf-stat-card.is-amber > .dashicons {
    color: var(--admf-amber);
    background: var(--admf-amber-soft);
}

.admf-stat-card.is-red > .dashicons {
    color: var(--admf-red);
    background: var(--admf-red-soft);
}

.admf-stat-card.is-green > .dashicons {
    color: var(--admf-green);
    background: var(--admf-green-soft);
}

.admf-track-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.admf-track-grid a {
    display: flex;
    min-height: 105px;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    color: var(--admf-ink) !important;
    background: #f8fbfd;
    border: 1px solid #e2ebf1;
    border-radius: 11px;
}

.admf-track-grid a:hover {
    border-color: #9fc5df;
    background: var(--admf-blue-soft);
}

.admf-track-grid span {
    color: var(--admf-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.admf-track-grid strong {
    margin: 4px 0;
    color: #193e5b;
    font-size: 25px;
}

.admf-track-grid small {
    color: var(--admf-muted);
}

.admf-health-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    background: var(--admf-green-soft);
    border-radius: 11px;
}

.admf-health-card.has-warning {
    background: var(--admf-amber-soft);
}

.admf-health-card .dashicons {
    width: 28px;
    height: 28px;
    color: var(--admf-green);
    font-size: 28px;
}

.admf-health-card.has-warning .dashicons {
    color: var(--admf-amber);
}

.admf-health-card strong {
    margin-top: 5px;
}

.admf-health-card p {
    margin: 3px 0 5px;
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-health-card a {
    font-size: 11px;
    font-weight: 650;
}

.admf-simple-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admf-simple-list a {
    display: flex;
    flex-direction: column;
    padding: 11px 12px;
    color: var(--admf-ink) !important;
    background: #f8fafc;
    border: 1px solid #e5ebf0;
    border-radius: 9px;
}

.admf-simple-list a:hover {
    border-color: #a8c9df;
}

.admf-simple-list strong {
    color: var(--admf-blue);
    font-size: 11px;
}

.admf-simple-list span {
    font-weight: 650;
}

.admf-simple-list small {
    overflow: hidden;
    color: var(--admf-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-empty-small {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--admf-muted);
    text-align: center;
}

.admf-empty-small .dashicons {
    width: 28px;
    height: 28px;
    color: #72a88e;
    font-size: 28px;
}

.admf-empty-small p {
    margin: 6px 0 0;
}

.admf-programme-performance {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admf-programme-performance > div {
    display: grid;
    grid-template-columns: minmax(190px, 1.1fr) minmax(180px, 2fr) 46px;
    gap: 15px;
    align-items: center;
}

.admf-programme-performance > div > div:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admf-programme-performance strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-programme-performance span {
    color: var(--admf-muted);
    font-size: 10px;
}

.admf-programme-performance b {
    color: var(--admf-blue);
    font-size: 11px;
    text-align: right;
}

.admf-progress {
    overflow: hidden;
    height: 7px;
    background: #e8eef3;
    border-radius: 99px;
}

.admf-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--admf-blue), var(--admf-cyan));
    border-radius: inherit;
}

.admf-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 16px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(34,65,91,.04);
}

.admf-filter-panel > input[type="date"], .admf-filter-panel > select {
    width: auto;
    min-width: 135px;
}

.admf-filter-panel > select[name="programme_id"] {
    max-width: 255px;
}

.admf-filter-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 210px;
}

.admf-filter-search .dashicons {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #8797a5;
    font-size: 18px;
}

.admf-filter-search input {
    padding-left: 36px !important;
}

.admf-filter-submit, .admf-filter-reset {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admf-filter-submit {
    min-width: 126px;
    padding-inline: 18px;
}

.admf-filter-reset {
    min-width: 92px;
}

.admf-check-filter {
    display: inline-flex !important;
    gap: 6px;
    align-items: center;
    padding: 8px 9px;
    color: #506579 !important;
    background: #f8fafc;
    border: 1px solid #e0e8ee;
    border-radius: 8px;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.admf-check-filter input {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.admf-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admf-table {
    width: 100%;
    border-collapse: collapse;
}

.admf-table th {
    padding: 11px 10px;
    color: #708190;
    background: #f8fafc;
    border-bottom: 1px solid var(--admf-border);
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .035em;
    white-space: nowrap;
}

.admf-table td {
    padding: 13px 10px;
    color: #354e62;
    border-bottom: 1px solid #e8edf1;
    font-size: 12px;
    vertical-align: middle;
}

.admf-table tr:last-child td {
    border-bottom: 0;
}

.admf-table tbody tr:hover {
    background: #fbfdfe;
}

.admf-table td > strong, .admf-table td > small {
    display: block;
}

.admf-table td > small {
    max-width: 260px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--admf-muted);
    font-size: 10px;
    text-overflow: ellipsis;
}

.admf-col-check {
    width: 32px;
}

.admf-reference {
    color: var(--admf-blue) !important;
    font-weight: 700;
    white-space: nowrap;
}

.admf-track-chip, .admf-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    color: #155c89;
    background: #eaf4fb;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
}

.admf-type-chip {
    color: #5c4c86;
    background: #f0ecfa;
    letter-spacing: 0;
}

.admf-status {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 4px 8px;
    color: #4d6576;
    background: #edf2f5;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.admf-status-new {
    color: #17628f;
    background: #e8f4fb;
}

.admf-status-reviewed {
    color: #5a5685;
    background: #efedfa;
}

.admf-status-documents_required {
    color: #8b5b12;
    background: #fff3da;
}

.admf-status-documents_submitted {
    color: #166a72;
    background: #e7f7f7;
}

.admf-status-accepted {
    color: #176847;
    background: #e7f6ef;
}

.admf-status-rejected {
    color: #9a363c;
    background: #fdecee;
}

.admf-row-action {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    color: var(--admf-blue) !important;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.admf-row-action .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.admf-subject-cell {
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-bulk-bar {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--admf-border);
}

.admf-bulk-bar select {
    width: 210px;
}

.admf-empty {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--admf-muted);
    text-align: center;
}

.admf-empty .dashicons {
    width: 34px;
    height: 34px;
    color: #9bb0c1;
    font-size: 34px;
}

.admf-empty strong {
    margin-top: 7px;
    color: #456177;
}

.admf-empty p {
    margin: 4px 0 0;
    font-size: 11px;
}

.admf-pagination {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    margin-top: 16px;
}

.admf-pagination .page-numbers {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #526b7d;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 8px;
    font-size: 11px;
}

.admf-pagination .page-numbers.current {
    color: #fff;
    background: var(--admf-blue);
    border-color: var(--admf-blue);
}

.admf-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, .85fr);
    gap: 20px;
    align-items: start;
}

.admf-detail-primary, .admf-detail-sidebar {
    min-width: 0;
}

.admf-detail-sidebar {
    position: sticky;
    top: 96px;
}

.admf-detail-grid-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid #e8edf1;
    border-left: 1px solid #e8edf1;
}

.admf-detail-grid-list.is-single {
    grid-template-columns: 1fr;
}

.admf-detail-grid-list > div {
    min-width: 0;
    padding: 11px 12px;
    border-right: 1px solid #e8edf1;
    border-bottom: 1px solid #e8edf1;
}

.admf-detail-grid-list dt {
    color: var(--admf-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admf-detail-grid-list dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: #304a5e;
    font-size: 12px;
    font-weight: 550;
}

.admf-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admf-contact-actions a,
.admf-contact-actions button {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 5px 9px;
    color: #3e637e !important;
    background: #f4f8fb;
    border: 1px solid #d7e4ee;
    border-radius: 7px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.admf-contact-actions a:hover,
.admf-contact-actions button:hover {
    background: #eef6fc;
}

.admf-contact-actions .admf-contact-whatsapp {
    color: #0f6b4f !important;
    background: #ecfaf2;
    border-color: #bfe3cf;
}

.admf-contact-actions .admf-contact-whatsapp:hover {
    background: #e3f5eb;
}

.admf-contact-actions .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.admf-education-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.admf-education-list > div {
    display: flex;
    flex-direction: column;
    padding: 11px;
    background: #f8fafc;
    border: 1px solid #e3eaf0;
    border-radius: 9px;
}

.admf-education-list span {
    color: var(--admf-muted);
    font-size: 10px;
}

.admf-text-block {
    margin-top: 14px;
    padding: 13px;
    color: #425d70;
    background: #f8fafc;
    border: 1px solid #e3eaf0;
    border-radius: 9px;
}

.admf-text-block > strong {
    color: #24465f;
    font-size: 11px;
}

.admf-text-block p {
    margin: 5px 0 0;
}

.admf-error-block {
    margin-top: 14px;
    padding: 12px;
    color: #8d3439;
    background: var(--admf-red-soft);
    border-radius: 9px;
}

.admf-error-block p {
    margin: 4px 0 0;
}

.admf-mini-progress {
    overflow: hidden;
    width: 130px;
    height: 7px;
    margin-top: 6px;
    background: #e8edf2;
    border-radius: 99px;
}

.admf-mini-progress span {
    display: block;
    height: 100%;
    background: var(--admf-green);
}

.admf-document-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admf-document-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(420px, 1.4fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
    background: #f9fbfc;
    border: 1px solid #e4ebf0;
    border-radius: 10px;
}

.admf-document-file {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
}

.admf-document-file > .dashicons {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--admf-red);
    font-size: 28px;
}

.admf-document-file div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admf-document-file strong, .admf-document-file small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-document-file small {
    color: var(--admf-muted);
    font-size: 10px;
}

.admf-document-review {
    display: grid;
    grid-template-columns: 115px minmax(120px, 1fr) auto auto;
    gap: 7px;
    align-items: center;
}

.admf-document-review select, .admf-document-review input[type="text"] {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
}

.admf-document-review label {
    display: flex !important;
    gap: 4px;
    align-items: center;
    color: var(--admf-muted) !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

.admf-document-review label input {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.admf-inline-form {
    margin-top: 12px;
    text-align: right;
}

.admf-stack-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admf-stack-form .admf-checkbox {
    display: flex !important;
    gap: 7px;
    align-items: flex-start;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.admf-stack-form .admf-checkbox input {
    width: auto !important;
    min-height: 0 !important;
    margin: 2px 0 0 !important;
}

.admf-document-checks {
    display: grid;
    gap: 7px;
}

.admf-document-checks label {
    display: flex !important;
    gap: 7px;
    align-items: flex-start;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.admf-document-checks input {
    width: auto !important;
    min-height: 0 !important;
    margin: 2px 0 0 !important;
}

.admf-danger-panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-color: #efd5d7;
}

.admf-danger-panel h3 {
    margin-bottom: 4px;
}

.admf-email-mini-list {
    display: flex;
    flex-direction: column;
}

.admf-email-mini-list a {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(170px, 1fr) minmax(130px, .8fr);
    gap: 12px;
    padding: 10px 0;
    color: #3a5366 !important;
    border-bottom: 1px solid #e8edf1;
    font-size: 10px;
}

.admf-email-mini-list a:last-child {
    border-bottom: 0;
}

.admf-email-mini-list span {
    font-weight: 650;
}

.admf-email-mini-list small {
    color: var(--admf-muted);
    text-align: right;
}

.admf-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 5px;
}

.admf-timeline > div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
}

.admf-timeline > div > span {
    position: relative;
    width: 9px;
    height: 9px;
    margin-top: 4px;
    background: var(--admf-blue);
    border: 2px solid #dcebf5;
    border-radius: 50%;
}

.admf-timeline > div:not(:last-child) > span:after {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 1px;
    height: calc(100% + 23px);
    content: "";
    background: #dce4ea;
}

.admf-timeline section {
    display: flex;
    flex-direction: column;
}

.admf-timeline small {
    color: var(--admf-muted);
    font-size: 9px;
}

.admf-timeline p {
    margin: 4px 0 0;
    color: #526b7d;
    font-size: 11px;
}

.admf-import-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(410px, 520px);
    align-items: center;
    gap: 20px;
}

.admf-import-panel > div {
    min-width: 0;
}

.admf-import-panel h3 {
    margin: 0;
}

.admf-import-panel p {
    max-width: 680px;
    margin: 4px 0 0;
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-import-panel form {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admf-file-field {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #d9e4ec;
    border-radius: 11px;
}

.admf-file-input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.admf-file-trigger {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.admf-file-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--admf-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-translation-chip {
    display: inline-flex;
    margin: 2px;
    padding: 3px 6px;
    color: #536878;
    background: #eef2f5;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 700;
}

.admf-translation-chip.is-complete {
    color: var(--admf-green);
    background: var(--admf-green-soft);
}

.admf-translation-chip.is-warning {
    color: var(--admf-amber);
    background: var(--admf-amber-soft);
}

.admf-row-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admf-row-menu a {
    font-size: 10px;
    font-weight: 650;
}

.admf-programme-editor {
    max-width: 1250px;
}

.admf-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admf-language-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admf-language-columns > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e3eaf0;
    border-radius: 11px;
}

.admf-language-label {
    display: inline-grid;
    width: 34px;
    height: 25px;
    place-items: center;
    color: var(--admf-blue);
    background: var(--admf-blue-soft);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 750;
}

.admf-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.admf-email-preview {
    width: 100%;
    height: 720px;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 10px;
}

.admf-bar-chart {
    display: flex;
    min-height: 260px;
    align-items: flex-end;
    gap: 9px;
    padding-top: 18px;
}

.admf-bar-chart > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.admf-bar-chart > div > span {
    display: flex;
    width: min(34px, 80%);
    height: 180px;
    align-items: flex-end;
    overflow: hidden;
    background: #edf2f5;
    border-radius: 6px 6px 3px 3px;
}

.admf-bar-chart i {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #2a8fbb, var(--admf-blue));
    border-radius: inherit;
}

.admf-bar-chart strong {
    margin-top: 5px;
    font-size: 10px;
}

.admf-bar-chart small {
    color: var(--admf-muted);
    font-size: 8px;
    white-space: nowrap;
}

.admf-report-track-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admf-report-track-list > div {
    display: grid;
    grid-template-columns: 40px 38px minmax(80px, 1fr) 70px;
    gap: 10px;
    align-items: center;
}

.admf-report-track-list > div > span {
    color: var(--admf-blue);
    font-size: 11px;
    font-weight: 750;
}

.admf-report-track-list small {
    color: var(--admf-muted);
    font-size: 9px;
    text-align: right;
}

.admf-table-progress {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 150px;
}

.admf-table-progress > span {
    display: block;
    width: 100px;
    height: 6px;
    overflow: hidden;
    background: #e8edf1;
    border-radius: 99px;
}

.admf-table-progress i {
    display: block;
    height: 100%;
    background: var(--admf-green);
}

.admf-table-progress strong {
    font-size: 10px;
}

.admf-portal-login-screen {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
    background: radial-gradient(circle at 20% 15%, #e1f3fb 0, transparent 35%), linear-gradient(135deg, #f4f8fb 0%, #eaf1f6 100%);
}

.admf-portal-login-card {
    width: min(410px, 100%);
    padding: 36px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(26,59,82,.13);
}

.admf-portal-login-logo {
    width: 138px;
    max-height: 70px;
    object-fit: contain;
}

.admf-portal-login-card h1 {
    margin: 20px 0 6px;
    color: #153c5a;
    font-size: 24px;
}

.admf-portal-login-card > p {
    margin: 0 0 22px;
    color: var(--admf-muted);
}

.admf-portal-login-error {
    margin: 0 0 18px;
    padding: 11px 13px;
    color: #8d2429;
    text-align: left;
    background: var(--admf-red-soft);
    border: 1px solid #efc5c8;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.admf-portal-login-card .login-username, .admf-portal-login-card .login-password {
    text-align: left;
}

.admf-portal-login-card .login-remember {
    text-align: left;
}

.admf-portal-login-card .login-remember label {
    display: flex;
    gap: 7px;
    align-items: center;
    font-weight: 500;
}

.admf-portal-login-card .login-remember input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.admf-portal-login-card .login-submit input {
    width: 100%;
    min-height: 43px;
    color: #fff;
    background: var(--admf-blue);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 650;
}

@media (max-width: 1220px) {
    .admf-import-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admf-import-panel form {
        max-width: 680px;
    }

    .admf-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admf-detail-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(285px, .85fr);
    }

    .admf-document-row {
        grid-template-columns: minmax(190px, 1fr) auto;
    }

    .admf-document-review {
        grid-column: 1 / -1;
    }

    .admf-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admf-portal-sidebar {
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .admf-portal-menu-open {
        overflow: hidden;
    }

    .admf-portal-menu-open .admf-portal-sidebar {
        transform: translateX(0);
    }

    .admf-portal-menu-open .admf-portal-menu-backdrop {
        display: block;
    }

    .admf-portal-sidebar-close {
        display: grid;
    }

    .admf-portal-main {
        width: 100%;
        margin-left: 0;
    }

    .admf-portal-menu-button {
        display: inline-grid;
    }

    .admf-portal-topbar {
        padding: 11px 20px;
    }

    .admf-portal-content {
        padding: 24px 20px 45px;
    }

    .admf-grid-2-1, .admf-grid-1-2, .admf-detail-layout {
        grid-template-columns: 1fr;
    }

    .admf-detail-sidebar {
        position: static;
    }

    .admf-language-columns {
        grid-template-columns: 1fr;
    }

    .admf-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .admf-portal-topbar {
        min-height: 66px;
        padding: 9px 13px;
    }

    .admf-portal-topbar h1 {
        font-size: 17px;
    }

    .admf-portal-user > div:nth-child(2) {
        display: none;
    }

    .admf-portal-avatar {
        width: 34px;
        height: 34px;
    }

    .admf-portal-content {
        padding: 18px 18px 38px;
    }

    .admf-portal-heading, .admf-detail-header {
        flex-direction: column;
    }

    .admf-portal-heading h2, .admf-detail-header h2 {
        font-size: 21px;
    }

    .admf-heading-actions, .admf-detail-actions {
        width: 100%;
    }

    .admf-heading-actions .admf-button, .admf-detail-actions .admf-button {
        flex: 1;
    }

    .admf-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .admf-stat-card {
        min-height: 104px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 13px;
    }

    .admf-stat-card > .dashicons {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .admf-stat-card strong {
        font-size: 21px;
    }

    .admf-track-grid {
        grid-template-columns: 1fr;
    }

    .admf-panel {
        padding: 15px;
        border-radius: 12px;
    }

    .admf-filter-panel {
        align-items: stretch;
    }

    .admf-filter-panel > *, .admf-filter-panel > select, .admf-filter-panel > input[type="date"] {
        width: 100%;
        max-width: none !important;
    }

    .admf-check-filter {
        width: auto !important;
    }

    .admf-table th, .admf-table td {
        padding: 10px 8px;
    }

    .admf-detail-grid-list {
        grid-template-columns: 1fr;
    }

    .admf-education-list {
        grid-template-columns: 1fr;
    }

    .admf-document-row {
        grid-template-columns: 1fr;
    }

    .admf-document-review, .admf-document-review-table {
        grid-template-columns: 1fr;
    }

    .admf-document-review label {
        white-space: normal;
    }

    .admf-email-mini-list a {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .admf-email-mini-list small {
        text-align: left;
    }

    .admf-import-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admf-import-panel form {
        grid-template-columns: 1fr;
        align-items: stretch;
        max-width: none;
    }

    .admf-file-field {
        width: 100%;
        min-width: 0;
    }

    .admf-file-name {
        flex: 1;
    }

    .admf-form-grid {
        grid-template-columns: 1fr;
    }

    .admf-programme-performance > div {
        grid-template-columns: 1fr 45px;
    }

    .admf-programme-performance > div > div:first-child {
        grid-column: 1 / -1;
    }

    .admf-bar-chart {
        overflow-x: auto;
    }

    .admf-bar-chart > div {
        min-width: 38px;
    }

    .admf-report-track-list > div {
        grid-template-columns: 38px 35px minmax(80px, 1fr);
    }

    .admf-report-track-list small {
        grid-column: 1 / -1;
        text-align: left;
    }

    .admf-portal-login-card {
        padding: 28px 22px;
    }
}

/*v1.9.4 portal workflow improvements*/

.admf-portal-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 244px;
    z-index: 120;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.admf-portal-progress span {
    display: block;
    width: 32%;
    height: 100%;
    background: linear-gradient(90deg, var(--admf-cyan), #75d7ee);
    transform: translateX(-120%);
}

.admf-portal-is-loading .admf-portal-progress {
    opacity: 1;
}

.admf-portal-is-loading .admf-portal-progress span {
    animation: admfPortalProgress 1s ease-in-out infinite;
}

.admf-portal-content {
    transition: opacity .14s ease, transform .14s ease;
}

.admf-portal-is-loading .admf-portal-content {
    opacity: .58;
    transform: translateY(2px);
    pointer-events: none;
}

.admf-portal-is-loading, .admf-portal-is-loading a, .admf-portal-is-loading button {
    cursor: progress !important;
}

@keyframes admfPortalProgress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(420%);
    }
}

.admf-portal-nav a {
    position: relative;
}

.admf-nav-label {
    min-width: 0;
    flex: 1;
}

.admf-nav-badge {
    display: inline-grid;
    min-width: 24px;
    height: 21px;
    padding: 0 6px;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
}

.admf-portal-nav a.is-active .admf-nav-badge {
    color: #063e69;
    background: #fff;
    border-color: #fff;
}

.admf-nav-badge.is-clear {
    color: #bcebd8;
    background: rgba(33,151,105,.2);
    border-color: rgba(147,229,197,.22);
}

.admf-attention-center {
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #fafdff 0%, #eef6fb 100%);
    border: 1px solid #d7e7f1;
    border-radius: var(--admf-radius);
    box-shadow: 0 6px 22px rgba(34,65,91,.06);
}

.admf-attention-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admf-attention-heading h3 {
    margin: 0;
    color: #1d435f;
    font-size: 15px;
}

.admf-attention-heading p {
    margin: 3px 0 0;
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-attention-heading > span {
    padding: 5px 9px;
    color: var(--admf-blue);
    background: #fff;
    border: 1px solid #d9e7ef;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.admf-attention-center .admf-stat-grid {
    margin-bottom: 0;
}

.admf-attention-center .admf-stat-card {
    box-shadow: 0 4px 14px rgba(34,65,91,.055);
}

.admf-filter-panel {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 9px;
    align-items: center;
    padding: 14px;
}

.admf-filter-panel > .admf-filter-search {
    grid-column: span 4;
    min-width: 0;
}

.admf-filter-panel > select, .admf-filter-panel > input[type="date"] {
    grid-column: span 2;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.admf-filter-panel > select[name="programme_id"] {
    max-width: none;
}

.admf-filter-panel > .admf-check-filter {
    grid-column: span 1;
    justify-content: center;
    min-height: 42px;
    padding: 8px 7px;
    white-space: nowrap;
}

.admf-filter-panel > .admf-button {
    width: 100%;
    min-width: 82px;
}

.admf-filter-panel > button.admf-button {
    grid-column: span 1;
}

.admf-filter-panel > a.admf-button {
    grid-column: span 1;
}

.admf-sticky-table {
    max-height: min(68vh, 760px);
    overflow: auto;
    border: 1px solid #e4ebf0;
    border-radius: 10px;
}

.admf-sticky-table .admf-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 1px 0 var(--admf-border);
}

.admf-table-wrap.is-scrollable {
    position: relative;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: #b9c8d3 transparent;
}

.admf-table-wrap.is-scrollable:focus-visible {
    box-shadow: 0 0 0 3px rgba(6,74,127,.12);
}

.admf-table-wrap.has-scroll-right {
    box-shadow: inset -14px 0 12px -14px rgba(22,58,83,.45);
}

.admf-table-wrap.has-scroll-left {
    box-shadow: inset 14px 0 12px -14px rgba(22,58,83,.35);
}

.admf-table-wrap.has-scroll-left.has-scroll-right {
    box-shadow: inset 14px 0 12px -14px rgba(22,58,83,.35), inset -14px 0 12px -14px rgba(22,58,83,.45);
}

.admf-table-wrap.admf-sticky-actions .admf-table th:last-child,
.admf-table-wrap.admf-sticky-actions .admf-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -1px 0 0 #e4ebf0;
}

.admf-table-wrap.admf-sticky-actions .admf-table th:last-child {
    z-index: 5;
    background: #f8fafc;
}

.admf-table-wrap.admf-sticky-actions .admf-table tbody tr:hover td:last-child {
    background: #fbfdfe;
}

.admf-application-table-wrap {
    position: relative;
}

.admf-quick-select {
    min-width: 132px;
    min-height: 34px !important;
    padding: 5px 28px 5px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
}

.admf-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.admf-button.is-saving {
    color: transparent !important;
    position: relative;
}

.admf-button.is-saving:after {
    position: absolute;
    width: 14px;
    height: 14px;
    content: "";
    border: 2px solid rgba(6,74,127,.25);
    border-top-color: var(--admf-blue);
    border-radius: 50%;
    animation: admfSpin .7s linear infinite;
}

@keyframes admfSpin {
    to {
        transform: rotate(360deg);
    }
}

.admf-toast-region {
    position: fixed;
    top: 88px;
    right: 22px;
    z-index: 150;
    display: flex;
    width: min(390px, calc(100vw - 28px));
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
}

.admf-toast {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr) 26px;
    gap: 9px;
    align-items: start;
    padding: 13px 13px 13px 14px;
    color: #285d48;
    background: #fff;
    border: 1px solid #bfe4d4;
    border-left: 4px solid var(--admf-green);
    border-radius: 11px;
    box-shadow: 0 14px 40px rgba(22,51,73,.18);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: auto;
}

.admf-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.admf-toast.is-warning {
    color: #77500d;
    border-color: #eed59f;
    border-left-color: var(--admf-amber);
}

.admf-toast.is-error {
    color: #8b3136;
    border-color: #efc6c9;
    border-left-color: var(--admf-red);
}

.admf-toast p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.admf-toast .dashicons {
    width: 19px;
    height: 19px;
    margin-top: 1px;
    font-size: 19px;
}

.admf-toast button {
    width: 26px;
    height: 26px;
    padding: 0;
    color: #738595;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.admf-toast button:hover {
    color: var(--admf-ink);
    background: #f2f5f7;
}

@media (max-width: 1220px) {
    .admf-filter-panel > .admf-filter-search {
        grid-column: span 6;
    }

    .admf-filter-panel > select, .admf-filter-panel > input[type="date"] {
        grid-column: span 3;
    }

    .admf-filter-panel > .admf-check-filter,
    .admf-filter-panel > button.admf-button,
    .admf-filter-panel > a.admf-button {
        grid-column: span 2;
    }
}

@media (max-width: 980px) {
    .admf-portal-progress {
        left: 0;
    }

    .admf-filter-panel > .admf-filter-search {
        grid-column: 1 / -1;
    }

    .admf-filter-panel > select, .admf-filter-panel > input[type="date"] {
        grid-column: span 4;
    }

    .admf-filter-panel > .admf-check-filter,
    .admf-filter-panel > button.admf-button,
    .admf-filter-panel > a.admf-button {
        grid-column: span 3;
    }
}

@media (max-width: 680px) {
    .admf-portal-topbar-actions {
        gap: 7px;
    }

    .admf-portal-user > div:nth-child(2) {
        display: none;
    }

    .admf-notification-panel {
        position: fixed;
        top: 68px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .admf-attention-heading {
        flex-direction: column;
    }

    .admf-filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .admf-filter-panel > .admf-filter-search,
    .admf-filter-panel > select,
    .admf-filter-panel > input[type="date"] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admf-filter-panel > .admf-check-filter,
    .admf-filter-panel > button.admf-button,
    .admf-filter-panel > a.admf-button {
        grid-column: span 1;
        width: 100% !important;
    }

    .admf-toast-region {
        top: 74px;
        right: 14px;
    }

    .admf-sticky-table {
        max-height: none;
        overflow: visible;
        border: 0;
    }

    .admf-table-wrap {
        overflow: visible;
        box-shadow: none !important;
    }

    .admf-table-wrap.admf-sticky-actions .admf-table th:last-child,
    .admf-table-wrap.admf-sticky-actions .admf-table td:last-child {
        position: static;
        box-shadow: none;
    }

    .admf-table, .admf-table tbody, .admf-table tr, .admf-table td {
        display: block;
        width: 100%;
    }

    .admf-table thead {
        display: none;
    }

    .admf-table tbody {
        display: grid;
        gap: 12px;
    }

    .admf-table tbody tr {
        overflow: hidden;
        background: #fff;
        border: 1px solid #dfe8ef;
        border-radius: 11px;
        box-shadow: 0 5px 16px rgba(34,65,91,.055);
    }

    .admf-table tbody tr:hover {
        background: #fff;
    }

    .admf-table tbody td {
        display: grid;
        grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        min-height: 43px;
        padding: 9px 11px;
        border-bottom: 1px solid #edf1f4;
        text-align: left;
    }

    .admf-table tbody td:last-child {
        border-bottom: 0;
    }

    .admf-table tbody td:before {
        content: attr(data-label);
        color: #7a8a98;
        font-size: 9px;
        font-weight: 750;
        letter-spacing: .035em;
        text-transform: uppercase;
    }

    .admf-table tbody td[data-label=""] {
        grid-template-columns: 1fr;
    }

    .admf-table tbody td[data-label=""]:before {
        display: none;
    }

    .admf-table tbody td[colspan] {
        display: block;
    }

    .admf-table tbody td[colspan]:before {
        display: none;
    }

    .admf-table td > small {
        max-width: 100%;
    }

    .admf-quick-select {
        width: 100%;
        min-width: 0;
    }

    .admf-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admf-document-review-table {
        width: 100%;
    }

    .admf-bulk-bar {
        flex-wrap: wrap;
    }

    .admf-bulk-bar select {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admf-portal-progress span, .admf-button.is-saving:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .admf-portal-content, .admf-portal-nav a, .admf-toast {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/*v1.9.10: four admissions tracks.*/

@media (min-width: 1221px) {
    .admf-track-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 681px) and (max-width: 1220px) {
    .admf-track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*v1.9.12: clearer Programmes workspace and language editor.*/

.admf-programme-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admf-programme-stat {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(31, 59, 82, .045);
}

.admf-programme-stat > .dashicons {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--admf-blue);
    background: var(--admf-blue-soft);
    border-radius: 10px;
    font-size: 19px;
}

.admf-programme-stat.is-active > .dashicons {
    color: var(--admf-green);
    background: var(--admf-green-soft);
}

.admf-programme-stat.is-archived > .dashicons {
    color: #687986;
    background: #edf1f4;
}

.admf-programme-stat.is-language > .dashicons {
    color: #7157a8;
    background: #f2eef9;
}

.admf-programme-stat div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admf-programme-stat small {
    overflow: hidden;
    color: var(--admf-muted);
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admf-programme-stat strong {
    margin-top: 2px;
    color: var(--admf-navy);
    font-size: 22px;
    line-height: 1;
}

.admf-programme-list-panel {
    padding: 0;
    overflow: hidden;
}

.admf-programme-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, auto) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--admf-border);
}

.admf-programme-search {
    position: relative;
    min-width: 0;
}

.admf-programme-search .dashicons {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #7a8d9b;
    font-size: 17px;
    transform: translateY(-50%);
    pointer-events: none;
}

.admf-programme-search input {
    width: 100%;
    min-height: 39px;
    padding-left: 38px !important;
    background: #f8fafc;
}

.admf-programme-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.admf-programme-filters button {
    min-height: 31px;
    padding: 5px 10px;
    color: #536b7b;
    background: #f7f9fb;
    border: 1px solid #dce5eb;
    border-radius: 99px;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
}

.admf-programme-filters button:hover {
    color: var(--admf-blue);
    border-color: #b8d2e2;
}

.admf-programme-filters button.is-active {
    color: #fff;
    background: var(--admf-blue);
    border-color: var(--admf-blue);
}

.admf-programme-result-count {
    color: var(--admf-muted);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.admf-programme-table-wrap {
    border: 0;
    border-radius: 0;
}

.admf-programme-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.admf-programme-name {
    display: flex;
    min-width: 210px;
    flex-direction: column;
    gap: 3px;
}

.admf-programme-name > a {
    color: var(--admf-navy);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.admf-programme-name > span {
    color: #8796a1;
    font-size: 8px;
    font-weight: 650;
}

.admf-programme-name > small {
    margin-top: 3px;
    color: #677b89;
    font-size: 8px;
    line-height: 1.45;
}

.admf-programme-name b {
    color: #425c70;
}

.admf-programme-app-count {
    display: inline-flex;
    gap: 3px;
    align-items: baseline;
}

.admf-programme-app-count strong {
    font-size: 13px;
}

.admf-translation-stack {
    display: flex;
    min-width: 110px;
    flex-wrap: wrap;
    gap: 3px;
}

.admf-programme-actions {
    display: flex;
    min-width: 150px;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.admf-programme-actions > a:not(.admf-button) {
    color: var(--admf-blue);
    font-size: 9px;
    font-weight: 700;
}

.admf-programme-no-match[hidden],
[data-admf-programme-row][hidden],
.admf-language-edit-panel[hidden] {
    display: none !important;
}

.admf-programme-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    color: var(--admf-blue);
    background: var(--admf-blue-soft);
    border-radius: 99px;
    font-size: 9px;
    font-weight: 750;
}

.admf-programme-editor {
    max-width: 1100px;
}

.admf-programme-editor .admf-panel {
    margin-bottom: 16px;
}

.admf-programme-editor .admf-form-grid > label {
    min-width: 0;
}

.admf-programme-editor .admf-field-wide {
    grid-column: span 2;
}

.admf-programme-editor .admf-field-full {
    grid-column: 1 / -1;
}

.admf-language-tabs {
    display: flex;
    gap: 7px;
    padding: 3px 0 15px;
    overflow-x: auto;
}

.admf-language-tabs button {
    display: inline-flex;
    min-width: 130px;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #546b7a;
    background: #f7f9fb;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.admf-language-tabs button span {
    display: inline-grid;
    width: 28px;
    height: 24px;
    place-items: center;
    color: var(--admf-blue);
    background: #e8f2f8;
    border-radius: 6px;
    font-size: 9px;
}

.admf-language-tabs button b {
    color: var(--admf-green);
    margin-left: auto;
}

.admf-language-tabs button em {
    margin-left: auto;
    color: var(--admf-amber);
    font-size: 8px;
    font-style: normal;
}

.admf-language-tabs button.is-active {
    color: var(--admf-navy);
    background: #fff;
    border-color: var(--admf-blue);
    box-shadow: 0 4px 14px rgba(21, 80, 117, .09);
}

.admf-language-edit-panel {
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #e0e8ee;
    border-radius: 12px;
}

.admf-language-panel-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.admf-language-panel-heading > div {
    display: flex;
    flex-direction: column;
}

.admf-language-panel-heading strong {
    color: var(--admf-navy);
    font-size: 12px;
}

.admf-language-panel-heading small {
    color: var(--admf-muted);
    font-size: 9px;
}

.admf-editor-footer {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    align-items: center;
    padding: 11px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--admf-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(26, 54, 75, .12);
    backdrop-filter: blur(8px);
}

@media (max-width: 1180px) {
    .admf-programme-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admf-programme-tools {
        grid-template-columns: 1fr auto;
    }

    .admf-programme-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .admf-programme-overview {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admf-programme-stat {
        gap: 8px;
        padding: 11px;
    }

    .admf-programme-stat > .dashicons {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 16px;
    }

    .admf-programme-stat strong {
        font-size: 18px;
    }

    .admf-programme-tools {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .admf-programme-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .admf-programme-result-count {
        justify-self: start;
    }

    .admf-programme-table tbody tr[data-admf-programme-row] {
        display: block;
    }

    .admf-programme-name, .admf-programme-actions, .admf-translation-stack {
        min-width: 0;
    }

    .admf-programme-editor .admf-field-wide, .admf-programme-editor .admf-field-full {
        grid-column: 1;
    }

    .admf-language-tabs button {
        min-width: 115px;
    }

    .admf-language-edit-panel {
        padding: 12px;
    }

    .admf-editor-footer {
        bottom: 6px;
    }

    .admf-editor-footer .admf-button {
        flex: 1;
    }
}

/*Application correction editor — v1.9.13*/

.admf-application-editor {
    max-width: 1180px;
    margin: 0 auto;
}

.admf-editor-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.admf-editor-heading h2 {
    margin: 0 0 5px;
}

.admf-editor-heading p {
    margin: 0;
    color: #64748b;
}

.admf-editor-lock-note {
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 16px;
}

.admf-editor-form {
    display: grid;
    gap: 16px;
}

.admf-editor-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
}

.admf-editor-section h3 {
    margin: 0 0 16px;
    font-size: 17px;
}

.admf-editor-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admf-editor-section-heading h3 {
    margin-bottom: 3px;
}

.admf-editor-section-heading p {
    margin: 0;
    color: #64748b;
}

.admf-editor-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px;
}

.admf-editor-grid label, .admf-editor-education-row label, .admf-editor-audit label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
    color: #334155;
}

.admf-editor-grid input,
.admf-editor-grid select,
.admf-editor-grid textarea,
.admf-editor-education-row input,
.admf-editor-audit textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    background: #fff;
    color: #0f172a;
}

.admf-editor-wide {
    grid-column: span 2;
}

.admf-editor-full {
    grid-column: 1/-1;
}

.admf-editor-checkbox {
    flex-direction: row !important;
    align-items: center;
    align-self: end;
    min-height: 42px;
}

.admf-editor-checkbox input {
    width: auto !important;
    margin: 0;
}

.admf-editor-education-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr .55fr 36px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 10px;
    background: #f8fafc;
}

.admf-editor-remove {
    height: 36px;
    width: 36px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.admf-editor-audit {
    border-color: #f5d08a;
    background: #fffbeb;
}

.admf-editor-audit small {
    font-weight: 400;
    color: #7c5b16;
}

.admf-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 18px;
}

@media (max-width:900px) {
    .admf-editor-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .admf-editor-education-row {
        grid-template-columns: 1fr 1fr;
    }

    .admf-editor-wide {
        grid-column: 1/-1;
    }
}

@media (max-width:640px) {
    .admf-editor-heading, .admf-editor-section-heading {
        flex-direction: column;
    }

    .admf-editor-grid, .admf-editor-education-row {
        grid-template-columns: 1fr;
    }

    .admf-editor-wide {
        grid-column: auto;
    }

    .admf-editor-actions {
        flex-direction: column-reverse;
    }

    .admf-editor-actions .admf-button {
        width: 100%;
        justify-content: center;
    }
}

.admf-editor-archived-field {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef1f4;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

/*v1.11.0 application-editor support for radio custom fields.*/

.admf-editor-radio {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
}

.admf-editor-radio legend {
    padding: 0 4px;
    color: #334e68;
    font-weight: 600;
}

.admf-editor-radio label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 8px;
    margin: 0 !important;
    font-weight: 500 !important;
}

.admf-editor-radio input {
    width: auto !important;
    margin: 3px 0 0 !important;
}


/* Lightweight staff email composer. */
body.admf-email-modal-open {
    overflow: hidden;
}

.admf-email-modal[hidden] {
    display: none !important;
}

.admf-email-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admf-email-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(10, 31, 49, .58);
    border: 0;
    cursor: default;
    backdrop-filter: blur(2px);
}

.admf-email-dialog {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(12, 42, 66, .25);
}

.admf-email-dialog-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
    border-bottom: 1px solid #e4ecf2;
}

.admf-email-dialog-header > div {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.admf-email-dialog-header > div > .dashicons {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--admf-blue);
    border-radius: 11px;
    font-size: 20px;
}

.admf-email-dialog-header h3 {
    margin: 0 0 4px;
    color: #173b57;
    font-size: 18px;
}

.admf-email-dialog-header p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--admf-muted);
    font-size: 11px;
}

.admf-email-close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #587085;
    background: #f4f7f9;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    font: 500 22px/1 Arial, sans-serif;
    cursor: pointer;
}

.admf-email-close:hover {
    color: #173b57;
    background: #edf3f7;
}

.admf-email-compose-form {
    display: grid;
    gap: 15px;
    padding: 22px;
}

.admf-email-compose-form > label {
    display: grid;
    gap: 7px;
    color: #334e63;
    font-size: 12px;
    font-weight: 700;
}

.admf-email-compose-form textarea {
    min-height: 240px;
    resize: vertical;
    line-height: 1.55;
}

.admf-email-placeholder-note {
    padding: 11px 13px;
    color: #526b7f;
    background: #f5f9fc;
    border: 1px solid #dce8f0;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.admf-email-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 3px;
}

@media (max-width: 640px) {
    .admf-email-modal {
        align-items: end;
        padding: 10px;
    }

    .admf-email-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .admf-email-dialog-header,
    .admf-email-compose-form {
        padding: 16px;
    }

    .admf-email-dialog-actions {
        flex-direction: column-reverse;
    }

    .admf-email-dialog-actions .admf-button {
        width: 100%;
        justify-content: center;
    }
}

/* v1.12.17 compact, right-aligned mobile applicant contact actions. */
@media (max-width: 680px) {
    .admf-applicant-panel .admf-panel-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .admf-applicant-panel .admf-panel-heading > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
    }

    .admf-applicant-panel .admf-contact-actions {
        flex: 0 0 108px;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        margin-left: auto;
        gap: 6px;
    }

    .admf-applicant-panel .admf-contact-actions a,
    .admf-applicant-panel .admf-contact-actions button {
        width: 108px;
        min-height: 30px;
        justify-content: center;
        white-space: nowrap;
    }
}


/*
 * Theme protection (v1.12.27)
 *
 * The staff portal is shown inside the site's theme. The theme's generic
 * button styles (display, solid colours, pink hover) were overriding the
 * portal's own rules, which made the mobile-only controls appear on desktop
 * and let the menu backdrop cover the page and block every click.
 * These rules are scoped to .admf-portal-shell and use !important on purpose.
 */

/* Mobile-only controls stay hidden unless the small-screen rules below show them. */
.admf-portal-shell .admf-portal-menu-button,
.admf-portal-shell .admf-portal-sidebar-close,
.admf-portal-shell .admf-portal-menu-backdrop {
    display: none !important;
}

.admf-portal-shell .admf-portal-menu-button,
.admf-portal-shell .admf-portal-menu-button:hover,
.admf-portal-shell .admf-portal-menu-button:focus,
.admf-portal-shell .admf-portal-menu-button:active {
    color: var(--admf-ink) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.admf-portal-shell .admf-portal-sidebar-close,
.admf-portal-shell .admf-portal-sidebar-close:focus,
.admf-portal-shell .admf-portal-sidebar-close:active {
    color: #fff !important;
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    box-shadow: none !important;
}

.admf-portal-shell .admf-portal-sidebar-close:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
}

/* The backdrop is a plain dark overlay in every state. */
.admf-portal-shell .admf-portal-menu-backdrop,
.admf-portal-shell .admf-portal-menu-backdrop:hover,
.admf-portal-shell .admf-portal-menu-backdrop:focus,
.admf-portal-shell .admf-portal-menu-backdrop:focus-visible,
.admf-portal-shell .admf-portal-menu-backdrop:active {
    color: transparent !important;
    background: rgba(17, 38, 54, .38) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Top bar icon buttons keep the portal's own look. */
.admf-portal-shell .admf-icon-button {
    background: #f4f7f9 !important;
    border: 1px solid var(--admf-border) !important;
    box-shadow: none !important;
}

.admf-portal-shell .admf-icon-button:hover {
    background: var(--admf-red-soft) !important;
}

.admf-portal-shell .admf-notification-button:hover,
.admf-portal-shell .admf-notification-button[aria-expanded="true"] {
    background: var(--admf-blue-soft) !important;
    border-color: #c8dfea !important;
}

@media (max-width: 980px) {
    .admf-portal-shell .admf-portal-menu-button {
        display: inline-grid !important;
    }

    .admf-portal-shell .admf-portal-sidebar-close {
        display: grid !important;
    }

    .admf-portal-menu-open .admf-portal-shell .admf-portal-menu-backdrop {
        display: block !important;
    }
}



/* Staff self-service profile */
.admf-profile-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
}
.admf-profile-layout .admf-panel {
    align-self: start;
}
.admf-profile-account {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    padding: 0 0 17px;
    border-bottom: 1px solid var(--admf-border);
}
.admf-profile-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: #fff;
    background: var(--admf-blue);
    border-radius: 50%;
    font-size: 19px;
    font-weight: 700;
}
.admf-profile-account strong,
.admf-profile-account span {
    display: block;
}
.admf-profile-account strong {
    color: var(--admf-ink);
    font-size: 14px;
}
.admf-profile-account span {
    margin-top: 3px;
    color: var(--admf-muted);
    font-size: 11px;
}
.admf-profile-readonly {
    display: grid;
    gap: 11px;
    margin-bottom: 20px;
}
.admf-profile-readonly > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf1f4;
}
.admf-profile-readonly span {
    color: var(--admf-muted);
    font-size: 12px;
}
.admf-profile-readonly strong {
    color: var(--admf-ink);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.admf-profile-form {
    display: grid;
    gap: 14px;
}
.admf-profile-form label {
    display: block;
}
.admf-profile-form input {
    display: block;
    margin-top: 6px;
}
.admf-profile-form .admf-button {
    justify-self: start;
}
.admf-profile-help {
    margin: -5px 0 17px;
    color: var(--admf-muted);
    font-size: 12px;
}
@media (max-width: 760px) {
    .admf-profile-layout {
        grid-template-columns: 1fr;
    }
}
