.afc-portal-shell { --afc-navy:#081c3a; --afc-blue:#0b244d; --afc-accent:#2563eb; --afc-bg:#f3f6fb; --afc-card:#ffffff; --afc-border:#dce5f2; --afc-text:#10203f; --afc-muted:#667085; font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height:100vh; background:var(--afc-bg); color:var(--afc-text); margin:0 !important; }
.afc-portal-shell * { box-sizing:border-box; }
.afc-login-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at top left,rgba(37,99,235,.20),transparent 30%), linear-gradient(135deg,#071a33,#0b244d 55%,#123a72); }
.afc-login-card { width:min(440px,100%); background:rgba(255,255,255,.96); border:1px solid rgba(255,255,255,.7); border-radius:24px; padding:34px; box-shadow:0 24px 70px rgba(0,0,0,.26); }
.afc-brand-mark { display:inline-flex; align-items:center; height:30px; padding:0 12px; border-radius:999px; background:#edf4ff; color:#0b244d; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.afc-login-card h1 { margin:16px 0 6px; font-size:30px; color:#0b244d; }
.afc-login-card p { color:#667085; margin:0 0 20px; }
.afc-front-form label { display:block; margin-bottom:14px; color:#183153; font-weight:700; font-size:14px; }
.afc-front-form input, .afc-front-form textarea, .afc-front-form select { width:100%; margin-top:7px; border:1px solid var(--afc-border); border-radius:12px; min-height:42px; padding:10px 12px; font-size:14px; background:#fff; color:#10203f; box-shadow:none; }
.afc-front-form textarea { min-height:110px; resize:vertical; }
.afc-front-btn { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--afc-border); background:#fff; color:#0b244d; min-height:36px; padding:8px 14px; border-radius:11px; font-size:14px; font-weight:800; cursor:pointer; text-decoration:none; line-height:1; }
.afc-front-btn-primary { background:#0b244d; color:#fff; border-color:#0b244d; }
.afc-front-notice { background:#edf7ff; color:#0b244d; border:1px solid #bfdbfe; padding:10px 12px; border-radius:12px; margin:0 0 16px; font-weight:700; font-size:13px; }
.afc-app { min-height:100vh; display:grid; grid-template-columns:280px minmax(0,1fr); }
.afc-sidebar { background:#071a33; color:#fff; padding:24px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:22px; }
.afc-profile { display:flex; align-items:center; gap:12px; padding-bottom:18px; border-bottom:1px solid rgba(255,255,255,.13); }
.afc-profile img, .afc-profile span { width:46px; height:46px; border-radius:14px; object-fit:cover; display:grid; place-items:center; background:#1d4ed8; color:#fff; font-weight:900; }
.afc-profile strong { display:block; font-size:15px; color:#fff; }
.afc-profile small { display:block; color:rgba(255,255,255,.62); margin-top:2px; }
.afc-sidebar nav { display:grid; gap:8px; }
.afc-sidebar nav a { color:rgba(255,255,255,.74); text-decoration:none; padding:10px 12px; border-radius:12px; font-size:14px; font-weight:750; }
.afc-sidebar nav a.active, .afc-sidebar nav a:hover { background:rgba(255,255,255,.11); color:#fff; }
.afc-logout { width:100%; margin-top:auto; background:transparent; border:1px solid rgba(255,255,255,.2); color:#fff; padding:9px 12px; border-radius:12px; font-weight:800; cursor:pointer; }
.afc-main { padding:28px; min-width:0; }
.afc-topbar { display:flex; justify-content:space-between; gap:18px; align-items:center; margin-bottom:22px; }
.afc-topbar h1 { margin:0; color:#0b244d; font-size:30px; }
.afc-topbar p { margin:5px 0 0; color:#667085; }
.afc-clock-card { background:#fff; border:1px solid var(--afc-border); border-radius:18px; padding:14px; display:flex; align-items:center; gap:14px; box-shadow:0 12px 30px rgba(15,23,42,.06); }
.afc-clock-card span { color:#667085; font-size:13px; font-weight:800; }
.afc-front-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.afc-front-stats div, .afc-earnings-summary div { background:#fff; border:1px solid var(--afc-border); border-radius:18px; padding:18px; box-shadow:0 12px 30px rgba(15,23,42,.05); }
.afc-front-stats span, .afc-earnings-summary span { display:block; color:#667085; font-size:13px; font-weight:800; }
.afc-front-stats strong, .afc-earnings-summary strong { display:block; color:#0b244d; font-size:24px; margin-top:6px; }
.afc-section { background:#fff; border:1px solid var(--afc-border); border-radius:22px; padding:22px; margin-bottom:20px; box-shadow:0 12px 30px rgba(15,23,42,.05); }
.afc-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:16px; }
.afc-section-head h2 { margin:0; color:#0b244d; font-size:22px; }
.afc-section-head p { margin:4px 0 0; color:#667085; }
.afc-child-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.afc-child-card { display:flex; align-items:center; gap:12px; border:1px solid var(--afc-border); border-radius:16px; padding:14px; text-decoration:none !important; color:#10203f; background:#fbfcff; transition:.18s ease; }
.afc-child-card:hover { transform:translateY(-1px); border-color:#9db9e8; box-shadow:0 10px 25px rgba(37,99,235,.10); }
.afc-child-card img, .afc-child-card span { width:44px; height:44px; border-radius:14px; object-fit:cover; display:grid; place-items:center; background:#dbeafe; color:#0b244d; font-weight:900; }
.afc-child-card strong { display:block; color:#0b244d; }
.afc-child-card small { color:#667085; }
.afc-resource-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.afc-resource-list a { border:1px solid var(--afc-border); border-radius:14px; padding:13px; text-decoration:none !important; color:#10203f; }
.afc-resource-list span { display:block; color:#667085; font-size:12px; font-weight:800; text-transform:uppercase; }
.afc-resource-list strong { color:#0b244d; }
.afc-earnings-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:15px; }
.afc-mobile-table { overflow:auto; border:1px solid var(--afc-border); border-radius:14px; }
.afc-mobile-table table { width:100%; border-collapse:collapse; min-width:620px; }
.afc-mobile-table th, .afc-mobile-table td { text-align:left; padding:11px 12px; border-bottom:1px solid var(--afc-border); font-size:14px; }
.afc-mobile-table th { color:#0b244d; background:#f8fbff; }
.afc-child-profile { background:linear-gradient(135deg,#fff,#f6f9ff); border:1px solid var(--afc-border); border-radius:24px; padding:22px; margin-bottom:20px; }
.afc-child-profile-main { display:flex; gap:16px; align-items:center; }
.afc-child-profile-main img, .afc-child-profile-main > span { width:74px; height:74px; border-radius:22px; object-fit:cover; display:grid; place-items:center; background:#dbeafe; color:#0b244d; font-size:24px; font-weight:900; }
.afc-child-profile h2 { margin:4px 0 4px; color:#0b244d; }
.afc-child-profile p { margin:0; color:#667085; }
.afc-back { color:#2563eb; text-decoration:none !important; font-weight:800; font-size:13px; }
.afc-child-meta { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.afc-child-meta span { background:#fff; border:1px solid var(--afc-border); padding:7px 10px; border-radius:999px; color:#667085; font-size:13px; font-weight:800; }
.afc-task-card { border:1px solid var(--afc-border); border-radius:18px; padding:18px; margin-bottom:14px; background:#fbfcff; }
.afc-task-top { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.afc-task-top span { color:#667085; font-size:13px; font-weight:800; }
.afc-task-top strong { color:#0b244d; font-size:18px; }
.afc-task-body { color:#344054; }
.afc-file-pill { display:inline-flex; margin:8px 0 14px; padding:7px 10px; border-radius:999px; background:#edf4ff; color:#0b244d; font-weight:800; font-size:13px; text-decoration:none !important; }
.afc-report-form { margin-top:12px; padding-top:12px; border-top:1px solid var(--afc-border); }
.afc-empty { background:#f8fafc; color:#667085; border:1px dashed #cbd5e1; border-radius:16px; padding:18px; }
.afc-two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.afc-panel { border:1px solid var(--afc-border); border-radius:16px; padding:16px; background:#fbfcff; }
.afc-panel h3 { margin-top:0; color:#0b244d; }
.afc-mini-row, .afc-note { border-bottom:1px solid var(--afc-border); padding:10px 0; }
.afc-mini-row:last-child, .afc-note:last-child { border-bottom:0; }
.afc-mini-row strong, .afc-note strong { display:block; color:#0b244d; }
.afc-mini-row span, .afc-note small { color:#667085; font-size:12px; font-weight:800; }
.afc-note p { margin:5px 0 0; color:#344054; }
@media (max-width: 980px) { .afc-app { grid-template-columns:1fr; } .afc-sidebar { position:relative; height:auto; padding:18px; } .afc-sidebar nav { grid-template-columns:repeat(4,auto); overflow:auto; } .afc-main { padding:18px; } .afc-front-stats, .afc-child-grid, .afc-resource-list, .afc-earnings-summary, .afc-two-col { grid-template-columns:1fr 1fr; } }
@media (max-width: 640px) { .afc-login-card { padding:24px; border-radius:20px; } .afc-topbar, .afc-section-head, .afc-clock-card, .afc-task-top { flex-direction:column; align-items:flex-start; } .afc-front-stats, .afc-child-grid, .afc-resource-list, .afc-earnings-summary, .afc-two-col { grid-template-columns:1fr; } .afc-main { padding:14px; } .afc-section, .afc-child-profile { border-radius:18px; padding:16px; } .afc-topbar h1 { font-size:24px; } .afc-sidebar nav { grid-template-columns:1fr 1fr; } .afc-child-profile-main { align-items:flex-start; } }

/* Full-screen portal takeover for Twenty Twenty/Twenty Twenty-One and similar themes. */
html.afc-portal-html-mode,
body.afc-portal-mode {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: none !important;
}
body.afc-portal-mode #site-header,
body.afc-portal-mode #site-footer,
body.afc-portal-mode .site-header,
body.afc-portal-mode .site-footer,
body.afc-portal-mode header.site-header,
body.afc-portal-mode footer.site-footer,
body.afc-portal-mode .header-footer-group,
body.afc-portal-mode .entry-header,
body.afc-portal-mode .entry-title,
body.afc-portal-mode .post-title,
body.afc-portal-mode .page-title,
body.afc-portal-mode .footer-nav-widgets-wrapper,
body.afc-portal-mode .pagination-single {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
body.afc-portal-mode .afc-portal-shell {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483000 !important;
    overflow: auto !important;
}
body.afc-portal-mode .afc-portal-shell .afc-login-screen,
body.afc-portal-mode .afc-portal-shell .afc-app {
    min-height: 100dvh !important;
}
@supports selector(body:has(.afc-portal-shell)) {
    html:has(.afc-portal-shell),
    body:has(.afc-portal-shell) {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    body:has(.afc-portal-shell) #site-header,
    body:has(.afc-portal-shell) #site-footer,
    body:has(.afc-portal-shell) .site-header,
    body:has(.afc-portal-shell) .site-footer,
    body:has(.afc-portal-shell) .entry-header,
    body:has(.afc-portal-shell) .entry-title,
    body:has(.afc-portal-shell) .page-title,
    body:has(.afc-portal-shell) .header-footer-group,
    body:has(.afc-portal-shell) .footer-nav-widgets-wrapper {
        display: none !important;
    }
}

/* Assignment visibility rules */
.afc-assignment-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.afc-subtitle { margin:0 0 12px; color:#0b244d; font-size:16px; }
.afc-planning-card { border:1px solid var(--afc-border); border-radius:16px; padding:15px; background:#fbfcff; margin-bottom:12px; }
.afc-planning-card h4 { margin:8px 0 6px; color:#0b244d; font-size:16px; }
.afc-planning-card p { color:#667085; margin:0 0 12px; font-size:13px; line-height:1.5; }
.afc-planning-meta { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.afc-planning-meta span { color:#667085; font-size:12px; font-weight:800; background:#fff; border:1px solid var(--afc-border); border-radius:999px; padding:5px 8px; }
.afc-planning-card-open { border-color:#b6cdf5; background:#f8fbff; }
.afc-planning-card-locked, .afc-task-card-locked { background:#f8fafc; }
.afc-locked-pill { display:inline-flex; align-items:center; min-height:30px; padding:6px 10px; border-radius:999px; background:#f1f5f9; color:#475467; border:1px solid #d8e1ed; font-size:12px; font-weight:800; }
.afc-task-card-locked .afc-task-body { color:#475467; }
@media (max-width: 980px) { .afc-assignment-columns { grid-template-columns:1fr; } }

/* Frontend Admin Portal */
.afc-admin-app .afc-sidebar nav { gap:7px; }
.afc-admin-app .afc-sidebar nav a { padding:9px 12px; }
.afc-admin-main .afc-topbar .afc-clock-card strong { color:#0b244d; font-size:13px; }
.afc-admin-frontend-wrap { max-width:none; margin:0; }
.afc-admin-frontend-wrap .afc-admin-panel,
.afc-admin-panel-frontend { border:0; border-radius:22px; padding:0; background:transparent; }
.afc-admin-frontend-wrap .notice { border:1px solid var(--afc-border); border-left:4px solid #2563eb; background:#fff; color:#0b244d; border-radius:12px; padding:10px 12px; margin:0 0 16px; }
.afc-admin-frontend-wrap .notice-error { border-left-color:#b42318; }
.afc-admin-frontend-wrap .notice p { margin:0; }
.afc-admin-frontend-wrap .widefat { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--afc-border); border-radius:14px; overflow:hidden; display:table; }
.afc-admin-frontend-wrap .widefat th,
.afc-admin-frontend-wrap .widefat td { padding:11px 12px; text-align:left; border-bottom:1px solid var(--afc-border); font-size:13px; color:#344054; vertical-align:middle; }
.afc-admin-frontend-wrap .widefat th { color:#0b244d; background:#f8fbff; font-weight:800; }
.afc-admin-frontend-wrap .widefat tr:last-child td { border-bottom:0; }
.afc-admin-frontend-wrap .striped tbody tr:nth-child(odd) { background:#fbfcff; }
.afc-admin-frontend-wrap .button,
.afc-admin-frontend-wrap .button-small { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--afc-border); background:#fff; color:#0b244d; min-height:30px; padding:5px 10px; border-radius:9px; text-decoration:none; font-size:12px; font-weight:800; cursor:pointer; }
.afc-admin-frontend-wrap code { background:#edf4ff; color:#0b244d; padding:3px 6px; border-radius:6px; }
.afc-admin-frontend-wrap .description { color:#667085; }
@media (max-width: 820px) {
    .afc-admin-frontend-wrap .widefat { display:block; overflow-x:auto; white-space:nowrap; }
}
