Export & filtering - Replace /api/admin/agents/export/csv with /api/admin/agents/export/xlsx (openpyxl). Multi-line system prompts stay inside one cell instead of fragmenting into thousands of rows when opened in Excel. - Accept filter query params on export: status, discipline, audit, business_entity, agent_classification, autonomy_level, risks_only, search. - Move Export/Import CSV/Delete by CSV buttons into the Agents Management tab, drop the duplicate links from the top nav, and rebuild the cramped filter row as a wrappable two-row layout. - Add a Discipline dropdown to the Agents Management filter row to match the Prompt Audit tab. Completion-reminder emails (fix for the broken Complete-button links) - Add h:Reply-To header to every Mailgun send so users can reply to a real mailbox instead of noreply@. Default Nick.Viljoen@oliver.agency, overridable via NOTIFICATION_REPLY_TO env var. - send_completion_reminders now skips with an error log when AGENTHUB_PUBLIC_URL is unset instead of mailing relative links email clients can't follow. UI polish - Restrict the 5-second alert auto-hide to .alert-dismissible so the load-bearing 'unresolved owner' banner stays visible until acted on. - Move the orange brand gradient to a fixed body::before pseudo-element so it can't be covered by the white content card or scrolled out of view. - Lock the navbar to viewport top (position: fixed) and reserve body padding-top so content doesn't sit beneath it. Audit polish (carried over from previous WIP) - Add batch-state tracking to audit_analyzer for in-flight progress visibility. - Update PLAN-prompt-audit.md to match the shipped behaviour. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
449 lines
No EOL
8.7 KiB
CSS
449 lines
No EOL
8.7 KiB
CSS
:root {
|
|
--primary-color: #f3ae3e;
|
|
--secondary-color: #f3ae3e;
|
|
--accent-color: #f3ae3e;
|
|
--text-dark: #2d3748;
|
|
--text-light: #718096;
|
|
--bg-light: #f7fafc;
|
|
--bg-white: #ffffff;
|
|
--border-color: #e2e8f0;
|
|
--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
|
|
/* Microsoft Brand Colors */
|
|
--ms-blue: #f3ae3e;
|
|
--ms-blue-dark: #f3ae3e;
|
|
--ms-gray: #5e5e5e;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
/* Reserve space for the fixed navbar below so page content isn't hidden under it. */
|
|
padding-top: 64px;
|
|
color: var(--text-dark);
|
|
font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* Orange brand backdrop. Painted on a fixed pseudo-element behind everything so
|
|
no child element (e.g. .container's white bg) can cover it. Always visible
|
|
around the centred white card regardless of viewport size or scroll. */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
/* Always leave at least ~1rem of body gradient visible on each side, so the
|
|
orange frame doesn't disappear when the viewport is narrower than 1200px. */
|
|
width: calc(100% - 2rem);
|
|
margin: 2rem auto;
|
|
padding: 2rem;
|
|
background-color: var(--bg-white);
|
|
border-radius: 20px;
|
|
box-shadow: var(--shadow-lg);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1100;
|
|
background: rgba(255, 255, 255, 0.95) !important;
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--border-color);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.navbar-brand {
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.nav-link {
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
border-radius: 8px;
|
|
margin: 0 4px;
|
|
padding: 8px 16px !important;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background-color: var(--bg-light);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.nav-link.active {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white !important;
|
|
}
|
|
|
|
.table {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
border: none;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.table thead th {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white;
|
|
font-weight: 600;
|
|
border: none;
|
|
padding: 1rem;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.table tbody tr {
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
}
|
|
|
|
.table tbody tr:hover {
|
|
background-color: var(--bg-light);
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.table tbody td {
|
|
padding: 1rem;
|
|
border-color: var(--border-color);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
padding: 8px 20px;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
text-transform: uppercase;
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
border: none;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.btn-warning {
|
|
background: linear-gradient(135deg, #ffecd2, #fcb69f);
|
|
border: none;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(135deg, #ff9a9e, #fecfef);
|
|
border: none;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.form-control {
|
|
border-radius: 8px;
|
|
border: 2px solid var(--border-color);
|
|
padding: 12px;
|
|
transition: all 0.3s ease;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(243, 174, 62, 0.1);
|
|
}
|
|
|
|
.form-label {
|
|
font-weight: 600;
|
|
color: var(--text-dark);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: var(--text-dark);
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
h2 {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: white;
|
|
background-clip: text;
|
|
font-size: 2.5rem;
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.alert {
|
|
border-radius: 12px;
|
|
border: none;
|
|
padding: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.card {
|
|
border-radius: 16px;
|
|
border: none;
|
|
box-shadow: var(--shadow);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.badge {
|
|
border-radius: 20px;
|
|
padding: 6px 12px;
|
|
font-weight: 500;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--text-light) !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
margin: 1rem;
|
|
padding: 1rem;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.table-responsive {
|
|
border-radius: 12px;
|
|
}
|
|
}
|
|
|
|
/* Microsoft Authentication Branding */
|
|
.btn-microsoft {
|
|
background-color: var(--ms-blue);
|
|
border-color: var(--ms-blue);
|
|
color: white;
|
|
font-weight: 500;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-microsoft:hover {
|
|
background-color: var(--ms-blue-dark);
|
|
border-color: var(--ms-blue-dark);
|
|
color: white;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 8px rgba(243, 174, 62, 0.3);
|
|
}
|
|
|
|
.btn-microsoft:focus {
|
|
background-color: var(--ms-blue-dark);
|
|
border-color: var(--ms-blue-dark);
|
|
color: white;
|
|
box-shadow: 0 0 0 3px rgba(243, 174, 62, 0.2);
|
|
}
|
|
|
|
.btn-microsoft:active {
|
|
background-color: var(--ms-blue-dark);
|
|
border-color: var(--ms-blue-dark);
|
|
color: white;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Microsoft Login Divider */
|
|
.auth-divider {
|
|
position: relative;
|
|
text-align: center;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
.auth-divider::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background-color: var(--border-color);
|
|
}
|
|
|
|
.auth-divider-text {
|
|
background-color: white;
|
|
padding: 0 1rem;
|
|
color: var(--text-light);
|
|
font-size: 0.9rem;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Admin/Local Auth Section Styling */
|
|
.local-auth-section {
|
|
border-top: 1px solid var(--border-color);
|
|
padding-top: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.local-auth-section .form-label {
|
|
color: var(--ms-gray);
|
|
}
|
|
|
|
.local-auth-section .btn-primary {
|
|
background: linear-gradient(135deg, var(--ms-gray), #4a4a4a);
|
|
border-color: var(--ms-gray);
|
|
}
|
|
|
|
/* Modal Centering and Positioning Fixes */
|
|
.modal {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.modal-dialog {
|
|
margin: 1.75rem auto;
|
|
max-width: calc(100% - 3.5rem);
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: calc(100vh - 3.5rem);
|
|
}
|
|
|
|
.modal-dialog-centered {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: calc(100vh - 3.5rem);
|
|
}
|
|
|
|
.modal-content {
|
|
border-radius: 16px;
|
|
border: none;
|
|
box-shadow: var(--shadow-lg);
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.modal-header {
|
|
border-radius: 16px 16px 0 0;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white;
|
|
border-bottom: none;
|
|
padding: 1.25rem 1.5rem;
|
|
}
|
|
|
|
.modal-title {
|
|
font-weight: 600;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.modal-header .btn-close {
|
|
filter: invert(1);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.modal-header .btn-close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-footer {
|
|
border-top: 1px solid var(--border-color);
|
|
border-radius: 0 0 16px 16px;
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
/* Ensure modals are centered on smaller screens */
|
|
@media (max-width: 768px) {
|
|
.modal-dialog {
|
|
margin: 1rem;
|
|
max-width: calc(100% - 2rem);
|
|
min-height: calc(100vh - 2rem);
|
|
}
|
|
|
|
.modal-body {
|
|
max-height: 60vh;
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Ensure modal backdrop doesn't interfere */
|
|
.modal-backdrop {
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
/* Fix page title readability */
|
|
.container h2 {
|
|
-webkit-text-fill-color: var(--text-dark);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
/* Star rating styles */
|
|
.star-interactive, .star-clickable {
|
|
cursor: pointer;
|
|
font-size: 1.3rem;
|
|
transition: color 0.2s, transform 0.2s;
|
|
color: #dee2e6;
|
|
}
|
|
|
|
.star-interactive:hover, .star-clickable:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.star-rating-edit {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
/* Discipline badge */
|
|
.bg-purple {
|
|
background-color: #6f42c1 !important;
|
|
} |