
        /* === SCOPED STYLES - All styles namespaced under .homefront-app === */
        
        /* Reset only within our app */
        .homefront-app *,
        .homefront-app *::before,
        .homefront-app *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* CSS Variables scoped to our app */
        .homefront-app {
            --hf-coral: #F26D6D;
            --hf-coral-dark: #E05555;
            --hf-coral-light: #FFEAEA;
            --hf-navy: #2D3748;
            --hf-g50: #FFFFFF;
            --hf-g100: #F3F4F6;
            --hf-g200: #E5E7EB;
            --hf-g300: #D1D5DB;
            --hf-g400: #9CA3AF;
            --hf-g500: #6B7280;
            --hf-g600: #4B5563;
            --hf-green: #10B981;
            --hf-green-l: #D1FAE5;
            --hf-yellow: #F59E0B;
            --hf-yellow-l: #FEF3C7;
            --hf-red: #EF4444;
            --hf-red-l: #FEE2E2;
            --hf-blue: #3B82F6;
            --hf-blue-l: #DBEAFE;
            --hf-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
            --hf-radius: 8px;
            
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--hf-g50);
            color: var(--hf-navy);
            line-height: 1.5;
            display: flex;
            min-height: 600px;
            position: relative;
        }

        /* Sidebar */
        .homefront-app .hf-sidebar {
            width: 200px;
            background: #fff;
            border-right: 1px solid var(--hf-g200);
            padding: 20px 0;
            position: sticky;
            top: 0;
            height: 100%;
            min-height: 600px;
            overflow-y: auto;
            flex-shrink: 0;
        }

        .homefront-app .hf-logo {
            padding: 0 20px 20px;
            border-bottom: 1px solid var(--hf-g200);
            margin-bottom: 20px;
        }

        .homefront-app .hf-logo h1 {
            font-size: 22px;
            color: var(--hf-coral);
            margin: 0;
            padding: 0;
        }

        .homefront-app .hf-logo span {
            font-size: 12px;
            color: var(--hf-g500);
        }

        .homefront-app .hf-nav-title {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--hf-g400);
            padding: 0 20px;
            margin: 16px 0 8px;
        }

        .homefront-app .hf-nav-item {
					display: flex;
					align-items: center;
					gap: 10px;
					padding: 10px 16px;
					margin: 4px 12px;
					color: var(--hf-g600);
					font-size: 14px;
					font-weight: 500;
					cursor: pointer;
					transition: all 0.15s ease;
					text-decoration: none;
					border: 1px solid var(--hf-g200);
					background: var(--hf-g50);
					border-radius: var(--hf-radius);
					width: calc(100% - 24px);
					text-align: left;
			}
			.homefront-app .hf-nav-item:hover {
					background: #fff;
					border-color: var(--hf-coral);
					color: var(--hf-coral);
					box-shadow: 0 2px 4px rgba(0,0,0,0.05);
			}

		.homefront-app .hf-nav-item.active {
   				 background: var(--hf-coral);
    			border-color: var(--hf-coral);
    			color: #fff;
}

        .homefront-app .hf-nav-badge {
            margin-left: auto;
            background: var(--hf-coral);
            color: #fff;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 10px;
        }

        /* Main Content */
        .homefront-app .hf-main {
            flex: 1;
            padding: 24px 32px;
            min-width: 0;
        }

        .homefront-app .hf-header {
            margin-bottom: 24px;
        }

        .homefront-app .hf-header h2 {
            font-size: 22px;
            font-weight: 700;
            margin: 0 0 4px 0;
            padding: 0;
        }

        .homefront-app .hf-header p {
            color: var(--hf-g500);
            font-size: 14px;
            margin: 0;
        }

        /* Dashboard Cards */
        .homefront-app .hf-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .homefront-app .hf-card {
            background: #fff;
            border-radius: var(--hf-radius);
            padding: 20px;
            box-shadow: var(--hf-shadow);
            border-left: 2px solid;
        }

        .homefront-app .hf-card.warn { border-color: var(--hf-yellow); }
        .homefront-app .hf-card.info { border-color: var(--hf-blue); }
        .homefront-app .hf-card.ok { border-color: var(--hf-green); }

        .homefront-app .hf-card-num {
            font-size: 22px;
            font-weight: 700;
            display: block;
        }

        .homefront-app .hf-card-label {
            font-size: 14px;
            color: var(--hf-g700);
        }

        /* Filters */
        .homefront-app .hf-filters {
            background: #fff;
            border-radius: var(--hf-radius);
            padding: 14px 18px;
            box-shadow: var(--hf-shadow);
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: flex-end;
        }

        .homefront-app .hf-filter-grp {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .homefront-app .hf-filter-grp label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--hf-g400);
        }

        .homefront-app .hf-filter-grp input,
        .homefront-app .hf-filter-grp select {
            padding: 8px 12px;
            border: 1px solid var(--hf-g200);
            border-radius: var(--hf-radius);
            font-size: 14px;
            font-family: inherit;
            min-width: 140px;
            background: #fff;
        }

        .homefront-app .hf-filter-grp input:focus,
        .homefront-app .hf-filter-grp select:focus {
            outline: none;
            border-color: var(--hf-coral);
            box-shadow: 0 0 0 3px var(--hf-coral-light);
        }

        .homefront-app .hf-filter-actions {
            margin-left: auto;
            display: flex;
            gap: 8px;
        }

        /* Buttons */
			.homefront-app .hf-btn {
					display: inline-flex;
					align-items: center;
					gap: 8px;
					padding: 10px 18px;
					border-radius: 50px;
					font-size: 14px;
					font-weight: 600;
					cursor: pointer;
					border: 2px solid var(--hf-g200);
					background: var(--hf-g50);
					transition: all 0.15s ease;
					font-family: inherit;
					text-decoration: none;
			}

			.homefront-app .hf-btn-primary {
					background: var(--hf-coral);
					border-color: var(--hf-coral);
					color: #fff;
			}

			.homefront-app .hf-btn-primary:hover {
					background: var(--hf-coral-dark);
					border-color: var(--hf-coral-dark);
					box-shadow: 0 4px 12px rgba(242, 109, 109, 0.3);
					transform: translateY(-1px);
			}

			.homefront-app .hf-btn-secondary {
					background: #fff;
					color: var(--hf-g600);
					border: 2px solid var(--hf-g200);
			}

			.homefront-app .hf-btn-secondary:hover {
					background: #fff;
					border-color: var(--hf-coral);
					color: var(--hf-coral);
					box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
					transform: translateY(-1px);
			}

			.homefront-app .hf-btn-sm {
					padding: 8px 14px;
					font-size: 13px;
			}

			/* Icon-only button variant */
			.homefront-app .hf-btn-icon-only {
					width: 38px;
					height: 38px;
					padding: 0;
					justify-content: center;
					font-size: 16px;
					border-radius: 50%;
			}

			.homefront-app .hf-btn-icon-only.hf-btn-sm {
					width: 32px;
					height: 32px;
					font-size: 14px;
			}
        .homefront-app .hf-tbl-wrap {
            background: #fff;
            border-radius: var(--hf-radius);
            box-shadow: var(--hf-shadow);
            overflow: hidden;
        }

        .homefront-app .hf-tbl-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 18px;
            border-bottom: 1px solid var(--hf-g200);
        }

        .homefront-app .hf-tbl-title {
            font-size: 15px;
            font-weight: 600;
        }

        .homefront-app .hf-tbl-count {
            color: var(--hf-g500);
            font-weight: 400;
            margin-left: 6px;
        }
        .homefront-app table {
            width: 100%;
            border-collapse: collapse;
        }

        .homefront-app thead {
            background: var(--hf-g50);
        }

        .homefront-app th {
            text-align: left;
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--hf-g500);
            border-bottom: 1px solid var(--hf-g200);
        }

        .homefront-app td {
            padding: 12px 14px;
            font-size: 14px;
            border-bottom: 1px solid var(--hf-g100);
        }

        .homefront-app tbody tr:hover {
            background: var(--hf-g50);
        }

        .homefront-app .hf-name-cell {
            font-weight: 600;
        }

        .homefront-app .hf-id-cell {
            font-size: 12px;
            color: var(--hf-g400);
        }

        /* Badges */
        .homefront-app .hf-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .homefront-app .hf-badge-active {
            background: var(--hf-green-l);
            color: var(--hf-green);
        }

        .homefront-app .hf-badge-inactive {
            background: var(--hf-g200);
            color: var(--hf-g600);
        }

        .homefront-app .hf-badge-discharged {
            background: var(--hf-red-l);
            color: var(--hf-red);
        }

        /* Provider Tags */
        .homefront-app .hf-prov-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .homefront-app .hf-prov-tag {
            background: var(--hf-blue-l);
            color: var(--hf-blue);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .homefront-app .hf-prov-tag.more {
            background: var(--hf-g200);
            color: var(--hf-g600);
        }

        /* Action Buttons */
        .homefront-app .hf-actions {
            display: flex;
            gap: 8px;
        }

				.homefront-app .hf-act-btn {
						display: inline-flex;
						align-items: center;
						gap: 6px;
						padding: 6px 12px;
						border-radius: 50px;
						border: 2px solid var(--hf-g200);
						background: #fff;
						color: var(--hf-g600);
						cursor: pointer;
						font-size: 12px;
						font-weight: 600;
						font-family: inherit;
						transition: all 0.15s ease;
				}

				.homefront-app .hf-act-btn:hover {
						background: #fff;
						border-color: var(--hf-green);
						color: var(--hf-green);
						box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
						transform: translateY(-1px);
				}

			.homefront-app .hf-act-btn.del {
					border-color: var(--hf-g200);
			}

        .homefront-app .hf-act-btn.del:hover {
            background: var(--hf-red-l);
            color: var(--hf-red);
        }

        /* Pagination */
        .homefront-app .hf-pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 18px;
            border-top: 1px solid var(--hf-g200);
        }

        .homefront-app .hf-page-info {
            font-size: 14px;
            color: var(--hf-g500);
        }

        .homefront-app .hf-page-btns {
            display: flex;
            gap: 4px;
        }

        .homefront-app .hf-page-btn {
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--hf-radius);
            border: 1px solid var(--hf-g200);
            background: #fff;
            color: var(--hf-g600);
            font-size: 14px;
            cursor: pointer;
            font-family: inherit;
        }

        .homefront-app .hf-page-btn:hover:not(:disabled) {
            background: var(--hf-g50);
        }

        .homefront-app .hf-page-btn.active {
            background: var(--hf-coral);
            border-color: var(--hf-coral);
            color: #fff;
        }

        .homefront-app .hf-page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Empty & Loading States */
        .homefront-app .hf-loading {
            display: flex;
            justify-content: center;
            padding: 50px;
        }

        .homefront-app .hf-spinner {
            width: 36px;
            height: 36px;
            border: 3px solid var(--hf-g200);
            border-top-color: var(--hf-coral);
            border-radius: 50%;
            animation: hf-spin 0.8s linear infinite;
        }

        @keyframes hf-spin {
            to { transform: rotate(360deg); }
        }

        .homefront-app .hf-empty {
            text-align: center;
            padding: 50px;
            color: var(--hf-g500);
        }

        .homefront-app .hf-empty h3 {
            font-size: 16px;
            color: var(--hf-navy);
            margin-bottom: 4px;
        }

        /* Hidden utility */
        .homefront-app .hf-hidden {
            display: none !important;
        }

        /* === MODAL STYLES - These need to be outside .homefront-app for fixed positioning === */
        .hf-modal-bg {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        .hf-modal-bg.open {
            opacity: 1;
            visibility: visible;
        }

        .hf-modal {
            background: #fff;
            border-radius: 8px;
            width: 100%;
            max-width: 560px;
            max-height: 90vh;
            overflow-y: auto;
            color: #2D3748;
            line-height: 1.5;
        }

        .hf-modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 22px;
            border-bottom: 1px solid #E5E7EB;
        }

        .hf-modal-head h3 {
            font-size: 17px;
            font-weight: 700;
            margin: 0;
        }

        .hf-modal-close {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: #9CA3AF;
            cursor: pointer;
            font-size: 18px;
        }

        .hf-modal-close:hover {
            background: #F3F4F6;
            color: #2D3748;
        }

        .hf-modal-body {
            padding: 22px;
        }

        .hf-modal-foot {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            padding: 14px 22px;
            border-top: 1px solid #E5E7EB;
            background: #F9FAFB;
        }

        .hf-modal .hf-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 14px;
        }

        .hf-modal .hf-form-row.full {
            grid-template-columns: 1fr;
        }

        .hf-modal .hf-form-grp {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .hf-modal .hf-form-grp label {
            font-size: 14px;
            font-weight: 600;
        }

        .hf-modal .hf-form-grp .req {
            color: #F26D6D;
        }

        .hf-modal .hf-form-grp input,
        .hf-modal .hf-form-grp select,
        .hf-modal .hf-form-grp textarea {
            padding: 10px 12px;
            border: 1px solid #D1D5DB;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            background: #fff;
        }

        .hf-modal .hf-form-grp input:focus,
        .hf-modal .hf-form-grp select:focus,
        .hf-modal .hf-form-grp textarea:focus {
            outline: none;
            border-color: #F26D6D;
            box-shadow: 0 0 0 3px #FFEAEA;
        }

        /* Multi-select in modals */
        .hf-modal .hf-multi-sel {
            position: relative;
        }

        .hf-modal .hf-multi-display {
            min-height: 42px;
            padding: 6px 10px;
            border: 1px solid #D1D5DB;
            border-radius: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            cursor: pointer;
            background: #fff;
        }

        .hf-modal .hf-multi-tag {
            background: #FFEAEA;
            color: #F26D6D;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
/* Bug Report Modal - Support both .active and .open */
#bugReportModal.active,
#bugReportModal.open {
    opacity: 1 !important;
    visibility: visible !important;
}
#bugReportModal .hf-modal {
    pointer-events: auto !important;
}

#bugReportModal .hf-modal-close,
#bugReportModal .hf-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
}
/* Fix Messages Layout */
.hf-messages-container {
    display: flex !important;
    height: calc(100vh - 180px) !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.hf-conversations-panel {
    width: 320px !important;
    min-width: 320px !important;
    border-right: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
}

.hf-chat-panel {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.hf-conversations-header {
    padding: 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
}

.hf-conversations-list {
    flex: 1 !important;
    overflow-y: auto !important;
}
        .hf-modal .hf-multi-tag button {
            background: none;
            border: none;
            color: inherit;
            cursor: pointer;
            font-size: 14px;
            padding: 0;
            line-height: 1;
        }

        .hf-modal .hf-multi-drop {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #fff;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
            max-height: 180px;
            overflow-y: auto;
            z-index: 100;
            display: none;
        }

        .hf-modal .hf-multi-sel.open .hf-multi-drop {
            display: block;
        }

        .hf-modal .hf-multi-opt {
            padding: 10px 12px;
            cursor: pointer;
            font-size: 14px;
        }

        .hf-modal .hf-multi-opt:hover {
            background: #F9FAFB;
        }

        .hf-modal .hf-multi-opt.sel {
            background: #FFEAEA;
            color: #F26D6D;
        }

        /* Email preview in modal */
        .hf-modal .hf-email-preview {
            background: #F9FAFB;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            padding: 14px;
            margin-top: 14px;
        }

        .hf-modal .hf-email-preview label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            color: #9CA3AF;
            margin-bottom: 8px;
            display: block;
        }

        .hf-modal .hf-email-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .hf-modal .hf-email-chip {
            background: #fff;
            border: 1px solid #E5E7EB;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 13px;
        }

        /* Modal buttons */
        .hf-modal .hf-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 14px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.15s ease;
            font-family: inherit;
        }

        .hf-modal .hf-btn-primary {
            background: #F26D6D;
            color: #fff;
        }

        .hf-modal .hf-btn-primary:hover {
            background: #E05555;
        }

        .hf-modal .hf-btn-secondary {
            background: #fff;
            color: #4B5563;
            border: 1px solid #D1D5DB;
        }

        .hf-modal .hf-btn-secondary:hover {
            background: #F9FAFB;
        }

/* Provider Autocomplete Styles */
.hf-autocomplete {
    position: relative;
}

.hf-autocomplete input[type="text"] {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
}

.hf-autocomplete-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.hf-autocomplete-clear:hover {
    color: #6B7280;
}

.hf-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 2px;
}

.hf-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #F3F4F6;
}

.hf-autocomplete-item:last-child {
    border-bottom: none;
}

.hf-autocomplete-item:hover {
    background: #F9FAFB;
}

.hf-autocomplete-empty {
    color: #9CA3AF;
    font-style: italic;
    cursor: default;
}

.hf-autocomplete-empty:hover {
    background: white;
}

        /* === TOAST STYLES - Also outside for fixed positioning === */
        .hf-toast-wrap {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 100001;
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        .hf-toast {
            background: #2D3748;
            color: #fff;
            padding: 12px 18px;
            border-radius: 8px;
            font-size: 14px;
            animation: hf-slideIn 0.3s ease;
        }

        .hf-toast.success {
            background: #10B981;
        }

        .hf-toast.error {
            background: #EF4444;
        }

        @keyframes hf-slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
/* ===========================================
   MOBILE RESPONSIVE STYLES
   Only applies to screens 768px and below
   Desktop view remains unchanged
   =========================================== */

/* Mobile Header */
.hf-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(135deg, #F26D6D 0%, #E05555 100%);
    color: #fff;
    align-items: center;
    padding: 0 16px;
    z-index: 99998;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hf-mobile-menu-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hf-mobile-menu-btn:hover,
.hf-mobile-menu-btn:active {
    background: rgba(255,255,255,0.25);
}

.hf-mobile-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Mobile Overlay */
.hf-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
}

.hf-mobile-overlay.active {
    display: block;
}

/* PWA Install Banner */
.hf-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FDE36B 0%, #FDE36B 100%);
    padding: 1px 20px;
    z-index: 100002;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hf-install-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hf-install-content span {
    color: #1F2937;
    font-weight: 500;
    font-size: 14px;
}

.hf-install-actions {
    display: flex;
    gap: 8px;
    padding: 8px 8px 8px 8px !important;
}

@media (max-width: 768px) {
    /* Show mobile header */
    .hf-mobile-header {
        display: flex !important;
    }
    
    /* Sidebar - hidden by default, slides in */
    .homefront-app .hf-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 100000;
        transition: left 0.3s ease;
        box-shadow: none;
    }
    
    .homefront-app .hf-sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    
    /* Main content full width */
    .homefront-app .hf-main {
        margin-left: 0 !important;
        padding: 16px !important;
        padding-top: 72px !important;
    }
    
    /* Cards stack vertically */
    .homefront-app .hf-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Filters stack */
    .homefront-app .hf-filters {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .homefront-app .hf-filter-grp {
        width: 100% !important;
    }
    
    .homefront-app .hf-filter-grp input,
    .homefront-app .hf-filter-grp select {
        width: 100% !important;
    }
    
    .homefront-app .hf-filter-actions {
        margin-left: 0 !important;
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Tables scroll horizontally */
    .homefront-app .hf-tbl-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Modals full screen */
    .hf-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }
    
    .hf-modal-body {
        max-height: calc(100vh - 130px) !important;
        overflow-y: auto !important;
    }
    
    /* Form rows stack */
    .hf-modal .hf-form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Table header stacks */
    .homefront-app .hf-tbl-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    /* Messages container */
    .hf-messages-container {
        flex-direction: column !important;
        height: calc(100vh - 140px) !important;
    }
    
    .hf-conversations-panel {
        width: 100% !important;
        height: 35% !important;
        min-height: 200px;
        border-right: none !important;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .hf-chat-panel {
        height: 65% !important;
    }
    
    /* Install banner */
    .hf-install-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Toast position */
    .hf-toast-wrap {
        bottom: 70px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .homefront-app .hf-main {
        padding: 12px !important;
        padding-top: 68px !important;
    }
    
    .homefront-app .hf-card {
        padding: 14px !important;
    }
    
    .homefront-app .hf-card-num {
        font-size: 24px !important;
    }
    
    .homefront-app .hf-header h2 {
        font-size: 18px !important;
    }
}
/* ===========================================
   Homefront Client Management Portal Styles
   Add to: WordPress > Appearance > Customize > Additional CSS
   =========================================== */

/* === UNIFIED TABLE ROW STYLES === */
/* Unified row styles */
.hf-table-row{
  cursor:pointer}

.hf-table-row:nth-child(4n+1),.hf-table-row:nth-child(4n+2){
  background:#fff}

.hf-table-row:nth-child(4n+3),.hf-table-row:nth-child(4n){
  background:#F9FAFB}

.hf-table-row:hover{
  background:#F3F4F6!important}

.hf-table-row .hf-actions{
  border:none!important;
  outline:none!important}

.hf-table-row .hf-act-btn{
  border:none!important;
  outline:none!important;
  box-shadow:none!important}

.hf-act-btn.complete{
  background:#d1fae5 !important;
  color:#065f46 !important}
.hf-act-btn.complete:hover{
  background:#a7f3d0 !important}

/* === DROPDOWN STYLES === */
.hf-provider-dropdown{
  background:#f0f7ff}
.hf-dropdown-cell{
  padding:0 !important;
  border-bottom:1px solid #e5e7eb !important}
.hf-dropdown-content{
  padding:16px 20px;
  margin-left:20px;
  border-left:3px solid #3b82f6}
.hf-dropdown-title{
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:12px;
  letter-spacing:.05em}
.hf-dropdown-providers{
  display:flex;
  flex-wrap:wrap;
  gap:16px}
.hf-dropdown-provider{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:12px 16px;
  min-width:220px}
.hf-dropdown-provider-name{
  font-weight:600;
  font-size:14px;
  color:#2d3748;
  margin-bottom:8px}
.hf-dropdown-provider-info{
  display:flex;
  flex-direction:column;
  gap:4px}
.hf-dropdown-provider-info a{
  color:#3b82f6;
  text-decoration:none;
  font-size:13px}
.hf-dropdown-provider-info a:hover{
  text-decoration:underline}

/* === PROVIDER/EMAIL LIST === */
.hf-provider-list{
  max-height:250px;
  overflow-y:auto;
  border:1px solid #e5e7eb;
  border-radius:8px;
  margin-bottom:16px}
.hf-provider-item{
  display:flex;
  align-items:flex-start;
  padding:12px 16px;
  border-bottom:1px solid #f3f4f6;
  gap:12px}
.hf-provider-item:last-child{
  border-bottom:0}
.hf-provider-item:hover{
  background:#f9fafb}
.hf-provider-item input[type="checkbox"]{
  margin-top:3px;
  width:18px;
  height:18px;
  cursor:pointer}
.hf-provider-item-info{
  flex:1}
.hf-provider-item-name{
  font-weight:600;
  font-size:14px;
  color:#2d3748}
.hf-provider-item-email{
  font-size:13px;
  color:#6b7280}
.hf-provider-item-clients{
  font-size:12px;
  color:#9ca3af;
  margin-top:4px}
.hf-provider-item-count{
  background:#dbeafe;
  color:#1e40af;
  padding:4px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap}
.hf-email-preview-list{
  max-height:200px;
  overflow-y:auto;
  border:1px solid #e5e7eb;
  border-radius:8px}
.hf-email-preview-item{
  padding:12px 16px;
  border-bottom:1px solid #f3f4f6}
.hf-email-preview-item:last-child{
  border-bottom:0}
.hf-email-preview-to{
  font-weight:600;
  font-size:13px;
  color:#2d3748}
.hf-email-preview-subject{
  font-size:12px;
  color:#6b7280}
.hf-email-log-item{
  padding:12px 16px;
  border-bottom:1px solid #f3f4f6;
  display:flex;
  justify-content:space-between;
  align-items:center}
.hf-email-log-item:nth-child(even){
  background:#f9fafb}
.hf-email-log-status{
  padding:4px 8px;
  border-radius:4px;
  font-size:11px;
  font-weight:600}
.hf-email-log-status.sent{
  background:#d1fae5;
  color:#065f46}
.hf-email-log-status.failed{
  background:#fee2e2;
  color:#991b1b}
.hf-recently-emailed{
  background:#fef3c7 !important}
.hf-recent-warning{
  color:#b45309;
  font-size:12px;
  margin-top:4px;
  font-weight:500}

/* === CLIENT DROPDOWN === */
.hf-client-dropdown{
  background:#f0fdf4}
.hf-client-count-badge{
  background:#dbeafe;
  color:#1e40af;
  padding:2px 8px;
  border-radius:10px;
  font-size:12px;
  font-weight:600}
.hf-dropdown-clients{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:12px}
.hf-dropdown-client{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:12px 16px}
.hf-dropdown-client-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px}
.hf-dropdown-client-name{
  font-weight:600;
  font-size:14px;
  color:#2d3748}
.hf-dropdown-client-info{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:12px;
  color:#6b7280;
  margin-bottom:6px}
.hf-dropdown-client-review{
  font-size:12px;
  margin-top:4px}
.hf-dropdown-client-providers{
  font-size:11px;
  color:#6b7280;
  margin-top:4px}

/* === INACTIVE ROW === */
.hf-inactive-row{
  background:#fff}
.hf-inactive-row:nth-child(even){
  background:#f9fafb}
.hf-inactive-row:hover{
  background:#f3f4f6}

/* === REPORT DROPDOWN === */
.hf-dropdown-reports{
  margin-bottom:8px}
.hf-dropdown-report-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px}
.hf-dropdown-report-item{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:10px 14px;
  font-size:13px}
.hf-dropdown-report-item div{
  margin-top:4px;
  font-size:12px;
  color:#6b7280}

/* === STATUS BADGES === */
.hf-badge-pastdue{
  background:#fee2e2;
  color:#991b1b;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-urgent{
  background:#fef3c7;
  color:#b45309;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-soon{
  background:#dbeafe;
  color:#1e40af;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-ok{
  background:#d1fae5;
  color:#065f46;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-complete{
  background:#d1fae5;
  color:#065f46;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-danger{
  background:#fee2e2;
  color:#991b1b;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-warning{
  background:#fef3c7;
  color:#b45309;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-info{
  background:#dbeafe;
  color:#1e40af;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-badge-success{
  background:#d1fae5;
  color:#065f46;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:500}
.hf-btn-xs{
  padding:4px 8px;
  font-size:11px}

/* === CLICKABLE CARDS === */
.hf-card.clickable{
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease}
.hf-card.clickable:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,0.15)}
.hf-card.clickable:active{
  transform:translateY(0)}

/* === SEARCH INPUTS === */
.hf-dash-search{
  padding:6px 12px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  font-size:13px;
  width:160px;
  outline:0}
.hf-dash-search:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 2px rgba(59,130,246,0.1)}
.hf-multi-search{
  width:100%;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid #e5e7eb;
  font-size:14px;
  outline:0;
  box-sizing:border-box}
.hf-multi-search:focus{
  border-bottom-color:#3b82f6}
.hf-multi-options{
  max-height:200px;
  overflow-y:auto}

/* === EMAIL LOADING === */
.hf-email-loading{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:50px 20px;
  min-height:180px;
  background:#f9fafb;
  border-radius:8px;
  margin-bottom:16px}
.hf-email-loading-content{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:16px}
.hf-email-loading-spinner{
  width:32px;
  height:32px;
  border:3px solid #e5e7eb;
  border-top-color:#f26d6d;
  border-radius:50%;
  animation:hf-email-spin .8s linear infinite}

/* === ANIMATIONS === */
@keyframes hf-email-spin{
  to{
  transform:rotate(360deg)}
}
.hf-email-loading-text{
  font-size:15px;
  color:#4b5563;
  font-weight:500;
  min-width:180px;
  opacity:1;
  transition:opacity .3s ease}
.hf-email-loading-text.fade-out{
  opacity:0}

/* === BULK ACTIONS === */
.hf-bulk-actions{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 12px;
  background:#eff6ff;
  border-radius:6px}
.hf-bulk-actions span{
  font-size:13px;
  color:#1e40af;
  font-weight:500}
.hf-report-checkbox{
  width:18px;
  height:18px;
  cursor:pointer}

/* === AUDIT LOG === */
.hf-audit-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px}
.hf-audit-table th{
  text-align:left;
  padding:10px 12px;
  background:#f9fafb;
  border-bottom:1px solid #e5e7eb;
  font-weight:600;
  color:#4b5563}
.hf-audit-table td{
  padding:10px 12px;
  border-bottom:1px solid #f3f4f6;
  vertical-align:top}
.hf-audit-table tr:hover{
  background:#f9fafb}
.hf-audit-action{
  display:inline-block;
  padding:2px 8px;
  border-radius:4px;
  font-size:11px;
  font-weight:600}
.hf-audit-action.login{
  background:#dbeafe;
  color:#1e40af}
.hf-audit-action.report_complete{
  background:#d1fae5;
  color:#065f46}
.hf-audit-action.report_incomplete{
  background:#fef3c7;
  color:#92400e}
.hf-audit-action.status_change{
  background:#e0e7ff;
  color:#3730a3}
.hf-audit-action.bulk_update{
  background:#f3e8ff;
  color:#6b21a8}
.hf-audit-action.update{
  background:#f3f4f6;
  color:#374151}
.hf-audit-action.create{
  background:#d1fae5;
  color:#065f46}
.hf-audit-action.delete{
  background:#fee2e2;
  color:#991b1b}
.hf-audit-changes{
  font-size:12px;
  color:#6b7280;
  max-width:300px}
.hf-audit-change-item{
  margin-top:4px;
  padding:4px 8px;
  background:#f3f4f6;
  border-radius:4px}
.hf-audit-field{
  font-weight:600;
  color:#374151}

/* === MESSAGING/CHAT === */
.hf-messages-container{
  display:flex;
  height:calc(100vh - 180px);
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,0.1)}
.hf-conversations-panel{
  width:320px;
  border-right:1px solid #e5e7eb;
  display:flex;
  flex-direction:column}
.hf-conversations-header{
  padding:16px;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  gap:8px}
.hf-conv-search{
  flex:1;
  padding:8px 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:14px}
.hf-conversations-list{
  flex:1;
  overflow-y:auto}
.hf-conv-item{
  padding:12px 16px;
  border-bottom:1px solid #f3f4f6;
  cursor:pointer;
  transition:background .15s}
.hf-conv-item:hover{
  background:#f9fafb}
.hf-conv-item.active{
  background:#eef2ff;
  border-left:3px solid #6366f1}
.hf-conv-item.unread{
  background:#fef3c7}
.hf-conv-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px}
.hf-conv-name{
  font-weight:600;
  font-size:14px;
  color:#111827}
.hf-conv-time{
  font-size:11px;
  color:#9ca3af}
.hf-conv-preview{
  font-size:13px;
  color:#6b7280;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis}
.hf-conv-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:600;
  border-radius:9px}
.hf-chat-panel{
  flex:1;
  display:flex;
  flex-direction:column}
.hf-chat-placeholder{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#6b7280}
.hf-chat-placeholder-icon{
  font-size:48px;
  margin-bottom:16px}
.hf-chat-placeholder h3{
  margin:0 0 8px 0;
  color:#374151}
.hf-chat-placeholder p{
  margin:0 0 16px 0}
.hf-chat-active{
  flex:1;
  display:flex;
  flex-direction:column}
.hf-chat-header{
  padding:16px;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f9fafb}
.hf-chat-header-name{
  font-weight:600;
  font-size:16px;
  color:#111827}
.hf-chat-header-participants{
  font-size:12px;
  color:#6b7280}
.hf-chat-messages{
  flex:1;
  overflow-y:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px}
.hf-message{
  max-width:70%;
  padding:10px 14px;
  border-radius:16px;
  font-size:14px;
  line-height:1.4}
.hf-message.sent{
  align-self:flex-end;
  background:#6366f1;
  color:#fff;
  border-bottom-right-radius:4px}
.hf-message.received{
  align-self:flex-start;
  background:#f3f4f6;
  color:#111827;
  border-bottom-left-radius:4px}
.hf-message-sender{
  font-size:11px;
  font-weight:600;
  margin-bottom:4px;
  color:#6b7280}
.hf-message.sent .hf-message-sender{
  color:rgba(255,255,255,0.8)}
.hf-message-time{
  font-size:10px;
  margin-top:4px;
  opacity:.7}
.hf-chat-input-area{
  padding:16px;
  border-top:1px solid #e5e7eb;
  display:flex;
  gap:12px;
  background:#fff}
.hf-chat-input-area textarea{
  flex:1;
  padding:10px 14px;
  border:1px solid #d1d5db;
  border-radius:20px;
  font-size:14px;
  resize:none;
  max-height:100px;
  font-family:inherit}
.hf-chat-input-area textarea:focus{
  outline:0;
  border-color:#6366f1}
.hf-unread-badge{
  background:#ef4444 !important;
  animation:pulse 2s infinite}
@keyframes pulse{
  0%,100%{
  opacity:1}
50%{
  opacity:.7}
}
.hf-multi-select-list{
  max-height:200px;
  overflow-y:auto;
  border:1px solid #d1d5db;
  border-radius:8px}
.hf-multi-select-item{
  padding:8px 12px;
  border-bottom:1px solid #f3f4f6;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer}
.hf-multi-select-item:hover{
  background:#f9fafb}
.hf-multi-select-item.selected{
  background:#eef2ff}
.hf-multi-select-item:last-child{
  border-bottom:0}
.hf-date-divider{
  text-align:center;
  padding:8px;
  font-size:12px;
  color:#9ca3af;
  font-weight:500}

/* PWA Install Banner */
.hf-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FDE36B 0%, #FDE36B 100%);
    padding: 12px 20px;
    z-index: 100002;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.hf-install-content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap}
.hf-install-content span{
  color:#1f2937;
  font-weight:500;
  font-size:14px}

/* === RESPONSIVE === */
@media(max-width:480px){
  .hf-install-content{
  flex-direction:column;
  text-align:center}
}