1176 lines
25 KiB
CSS
1176 lines
25 KiB
CSS
/**
|
|
* PX360 Shared Styles - Centralized CSS for UI Consistency
|
|
*
|
|
* This file contains all shared components, avoiding duplication across templates.
|
|
* Include in base.html: <link rel="stylesheet" href="{% static 'css/px360.css' %}">
|
|
*/
|
|
|
|
/* ============================================
|
|
CSS VARIABLES - Design Tokens
|
|
============================================ */
|
|
:root {
|
|
/* Brand Colors */
|
|
--hh-navy: #005696;
|
|
--hh-blue: #007bbd;
|
|
--hh-light: #eef6fb;
|
|
--hh-slate: #64748b;
|
|
|
|
/* Semantic Colors */
|
|
--hh-success: #10b981;
|
|
--hh-success-light: #d1fae5;
|
|
--hh-success-text: #065f46;
|
|
--hh-warning: #f59e0b;
|
|
--hh-warning-light: #fef3c7;
|
|
--hh-warning-text: #92400e;
|
|
--hh-danger: #ef4444;
|
|
--hh-danger-light: #fee2e2;
|
|
--hh-danger-text: #991b1b;
|
|
--hh-info: #3b82f6;
|
|
--hh-info-light: #dbeafe;
|
|
--hh-info-text: #1e40af;
|
|
|
|
/* Neutral Colors */
|
|
--hh-white: #ffffff;
|
|
--hh-gray-50: #f8fafc;
|
|
--hh-gray-100: #f1f5f9;
|
|
--hh-gray-200: #e2e8f0;
|
|
--hh-gray-300: #cbd5e1;
|
|
--hh-gray-400: #94a3b8;
|
|
--hh-gray-500: #64748b;
|
|
--hh-gray-600: #475569;
|
|
--hh-gray-700: #334155;
|
|
--hh-gray-800: #1e293b;
|
|
--hh-gray-900: #0f172a;
|
|
|
|
/* Spacing */
|
|
--hh-space-1: 0.25rem;
|
|
--hh-space-2: 0.5rem;
|
|
--hh-space-3: 0.75rem;
|
|
--hh-space-4: 1rem;
|
|
--hh-space-5: 1.25rem;
|
|
--hh-space-6: 1.5rem;
|
|
--hh-space-8: 2rem;
|
|
--hh-space-10: 2.5rem;
|
|
--hh-space-12: 3rem;
|
|
|
|
/* Border Radius */
|
|
--hh-radius-sm: 0.375rem;
|
|
--hh-radius-md: 0.5rem;
|
|
--hh-radius-lg: 0.75rem;
|
|
--hh-radius-xl: 1rem;
|
|
--hh-radius-2xl: 1.5rem;
|
|
--hh-radius-full: 9999px;
|
|
|
|
/* Shadows */
|
|
--hh-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--hh-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
--hh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
--hh-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
|
|
/* Transitions */
|
|
--hh-transition-fast: 150ms ease-in-out;
|
|
--hh-transition-normal: 200ms ease-in-out;
|
|
--hh-transition-slow: 300ms ease-in-out;
|
|
}
|
|
|
|
/* ============================================
|
|
BASE STYLES
|
|
============================================ */
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
color: var(--hh-gray-800);
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* ============================================
|
|
SCROLLBAR STYLES
|
|
============================================ */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--hh-gray-100);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--hh-gray-300);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--hh-gray-400);
|
|
}
|
|
|
|
/* Firefox */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--hh-gray-300) var(--hh-gray-100);
|
|
}
|
|
|
|
/* ============================================
|
|
PAGE HEADER - Gradient
|
|
============================================ */
|
|
.hh-page-header {
|
|
background: linear-gradient(135deg, var(--hh-navy) 0%, #0069a8 50%, var(--hh-blue) 100%);
|
|
color: white;
|
|
padding: var(--hh-space-6) var(--hh-space-8);
|
|
border-radius: var(--hh-radius-xl);
|
|
margin-bottom: var(--hh-space-6);
|
|
box-shadow: var(--hh-shadow-lg);
|
|
}
|
|
|
|
.hh-page-header h1,
|
|
.hh-page-header h2 {
|
|
color: white;
|
|
margin: 0;
|
|
}
|
|
|
|
.hh-page-header p {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
margin-top: var(--hh-space-2);
|
|
}
|
|
|
|
/* ============================================
|
|
SECTION CARD
|
|
============================================ */
|
|
.hh-section-card {
|
|
background: var(--hh-white);
|
|
border: 2px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-xl);
|
|
padding: var(--hh-space-6);
|
|
margin-bottom: var(--hh-space-6);
|
|
box-shadow: var(--hh-shadow-sm);
|
|
transition: box-shadow var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-section-card:hover {
|
|
box-shadow: var(--hh-shadow-md);
|
|
}
|
|
|
|
.hh-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--hh-space-3);
|
|
margin-bottom: var(--hh-space-5);
|
|
padding-bottom: var(--hh-space-4);
|
|
border-bottom: 2px solid var(--hh-light);
|
|
}
|
|
|
|
.hh-section-header h3 {
|
|
color: var(--hh-navy);
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.hh-section-icon {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
background: var(--hh-light);
|
|
border-radius: var(--hh-radius-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--hh-navy);
|
|
}
|
|
|
|
/* ============================================
|
|
FORM COMPONENTS
|
|
============================================ */
|
|
.hh-form-label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--hh-gray-700);
|
|
margin-bottom: var(--hh-space-1_5);
|
|
}
|
|
|
|
.hh-form-input,
|
|
.hh-form-select,
|
|
.hh-form-textarea {
|
|
width: 100%;
|
|
padding: var(--hh-space-3) var(--hh-space-4);
|
|
border: 2px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-lg);
|
|
font-size: 0.95rem;
|
|
font-family: inherit;
|
|
color: var(--hh-gray-800);
|
|
background: var(--hh-white);
|
|
transition: all var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-form-input:focus,
|
|
.hh-form-select:focus,
|
|
.hh-form-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--hh-blue);
|
|
box-shadow: 0 0 0 4px rgba(0, 123, 189, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.hh-form-input::placeholder,
|
|
.hh-form-textarea::placeholder {
|
|
color: var(--hh-gray-400);
|
|
}
|
|
|
|
.hh-form-select {
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.75rem center;
|
|
background-size: 1.25rem;
|
|
padding-right: 2.5rem;
|
|
}
|
|
|
|
.hh-form-textarea {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.hh-form-row {
|
|
margin-bottom: var(--hh-space-5);
|
|
}
|
|
|
|
.hh-form-grid {
|
|
display: grid;
|
|
gap: var(--hh-space-5);
|
|
}
|
|
|
|
.hh-form-grid-2 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.hh-form-grid-3 {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.hh-form-grid-2,
|
|
.hh-form-grid-3 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Required field indicator */
|
|
.hh-required::after {
|
|
content: " *";
|
|
color: var(--hh-danger);
|
|
}
|
|
|
|
/* ============================================
|
|
BUTTONS
|
|
============================================ */
|
|
.hh-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--hh-space-2);
|
|
padding: var(--hh-space-3) var(--hh-space-6);
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
text-decoration: none;
|
|
border: none;
|
|
border-radius: var(--hh-radius-lg);
|
|
cursor: pointer;
|
|
transition: all var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-btn:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(0, 86, 150, 0.3);
|
|
}
|
|
|
|
.hh-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Primary Button */
|
|
.hh-btn-primary {
|
|
background: var(--hh-navy);
|
|
color: white;
|
|
}
|
|
|
|
.hh-btn-primary:hover:not(:disabled) {
|
|
background: #004a7c;
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--hh-shadow-md);
|
|
}
|
|
|
|
/* Secondary Button */
|
|
.hh-btn-secondary {
|
|
background: var(--hh-white);
|
|
color: var(--hh-gray-700);
|
|
border: 2px solid var(--hh-gray-200);
|
|
}
|
|
|
|
.hh-btn-secondary:hover:not(:disabled) {
|
|
background: var(--hh-gray-50);
|
|
border-color: var(--hh-gray-300);
|
|
}
|
|
|
|
/* Danger Button */
|
|
.hh-btn-danger {
|
|
background: var(--hh-danger);
|
|
color: white;
|
|
}
|
|
|
|
.hh-btn-danger:hover:not(:disabled) {
|
|
background: #dc2626;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
/* Success Button */
|
|
.hh-btn-success {
|
|
background: var(--hh-success);
|
|
color: white;
|
|
}
|
|
|
|
.hh-btn-success:hover:not(:disabled) {
|
|
background: #059669;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Ghost Button */
|
|
.hh-btn-ghost {
|
|
background: transparent;
|
|
color: var(--hh-navy);
|
|
}
|
|
|
|
.hh-btn-ghost:hover:not(:disabled) {
|
|
background: var(--hh-light);
|
|
}
|
|
|
|
/* Button Sizes */
|
|
.hh-btn-sm {
|
|
padding: var(--hh-space-2) var(--hh-space-4);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hh-btn-lg {
|
|
padding: var(--hh-space-4) var(--hh-space-8);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Full width button */
|
|
.hh-btn-block {
|
|
width: 100%;
|
|
}
|
|
|
|
/* ============================================
|
|
STATUS BADGES
|
|
============================================ */
|
|
.hh-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: var(--hh-space-1) var(--hh-space-3);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.025em;
|
|
border-radius: var(--hh-radius-full);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Status variations */
|
|
.hh-badge-success {
|
|
background: var(--hh-success-light);
|
|
color: var(--hh-success-text);
|
|
}
|
|
|
|
.hh-badge-warning {
|
|
background: var(--hh-warning-light);
|
|
color: var(--hh-warning-text);
|
|
}
|
|
|
|
.hh-badge-danger {
|
|
background: var(--hh-danger-light);
|
|
color: var(--hh-danger-text);
|
|
}
|
|
|
|
.hh-badge-info {
|
|
background: var(--hh-info-light);
|
|
color: var(--hh-info-text);
|
|
}
|
|
|
|
.hh-badge-neutral {
|
|
background: var(--hh-gray-100);
|
|
color: var(--hh-gray-600);
|
|
}
|
|
|
|
/* Priority badges */
|
|
.hh-badge-priority-low {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.hh-badge-priority-medium {
|
|
background: #fef9c3;
|
|
color: #854d0e;
|
|
}
|
|
|
|
.hh-badge-priority-high {
|
|
background: #ffedd5;
|
|
color: #9a3412;
|
|
}
|
|
|
|
.hh-badge-priority-urgent {
|
|
background: var(--hh-danger-light);
|
|
color: var(--hh-danger-text);
|
|
}
|
|
|
|
/* Severity badges */
|
|
.hh-badge-severity-low {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.hh-badge-severity-medium {
|
|
background: #fef9c3;
|
|
color: #854d0e;
|
|
}
|
|
|
|
.hh-badge-severity-high {
|
|
background: #ffedd5;
|
|
color: #9a3412;
|
|
}
|
|
|
|
.hh-badge-severity-critical {
|
|
background: var(--hh-danger);
|
|
color: white;
|
|
}
|
|
|
|
/* ============================================
|
|
TABLES
|
|
============================================ */
|
|
.hh-table-container {
|
|
overflow-x: auto;
|
|
border-radius: var(--hh-radius-lg);
|
|
border: 1px solid var(--hh-gray-200);
|
|
}
|
|
|
|
.hh-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hh-table thead {
|
|
background: var(--hh-gray-50);
|
|
}
|
|
|
|
.hh-table th {
|
|
padding: var(--hh-space-4) var(--hh-space-6);
|
|
text-align: left;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--hh-gray-500);
|
|
border-bottom: 1px solid var(--hh-gray-200);
|
|
}
|
|
|
|
.hh-table td {
|
|
padding: var(--hh-space-4) var(--hh-space-6);
|
|
border-bottom: 1px solid var(--hh-gray-100);
|
|
color: var(--hh-gray-700);
|
|
}
|
|
|
|
.hh-table tbody tr:hover {
|
|
background: var(--hh-gray-50);
|
|
}
|
|
|
|
.hh-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Empty state */
|
|
.hh-table-empty {
|
|
text-align: center;
|
|
padding: var(--hh-space-12);
|
|
color: var(--hh-gray-400);
|
|
}
|
|
|
|
.hh-table-empty-icon {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
margin: 0 auto var(--hh-space-4);
|
|
color: var(--hh-gray-300);
|
|
}
|
|
|
|
/* ============================================
|
|
CARDS
|
|
============================================ */
|
|
.hh-card {
|
|
background: var(--hh-white);
|
|
border: 1px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-xl);
|
|
box-shadow: var(--hh-shadow-sm);
|
|
transition: box-shadow var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-card:hover {
|
|
box-shadow: var(--hh-shadow-md);
|
|
}
|
|
|
|
.hh-card-header {
|
|
padding: var(--hh-space-5) var(--hh-space-6);
|
|
border-bottom: 1px solid var(--hh-gray-100);
|
|
}
|
|
|
|
.hh-card-body {
|
|
padding: var(--hh-space-6);
|
|
}
|
|
|
|
.hh-card-footer {
|
|
padding: var(--hh-space-4) var(--hh-space-6);
|
|
border-top: 1px solid var(--hh-gray-100);
|
|
background: var(--hh-gray-50);
|
|
border-radius: 0 0 var(--hh-radius-xl) var(--hh-radius-xl);
|
|
}
|
|
|
|
/* ============================================
|
|
PAGINATION
|
|
============================================ */
|
|
.hh-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--hh-space-1);
|
|
margin-top: var(--hh-space-6);
|
|
}
|
|
|
|
.hh-pagination-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 2.5rem;
|
|
height: 2.5rem;
|
|
padding: 0 var(--hh-space-3);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--hh-gray-600);
|
|
background: var(--hh-white);
|
|
border: 1px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-lg);
|
|
cursor: pointer;
|
|
transition: all var(--hh-transition-fast);
|
|
}
|
|
|
|
.hh-pagination-btn:hover:not(:disabled) {
|
|
background: var(--hh-gray-50);
|
|
border-color: var(--hh-gray-300);
|
|
}
|
|
|
|
.hh-pagination-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.hh-pagination-btn.active {
|
|
background: var(--hh-navy);
|
|
color: white;
|
|
border-color: var(--hh-navy);
|
|
}
|
|
|
|
.hh-pagination-btn.prev,
|
|
.hh-pagination-btn.next {
|
|
padding: 0 var(--hh-space-4);
|
|
}
|
|
|
|
.hh-pagination-info {
|
|
font-size: 0.875rem;
|
|
color: var(--hh-gray-500);
|
|
margin-right: var(--hh-space-4);
|
|
}
|
|
|
|
/* ============================================
|
|
MODAL/DIALOG
|
|
============================================ */
|
|
.hh-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 50;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--hh-space-4);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-modal-overlay.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.hh-modal {
|
|
background: var(--hh-white);
|
|
border-radius: var(--hh-radius-2xl);
|
|
box-shadow: var(--hh-shadow-xl);
|
|
width: 100%;
|
|
max-width: 32rem;
|
|
max-height: 90vh;
|
|
overflow: hidden;
|
|
transform: scale(0.95);
|
|
transition: transform var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-modal-overlay.active .hh-modal {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.hh-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--hh-space-4);
|
|
padding: var(--hh-space-6);
|
|
border-bottom: 1px solid var(--hh-gray-100);
|
|
}
|
|
|
|
.hh-modal-icon {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: var(--hh-radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hh-modal-icon.success {
|
|
background: var(--hh-success-light);
|
|
color: var(--hh-success);
|
|
}
|
|
|
|
.hh-modal-icon.danger {
|
|
background: var(--hh-danger-light);
|
|
color: var(--hh-danger);
|
|
}
|
|
|
|
.hh-modal-icon.warning {
|
|
background: var(--hh-warning-light);
|
|
color: var(--hh-warning);
|
|
}
|
|
|
|
.hh-modal-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--hh-gray-800);
|
|
margin: 0;
|
|
}
|
|
|
|
.hh-modal-body {
|
|
padding: var(--hh-space-6);
|
|
overflow-y: auto;
|
|
max-height: calc(90vh - 12rem);
|
|
}
|
|
|
|
.hh-modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--hh-space-3);
|
|
padding: var(--hh-space-4) var(--hh-space-6);
|
|
border-top: 1px solid var(--hh-gray-100);
|
|
background: var(--hh-gray-50);
|
|
}
|
|
|
|
/* ============================================
|
|
TABS
|
|
============================================ */
|
|
.hh-tabs {
|
|
display: flex;
|
|
border-bottom: 2px solid var(--hh-gray-200);
|
|
margin-bottom: var(--hh-space-6);
|
|
}
|
|
|
|
.hh-tab {
|
|
padding: var(--hh-space-3) var(--hh-space-5);
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
color: var(--hh-gray-500);
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 3px solid transparent;
|
|
margin-bottom: -2px;
|
|
cursor: pointer;
|
|
transition: all var(--hh-transition-fast);
|
|
}
|
|
|
|
.hh-tab:hover {
|
|
color: var(--hh-gray-700);
|
|
}
|
|
|
|
.hh-tab.active {
|
|
color: var(--hh-navy);
|
|
border-bottom-color: var(--hh-navy);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ============================================
|
|
ALERTS/FLASH MESSAGES
|
|
============================================ */
|
|
.hh-alert {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--hh-space-3);
|
|
padding: var(--hh-space-4);
|
|
border-radius: var(--hh-radius-lg);
|
|
margin-bottom: var(--hh-space-5);
|
|
}
|
|
|
|
.hh-alert-success {
|
|
background: var(--hh-success-light);
|
|
color: var(--hh-success-text);
|
|
border: 1px solid #a7f3d0;
|
|
}
|
|
|
|
.hh-alert-warning {
|
|
background: var(--hh-warning-light);
|
|
color: var(--hh-warning-text);
|
|
border: 1px solid #fde68a;
|
|
}
|
|
|
|
.hh-alert-danger {
|
|
background: var(--hh-danger-light);
|
|
color: var(--hh-danger-text);
|
|
border: 1px solid #fecaca;
|
|
}
|
|
|
|
.hh-alert-info {
|
|
background: var(--hh-info-light);
|
|
color: var(--hh-info-text);
|
|
border: 1px solid #bfdbfe;
|
|
}
|
|
|
|
.hh-alert-icon {
|
|
flex-shrink: 0;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
}
|
|
|
|
.hh-alert-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.hh-alert-close {
|
|
flex-shrink: 0;
|
|
background: none;
|
|
border: none;
|
|
color: currentColor;
|
|
opacity: 0.6;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.hh-alert-close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ============================================
|
|
BREADCRUMBS
|
|
============================================ */
|
|
.hh-breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--hh-space-2);
|
|
margin-bottom: var(--hh-space-5);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hh-breadcrumb-item {
|
|
color: var(--hh-gray-500);
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--hh-space-2);
|
|
}
|
|
|
|
.hh-breadcrumb-item:hover {
|
|
color: var(--hh-navy);
|
|
}
|
|
|
|
.hh-breadcrumb-item.active {
|
|
color: var(--hh-gray-700);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hh-breadcrumb-separator {
|
|
color: var(--hh-gray-300);
|
|
}
|
|
|
|
/* ============================================
|
|
STAT CARDS / KPI WIDGETS
|
|
============================================ */
|
|
.hh-stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: var(--hh-space-5);
|
|
margin-bottom: var(--hh-space-6);
|
|
}
|
|
|
|
.hh-stat-card {
|
|
background: var(--hh-white);
|
|
border: 1px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-xl);
|
|
padding: var(--hh-space-5);
|
|
box-shadow: var(--hh-shadow-sm);
|
|
transition: box-shadow var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-stat-card:hover {
|
|
box-shadow: var(--hh-shadow-md);
|
|
}
|
|
|
|
.hh-stat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--hh-space-3);
|
|
}
|
|
|
|
.hh-stat-label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--hh-gray-500);
|
|
}
|
|
|
|
.hh-stat-icon {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
border-radius: var(--hh-radius-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hh-stat-icon.blue {
|
|
background: var(--hh-light);
|
|
color: var(--hh-navy);
|
|
}
|
|
|
|
.hh-stat-icon.green {
|
|
background: #d1fae5;
|
|
color: #059669;
|
|
}
|
|
|
|
.hh-stat-icon.yellow {
|
|
background: #fef3c7;
|
|
color: #d97706;
|
|
}
|
|
|
|
.hh-stat-icon.red {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.hh-stat-value {
|
|
font-size: 1.875rem;
|
|
font-weight: 700;
|
|
color: var(--hh-gray-800);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.hh-stat-change {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--hh-space-1);
|
|
margin-top: var(--hh-space-2);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hh-stat-change.positive {
|
|
color: var(--hh-success);
|
|
}
|
|
|
|
.hh-stat-change.negative {
|
|
color: var(--hh-danger);
|
|
}
|
|
|
|
/* ============================================
|
|
FILTER PANEL
|
|
============================================ */
|
|
.hh-filter-panel {
|
|
background: var(--hh-white);
|
|
border: 1px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-xl);
|
|
padding: var(--hh-space-5);
|
|
margin-bottom: var(--hh-space-6);
|
|
}
|
|
|
|
.hh-filter-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: var(--hh-space-4);
|
|
}
|
|
|
|
.hh-filter-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--hh-space-3);
|
|
margin-top: var(--hh-space-4);
|
|
padding-top: var(--hh-space-4);
|
|
border-top: 1px solid var(--hh-gray-100);
|
|
}
|
|
|
|
/* ============================================
|
|
SEARCH INPUT
|
|
============================================ */
|
|
.hh-search-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.hh-search-icon {
|
|
position: absolute;
|
|
left: var(--hh-space-3);
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--hh-gray-400);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hh-search-input {
|
|
width: 100%;
|
|
padding: var(--hh-space-3) var(--hh-space-4) var(--hh-space-3) var(--hh-space-10);
|
|
border: 2px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-lg);
|
|
font-size: 0.95rem;
|
|
transition: all var(--hh-transition-normal);
|
|
}
|
|
|
|
.hh-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--hh-blue);
|
|
box-shadow: 0 0 0 4px rgba(0, 123, 189, 0.1);
|
|
}
|
|
|
|
/* Header search variant (dark background) */
|
|
.hh-search-header {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
color: white;
|
|
}
|
|
|
|
.hh-search-header::placeholder {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.hh-search-header:focus {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* ============================================
|
|
ACTION BUTTONS (Edit/Delete/View)
|
|
============================================ */
|
|
.hh-action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
color: var(--hh-gray-400);
|
|
background: none;
|
|
border: none;
|
|
border-radius: var(--hh-radius-md);
|
|
cursor: pointer;
|
|
transition: all var(--hh-transition-fast);
|
|
}
|
|
|
|
.hh-action-btn:hover {
|
|
color: var(--hh-navy);
|
|
background: var(--hh-light);
|
|
}
|
|
|
|
.hh-action-btn.danger:hover {
|
|
color: var(--hh-danger);
|
|
background: var(--hh-danger-light);
|
|
}
|
|
|
|
/* Dropdown menu for actions */
|
|
.hh-dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.hh-dropdown-menu {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 100%;
|
|
margin-top: var(--hh-space-1);
|
|
background: var(--hh-white);
|
|
border: 1px solid var(--hh-gray-200);
|
|
border-radius: var(--hh-radius-lg);
|
|
box-shadow: var(--hh-shadow-lg);
|
|
min-width: 12rem;
|
|
z-index: 50;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-0.5rem);
|
|
transition: all var(--hh-transition-fast);
|
|
}
|
|
|
|
.hh-dropdown.active .hh-dropdown-menu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.hh-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--hh-space-3);
|
|
padding: var(--hh-space-3) var(--hh-space-4);
|
|
color: var(--hh-gray-700);
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
transition: background var(--hh-transition-fast);
|
|
}
|
|
|
|
.hh-dropdown-item:hover {
|
|
background: var(--hh-gray-50);
|
|
}
|
|
|
|
.hh-dropdown-item.danger {
|
|
color: var(--hh-danger);
|
|
}
|
|
|
|
.hh-dropdown-item.danger:hover {
|
|
background: var(--hh-danger-light);
|
|
}
|
|
|
|
.hh-dropdown-divider {
|
|
height: 1px;
|
|
background: var(--hh-gray-200);
|
|
margin: var(--hh-space-2) 0;
|
|
}
|
|
|
|
/* ============================================
|
|
EMPTY STATE
|
|
============================================ */
|
|
.hh-empty-state {
|
|
text-align: center;
|
|
padding: var(--hh-space-12) var(--hh-space-6);
|
|
}
|
|
|
|
.hh-empty-state-icon {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
margin: 0 auto var(--hh-space-4);
|
|
color: var(--hh-gray-300);
|
|
}
|
|
|
|
.hh-empty-state-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--hh-gray-700);
|
|
margin-bottom: var(--hh-space-2);
|
|
}
|
|
|
|
.hh-empty-state-text {
|
|
color: var(--hh-gray-500);
|
|
margin-bottom: var(--hh-space-6);
|
|
max-width: 24rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* ============================================
|
|
LOADING STATES
|
|
============================================ */
|
|
.hh-loading {
|
|
display: inline-block;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
border: 2px solid var(--hh-gray-200);
|
|
border-top-color: var(--hh-navy);
|
|
border-radius: 50%;
|
|
animation: hh-spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes hh-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.hh-skeleton {
|
|
background: linear-gradient(90deg, var(--hh-gray-100) 25%, var(--hh-gray-200) 50%, var(--hh-gray-100) 75%);
|
|
background-size: 200% 100%;
|
|
animation: hh-skeleton-loading 1.5s infinite;
|
|
border-radius: var(--hh-radius-md);
|
|
}
|
|
|
|
@keyframes hh-skeleton-loading {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
UTILITY CLASSES
|
|
============================================ */
|
|
.hh-text-truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hh-visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* Focus visible for accessibility */
|
|
.hh-focus-visible:focus-visible {
|
|
outline: 2px solid var(--hh-navy);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* ============================================
|
|
ANIMATIONS
|
|
============================================ */
|
|
@keyframes hh-spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.animate-spin {
|
|
animation: hh-spin 1s linear infinite;
|
|
}
|
|
|
|
/* Print styles */
|
|
@media print {
|
|
.hh-no-print {
|
|
display: none !important;
|
|
}
|
|
}
|