/* ══════════════════════════════════════════════════════════════
   ClientStage – Frontend Client Portal Styles
   ══════════════════════════════════════════════════════════════ */
.csf-app *,.csf-login-wrapper * { box-sizing: border-box; }
.csf-app { --sidebar-w: 260px; --bg: #f4f6f9; --card-bg: #fff; --border: #e2e8f0; --text: #1e293b; --text-muted: #64748b; --primary: #3b82f6; --primary-hover: #2563eb; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --radius: 8px; --shadow: 0 1px 3px rgba(0,0,0,.08); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); display: flex; min-height: 100vh; background: var(--bg); font-size: 14px; line-height: 1.5; }
.csf-app a { color: var(--primary); text-decoration: none; }
/* ── Sidebar: pmf- classes (unified sidebar) ── */
.csf-app .pmf-sidebar { width: var(--sidebar-w); background: #1e293b !important; color: #cbd5e1 !important; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto; transition: transform .25s ease; }
.csf-app .pmf-sidebar a { text-decoration: none !important; }
.csf-app .pmf-sidebar-header { padding: 20px 20px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.csf-app .pmf-logo { font-size: 17px; font-weight: 700; color: #fff !important; display: flex; align-items: center; gap: 8px; }
.csf-app .pmf-logo .dashicons { color: var(--primary) !important; font-size: 22px; width: 22px; height: 22px; }
.csf-app .pmf-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.csf-app .pmf-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.csf-app .pmf-user-name { font-weight: 600; color: #fff !important; font-size: 13px; }
.csf-app .pmf-user-role { font-size: 11px; color: #94a3b8 !important; }
.csf-app .pmf-nav { list-style: none; padding: 10px 0; margin: 0; flex: 1; }
.csf-app .pmf-nav-item a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #94a3b8 !important; font-size: 13px; font-weight: 500; border-left: 3px solid transparent; text-decoration: none !important; }
.csf-app .pmf-nav-item a:hover { background: rgba(255,255,255,.05) !important; color: #e2e8f0 !important; }
.csf-app .pmf-nav-item.active a { background: rgba(59,130,246,.15) !important; color: #60a5fa !important; border-left-color: #3b82f6; }
.csf-app .pmf-nav-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.csf-app .pmf-nav-icon.dashicons { font-size: 18px; width: 18px; height: 18px; }
.csf-app .pmf-nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 20px; background: none !important; border: none; color: #94a3b8 !important; font-size: 13px; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: .5px; }
.csf-app .pmf-nav-group-toggle:hover { color: #e2e8f0 !important; }
.csf-app .pmf-nav-chevron { font-size: 11px; transition: transform .2s; }
.csf-app .pmf-nav-group.expanded .pmf-nav-chevron { transform: rotate(90deg); }
.csf-app .pmf-nav-subitems { list-style: none; padding: 0; margin: 0; display: none; }
.csf-app .pmf-nav-group.expanded .pmf-nav-subitems { display: block; }
.csf-app .pmf-nav-subitem a { padding-left: 36px !important; }
.csf-app .pmf-sidebar-footer { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; }
.csf-app .pmf-footer-link { color: #94a3b8 !important; font-size: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 0; text-decoration: none !important; }
.csf-app .pmf-footer-link:hover { color: #e2e8f0 !important; }
.csf-app .pmf-footer-link .dashicons { font-size: 16px; width: 16px; height: 16px; }
.csf-app .pmf-sidebar-toggle { display: none; position: fixed; top: 12px; left: 12px; z-index: 101; background: #1e293b !important; color: #fff !important; border: none; padding: 8px 12px; border-radius: 6px; font-size: 18px; cursor: pointer; }
@media (max-width: 768px) {
    .csf-app .pmf-sidebar { transform: translateX(-100%); }
    .csf-app .pmf-sidebar.open { transform: translateX(0); }
    .csf-app .pmf-sidebar-toggle { display: block; }
    .csf-app .csf-main { margin-left: 0 !important; }
}
.csf-main { flex: 1; margin-left: var(--sidebar-w); padding: 30px; max-width: 1100px; }
.csf-main h1 { font-size: 22px; font-weight: 700; margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }
.csf-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.csf-card-title { font-size: 15px; font-weight: 600; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.csf-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.csf-stat-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.csf-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.csf-stat-number { font-size: 24px; font-weight: 700; line-height: 1; }
.csf-stat-label { font-size: 12px; color: var(--text-muted); }
.csf-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.csf-badge-new { background: #FFF3E0; color: #E65100; }
.csf-badge-in-progress { background: #E8EAF6; color: #283593; }
.csf-badge-completed { background: #E8F5E9; color: #2E7D32; }
.csf-badge-client-review { background: #F3E5F5; color: #6A1B9A; }
.csf-badge-approved { background: #E0F2F1; color: #00695C; }
.csf-badge-low { background: #E8F5E9; color: #2E7D32; }
.csf-badge-medium { background: #FFF3E0; color: #E65100; }
.csf-badge-high { background: #FFEBEE; color: #C62828; }
.csf-badge-urgent { background: #C62828; color: #fff; }
.csf-table { width: 100%; border-collapse: collapse; }
.csf-table th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 10px 12px; border-bottom: 2px solid #f1f5f9; text-align: left; }
.csf-table td { padding: 12px; border-bottom: 1px solid #f8fafc; vertical-align: middle; font-size: 13px; }
.csf-table tbody tr:hover { background: #fafbfd; }
.csf-empty { color: var(--text-muted); text-align: center; padding: 30px 0; font-size: 14px; }
.csf-notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.csf-notice-warn { background: #FFF8E1; color: #F57F17; border: 1px solid #FFF9C4; }
.csf-notice-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.csf-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--card-bg); color: var(--text); font-size: 13px; cursor: pointer; font-weight: 500; }
.csf-btn:hover { background: #f8fafc; }
.csf-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.csf-btn-primary:hover { background: var(--primary-hover); }
.csf-btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.csf-btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.csf-btn-sm { padding: 5px 10px; font-size: 12px; }
.csf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .csf-grid-2 { grid-template-columns: 1fr; } }
.csf-comment { padding: 12px; margin-bottom: 10px; border-radius: 6px; border: 1px solid var(--border); }
.csf-comment-admin { background: #f8fafc; }
.csf-comment-client { background: #eff6ff; border-color: #bfdbfe; }
.csf-comment-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; color: var(--text-muted); }
.csf-comment-body { font-size: 13px; }
.csf-approval-actions { display: flex; gap: 10px; margin-top: 16px; }
.csf-login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.csf-login-box { background: var(--card-bg); padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); max-width: 400px; width: 100%; }
.csf-login-header { text-align: center; margin-bottom: 24px; }
.csf-login-header h2 { margin: 0 0 6px; font-size: 22px; }
.csf-login-header p { color: var(--text-muted); margin: 0; }
