FASE 7e: CSS Inline Extraction + Minificación
- Extraído CSS inline de 15 templates POS + 13 templates Dashboard - CSS movido a archivos .css externos en pos/static/css/ y dashboard/ - Generados .min.css vía minify-assets.sh - Nginx auto-serve transparente para .min.css - Tests: 73/73 pasando - Script: scripts/extract-inline-css.py
This commit is contained in:
19
.gitignore
vendored
19
.gitignore
vendored
@@ -43,6 +43,21 @@ Thumbs.db
|
||||
# Local configuration
|
||||
.claude/
|
||||
*.local.json
|
||||
.env
|
||||
.env.local
|
||||
.env.production
|
||||
|
||||
# Secrets
|
||||
*.pem
|
||||
*.key
|
||||
|
||||
# POS static uploads
|
||||
pos/static/images/parts/
|
||||
|
||||
# SQLite databases
|
||||
*.db
|
||||
*.db-shm
|
||||
*.db-wal
|
||||
|
||||
# Temporary files
|
||||
*.tmp
|
||||
@@ -54,6 +69,10 @@ Thumbs.db
|
||||
|
||||
# Data files (TecDoc downloads, too large for git)
|
||||
data/
|
||||
vehicle_database/
|
||||
CapturasWeb/
|
||||
.pytest_cache/
|
||||
node_modules/
|
||||
|
||||
# SQLite WAL files
|
||||
*.db-shm
|
||||
|
||||
18
config.py
18
config.py
@@ -4,10 +4,12 @@ Central configuration for Nexus Autoparts.
|
||||
import os
|
||||
|
||||
# Database
|
||||
DB_URL = os.environ.get(
|
||||
"DATABASE_URL",
|
||||
"postgresql://nexus:nexus_autoparts_2026@localhost/nexus_autoparts"
|
||||
)
|
||||
DB_URL = os.environ.get("DATABASE_URL")
|
||||
if not DB_URL:
|
||||
raise ValueError(
|
||||
"DATABASE_URL environment variable is required. "
|
||||
"Example: postgresql://user:pass@localhost/nexus_autoparts"
|
||||
)
|
||||
|
||||
# Legacy SQLite path (used only by migration script)
|
||||
SQLITE_PATH = os.path.join(
|
||||
@@ -16,7 +18,13 @@ SQLITE_PATH = os.path.join(
|
||||
)
|
||||
|
||||
# JWT Authentication
|
||||
JWT_SECRET = os.environ.get("JWT_SECRET", "nexus-saas-secret-change-in-prod-2026")
|
||||
JWT_SECRET = os.environ.get("JWT_SECRET")
|
||||
if not JWT_SECRET:
|
||||
raise ValueError(
|
||||
"JWT_SECRET environment variable is required. "
|
||||
"Generate one with: python3 -c 'import secrets; print(secrets.token_hex(32))'"
|
||||
)
|
||||
|
||||
JWT_ACCESS_EXPIRES = 900 # 15 minutes
|
||||
JWT_REFRESH_EXPIRES = 2592000 # 30 days
|
||||
|
||||
|
||||
585
dashboard/admin.css
Normal file
585
dashboard/admin.css
Normal file
@@ -0,0 +1,585 @@
|
||||
/* Extracted from admin.html */
|
||||
|
||||
/* Admin-specific variable overrides */
|
||||
:root {
|
||||
--text-secondary: #8888aa;
|
||||
--success: #00d68f;
|
||||
--warning: #ffaa00;
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.container {
|
||||
display: flex;
|
||||
min-height: calc(100vh - 60px);
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
background: var(--bg-secondary);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 1rem 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-section {
|
||||
padding: 0.5rem 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-section h3 {
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.sidebar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
|
||||
.sidebar-item:hover {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sidebar-item.active {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--accent);
|
||||
border-left-color: var(--accent);
|
||||
}
|
||||
|
||||
.sidebar-item .icon {
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: 2rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.page-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.table-wrapper {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
tr:hover td {
|
||||
background: rgba(255, 107, 53, 0.05);
|
||||
}
|
||||
|
||||
.actions-cell {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Forms - admin-specific */
|
||||
select.form-input {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
textarea.form-input {
|
||||
min-height: 100px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Modal */
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 1000;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding: 2rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-overlay.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* File Upload */
|
||||
.file-upload {
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.file-upload:hover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 107, 53, 0.05);
|
||||
}
|
||||
|
||||
.file-upload.dragover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 107, 53, 0.1);
|
||||
}
|
||||
|
||||
.file-upload input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.file-upload-icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.file-upload-text {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.file-upload-text strong {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Stats Grid */
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* Badge */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-economy { background: #444; color: #ccc; }
|
||||
.badge-standard { background: #2a5a2a; color: #7fff7f; }
|
||||
.badge-premium { background: #5a5a2a; color: #ffff7f; }
|
||||
.badge-oem { background: #2a2a5a; color: #7f7fff; }
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.pagination button {
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pagination button:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.pagination button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pagination button.active {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
/* Search */
|
||||
.search-box {
|
||||
position: relative;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.search-box::before {
|
||||
content: "🔍";
|
||||
position: absolute;
|
||||
left: 0.75rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Tab navigation */
|
||||
.tab-nav {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
border-radius: 8px 8px 0 0;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.tab-btn.active {
|
||||
color: var(--accent);
|
||||
background: var(--bg-tertiary);
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Hidden sections */
|
||||
.admin-section {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-section.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Loading */
|
||||
.loading {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Image Upload */
|
||||
.image-upload-container {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.image-preview {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background: var(--bg-tertiary);
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.image-preview img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.image-placeholder {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image-upload-actions {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.image-upload-actions input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.part-thumbnail {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
/* Bulk Parts Selector */
|
||||
.bulk-parts-container {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.bulk-part-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.bulk-part-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.bulk-part-item:hover {
|
||||
background: var(--bg-hover, rgba(255, 107, 53, 0.1));
|
||||
}
|
||||
|
||||
.bulk-part-item.selected {
|
||||
background: rgba(0, 214, 143, 0.15);
|
||||
border-color: var(--success);
|
||||
}
|
||||
|
||||
.bulk-part-item input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.bulk-part-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bulk-part-number {
|
||||
font-family: monospace;
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.bulk-part-name {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.bulk-part-group {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.bulk-part-qty {
|
||||
width: 60px;
|
||||
}
|
||||
@@ -6,592 +6,7 @@
|
||||
<title>Admin Panel - Nexus Autoparts</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/shared.css">
|
||||
<style>
|
||||
/* Admin-specific variable overrides */
|
||||
:root {
|
||||
--text-secondary: #8888aa;
|
||||
--success: #00d68f;
|
||||
--warning: #ffaa00;
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.container {
|
||||
display: flex;
|
||||
min-height: calc(100vh - 60px);
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
background: var(--bg-secondary);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 1rem 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-section {
|
||||
padding: 0.5rem 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-section h3 {
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.sidebar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
|
||||
.sidebar-item:hover {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sidebar-item.active {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--accent);
|
||||
border-left-color: var(--accent);
|
||||
}
|
||||
|
||||
.sidebar-item .icon {
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: 2rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.page-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.table-wrapper {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
tr:hover td {
|
||||
background: rgba(255, 107, 53, 0.05);
|
||||
}
|
||||
|
||||
.actions-cell {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Forms - admin-specific */
|
||||
select.form-input {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
textarea.form-input {
|
||||
min-height: 100px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Modal */
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 1000;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding: 2rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-overlay.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* File Upload */
|
||||
.file-upload {
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.file-upload:hover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 107, 53, 0.05);
|
||||
}
|
||||
|
||||
.file-upload.dragover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 107, 53, 0.1);
|
||||
}
|
||||
|
||||
.file-upload input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.file-upload-icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.file-upload-text {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.file-upload-text strong {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Stats Grid */
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* Badge */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-economy { background: #444; color: #ccc; }
|
||||
.badge-standard { background: #2a5a2a; color: #7fff7f; }
|
||||
.badge-premium { background: #5a5a2a; color: #ffff7f; }
|
||||
.badge-oem { background: #2a2a5a; color: #7f7fff; }
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.pagination button {
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pagination button:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.pagination button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pagination button.active {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
/* Search */
|
||||
.search-box {
|
||||
position: relative;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.search-box::before {
|
||||
content: "🔍";
|
||||
position: absolute;
|
||||
left: 0.75rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Tab navigation */
|
||||
.tab-nav {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
border-radius: 8px 8px 0 0;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.tab-btn.active {
|
||||
color: var(--accent);
|
||||
background: var(--bg-tertiary);
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Hidden sections */
|
||||
.admin-section {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-section.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Loading */
|
||||
.loading {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Image Upload */
|
||||
.image-upload-container {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.image-preview {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background: var(--bg-tertiary);
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.image-preview img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.image-placeholder {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image-upload-actions {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.image-upload-actions input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.part-thumbnail {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
/* Bulk Parts Selector */
|
||||
.bulk-parts-container {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.bulk-part-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.bulk-part-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.bulk-part-item:hover {
|
||||
background: var(--bg-hover, rgba(255, 107, 53, 0.1));
|
||||
}
|
||||
|
||||
.bulk-part-item.selected {
|
||||
background: rgba(0, 214, 143, 0.15);
|
||||
border-color: var(--success);
|
||||
}
|
||||
|
||||
.bulk-part-item input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.bulk-part-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bulk-part-number {
|
||||
font-family: monospace;
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.bulk-part-name {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.bulk-part-group {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.bulk-part-qty {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<link rel="stylesheet" href="admin.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Shared Navigation -->
|
||||
|
||||
585
dashboard/admin.min.css
vendored
Normal file
585
dashboard/admin.min.css
vendored
Normal file
@@ -0,0 +1,585 @@
|
||||
/* Extracted from admin.html */
|
||||
|
||||
/* Admin-specific variable overrides */
|
||||
:root {
|
||||
--text-secondary: #8888aa;
|
||||
--success: #00d68f;
|
||||
--warning: #ffaa00;
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.container {
|
||||
display: flex;
|
||||
min-height: calc(100vh - 60px);
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
background: var(--bg-secondary);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 1rem 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-section {
|
||||
padding: 0.5rem 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-section h3 {
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.sidebar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
|
||||
.sidebar-item:hover {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sidebar-item.active {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--accent);
|
||||
border-left-color: var(--accent);
|
||||
}
|
||||
|
||||
.sidebar-item .icon {
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: 2rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.page-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.table-wrapper {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
tr:hover td {
|
||||
background: rgba(255, 107, 53, 0.05);
|
||||
}
|
||||
|
||||
.actions-cell {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Forms - admin-specific */
|
||||
select.form-input {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
textarea.form-input {
|
||||
min-height: 100px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Modal */
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 1000;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding: 2rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-overlay.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* File Upload */
|
||||
.file-upload {
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.file-upload:hover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 107, 53, 0.05);
|
||||
}
|
||||
|
||||
.file-upload.dragover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 107, 53, 0.1);
|
||||
}
|
||||
|
||||
.file-upload input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.file-upload-icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.file-upload-text {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.file-upload-text strong {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Stats Grid */
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* Badge */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-economy { background: #444; color: #ccc; }
|
||||
.badge-standard { background: #2a5a2a; color: #7fff7f; }
|
||||
.badge-premium { background: #5a5a2a; color: #ffff7f; }
|
||||
.badge-oem { background: #2a2a5a; color: #7f7fff; }
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.pagination button {
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pagination button:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.pagination button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pagination button.active {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
/* Search */
|
||||
.search-box {
|
||||
position: relative;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.search-box::before {
|
||||
content: "🔍";
|
||||
position: absolute;
|
||||
left: 0.75rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Tab navigation */
|
||||
.tab-nav {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
border-radius: 8px 8px 0 0;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.tab-btn.active {
|
||||
color: var(--accent);
|
||||
background: var(--bg-tertiary);
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Hidden sections */
|
||||
.admin-section {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-section.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Loading */
|
||||
.loading {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Image Upload */
|
||||
.image-upload-container {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.image-preview {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background: var(--bg-tertiary);
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.image-preview img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.image-placeholder {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image-upload-actions {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.image-upload-actions input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.part-thumbnail {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
/* Bulk Parts Selector */
|
||||
.bulk-parts-container {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.bulk-part-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.bulk-part-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.bulk-part-item:hover {
|
||||
background: var(--bg-hover, rgba(255, 107, 53, 0.1));
|
||||
}
|
||||
|
||||
.bulk-part-item.selected {
|
||||
background: rgba(0, 214, 143, 0.15);
|
||||
border-color: var(--success);
|
||||
}
|
||||
|
||||
.bulk-part-item input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.bulk-part-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bulk-part-number {
|
||||
font-family: monospace;
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.bulk-part-name {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.bulk-part-group {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.bulk-part-qty {
|
||||
width: 60px;
|
||||
}
|
||||
537
dashboard/catalog-public.css
Normal file
537
dashboard/catalog-public.css
Normal file
@@ -0,0 +1,537 @@
|
||||
/* Extracted from catalog-public.html */
|
||||
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; scrollbar-width: none; }
|
||||
html::-webkit-scrollbar { width: 0; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
line-height: var(--leading-body);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
a { color: var(--color-text-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ==========================================================================
|
||||
HEADER — Glassmorphism sticky (matches landing)
|
||||
========================================================================== */
|
||||
|
||||
.site-header {
|
||||
position: sticky; top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.site-header .inner {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
height: 56px;
|
||||
}
|
||||
.logo {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.logo::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -3px; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: var(--gradient-accent);
|
||||
border-radius: 1px;
|
||||
opacity: 0.5;
|
||||
filter: blur(1px);
|
||||
}
|
||||
.header-right { display: flex; gap: var(--space-3); align-items: center; }
|
||||
|
||||
/* ── Catalog mode toggle (OEM / Local) ── */
|
||||
.mode-toggle {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
gap: 2px;
|
||||
}
|
||||
.mode-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
padding: 4px 12px;
|
||||
border-radius: calc(var(--radius-md) - 3px);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s var(--ease-out);
|
||||
}
|
||||
.mode-toggle button:hover {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.mode-toggle button.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: transparent;
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer; font-size: 1rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.header-back {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.header-back:hover { color: var(--color-text-accent); text-decoration: none; }
|
||||
|
||||
/* ==========================================================================
|
||||
SEARCH BAR — Glass style
|
||||
========================================================================== */
|
||||
|
||||
.search-bar {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
}
|
||||
.search-wrapper {
|
||||
display: flex; gap: var(--space-2);
|
||||
}
|
||||
.search-wrapper input {
|
||||
flex: 1;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
outline: none;
|
||||
transition: all 0.25s var(--ease-out);
|
||||
}
|
||||
.search-wrapper input:focus {
|
||||
border-color: var(--color-border-focus);
|
||||
box-shadow: 0 0 0 3px var(--glow-color-soft), 0 0 20px var(--glow-color-soft);
|
||||
}
|
||||
.search-wrapper input::placeholder { color: var(--color-text-muted); }
|
||||
|
||||
/* 3D search button */
|
||||
.search-wrapper button {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background: var(--gradient-accent);
|
||||
color: var(--btn-primary-text);
|
||||
border: none; border-radius: var(--radius-md);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
transition: all 0.25s var(--ease-out);
|
||||
box-shadow: 0 3px 0 var(--color-primary-active),
|
||||
0 4px 10px var(--glow-color-soft);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.search-wrapper button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 0 var(--color-primary-active),
|
||||
0 8px 20px var(--glow-color);
|
||||
}
|
||||
.search-wrapper button:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: 0 1px 0 var(--color-primary-active);
|
||||
}
|
||||
/* Shimmer */
|
||||
.search-wrapper button::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: -100%; width: 60%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.search-wrapper button:hover::after { left: 120%; }
|
||||
|
||||
/* ==========================================================================
|
||||
REGION BAR — Glass pills
|
||||
========================================================================== */
|
||||
|
||||
.region-bar {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
padding: var(--space-2) 0;
|
||||
}
|
||||
.region-inner {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
|
||||
}
|
||||
.region-label {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest); margin-right: var(--space-2);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.region-btn {
|
||||
background: transparent;
|
||||
border: 1px dashed var(--glass-border);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
font-size: var(--text-caption);
|
||||
font-family: var(--font-body);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.region-btn:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.region-btn.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
border-color: var(--color-border-accent);
|
||||
border-style: solid;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
BREADCRUMB
|
||||
========================================================================== */
|
||||
|
||||
.breadcrumb {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-2) var(--space-6);
|
||||
display: flex; flex-wrap: wrap; gap: var(--space-1);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.breadcrumb a { color: var(--color-text-accent); }
|
||||
.breadcrumb .sep { margin: 0 var(--space-1); color: var(--color-text-muted); opacity: 0.4; }
|
||||
|
||||
/* ==========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================== */
|
||||
|
||||
.main {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-4) var(--space-6) var(--space-16);
|
||||
}
|
||||
.main h2 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h3);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
margin-bottom: var(--space-6);
|
||||
letter-spacing: var(--heading-tracking-h3);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
NAV GRID — Glass cards for brands/models/years/engines/categories/groups
|
||||
========================================================================== */
|
||||
|
||||
.nav-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
.nav-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s var(--ease-out);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* Top accent line on hover */
|
||||
.nav-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: var(--gradient-accent);
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
transition: transform 0.3s var(--ease-out);
|
||||
}
|
||||
.nav-card:hover::before { transform: scaleX(1); }
|
||||
.nav-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.nav-card .name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.nav-card .count {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
PARTS LIST — Glass rows with glow
|
||||
========================================================================== */
|
||||
|
||||
.parts-list { display: flex; flex-direction: column; gap: var(--space-3); }
|
||||
.part-row {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: var(--space-3);
|
||||
transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.part-row:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* Local-mode priority highlights */
|
||||
.part-row--tier1 {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft);
|
||||
}
|
||||
.part-manu {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 3px 10px; margin-bottom: var(--space-2);
|
||||
background: var(--color-primary-muted);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
color: var(--color-text-accent);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.part-row--tier2 .part-manu {
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.part-manu .manu-tier { color: var(--color-primary); font-size: 13px; }
|
||||
.part-oem-sub { color: var(--color-text-muted); font-weight: var(--font-weight-regular); font-size: var(--text-caption); }
|
||||
|
||||
.part-stock {
|
||||
display: inline-block;
|
||||
margin-top: var(--space-2);
|
||||
padding: 2px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.part-stock--yes { background: rgba(63,185,80,0.15); color: #3FB950; border: 1px solid rgba(63,185,80,0.3); }
|
||||
.part-stock--no { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px dashed var(--glass-border); }
|
||||
.part-name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.part-oem {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.part-desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.part-alts {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
margin-top: var(--space-2);
|
||||
}
|
||||
.part-alts span {
|
||||
display: inline-block;
|
||||
background: var(--color-primary-muted);
|
||||
padding: 2px var(--space-2);
|
||||
border-radius: var(--radius-sm);
|
||||
margin-right: var(--space-1);
|
||||
margin-bottom: var(--space-1);
|
||||
font-family: var(--font-mono);
|
||||
border: 1px dashed var(--glass-border);
|
||||
}
|
||||
.part-img {
|
||||
width: 80px; height: 80px;
|
||||
object-fit: contain;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
}
|
||||
.part-detail-btn {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-accent);
|
||||
cursor: pointer;
|
||||
border: none; background: none; font-family: var(--font-body);
|
||||
padding: var(--space-1) 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.part-detail-btn:hover { text-decoration: underline; }
|
||||
|
||||
/* ==========================================================================
|
||||
PAGINATION — Glass buttons
|
||||
========================================================================== */
|
||||
|
||||
.pagination {
|
||||
display: flex; justify-content: center; gap: var(--space-2);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
.pagination button {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
cursor: pointer; font-family: var(--font-body);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.pagination button:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.pagination button.active {
|
||||
background: var(--gradient-accent);
|
||||
color: var(--btn-primary-text);
|
||||
border-color: transparent;
|
||||
box-shadow: 0 3px 0 var(--color-primary-active),
|
||||
0 4px 12px var(--glow-color-soft);
|
||||
}
|
||||
.pagination button:disabled { opacity: .4; cursor: default; }
|
||||
|
||||
/* ==========================================================================
|
||||
SEARCH RESULTS
|
||||
========================================================================== */
|
||||
|
||||
.search-results { display: flex; flex-direction: column; gap: var(--space-3); }
|
||||
|
||||
/* ==========================================================================
|
||||
PART DETAIL MODAL — Glass overlay
|
||||
========================================================================== */
|
||||
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed; inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
z-index: var(--z-modal);
|
||||
justify-content: center; align-items: flex-start;
|
||||
padding: var(--space-10) var(--space-4);
|
||||
overflow-y: auto;
|
||||
backdrop-filter: blur(4px);
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
}
|
||||
.modal-overlay.open { display: flex; }
|
||||
.modal-content {
|
||||
background: var(--glass-bg-strong);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: 700px; width: 100%;
|
||||
padding: var(--space-8);
|
||||
position: relative;
|
||||
box-shadow: 0 24px 48px rgba(0,0,0,0.3);
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-3);
|
||||
background: none; border: none; color: var(--color-text-muted);
|
||||
font-size: 1.5rem; cursor: pointer; line-height: 1;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.modal-close:hover { color: var(--color-text-accent); }
|
||||
.detail-section { margin-top: var(--space-6); }
|
||||
.detail-section h4 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h6);
|
||||
font-weight: var(--heading-weight-secondary);
|
||||
margin-bottom: var(--space-3);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.alt-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
.alt-table th, .alt-table td {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.alt-table th {
|
||||
color: var(--color-text-muted);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
font-size: var(--text-caption);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
LOADING / EMPTY
|
||||
========================================================================== */
|
||||
|
||||
.loading {
|
||||
text-align: center; padding: var(--space-10);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.empty {
|
||||
text-align: center; padding: var(--space-10);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
FOOTER
|
||||
========================================================================== */
|
||||
|
||||
.site-footer {
|
||||
padding: var(--space-4) 0; text-align: center;
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================== */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.nav-grid { grid-template-columns: 1fr; }
|
||||
.part-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
@@ -11,543 +11,7 @@
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="/static/css/tokens.css">
|
||||
<style>
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; scrollbar-width: none; }
|
||||
html::-webkit-scrollbar { width: 0; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
line-height: var(--leading-body);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
a { color: var(--color-text-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ==========================================================================
|
||||
HEADER — Glassmorphism sticky (matches landing)
|
||||
========================================================================== */
|
||||
|
||||
.site-header {
|
||||
position: sticky; top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.site-header .inner {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
height: 56px;
|
||||
}
|
||||
.logo {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.logo::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -3px; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: var(--gradient-accent);
|
||||
border-radius: 1px;
|
||||
opacity: 0.5;
|
||||
filter: blur(1px);
|
||||
}
|
||||
.header-right { display: flex; gap: var(--space-3); align-items: center; }
|
||||
|
||||
/* ── Catalog mode toggle (OEM / Local) ── */
|
||||
.mode-toggle {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
gap: 2px;
|
||||
}
|
||||
.mode-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
padding: 4px 12px;
|
||||
border-radius: calc(var(--radius-md) - 3px);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s var(--ease-out);
|
||||
}
|
||||
.mode-toggle button:hover {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.mode-toggle button.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: transparent;
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer; font-size: 1rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.header-back {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.header-back:hover { color: var(--color-text-accent); text-decoration: none; }
|
||||
|
||||
/* ==========================================================================
|
||||
SEARCH BAR — Glass style
|
||||
========================================================================== */
|
||||
|
||||
.search-bar {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
}
|
||||
.search-wrapper {
|
||||
display: flex; gap: var(--space-2);
|
||||
}
|
||||
.search-wrapper input {
|
||||
flex: 1;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
outline: none;
|
||||
transition: all 0.25s var(--ease-out);
|
||||
}
|
||||
.search-wrapper input:focus {
|
||||
border-color: var(--color-border-focus);
|
||||
box-shadow: 0 0 0 3px var(--glow-color-soft), 0 0 20px var(--glow-color-soft);
|
||||
}
|
||||
.search-wrapper input::placeholder { color: var(--color-text-muted); }
|
||||
|
||||
/* 3D search button */
|
||||
.search-wrapper button {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background: var(--gradient-accent);
|
||||
color: var(--btn-primary-text);
|
||||
border: none; border-radius: var(--radius-md);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
transition: all 0.25s var(--ease-out);
|
||||
box-shadow: 0 3px 0 var(--color-primary-active),
|
||||
0 4px 10px var(--glow-color-soft);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.search-wrapper button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 0 var(--color-primary-active),
|
||||
0 8px 20px var(--glow-color);
|
||||
}
|
||||
.search-wrapper button:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: 0 1px 0 var(--color-primary-active);
|
||||
}
|
||||
/* Shimmer */
|
||||
.search-wrapper button::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: -100%; width: 60%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.search-wrapper button:hover::after { left: 120%; }
|
||||
|
||||
/* ==========================================================================
|
||||
REGION BAR — Glass pills
|
||||
========================================================================== */
|
||||
|
||||
.region-bar {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
padding: var(--space-2) 0;
|
||||
}
|
||||
.region-inner {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
|
||||
}
|
||||
.region-label {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest); margin-right: var(--space-2);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.region-btn {
|
||||
background: transparent;
|
||||
border: 1px dashed var(--glass-border);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
font-size: var(--text-caption);
|
||||
font-family: var(--font-body);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.region-btn:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.region-btn.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
border-color: var(--color-border-accent);
|
||||
border-style: solid;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
BREADCRUMB
|
||||
========================================================================== */
|
||||
|
||||
.breadcrumb {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-2) var(--space-6);
|
||||
display: flex; flex-wrap: wrap; gap: var(--space-1);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.breadcrumb a { color: var(--color-text-accent); }
|
||||
.breadcrumb .sep { margin: 0 var(--space-1); color: var(--color-text-muted); opacity: 0.4; }
|
||||
|
||||
/* ==========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================== */
|
||||
|
||||
.main {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-4) var(--space-6) var(--space-16);
|
||||
}
|
||||
.main h2 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h3);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
margin-bottom: var(--space-6);
|
||||
letter-spacing: var(--heading-tracking-h3);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
NAV GRID — Glass cards for brands/models/years/engines/categories/groups
|
||||
========================================================================== */
|
||||
|
||||
.nav-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
.nav-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s var(--ease-out);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* Top accent line on hover */
|
||||
.nav-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: var(--gradient-accent);
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
transition: transform 0.3s var(--ease-out);
|
||||
}
|
||||
.nav-card:hover::before { transform: scaleX(1); }
|
||||
.nav-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.nav-card .name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.nav-card .count {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
PARTS LIST — Glass rows with glow
|
||||
========================================================================== */
|
||||
|
||||
.parts-list { display: flex; flex-direction: column; gap: var(--space-3); }
|
||||
.part-row {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: var(--space-3);
|
||||
transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.part-row:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* Local-mode priority highlights */
|
||||
.part-row--tier1 {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft);
|
||||
}
|
||||
.part-manu {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 3px 10px; margin-bottom: var(--space-2);
|
||||
background: var(--color-primary-muted);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
color: var(--color-text-accent);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.part-row--tier2 .part-manu {
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.part-manu .manu-tier { color: var(--color-primary); font-size: 13px; }
|
||||
.part-oem-sub { color: var(--color-text-muted); font-weight: var(--font-weight-regular); font-size: var(--text-caption); }
|
||||
|
||||
.part-stock {
|
||||
display: inline-block;
|
||||
margin-top: var(--space-2);
|
||||
padding: 2px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.part-stock--yes { background: rgba(63,185,80,0.15); color: #3FB950; border: 1px solid rgba(63,185,80,0.3); }
|
||||
.part-stock--no { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px dashed var(--glass-border); }
|
||||
.part-name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.part-oem {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.part-desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.part-alts {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
margin-top: var(--space-2);
|
||||
}
|
||||
.part-alts span {
|
||||
display: inline-block;
|
||||
background: var(--color-primary-muted);
|
||||
padding: 2px var(--space-2);
|
||||
border-radius: var(--radius-sm);
|
||||
margin-right: var(--space-1);
|
||||
margin-bottom: var(--space-1);
|
||||
font-family: var(--font-mono);
|
||||
border: 1px dashed var(--glass-border);
|
||||
}
|
||||
.part-img {
|
||||
width: 80px; height: 80px;
|
||||
object-fit: contain;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
}
|
||||
.part-detail-btn {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-accent);
|
||||
cursor: pointer;
|
||||
border: none; background: none; font-family: var(--font-body);
|
||||
padding: var(--space-1) 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.part-detail-btn:hover { text-decoration: underline; }
|
||||
|
||||
/* ==========================================================================
|
||||
PAGINATION — Glass buttons
|
||||
========================================================================== */
|
||||
|
||||
.pagination {
|
||||
display: flex; justify-content: center; gap: var(--space-2);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
.pagination button {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
cursor: pointer; font-family: var(--font-body);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.pagination button:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.pagination button.active {
|
||||
background: var(--gradient-accent);
|
||||
color: var(--btn-primary-text);
|
||||
border-color: transparent;
|
||||
box-shadow: 0 3px 0 var(--color-primary-active),
|
||||
0 4px 12px var(--glow-color-soft);
|
||||
}
|
||||
.pagination button:disabled { opacity: .4; cursor: default; }
|
||||
|
||||
/* ==========================================================================
|
||||
SEARCH RESULTS
|
||||
========================================================================== */
|
||||
|
||||
.search-results { display: flex; flex-direction: column; gap: var(--space-3); }
|
||||
|
||||
/* ==========================================================================
|
||||
PART DETAIL MODAL — Glass overlay
|
||||
========================================================================== */
|
||||
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed; inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
z-index: var(--z-modal);
|
||||
justify-content: center; align-items: flex-start;
|
||||
padding: var(--space-10) var(--space-4);
|
||||
overflow-y: auto;
|
||||
backdrop-filter: blur(4px);
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
}
|
||||
.modal-overlay.open { display: flex; }
|
||||
.modal-content {
|
||||
background: var(--glass-bg-strong);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: 700px; width: 100%;
|
||||
padding: var(--space-8);
|
||||
position: relative;
|
||||
box-shadow: 0 24px 48px rgba(0,0,0,0.3);
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-3);
|
||||
background: none; border: none; color: var(--color-text-muted);
|
||||
font-size: 1.5rem; cursor: pointer; line-height: 1;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.modal-close:hover { color: var(--color-text-accent); }
|
||||
.detail-section { margin-top: var(--space-6); }
|
||||
.detail-section h4 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h6);
|
||||
font-weight: var(--heading-weight-secondary);
|
||||
margin-bottom: var(--space-3);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.alt-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
.alt-table th, .alt-table td {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.alt-table th {
|
||||
color: var(--color-text-muted);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
font-size: var(--text-caption);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
LOADING / EMPTY
|
||||
========================================================================== */
|
||||
|
||||
.loading {
|
||||
text-align: center; padding: var(--space-10);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.empty {
|
||||
text-align: center; padding: var(--space-10);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
FOOTER
|
||||
========================================================================== */
|
||||
|
||||
.site-footer {
|
||||
padding: var(--space-4) 0; text-align: center;
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================== */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.nav-grid { grid-template-columns: 1fr; }
|
||||
.part-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="catalog-public.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
537
dashboard/catalog-public.min.css
vendored
Normal file
537
dashboard/catalog-public.min.css
vendored
Normal file
@@ -0,0 +1,537 @@
|
||||
/* Extracted from catalog-public.html */
|
||||
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; scrollbar-width: none; }
|
||||
html::-webkit-scrollbar { width: 0; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
line-height: var(--leading-body);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
a { color: var(--color-text-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ==========================================================================
|
||||
HEADER — Glassmorphism sticky (matches landing)
|
||||
========================================================================== */
|
||||
|
||||
.site-header {
|
||||
position: sticky; top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.site-header .inner {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
height: 56px;
|
||||
}
|
||||
.logo {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.logo::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -3px; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: var(--gradient-accent);
|
||||
border-radius: 1px;
|
||||
opacity: 0.5;
|
||||
filter: blur(1px);
|
||||
}
|
||||
.header-right { display: flex; gap: var(--space-3); align-items: center; }
|
||||
|
||||
/* ── Catalog mode toggle (OEM / Local) ── */
|
||||
.mode-toggle {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
gap: 2px;
|
||||
}
|
||||
.mode-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
padding: 4px 12px;
|
||||
border-radius: calc(var(--radius-md) - 3px);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s var(--ease-out);
|
||||
}
|
||||
.mode-toggle button:hover {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.mode-toggle button.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: transparent;
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer; font-size: 1rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.header-back {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.header-back:hover { color: var(--color-text-accent); text-decoration: none; }
|
||||
|
||||
/* ==========================================================================
|
||||
SEARCH BAR — Glass style
|
||||
========================================================================== */
|
||||
|
||||
.search-bar {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
}
|
||||
.search-wrapper {
|
||||
display: flex; gap: var(--space-2);
|
||||
}
|
||||
.search-wrapper input {
|
||||
flex: 1;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
outline: none;
|
||||
transition: all 0.25s var(--ease-out);
|
||||
}
|
||||
.search-wrapper input:focus {
|
||||
border-color: var(--color-border-focus);
|
||||
box-shadow: 0 0 0 3px var(--glow-color-soft), 0 0 20px var(--glow-color-soft);
|
||||
}
|
||||
.search-wrapper input::placeholder { color: var(--color-text-muted); }
|
||||
|
||||
/* 3D search button */
|
||||
.search-wrapper button {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background: var(--gradient-accent);
|
||||
color: var(--btn-primary-text);
|
||||
border: none; border-radius: var(--radius-md);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
transition: all 0.25s var(--ease-out);
|
||||
box-shadow: 0 3px 0 var(--color-primary-active),
|
||||
0 4px 10px var(--glow-color-soft);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.search-wrapper button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 0 var(--color-primary-active),
|
||||
0 8px 20px var(--glow-color);
|
||||
}
|
||||
.search-wrapper button:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: 0 1px 0 var(--color-primary-active);
|
||||
}
|
||||
/* Shimmer */
|
||||
.search-wrapper button::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: -100%; width: 60%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.search-wrapper button:hover::after { left: 120%; }
|
||||
|
||||
/* ==========================================================================
|
||||
REGION BAR — Glass pills
|
||||
========================================================================== */
|
||||
|
||||
.region-bar {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
padding: var(--space-2) 0;
|
||||
}
|
||||
.region-inner {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
|
||||
}
|
||||
.region-label {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest); margin-right: var(--space-2);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.region-btn {
|
||||
background: transparent;
|
||||
border: 1px dashed var(--glass-border);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
font-size: var(--text-caption);
|
||||
font-family: var(--font-body);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.region-btn:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.region-btn.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
border-color: var(--color-border-accent);
|
||||
border-style: solid;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
BREADCRUMB
|
||||
========================================================================== */
|
||||
|
||||
.breadcrumb {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-2) var(--space-6);
|
||||
display: flex; flex-wrap: wrap; gap: var(--space-1);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.breadcrumb a { color: var(--color-text-accent); }
|
||||
.breadcrumb .sep { margin: 0 var(--space-1); color: var(--color-text-muted); opacity: 0.4; }
|
||||
|
||||
/* ==========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================== */
|
||||
|
||||
.main {
|
||||
max-width: var(--content-xl); margin: 0 auto;
|
||||
padding: var(--space-4) var(--space-6) var(--space-16);
|
||||
}
|
||||
.main h2 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h3);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
margin-bottom: var(--space-6);
|
||||
letter-spacing: var(--heading-tracking-h3);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
NAV GRID — Glass cards for brands/models/years/engines/categories/groups
|
||||
========================================================================== */
|
||||
|
||||
.nav-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
.nav-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s var(--ease-out);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* Top accent line on hover */
|
||||
.nav-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: var(--gradient-accent);
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
transition: transform 0.3s var(--ease-out);
|
||||
}
|
||||
.nav-card:hover::before { transform: scaleX(1); }
|
||||
.nav-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.nav-card .name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.nav-card .count {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
PARTS LIST — Glass rows with glow
|
||||
========================================================================== */
|
||||
|
||||
.parts-list { display: flex; flex-direction: column; gap: var(--space-3); }
|
||||
.part-row {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: var(--space-3);
|
||||
transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.part-row:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* Local-mode priority highlights */
|
||||
.part-row--tier1 {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft);
|
||||
}
|
||||
.part-manu {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 3px 10px; margin-bottom: var(--space-2);
|
||||
background: var(--color-primary-muted);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
color: var(--color-text-accent);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.part-row--tier2 .part-manu {
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.part-manu .manu-tier { color: var(--color-primary); font-size: 13px; }
|
||||
.part-oem-sub { color: var(--color-text-muted); font-weight: var(--font-weight-regular); font-size: var(--text-caption); }
|
||||
|
||||
.part-stock {
|
||||
display: inline-block;
|
||||
margin-top: var(--space-2);
|
||||
padding: 2px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.part-stock--yes { background: rgba(63,185,80,0.15); color: #3FB950; border: 1px solid rgba(63,185,80,0.3); }
|
||||
.part-stock--no { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px dashed var(--glass-border); }
|
||||
.part-name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.part-oem {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.part-desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.part-alts {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
margin-top: var(--space-2);
|
||||
}
|
||||
.part-alts span {
|
||||
display: inline-block;
|
||||
background: var(--color-primary-muted);
|
||||
padding: 2px var(--space-2);
|
||||
border-radius: var(--radius-sm);
|
||||
margin-right: var(--space-1);
|
||||
margin-bottom: var(--space-1);
|
||||
font-family: var(--font-mono);
|
||||
border: 1px dashed var(--glass-border);
|
||||
}
|
||||
.part-img {
|
||||
width: 80px; height: 80px;
|
||||
object-fit: contain;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
}
|
||||
.part-detail-btn {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-accent);
|
||||
cursor: pointer;
|
||||
border: none; background: none; font-family: var(--font-body);
|
||||
padding: var(--space-1) 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.part-detail-btn:hover { text-decoration: underline; }
|
||||
|
||||
/* ==========================================================================
|
||||
PAGINATION — Glass buttons
|
||||
========================================================================== */
|
||||
|
||||
.pagination {
|
||||
display: flex; justify-content: center; gap: var(--space-2);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
.pagination button {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
cursor: pointer; font-family: var(--font-body);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.pagination button:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.pagination button.active {
|
||||
background: var(--gradient-accent);
|
||||
color: var(--btn-primary-text);
|
||||
border-color: transparent;
|
||||
box-shadow: 0 3px 0 var(--color-primary-active),
|
||||
0 4px 12px var(--glow-color-soft);
|
||||
}
|
||||
.pagination button:disabled { opacity: .4; cursor: default; }
|
||||
|
||||
/* ==========================================================================
|
||||
SEARCH RESULTS
|
||||
========================================================================== */
|
||||
|
||||
.search-results { display: flex; flex-direction: column; gap: var(--space-3); }
|
||||
|
||||
/* ==========================================================================
|
||||
PART DETAIL MODAL — Glass overlay
|
||||
========================================================================== */
|
||||
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed; inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
z-index: var(--z-modal);
|
||||
justify-content: center; align-items: flex-start;
|
||||
padding: var(--space-10) var(--space-4);
|
||||
overflow-y: auto;
|
||||
backdrop-filter: blur(4px);
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
}
|
||||
.modal-overlay.open { display: flex; }
|
||||
.modal-content {
|
||||
background: var(--glass-bg-strong);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: 700px; width: 100%;
|
||||
padding: var(--space-8);
|
||||
position: relative;
|
||||
box-shadow: 0 24px 48px rgba(0,0,0,0.3);
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-3);
|
||||
background: none; border: none; color: var(--color-text-muted);
|
||||
font-size: 1.5rem; cursor: pointer; line-height: 1;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.modal-close:hover { color: var(--color-text-accent); }
|
||||
.detail-section { margin-top: var(--space-6); }
|
||||
.detail-section h4 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h6);
|
||||
font-weight: var(--heading-weight-secondary);
|
||||
margin-bottom: var(--space-3);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.alt-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
.alt-table th, .alt-table td {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.alt-table th {
|
||||
color: var(--color-text-muted);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
font-size: var(--text-caption);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
LOADING / EMPTY
|
||||
========================================================================== */
|
||||
|
||||
.loading {
|
||||
text-align: center; padding: var(--space-10);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body);
|
||||
}
|
||||
.empty {
|
||||
text-align: center; padding: var(--space-10);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
FOOTER
|
||||
========================================================================== */
|
||||
|
||||
.site-footer {
|
||||
padding: var(--space-4) 0; text-align: center;
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================== */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.nav-grid { grid-template-columns: 1fr; }
|
||||
.part-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
941
dashboard/customer-landing.css
Normal file
941
dashboard/customer-landing.css
Normal file
@@ -0,0 +1,941 @@
|
||||
/* Extracted from customer-landing.html */
|
||||
|
||||
/* Landing page-specific header extras */
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.search-btn, .cart-btn {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1.2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search-btn:hover, .cart-btn:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cart-badge {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -5px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--accent);
|
||||
border-radius: 50%;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Footer logo (reuses .logo classes) */
|
||||
.footer .logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer .logo-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
background: linear-gradient(135deg, var(--accent) 0%, #ff4500 100%);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
box-shadow: 0 4px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.footer .logo-text {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8rem 3rem 4rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
|
||||
radial-gradient(ellipse at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 40%);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-grid {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
|
||||
background-size: 50px 50px;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 4rem;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-text h1 span {
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 30px var(--accent-glow);
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.8;
|
||||
margin-bottom: 2.5rem;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 2px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
display: flex;
|
||||
gap: 3rem;
|
||||
margin-top: 3rem;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.hero-stat {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-stat-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero-stat-label {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
width: 500px;
|
||||
height: 400px;
|
||||
background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 8rem;
|
||||
position: relative;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.hero-image::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
left: -2px;
|
||||
right: -2px;
|
||||
bottom: -2px;
|
||||
background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
|
||||
border-radius: 22px;
|
||||
z-index: -1;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.floating-card {
|
||||
position: absolute;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.5rem;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.floating-card-1 {
|
||||
top: 20px;
|
||||
right: -20px;
|
||||
animation: float 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.floating-card-2 {
|
||||
bottom: 40px;
|
||||
left: -30px;
|
||||
animation: float 3s ease-in-out infinite 1.5s;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-10px); }
|
||||
}
|
||||
|
||||
.floating-card-text {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.floating-card-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Categories Section */
|
||||
.categories {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.section-tag {
|
||||
display: inline-block;
|
||||
padding: 0.5rem 1rem;
|
||||
background: rgba(255, 107, 53, 0.1);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 20px;
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.category-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 2rem 1rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.category-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 10px 30px var(--accent-glow);
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
background: var(--bg-hover);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2rem;
|
||||
margin: 0 auto 1rem;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.category-card:hover .category-icon {
|
||||
background: var(--accent);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.category-name {
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.category-count {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Featured Products */
|
||||
.featured {
|
||||
padding: 5rem 3rem;
|
||||
}
|
||||
|
||||
.featured-header {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto 3rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.view-all {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: gap 0.3s;
|
||||
}
|
||||
|
||||
.view-all:hover {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.product-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.product-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.product-image {
|
||||
height: 200px;
|
||||
background: var(--bg-hover);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 4rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
background: var(--accent);
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.product-badge.premium {
|
||||
background: linear-gradient(135deg, #f59e0b, #d97706);
|
||||
}
|
||||
|
||||
.product-badge.economy {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.product-wishlist {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.product-wishlist:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.product-info {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.product-category {
|
||||
font-size: 0.8rem;
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.product-oem {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
font-family: monospace;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.product-compatibility {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.product-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.product-price .original {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: line-through;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-add-cart {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.btn-add-cart:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* Brands Section */
|
||||
.brands {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.brands-grid {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.brand-item {
|
||||
width: 140px;
|
||||
height: 70px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.brand-item:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
/* VIN Section */
|
||||
.vin-section {
|
||||
padding: 5rem 3rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.vin-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
|
||||
}
|
||||
|
||||
.vin-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.vin-form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
max-width: 600px;
|
||||
margin: 2rem auto 0;
|
||||
}
|
||||
|
||||
.vin-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-family: monospace;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.vin-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.vin-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
/* CTA Section */
|
||||
.cta {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cta-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
|
||||
}
|
||||
|
||||
.cta-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.cta-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.cta-subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.cta-form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.cta-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.cta-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cta-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background: var(--bg-primary);
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 4rem 3rem 2rem;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr 1fr;
|
||||
gap: 3rem;
|
||||
}
|
||||
|
||||
.footer-brand p {
|
||||
color: var(--text-secondary);
|
||||
margin: 1rem 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.social-link {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer-links li {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
max-width: 1400px;
|
||||
margin: 3rem auto 0;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Loading skeleton */
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.5s infinite;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* Search Modal */
|
||||
.search-modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 2000;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 15vh;
|
||||
}
|
||||
|
||||
.search-modal.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.search-modal-content {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.search-modal-input {
|
||||
width: 100%;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1.1rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-modal-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.search-results {
|
||||
margin-top: 1rem;
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.search-result-item {
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.search-result-item:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.search-result-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.search-result-oem {
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Mobile menu */
|
||||
.mobile-menu-btn {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.hero-content {
|
||||
grid-template-columns: 1fr;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
margin: 0 auto 2.5rem;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.header {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-menu-btn {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 6rem 1rem 3rem;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.categories, .featured, .brands, .vin-section, .cta {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.vin-form, .cta-form {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@@ -6,947 +6,7 @@
|
||||
<title>Nexus Autoparts - Tu conexión directa con las partes que necesitas</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/shared.css">
|
||||
<style>
|
||||
/* Landing page-specific header extras */
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.search-btn, .cart-btn {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1.2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search-btn:hover, .cart-btn:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cart-badge {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -5px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--accent);
|
||||
border-radius: 50%;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Footer logo (reuses .logo classes) */
|
||||
.footer .logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer .logo-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
background: linear-gradient(135deg, var(--accent) 0%, #ff4500 100%);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
box-shadow: 0 4px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.footer .logo-text {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8rem 3rem 4rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
|
||||
radial-gradient(ellipse at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 40%);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-grid {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
|
||||
background-size: 50px 50px;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 4rem;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-text h1 span {
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 30px var(--accent-glow);
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.8;
|
||||
margin-bottom: 2.5rem;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 2px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
display: flex;
|
||||
gap: 3rem;
|
||||
margin-top: 3rem;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.hero-stat {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-stat-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero-stat-label {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
width: 500px;
|
||||
height: 400px;
|
||||
background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 8rem;
|
||||
position: relative;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.hero-image::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
left: -2px;
|
||||
right: -2px;
|
||||
bottom: -2px;
|
||||
background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
|
||||
border-radius: 22px;
|
||||
z-index: -1;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.floating-card {
|
||||
position: absolute;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.5rem;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.floating-card-1 {
|
||||
top: 20px;
|
||||
right: -20px;
|
||||
animation: float 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.floating-card-2 {
|
||||
bottom: 40px;
|
||||
left: -30px;
|
||||
animation: float 3s ease-in-out infinite 1.5s;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-10px); }
|
||||
}
|
||||
|
||||
.floating-card-text {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.floating-card-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Categories Section */
|
||||
.categories {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.section-tag {
|
||||
display: inline-block;
|
||||
padding: 0.5rem 1rem;
|
||||
background: rgba(255, 107, 53, 0.1);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 20px;
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.category-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 2rem 1rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.category-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 10px 30px var(--accent-glow);
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
background: var(--bg-hover);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2rem;
|
||||
margin: 0 auto 1rem;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.category-card:hover .category-icon {
|
||||
background: var(--accent);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.category-name {
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.category-count {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Featured Products */
|
||||
.featured {
|
||||
padding: 5rem 3rem;
|
||||
}
|
||||
|
||||
.featured-header {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto 3rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.view-all {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: gap 0.3s;
|
||||
}
|
||||
|
||||
.view-all:hover {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.product-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.product-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.product-image {
|
||||
height: 200px;
|
||||
background: var(--bg-hover);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 4rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
background: var(--accent);
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.product-badge.premium {
|
||||
background: linear-gradient(135deg, #f59e0b, #d97706);
|
||||
}
|
||||
|
||||
.product-badge.economy {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.product-wishlist {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.product-wishlist:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.product-info {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.product-category {
|
||||
font-size: 0.8rem;
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.product-oem {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
font-family: monospace;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.product-compatibility {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.product-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.product-price .original {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: line-through;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-add-cart {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.btn-add-cart:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* Brands Section */
|
||||
.brands {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.brands-grid {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.brand-item {
|
||||
width: 140px;
|
||||
height: 70px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.brand-item:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
/* VIN Section */
|
||||
.vin-section {
|
||||
padding: 5rem 3rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.vin-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
|
||||
}
|
||||
|
||||
.vin-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.vin-form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
max-width: 600px;
|
||||
margin: 2rem auto 0;
|
||||
}
|
||||
|
||||
.vin-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-family: monospace;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.vin-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.vin-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
/* CTA Section */
|
||||
.cta {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cta-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
|
||||
}
|
||||
|
||||
.cta-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.cta-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.cta-subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.cta-form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.cta-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.cta-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cta-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background: var(--bg-primary);
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 4rem 3rem 2rem;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr 1fr;
|
||||
gap: 3rem;
|
||||
}
|
||||
|
||||
.footer-brand p {
|
||||
color: var(--text-secondary);
|
||||
margin: 1rem 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.social-link {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer-links li {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
max-width: 1400px;
|
||||
margin: 3rem auto 0;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Loading skeleton */
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.5s infinite;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* Search Modal */
|
||||
.search-modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 2000;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 15vh;
|
||||
}
|
||||
|
||||
.search-modal.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.search-modal-content {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.search-modal-input {
|
||||
width: 100%;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1.1rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-modal-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.search-results {
|
||||
margin-top: 1rem;
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.search-result-item {
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.search-result-item:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.search-result-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.search-result-oem {
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Mobile menu */
|
||||
.mobile-menu-btn {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.hero-content {
|
||||
grid-template-columns: 1fr;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
margin: 0 auto 2.5rem;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.header {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-menu-btn {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 6rem 1rem 3rem;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.categories, .featured, .brands, .vin-section, .cta {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.vin-form, .cta-form {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="customer-landing.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Shared Navigation -->
|
||||
|
||||
941
dashboard/customer-landing.min.css
vendored
Normal file
941
dashboard/customer-landing.min.css
vendored
Normal file
@@ -0,0 +1,941 @@
|
||||
/* Extracted from customer-landing.html */
|
||||
|
||||
/* Landing page-specific header extras */
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.search-btn, .cart-btn {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1.2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search-btn:hover, .cart-btn:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cart-badge {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -5px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--accent);
|
||||
border-radius: 50%;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Footer logo (reuses .logo classes) */
|
||||
.footer .logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer .logo-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
background: linear-gradient(135deg, var(--accent) 0%, #ff4500 100%);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
box-shadow: 0 4px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.footer .logo-text {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8rem 3rem 4rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
|
||||
radial-gradient(ellipse at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 40%);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-grid {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
|
||||
background-size: 50px 50px;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 4rem;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-text h1 span {
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 30px var(--accent-glow);
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.8;
|
||||
margin-bottom: 2.5rem;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 2px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
display: flex;
|
||||
gap: 3rem;
|
||||
margin-top: 3rem;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.hero-stat {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-stat-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero-stat-label {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
width: 500px;
|
||||
height: 400px;
|
||||
background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 8rem;
|
||||
position: relative;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.hero-image::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
left: -2px;
|
||||
right: -2px;
|
||||
bottom: -2px;
|
||||
background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
|
||||
border-radius: 22px;
|
||||
z-index: -1;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.floating-card {
|
||||
position: absolute;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.5rem;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.floating-card-1 {
|
||||
top: 20px;
|
||||
right: -20px;
|
||||
animation: float 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.floating-card-2 {
|
||||
bottom: 40px;
|
||||
left: -30px;
|
||||
animation: float 3s ease-in-out infinite 1.5s;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-10px); }
|
||||
}
|
||||
|
||||
.floating-card-text {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.floating-card-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Categories Section */
|
||||
.categories {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.section-tag {
|
||||
display: inline-block;
|
||||
padding: 0.5rem 1rem;
|
||||
background: rgba(255, 107, 53, 0.1);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 20px;
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.category-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 2rem 1rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.category-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 10px 30px var(--accent-glow);
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
background: var(--bg-hover);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2rem;
|
||||
margin: 0 auto 1rem;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.category-card:hover .category-icon {
|
||||
background: var(--accent);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.category-name {
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.category-count {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Featured Products */
|
||||
.featured {
|
||||
padding: 5rem 3rem;
|
||||
}
|
||||
|
||||
.featured-header {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto 3rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.view-all {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: gap 0.3s;
|
||||
}
|
||||
|
||||
.view-all:hover {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.product-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.product-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.product-image {
|
||||
height: 200px;
|
||||
background: var(--bg-hover);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 4rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
background: var(--accent);
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.product-badge.premium {
|
||||
background: linear-gradient(135deg, #f59e0b, #d97706);
|
||||
}
|
||||
|
||||
.product-badge.economy {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.product-wishlist {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.product-wishlist:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.product-info {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.product-category {
|
||||
font-size: 0.8rem;
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.product-oem {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
font-family: monospace;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.product-compatibility {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.product-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.product-price .original {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: line-through;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-add-cart {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.btn-add-cart:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* Brands Section */
|
||||
.brands {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.brands-grid {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.brand-item {
|
||||
width: 140px;
|
||||
height: 70px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.brand-item:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
/* VIN Section */
|
||||
.vin-section {
|
||||
padding: 5rem 3rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.vin-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
|
||||
}
|
||||
|
||||
.vin-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.vin-form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
max-width: 600px;
|
||||
margin: 2rem auto 0;
|
||||
}
|
||||
|
||||
.vin-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-family: monospace;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.vin-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.vin-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
/* CTA Section */
|
||||
.cta {
|
||||
padding: 5rem 3rem;
|
||||
background: var(--bg-secondary);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cta-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
|
||||
}
|
||||
|
||||
.cta-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.cta-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.cta-subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.cta-form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.cta-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.cta-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cta-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background: var(--bg-primary);
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 4rem 3rem 2rem;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr 1fr;
|
||||
gap: 3rem;
|
||||
}
|
||||
|
||||
.footer-brand p {
|
||||
color: var(--text-secondary);
|
||||
margin: 1rem 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.social-link {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer-links li {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
max-width: 1400px;
|
||||
margin: 3rem auto 0;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Loading skeleton */
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.5s infinite;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* Search Modal */
|
||||
.search-modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 2000;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 15vh;
|
||||
}
|
||||
|
||||
.search-modal.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.search-modal-content {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.search-modal-input {
|
||||
width: 100%;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1.1rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-modal-input:focus {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.search-results {
|
||||
margin-top: 1rem;
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.search-result-item {
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.search-result-item:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.search-result-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.search-result-oem {
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Mobile menu */
|
||||
.mobile-menu-btn {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.hero-content {
|
||||
grid-template-columns: 1fr;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
margin: 0 auto 2.5rem;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.header {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-menu-btn {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 6rem 1rem 3rem;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.categories, .featured, .brands, .vin-section, .cta {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.categories-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.products-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.vin-form, .cta-form {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
709
dashboard/demo.css
Normal file
709
dashboard/demo.css
Normal file
@@ -0,0 +1,709 @@
|
||||
/* Extracted from demo.html */
|
||||
|
||||
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
:root {
|
||||
--bg: #0a0a0f;
|
||||
--bg2: #12121a;
|
||||
--card: #1a1a24;
|
||||
--hover: #252532;
|
||||
--border: #2a2a3a;
|
||||
--accent: #ff6b35;
|
||||
--accent-glow: rgba(255, 107, 53, 0.25);
|
||||
--text: #ffffff;
|
||||
--text2: #a0a0b0;
|
||||
--success: #22c55e;
|
||||
--info: #3b82f6;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* --- Header --- */
|
||||
.header {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0;
|
||||
z-index: 100;
|
||||
background: rgba(18, 18, 26, 0.92);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0.7rem 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.logo-mark {
|
||||
width: 40px; height: 40px;
|
||||
background: linear-gradient(135deg, var(--accent), #ff4500);
|
||||
border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 1.3rem;
|
||||
box-shadow: 0 3px 16px var(--accent-glow);
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: 1.3rem;
|
||||
background: linear-gradient(135deg, #fff, var(--accent));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 0.6rem;
|
||||
color: var(--text2);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.header-search {
|
||||
position: relative;
|
||||
width: 340px;
|
||||
}
|
||||
|
||||
.header-search input {
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.8rem 0.5rem 2.2rem;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.header-search input:focus { border-color: var(--accent); }
|
||||
.header-search input::placeholder { color: var(--text2); }
|
||||
|
||||
.header-search svg {
|
||||
position: absolute;
|
||||
left: 0.7rem; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 16px; height: 16px;
|
||||
color: var(--text2);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-drop {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0; right: 0;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 12px 40px rgba(0,0,0,0.5);
|
||||
display: none;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
.search-drop.open { display: block; }
|
||||
|
||||
.search-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.55rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.search-item:last-child { border-bottom: none; }
|
||||
.search-item:hover { background: var(--hover); }
|
||||
|
||||
.search-item .si-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.search-item .si-name {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text2);
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.search-item .si-cat {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.badge-demo {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 5px;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
/* --- Main --- */
|
||||
.main {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 4.5rem 1.5rem 2rem;
|
||||
}
|
||||
|
||||
/* --- Breadcrumb --- */
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.breadcrumb span {
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.breadcrumb a:hover { text-decoration: underline; }
|
||||
|
||||
.breadcrumb .sep {
|
||||
color: var(--border);
|
||||
}
|
||||
|
||||
/* --- Section title --- */
|
||||
.section-title {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text2);
|
||||
margin-top: -0.6rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* --- Grid --- */
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.grid-brands {
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
}
|
||||
|
||||
.grid-models {
|
||||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||
}
|
||||
|
||||
.grid-vehicles {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.grid-categories {
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
}
|
||||
|
||||
.grid-parts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
/* --- Card --- */
|
||||
.card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 0.8rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, transform 0.15s, background 0.2s;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--hover);
|
||||
}
|
||||
|
||||
.card:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
/* Brand card */
|
||||
.card-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-brand .cb-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.card-brand .cb-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Model card */
|
||||
.card-model {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.card-model .cm-name {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.card-model .cm-years {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.card-model .cm-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Vehicle row */
|
||||
.card-vehicle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cv-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cv-year {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
color: var(--accent);
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.cv-engine {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cv-details {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.cv-trim {
|
||||
font-size: 0.7rem;
|
||||
color: var(--info);
|
||||
background: rgba(59, 130, 246, 0.1);
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Category card */
|
||||
.card-category {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.cc-name {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cc-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Group header */
|
||||
.group-header {
|
||||
padding: 0.6rem 0;
|
||||
margin-top: 0.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.group-header .gh-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.group-header .gh-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
/* Part row */
|
||||
.part-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 0.6rem;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.4);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.part-row:hover {
|
||||
background: var(--hover);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.part-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.part-name {
|
||||
font-size: 0.85rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.part-pos {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.part-qty {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
min-width: 40px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* --- Loading / Empty --- */
|
||||
.loading, .empty {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* --- Responsive --- */
|
||||
@media (max-width: 768px) {
|
||||
.header-search { display: none; }
|
||||
.grid-brands { grid-template-columns: repeat(2, 1fr); }
|
||||
.main { padding: 4rem 0.8rem 1.5rem; }
|
||||
.part-oem { min-width: 120px; font-size: 0.8rem; }
|
||||
}
|
||||
|
||||
/* --- Part row clickable --- */
|
||||
.part-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* --- Modal overlay --- */
|
||||
.modal-bg {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s;
|
||||
}
|
||||
|
||||
.modal-bg.open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
width: 600px;
|
||||
max-width: 95vw;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
transform: translateY(12px) scale(0.97);
|
||||
transition: transform 0.25s;
|
||||
}
|
||||
|
||||
.modal-bg.open .modal {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
/* Modal header */
|
||||
.modal-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 1.2rem 1.2rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-head-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.modal-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
color: var(--accent);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.modal-part-name {
|
||||
font-size: 0.95rem;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text2);
|
||||
font-size: 1.4rem;
|
||||
cursor: pointer;
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 6px;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
flex-shrink: 0;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
background: var(--hover);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Modal detail fields */
|
||||
.modal-fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.5rem;
|
||||
padding: 0.8rem 1.2rem;
|
||||
}
|
||||
|
||||
.mf {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.mf-label {
|
||||
font-size: 0.65rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text2);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.mf-value {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Modal sections */
|
||||
.modal-section {
|
||||
padding: 0.8rem 1.2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-section-title {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
/* Alternatives table */
|
||||
.alt-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.alt-table th {
|
||||
text-align: left;
|
||||
padding: 0.35rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text2);
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.alt-table td {
|
||||
padding: 0.4rem 0.5rem;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.4);
|
||||
}
|
||||
|
||||
.alt-table .alt-pn {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
color: var(--info);
|
||||
}
|
||||
|
||||
.alt-table .alt-mfr {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.alt-quality {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 0.12rem 0.4rem;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.alt-quality.premium { background: rgba(34, 197, 94, 0.15); color: var(--success); }
|
||||
.alt-quality.economy { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
|
||||
.alt-quality.oem { background: rgba(59, 130, 246, 0.15); color: var(--info); }
|
||||
|
||||
/* Cross-ref rows */
|
||||
.xref-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
padding: 0.35rem 0;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.3);
|
||||
}
|
||||
|
||||
.xref-row:last-child { border-bottom: none; }
|
||||
|
||||
.xref-number {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.xref-type {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 0.1rem 0.35rem;
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 107, 53, 0.12);
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.xref-source {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.modal-empty {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.modal-loading {
|
||||
text-align: center;
|
||||
padding: 0.8rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* --- Region Filter --- */
|
||||
.region-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.region-label {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 600;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
.region-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--card);
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.region-chip:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.region-chip.active {
|
||||
background: rgba(255, 107, 53, 0.15);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.region-chip .rc-flag {
|
||||
font-size: 1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* --- Animations --- */
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.card, .part-row, .group-header {
|
||||
animation: fadeUp 0.3s ease both;
|
||||
}
|
||||
@@ -5,715 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>NEXUS AUTOPARTS — Catálogo OEM</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@700;800;900&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
:root {
|
||||
--bg: #0a0a0f;
|
||||
--bg2: #12121a;
|
||||
--card: #1a1a24;
|
||||
--hover: #252532;
|
||||
--border: #2a2a3a;
|
||||
--accent: #ff6b35;
|
||||
--accent-glow: rgba(255, 107, 53, 0.25);
|
||||
--text: #ffffff;
|
||||
--text2: #a0a0b0;
|
||||
--success: #22c55e;
|
||||
--info: #3b82f6;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* --- Header --- */
|
||||
.header {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0;
|
||||
z-index: 100;
|
||||
background: rgba(18, 18, 26, 0.92);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0.7rem 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.logo-mark {
|
||||
width: 40px; height: 40px;
|
||||
background: linear-gradient(135deg, var(--accent), #ff4500);
|
||||
border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 1.3rem;
|
||||
box-shadow: 0 3px 16px var(--accent-glow);
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: 1.3rem;
|
||||
background: linear-gradient(135deg, #fff, var(--accent));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 0.6rem;
|
||||
color: var(--text2);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.header-search {
|
||||
position: relative;
|
||||
width: 340px;
|
||||
}
|
||||
|
||||
.header-search input {
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.8rem 0.5rem 2.2rem;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.header-search input:focus { border-color: var(--accent); }
|
||||
.header-search input::placeholder { color: var(--text2); }
|
||||
|
||||
.header-search svg {
|
||||
position: absolute;
|
||||
left: 0.7rem; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 16px; height: 16px;
|
||||
color: var(--text2);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-drop {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0; right: 0;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 12px 40px rgba(0,0,0,0.5);
|
||||
display: none;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
.search-drop.open { display: block; }
|
||||
|
||||
.search-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.55rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.search-item:last-child { border-bottom: none; }
|
||||
.search-item:hover { background: var(--hover); }
|
||||
|
||||
.search-item .si-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.search-item .si-name {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text2);
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.search-item .si-cat {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.badge-demo {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 5px;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
/* --- Main --- */
|
||||
.main {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 4.5rem 1.5rem 2rem;
|
||||
}
|
||||
|
||||
/* --- Breadcrumb --- */
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.breadcrumb span {
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.breadcrumb a:hover { text-decoration: underline; }
|
||||
|
||||
.breadcrumb .sep {
|
||||
color: var(--border);
|
||||
}
|
||||
|
||||
/* --- Section title --- */
|
||||
.section-title {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text2);
|
||||
margin-top: -0.6rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* --- Grid --- */
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.grid-brands {
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
}
|
||||
|
||||
.grid-models {
|
||||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||
}
|
||||
|
||||
.grid-vehicles {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.grid-categories {
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
}
|
||||
|
||||
.grid-parts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
/* --- Card --- */
|
||||
.card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 0.8rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, transform 0.15s, background 0.2s;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--hover);
|
||||
}
|
||||
|
||||
.card:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
/* Brand card */
|
||||
.card-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-brand .cb-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.card-brand .cb-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Model card */
|
||||
.card-model {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.card-model .cm-name {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.card-model .cm-years {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.card-model .cm-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Vehicle row */
|
||||
.card-vehicle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cv-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cv-year {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
color: var(--accent);
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.cv-engine {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cv-details {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.cv-trim {
|
||||
font-size: 0.7rem;
|
||||
color: var(--info);
|
||||
background: rgba(59, 130, 246, 0.1);
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Category card */
|
||||
.card-category {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.cc-name {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cc-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Group header */
|
||||
.group-header {
|
||||
padding: 0.6rem 0;
|
||||
margin-top: 0.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.group-header .gh-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.group-header .gh-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
/* Part row */
|
||||
.part-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 0.6rem;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.4);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.part-row:hover {
|
||||
background: var(--hover);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.part-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.part-name {
|
||||
font-size: 0.85rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.part-pos {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.part-qty {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
min-width: 40px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* --- Loading / Empty --- */
|
||||
.loading, .empty {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* --- Responsive --- */
|
||||
@media (max-width: 768px) {
|
||||
.header-search { display: none; }
|
||||
.grid-brands { grid-template-columns: repeat(2, 1fr); }
|
||||
.main { padding: 4rem 0.8rem 1.5rem; }
|
||||
.part-oem { min-width: 120px; font-size: 0.8rem; }
|
||||
}
|
||||
|
||||
/* --- Part row clickable --- */
|
||||
.part-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* --- Modal overlay --- */
|
||||
.modal-bg {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s;
|
||||
}
|
||||
|
||||
.modal-bg.open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
width: 600px;
|
||||
max-width: 95vw;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
transform: translateY(12px) scale(0.97);
|
||||
transition: transform 0.25s;
|
||||
}
|
||||
|
||||
.modal-bg.open .modal {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
/* Modal header */
|
||||
.modal-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 1.2rem 1.2rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-head-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.modal-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
color: var(--accent);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.modal-part-name {
|
||||
font-size: 0.95rem;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text2);
|
||||
font-size: 1.4rem;
|
||||
cursor: pointer;
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 6px;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
flex-shrink: 0;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
background: var(--hover);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Modal detail fields */
|
||||
.modal-fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.5rem;
|
||||
padding: 0.8rem 1.2rem;
|
||||
}
|
||||
|
||||
.mf {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.mf-label {
|
||||
font-size: 0.65rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text2);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.mf-value {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Modal sections */
|
||||
.modal-section {
|
||||
padding: 0.8rem 1.2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-section-title {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
/* Alternatives table */
|
||||
.alt-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.alt-table th {
|
||||
text-align: left;
|
||||
padding: 0.35rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text2);
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.alt-table td {
|
||||
padding: 0.4rem 0.5rem;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.4);
|
||||
}
|
||||
|
||||
.alt-table .alt-pn {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
color: var(--info);
|
||||
}
|
||||
|
||||
.alt-table .alt-mfr {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.alt-quality {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 0.12rem 0.4rem;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.alt-quality.premium { background: rgba(34, 197, 94, 0.15); color: var(--success); }
|
||||
.alt-quality.economy { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
|
||||
.alt-quality.oem { background: rgba(59, 130, 246, 0.15); color: var(--info); }
|
||||
|
||||
/* Cross-ref rows */
|
||||
.xref-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
padding: 0.35rem 0;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.3);
|
||||
}
|
||||
|
||||
.xref-row:last-child { border-bottom: none; }
|
||||
|
||||
.xref-number {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.xref-type {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 0.1rem 0.35rem;
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 107, 53, 0.12);
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.xref-source {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.modal-empty {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.modal-loading {
|
||||
text-align: center;
|
||||
padding: 0.8rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* --- Region Filter --- */
|
||||
.region-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.region-label {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 600;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
.region-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--card);
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.region-chip:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.region-chip.active {
|
||||
background: rgba(255, 107, 53, 0.15);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.region-chip .rc-flag {
|
||||
font-size: 1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* --- Animations --- */
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.card, .part-row, .group-header {
|
||||
animation: fadeUp 0.3s ease both;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="demo.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
|
||||
709
dashboard/demo.min.css
vendored
Normal file
709
dashboard/demo.min.css
vendored
Normal file
@@ -0,0 +1,709 @@
|
||||
/* Extracted from demo.html */
|
||||
|
||||
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
:root {
|
||||
--bg: #0a0a0f;
|
||||
--bg2: #12121a;
|
||||
--card: #1a1a24;
|
||||
--hover: #252532;
|
||||
--border: #2a2a3a;
|
||||
--accent: #ff6b35;
|
||||
--accent-glow: rgba(255, 107, 53, 0.25);
|
||||
--text: #ffffff;
|
||||
--text2: #a0a0b0;
|
||||
--success: #22c55e;
|
||||
--info: #3b82f6;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* --- Header --- */
|
||||
.header {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0;
|
||||
z-index: 100;
|
||||
background: rgba(18, 18, 26, 0.92);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0.7rem 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.logo-mark {
|
||||
width: 40px; height: 40px;
|
||||
background: linear-gradient(135deg, var(--accent), #ff4500);
|
||||
border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 1.3rem;
|
||||
box-shadow: 0 3px 16px var(--accent-glow);
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: 1.3rem;
|
||||
background: linear-gradient(135deg, #fff, var(--accent));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 0.6rem;
|
||||
color: var(--text2);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.header-search {
|
||||
position: relative;
|
||||
width: 340px;
|
||||
}
|
||||
|
||||
.header-search input {
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.8rem 0.5rem 2.2rem;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.header-search input:focus { border-color: var(--accent); }
|
||||
.header-search input::placeholder { color: var(--text2); }
|
||||
|
||||
.header-search svg {
|
||||
position: absolute;
|
||||
left: 0.7rem; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 16px; height: 16px;
|
||||
color: var(--text2);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-drop {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0; right: 0;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 12px 40px rgba(0,0,0,0.5);
|
||||
display: none;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
.search-drop.open { display: block; }
|
||||
|
||||
.search-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.55rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.search-item:last-child { border-bottom: none; }
|
||||
.search-item:hover { background: var(--hover); }
|
||||
|
||||
.search-item .si-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.search-item .si-name {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text2);
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.search-item .si-cat {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.badge-demo {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 5px;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
/* --- Main --- */
|
||||
.main {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 4.5rem 1.5rem 2rem;
|
||||
}
|
||||
|
||||
/* --- Breadcrumb --- */
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.breadcrumb span {
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.breadcrumb a:hover { text-decoration: underline; }
|
||||
|
||||
.breadcrumb .sep {
|
||||
color: var(--border);
|
||||
}
|
||||
|
||||
/* --- Section title --- */
|
||||
.section-title {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text2);
|
||||
margin-top: -0.6rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* --- Grid --- */
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.grid-brands {
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
}
|
||||
|
||||
.grid-models {
|
||||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||
}
|
||||
|
||||
.grid-vehicles {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.grid-categories {
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
}
|
||||
|
||||
.grid-parts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
/* --- Card --- */
|
||||
.card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 0.8rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, transform 0.15s, background 0.2s;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--hover);
|
||||
}
|
||||
|
||||
.card:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
/* Brand card */
|
||||
.card-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-brand .cb-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.card-brand .cb-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Model card */
|
||||
.card-model {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.card-model .cm-name {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.card-model .cm-years {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.card-model .cm-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Vehicle row */
|
||||
.card-vehicle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cv-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cv-year {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
color: var(--accent);
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.cv-engine {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cv-details {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.cv-trim {
|
||||
font-size: 0.7rem;
|
||||
color: var(--info);
|
||||
background: rgba(59, 130, 246, 0.1);
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Category card */
|
||||
.card-category {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.cc-name {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cc-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Group header */
|
||||
.group-header {
|
||||
padding: 0.6rem 0;
|
||||
margin-top: 0.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.group-header .gh-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.group-header .gh-count {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
/* Part row */
|
||||
.part-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 0.6rem;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.4);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.part-row:hover {
|
||||
background: var(--hover);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.part-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.part-name {
|
||||
font-size: 0.85rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.part-pos {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.part-qty {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text2);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
min-width: 40px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* --- Loading / Empty --- */
|
||||
.loading, .empty {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* --- Responsive --- */
|
||||
@media (max-width: 768px) {
|
||||
.header-search { display: none; }
|
||||
.grid-brands { grid-template-columns: repeat(2, 1fr); }
|
||||
.main { padding: 4rem 0.8rem 1.5rem; }
|
||||
.part-oem { min-width: 120px; font-size: 0.8rem; }
|
||||
}
|
||||
|
||||
/* --- Part row clickable --- */
|
||||
.part-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* --- Modal overlay --- */
|
||||
.modal-bg {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s;
|
||||
}
|
||||
|
||||
.modal-bg.open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
width: 600px;
|
||||
max-width: 95vw;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
transform: translateY(12px) scale(0.97);
|
||||
transition: transform 0.25s;
|
||||
}
|
||||
|
||||
.modal-bg.open .modal {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
/* Modal header */
|
||||
.modal-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 1.2rem 1.2rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-head-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.modal-oem {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
color: var(--accent);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.modal-part-name {
|
||||
font-size: 0.95rem;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text2);
|
||||
font-size: 1.4rem;
|
||||
cursor: pointer;
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 6px;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
flex-shrink: 0;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
background: var(--hover);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Modal detail fields */
|
||||
.modal-fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.5rem;
|
||||
padding: 0.8rem 1.2rem;
|
||||
}
|
||||
|
||||
.mf {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.mf-label {
|
||||
font-size: 0.65rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text2);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.mf-value {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Modal sections */
|
||||
.modal-section {
|
||||
padding: 0.8rem 1.2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.modal-section-title {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
/* Alternatives table */
|
||||
.alt-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.alt-table th {
|
||||
text-align: left;
|
||||
padding: 0.35rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text2);
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.alt-table td {
|
||||
padding: 0.4rem 0.5rem;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.4);
|
||||
}
|
||||
|
||||
.alt-table .alt-pn {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
color: var(--info);
|
||||
}
|
||||
|
||||
.alt-table .alt-mfr {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.alt-quality {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 0.12rem 0.4rem;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.alt-quality.premium { background: rgba(34, 197, 94, 0.15); color: var(--success); }
|
||||
.alt-quality.economy { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
|
||||
.alt-quality.oem { background: rgba(59, 130, 246, 0.15); color: var(--info); }
|
||||
|
||||
/* Cross-ref rows */
|
||||
.xref-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
padding: 0.35rem 0;
|
||||
border-bottom: 1px solid rgba(42, 42, 58, 0.3);
|
||||
}
|
||||
|
||||
.xref-row:last-child { border-bottom: none; }
|
||||
|
||||
.xref-number {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.xref-type {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 0.1rem 0.35rem;
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 107, 53, 0.12);
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.xref-source {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.modal-empty {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.modal-loading {
|
||||
text-align: center;
|
||||
padding: 0.8rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* --- Region Filter --- */
|
||||
.region-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.region-label {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 600;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
.region-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--card);
|
||||
color: var(--text2);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.region-chip:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.region-chip.active {
|
||||
background: rgba(255, 107, 53, 0.15);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.region-chip .rc-flag {
|
||||
font-size: 1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* --- Animations --- */
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.card, .part-row, .group-header {
|
||||
animation: fadeUp 0.3s ease both;
|
||||
}
|
||||
475
dashboard/diagrams.css
Normal file
475
dashboard/diagrams.css
Normal file
@@ -0,0 +1,475 @@
|
||||
/* Extracted from diagrams.html */
|
||||
|
||||
/* Main container */
|
||||
.main-container {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 5rem 2rem 2rem;
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
.search-section {
|
||||
display: flex; gap: 1rem; margin-bottom: 2rem;
|
||||
flex-wrap: wrap; align-items: center;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1; min-width: 250px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.search-input:focus { border-color: var(--accent); }
|
||||
|
||||
.search-wrapper {
|
||||
position: relative; flex: 1; min-width: 250px;
|
||||
}
|
||||
|
||||
.search-wrapper i {
|
||||
position: absolute; left: 0.85rem; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.filter-select {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.filter-select option { background: var(--bg-card); }
|
||||
|
||||
.type-filters {
|
||||
display: flex; gap: 0.5rem;
|
||||
}
|
||||
|
||||
.type-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.type-btn:hover { border-color: var(--accent); color: var(--text-primary); }
|
||||
.type-btn.active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Stats bar */
|
||||
.stats-bar {
|
||||
display: flex; gap: 2rem; margin-bottom: 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.stats-bar span { color: var(--accent); font-weight: 600; }
|
||||
|
||||
/* Diagram grid */
|
||||
.diagram-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.diagram-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.diagram-card:hover {
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.diagram-card-img {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/10;
|
||||
object-fit: contain;
|
||||
background: #f0f0f0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.diagram-card-body {
|
||||
padding: 0.85rem 1rem;
|
||||
}
|
||||
|
||||
.diagram-card-title {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.diagram-card-sub {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.diagram-card-badge {
|
||||
display: inline-block;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
margin-top: 0.4rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-front { background: rgba(59,130,246,0.2); color: #60a5fa; }
|
||||
.badge-steering { background: rgba(245,158,11,0.2); color: #fbbf24; }
|
||||
.badge-rear { background: rgba(34,197,94,0.2); color: #4ade80; }
|
||||
|
||||
/* Viewer overlay */
|
||||
.viewer-overlay {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0,0,0,0.85);
|
||||
z-index: 2000;
|
||||
display: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.viewer-overlay.active {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.viewer-layout {
|
||||
display: flex;
|
||||
width: 100%; height: 100%;
|
||||
}
|
||||
|
||||
/* Diagram panel (left) */
|
||||
.viewer-diagram {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.viewer-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.viewer-toolbar .title {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.viewer-toolbar .subtitle {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.toolbar-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.toolbar-btn:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.viewer-img-container {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
.viewer-img-container img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
transition: transform 0.3s ease;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.viewer-img-container img.zoomed {
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* Parts panel (right) */
|
||||
.viewer-parts {
|
||||
width: 420px;
|
||||
background: var(--bg-secondary);
|
||||
border-left: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.parts-header {
|
||||
padding: 0.85rem 1.25rem;
|
||||
background: var(--bg-card);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.parts-header h3 {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.parts-header .count {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-hover);
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.parts-search {
|
||||
padding: 0.65rem 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.parts-search input {
|
||||
width: 100%;
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.parts-search input:focus { border-color: var(--accent); }
|
||||
|
||||
.parts-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.part-item {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
margin-bottom: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.part-item:hover, .part-item.highlighted {
|
||||
border-color: var(--accent);
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.part-item .part-number {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.part-item .part-name {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
|
||||
.part-item .part-group {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-secondary);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.xref-list {
|
||||
margin-top: 0.4rem;
|
||||
padding-top: 0.4rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.xref-item {
|
||||
display: inline-block;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.1rem 0.4rem;
|
||||
background: rgba(59,130,246,0.15);
|
||||
color: #60a5fa;
|
||||
border-radius: 3px;
|
||||
margin: 0.1rem;
|
||||
}
|
||||
|
||||
.xref-label {
|
||||
font-size: 0.65rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
/* Loading / Empty states */
|
||||
.loading-state, .empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.loading-state i, .empty-state i {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.page-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.page-btn:hover { border-color: var(--accent); color: var(--text-primary); }
|
||||
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
|
||||
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.viewer-layout { flex-direction: column; }
|
||||
.viewer-parts { width: 100%; height: 50%; }
|
||||
.diagram-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
||||
.search-section { flex-direction: column; }
|
||||
}
|
||||
|
||||
/* Close button */
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 0.75rem; right: 0.75rem;
|
||||
background: rgba(0,0,0,0.6);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.close-btn:hover { background: var(--accent); }
|
||||
|
||||
/* Zoom controls */
|
||||
.zoom-controls {
|
||||
position: absolute;
|
||||
bottom: 1rem; left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex; gap: 0.5rem;
|
||||
background: rgba(0,0,0,0.6);
|
||||
padding: 0.4rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.zoom-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.4rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.zoom-btn:hover { background: var(--accent); }
|
||||
|
||||
.zoom-level {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.8rem;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
/* Nav buttons in viewer */
|
||||
.viewer-nav-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: rgba(0,0,0,0.5);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 44px; height: 44px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.viewer-nav-btn:hover { background: var(--accent); }
|
||||
.viewer-nav-btn.prev { left: 0.75rem; }
|
||||
.viewer-nav-btn.next { right: 430px; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.viewer-nav-btn.next { right: 0.75rem; }
|
||||
}
|
||||
@@ -8,481 +8,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
<link rel="stylesheet" href="/shared.css">
|
||||
<style>
|
||||
/* Main container */
|
||||
.main-container {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 5rem 2rem 2rem;
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
.search-section {
|
||||
display: flex; gap: 1rem; margin-bottom: 2rem;
|
||||
flex-wrap: wrap; align-items: center;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1; min-width: 250px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.search-input:focus { border-color: var(--accent); }
|
||||
|
||||
.search-wrapper {
|
||||
position: relative; flex: 1; min-width: 250px;
|
||||
}
|
||||
|
||||
.search-wrapper i {
|
||||
position: absolute; left: 0.85rem; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.filter-select {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.filter-select option { background: var(--bg-card); }
|
||||
|
||||
.type-filters {
|
||||
display: flex; gap: 0.5rem;
|
||||
}
|
||||
|
||||
.type-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.type-btn:hover { border-color: var(--accent); color: var(--text-primary); }
|
||||
.type-btn.active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Stats bar */
|
||||
.stats-bar {
|
||||
display: flex; gap: 2rem; margin-bottom: 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.stats-bar span { color: var(--accent); font-weight: 600; }
|
||||
|
||||
/* Diagram grid */
|
||||
.diagram-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.diagram-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.diagram-card:hover {
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.diagram-card-img {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/10;
|
||||
object-fit: contain;
|
||||
background: #f0f0f0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.diagram-card-body {
|
||||
padding: 0.85rem 1rem;
|
||||
}
|
||||
|
||||
.diagram-card-title {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.diagram-card-sub {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.diagram-card-badge {
|
||||
display: inline-block;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
margin-top: 0.4rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-front { background: rgba(59,130,246,0.2); color: #60a5fa; }
|
||||
.badge-steering { background: rgba(245,158,11,0.2); color: #fbbf24; }
|
||||
.badge-rear { background: rgba(34,197,94,0.2); color: #4ade80; }
|
||||
|
||||
/* Viewer overlay */
|
||||
.viewer-overlay {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0,0,0,0.85);
|
||||
z-index: 2000;
|
||||
display: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.viewer-overlay.active {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.viewer-layout {
|
||||
display: flex;
|
||||
width: 100%; height: 100%;
|
||||
}
|
||||
|
||||
/* Diagram panel (left) */
|
||||
.viewer-diagram {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.viewer-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.viewer-toolbar .title {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.viewer-toolbar .subtitle {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.toolbar-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.toolbar-btn:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.viewer-img-container {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
.viewer-img-container img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
transition: transform 0.3s ease;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.viewer-img-container img.zoomed {
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* Parts panel (right) */
|
||||
.viewer-parts {
|
||||
width: 420px;
|
||||
background: var(--bg-secondary);
|
||||
border-left: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.parts-header {
|
||||
padding: 0.85rem 1.25rem;
|
||||
background: var(--bg-card);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.parts-header h3 {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.parts-header .count {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-hover);
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.parts-search {
|
||||
padding: 0.65rem 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.parts-search input {
|
||||
width: 100%;
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.parts-search input:focus { border-color: var(--accent); }
|
||||
|
||||
.parts-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.part-item {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
margin-bottom: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.part-item:hover, .part-item.highlighted {
|
||||
border-color: var(--accent);
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.part-item .part-number {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.part-item .part-name {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
|
||||
.part-item .part-group {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-secondary);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.xref-list {
|
||||
margin-top: 0.4rem;
|
||||
padding-top: 0.4rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.xref-item {
|
||||
display: inline-block;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.1rem 0.4rem;
|
||||
background: rgba(59,130,246,0.15);
|
||||
color: #60a5fa;
|
||||
border-radius: 3px;
|
||||
margin: 0.1rem;
|
||||
}
|
||||
|
||||
.xref-label {
|
||||
font-size: 0.65rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
/* Loading / Empty states */
|
||||
.loading-state, .empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.loading-state i, .empty-state i {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.page-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.page-btn:hover { border-color: var(--accent); color: var(--text-primary); }
|
||||
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
|
||||
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.viewer-layout { flex-direction: column; }
|
||||
.viewer-parts { width: 100%; height: 50%; }
|
||||
.diagram-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
||||
.search-section { flex-direction: column; }
|
||||
}
|
||||
|
||||
/* Close button */
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 0.75rem; right: 0.75rem;
|
||||
background: rgba(0,0,0,0.6);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.close-btn:hover { background: var(--accent); }
|
||||
|
||||
/* Zoom controls */
|
||||
.zoom-controls {
|
||||
position: absolute;
|
||||
bottom: 1rem; left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex; gap: 0.5rem;
|
||||
background: rgba(0,0,0,0.6);
|
||||
padding: 0.4rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.zoom-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.4rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.zoom-btn:hover { background: var(--accent); }
|
||||
|
||||
.zoom-level {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.8rem;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
/* Nav buttons in viewer */
|
||||
.viewer-nav-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: rgba(0,0,0,0.5);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 44px; height: 44px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.viewer-nav-btn:hover { background: var(--accent); }
|
||||
.viewer-nav-btn.prev { left: 0.75rem; }
|
||||
.viewer-nav-btn.next { right: 430px; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.viewer-nav-btn.next { right: 0.75rem; }
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="diagrams.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
475
dashboard/diagrams.min.css
vendored
Normal file
475
dashboard/diagrams.min.css
vendored
Normal file
@@ -0,0 +1,475 @@
|
||||
/* Extracted from diagrams.html */
|
||||
|
||||
/* Main container */
|
||||
.main-container {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 5rem 2rem 2rem;
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
.search-section {
|
||||
display: flex; gap: 1rem; margin-bottom: 2rem;
|
||||
flex-wrap: wrap; align-items: center;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1; min-width: 250px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.search-input:focus { border-color: var(--accent); }
|
||||
|
||||
.search-wrapper {
|
||||
position: relative; flex: 1; min-width: 250px;
|
||||
}
|
||||
|
||||
.search-wrapper i {
|
||||
position: absolute; left: 0.85rem; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.filter-select {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.filter-select option { background: var(--bg-card); }
|
||||
|
||||
.type-filters {
|
||||
display: flex; gap: 0.5rem;
|
||||
}
|
||||
|
||||
.type-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.type-btn:hover { border-color: var(--accent); color: var(--text-primary); }
|
||||
.type-btn.active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Stats bar */
|
||||
.stats-bar {
|
||||
display: flex; gap: 2rem; margin-bottom: 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.stats-bar span { color: var(--accent); font-weight: 600; }
|
||||
|
||||
/* Diagram grid */
|
||||
.diagram-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.diagram-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.diagram-card:hover {
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.diagram-card-img {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/10;
|
||||
object-fit: contain;
|
||||
background: #f0f0f0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.diagram-card-body {
|
||||
padding: 0.85rem 1rem;
|
||||
}
|
||||
|
||||
.diagram-card-title {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.diagram-card-sub {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.diagram-card-badge {
|
||||
display: inline-block;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
margin-top: 0.4rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-front { background: rgba(59,130,246,0.2); color: #60a5fa; }
|
||||
.badge-steering { background: rgba(245,158,11,0.2); color: #fbbf24; }
|
||||
.badge-rear { background: rgba(34,197,94,0.2); color: #4ade80; }
|
||||
|
||||
/* Viewer overlay */
|
||||
.viewer-overlay {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0,0,0,0.85);
|
||||
z-index: 2000;
|
||||
display: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.viewer-overlay.active {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.viewer-layout {
|
||||
display: flex;
|
||||
width: 100%; height: 100%;
|
||||
}
|
||||
|
||||
/* Diagram panel (left) */
|
||||
.viewer-diagram {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.viewer-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.viewer-toolbar .title {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.viewer-toolbar .subtitle {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.toolbar-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.toolbar-btn:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.viewer-img-container {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
.viewer-img-container img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
transition: transform 0.3s ease;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.viewer-img-container img.zoomed {
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* Parts panel (right) */
|
||||
.viewer-parts {
|
||||
width: 420px;
|
||||
background: var(--bg-secondary);
|
||||
border-left: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.parts-header {
|
||||
padding: 0.85rem 1.25rem;
|
||||
background: var(--bg-card);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.parts-header h3 {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.parts-header .count {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-hover);
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.parts-search {
|
||||
padding: 0.65rem 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.parts-search input {
|
||||
width: 100%;
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.parts-search input:focus { border-color: var(--accent); }
|
||||
|
||||
.parts-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.part-item {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
margin-bottom: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.part-item:hover, .part-item.highlighted {
|
||||
border-color: var(--accent);
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.part-item .part-number {
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.part-item .part-name {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
|
||||
.part-item .part-group {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-secondary);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.xref-list {
|
||||
margin-top: 0.4rem;
|
||||
padding-top: 0.4rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.xref-item {
|
||||
display: inline-block;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.1rem 0.4rem;
|
||||
background: rgba(59,130,246,0.15);
|
||||
color: #60a5fa;
|
||||
border-radius: 3px;
|
||||
margin: 0.1rem;
|
||||
}
|
||||
|
||||
.xref-label {
|
||||
font-size: 0.65rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
/* Loading / Empty states */
|
||||
.loading-state, .empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.loading-state i, .empty-state i {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.page-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.page-btn:hover { border-color: var(--accent); color: var(--text-primary); }
|
||||
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
|
||||
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.viewer-layout { flex-direction: column; }
|
||||
.viewer-parts { width: 100%; height: 50%; }
|
||||
.diagram-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
||||
.search-section { flex-direction: column; }
|
||||
}
|
||||
|
||||
/* Close button */
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 0.75rem; right: 0.75rem;
|
||||
background: rgba(0,0,0,0.6);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.close-btn:hover { background: var(--accent); }
|
||||
|
||||
/* Zoom controls */
|
||||
.zoom-controls {
|
||||
position: absolute;
|
||||
bottom: 1rem; left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex; gap: 0.5rem;
|
||||
background: rgba(0,0,0,0.6);
|
||||
padding: 0.4rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.zoom-btn {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.4rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.zoom-btn:hover { background: var(--accent); }
|
||||
|
||||
.zoom-level {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.8rem;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
/* Nav buttons in viewer */
|
||||
.viewer-nav-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: rgba(0,0,0,0.5);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 44px; height: 44px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.viewer-nav-btn:hover { background: var(--accent); }
|
||||
.viewer-nav-btn.prev { left: 0.75rem; }
|
||||
.viewer-nav-btn.next { right: 430px; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.viewer-nav-btn.next { right: 0.75rem; }
|
||||
}
|
||||
1891
dashboard/index.css
Normal file
1891
dashboard/index.css
Normal file
File diff suppressed because it is too large
Load Diff
1892
dashboard/index.html
1892
dashboard/index.html
File diff suppressed because it is too large
Load Diff
1891
dashboard/index.min.css
vendored
Normal file
1891
dashboard/index.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
419
dashboard/landing.css
Normal file
419
dashboard/landing.css
Normal file
@@ -0,0 +1,419 @@
|
||||
/* Extracted from landing.html */
|
||||
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; scrollbar-width: none; }
|
||||
html::-webkit-scrollbar { width: 0; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
line-height: var(--leading-body);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
a { color: var(--color-text-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
.container {
|
||||
max-width: var(--content-xl);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HEADER — Glassmorphism sticky
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.site-header {
|
||||
position: fixed; top: 0; left: 0; right: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
.site-header .container {
|
||||
display: flex; align-items: center; justify-content: space-between; height: 64px;
|
||||
}
|
||||
.logo {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase; text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.logo::after {
|
||||
content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
|
||||
height: 2px; background: var(--gradient-accent); border-radius: 1px; opacity: 0.6; filter: blur(2px);
|
||||
}
|
||||
.header-nav { display: flex; gap: var(--space-6); align-items: center; }
|
||||
.header-nav a {
|
||||
font-size: var(--text-body-sm); color: var(--color-text-secondary);
|
||||
text-decoration: none; position: relative; padding: var(--space-1) 0; transition: color 0.2s ease;
|
||||
}
|
||||
.header-nav a:hover { color: var(--color-text-accent); text-decoration: none; }
|
||||
.header-nav a::after {
|
||||
content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
|
||||
background: var(--color-primary); transition: width 0.3s ease;
|
||||
}
|
||||
.header-nav a:hover::after { width: 100%; }
|
||||
.header-actions { display: flex; gap: var(--space-3); align-items: center; }
|
||||
.theme-toggle {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px dashed var(--glass-border); border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted); cursor: pointer; font-size: 1.1rem; transition: var(--transition-fast);
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
border-color: var(--color-border-accent); color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-5); border-radius: var(--radius-md);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer; border: 2px solid transparent; text-decoration: none;
|
||||
transition: all 0.25s var(--ease-out); position: relative; overflow: hidden;
|
||||
}
|
||||
.btn:hover { text-decoration: none; }
|
||||
.btn-primary {
|
||||
background: var(--gradient-accent); color: var(--btn-primary-text); border: none;
|
||||
box-shadow: 0 4px 0 var(--color-primary-active), 0 6px 12px var(--glow-color-soft);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 0 var(--color-primary-active), 0 10px 24px var(--glow-color);
|
||||
}
|
||||
.btn-primary:active {
|
||||
transform: translateY(2px);
|
||||
box-shadow: 0 2px 0 var(--color-primary-active), 0 3px 8px var(--glow-color-soft);
|
||||
}
|
||||
.btn-primary::after {
|
||||
content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.btn-primary:hover::after { left: 120%; }
|
||||
.btn-secondary {
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
color: var(--color-text-accent); border: 1px solid var(--color-border-accent);
|
||||
}
|
||||
.btn-secondary:hover { background: var(--color-primary-muted); box-shadow: 0 0 20px var(--glow-color-soft); }
|
||||
.btn-lg { padding: var(--space-3) var(--space-8); font-size: var(--text-body); border-radius: var(--radius-lg); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HERO
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.hero {
|
||||
position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden; padding-top: 64px;
|
||||
}
|
||||
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
||||
.hero::after {
|
||||
content: ''; position: absolute; inset: 0;
|
||||
background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--glow-color-soft) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: var(--space-8) var(--space-6); }
|
||||
.hero h1 {
|
||||
font-family: var(--font-heading); font-size: clamp(2.5rem, 7vw, 4.5rem);
|
||||
font-weight: var(--heading-weight-primary); line-height: 1.05; letter-spacing: var(--tracking-tight);
|
||||
background: var(--gradient-text); background-size: 200% auto;
|
||||
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
||||
animation: nx-shimmer 4s linear infinite; margin-bottom: var(--space-3);
|
||||
}
|
||||
.hero .subtitle {
|
||||
font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--color-text-secondary);
|
||||
margin-bottom: var(--space-2); max-width: 650px; margin-left: auto; margin-right: auto;
|
||||
}
|
||||
.hero .typewriter-line {
|
||||
display: inline-block; font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted); background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
padding: var(--space-1) var(--space-4); border-radius: var(--radius-md);
|
||||
border: 1px dashed var(--glass-border); margin-bottom: var(--space-8); min-height: 2em;
|
||||
}
|
||||
.typewriter-cursor {
|
||||
display: inline-block; width: 2px; height: 1em; background: var(--color-primary);
|
||||
vertical-align: text-bottom; margin-left: 2px; animation: nx-typewriter-cursor 0.8s ease infinite;
|
||||
}
|
||||
.hero-buttons { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-12); }
|
||||
.hero-stats { display: flex; justify-content: center; gap: var(--space-6); flex-wrap: wrap; }
|
||||
.stat-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-5) var(--space-8); text-align: center; min-width: 140px;
|
||||
transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.stat-card:hover { border-color: var(--color-border-accent); box-shadow: 0 0 24px var(--glow-color-soft); transform: translateY(-4px); }
|
||||
.stat-card .number {
|
||||
font-family: var(--font-heading); font-size: var(--text-h2); font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent); line-height: 1;
|
||||
}
|
||||
.stat-card .label {
|
||||
font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
SECTION CHROME — Terminal style separator
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.section-chrome {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
}
|
||||
.chrome-dots { display: flex; gap: 6px; }
|
||||
.chrome-dots span { width: 10px; height: 10px; border-radius: var(--radius-full); border: 1.5px solid var(--color-text-muted); opacity: 0.3; }
|
||||
.chrome-label {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
.chrome-star { color: var(--color-text-muted); opacity: 0.3; font-size: 14px; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
PRODUCT SECTION — 3 columns with feature lists
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.product { padding: var(--space-16) 0; }
|
||||
.section-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h2); font-weight: var(--heading-weight-primary);
|
||||
text-align: center; margin-bottom: var(--space-3); letter-spacing: var(--heading-tracking-h2);
|
||||
}
|
||||
.section-subtitle {
|
||||
text-align: center; font-size: var(--text-body); color: var(--color-text-secondary);
|
||||
margin-bottom: var(--space-10); max-width: 600px; margin-left: auto; margin-right: auto;
|
||||
}
|
||||
.product-grid {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
|
||||
}
|
||||
.product-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); transition: all 0.35s var(--ease-out); position: relative; overflow: hidden;
|
||||
}
|
||||
.product-card::before {
|
||||
content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
|
||||
border-radius: 3px 0 0 3px;
|
||||
}
|
||||
.product-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 8px 32px var(--glow-color-soft);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
.product-card--orange::before { background: var(--color-primary); }
|
||||
.product-card--cyan::before { background: #00D4FF; }
|
||||
.product-card--green::before { background: #3FB950; }
|
||||
|
||||
.product-card h3 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h6);
|
||||
font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-4);
|
||||
}
|
||||
.product-card--orange h3 { color: var(--color-text-accent); }
|
||||
.product-card--cyan h3 { color: #00D4FF; }
|
||||
.product-card--green h3 { color: #3FB950; }
|
||||
|
||||
.product-card ul { list-style: none; font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.product-card ul li {
|
||||
padding: var(--space-1) 0; line-height: 1.8;
|
||||
}
|
||||
.product-card ul li::before { margin-right: var(--space-2); }
|
||||
.product-card--orange ul li::before { content: '▸ '; color: var(--color-text-accent); }
|
||||
.product-card--cyan ul li::before { content: '▸ '; color: #00D4FF; }
|
||||
.product-card--green ul li::before { content: '▸ '; color: #3FB950; }
|
||||
|
||||
/* Hardware banner */
|
||||
.hw-banner {
|
||||
margin-top: var(--space-6); text-align: center;
|
||||
}
|
||||
.hw-banner-inner {
|
||||
display: inline-flex; align-items: center; gap: var(--space-4);
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px dashed var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-4) var(--space-8); transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.hw-banner-inner:hover { border-color: var(--color-border-accent); box-shadow: 0 0 20px var(--glow-color-soft); }
|
||||
.hw-banner-inner span:first-child { font-size: 1.5rem; }
|
||||
.hw-banner-inner .hw-text { font-size: var(--text-body-sm); color: var(--color-text-secondary); text-align: left; }
|
||||
.hw-banner-inner .hw-text strong { color: var(--color-text-accent); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HOW IT WORKS — Timeline
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.how-it-works { padding: var(--space-16) 0; }
|
||||
.steps { display: flex; justify-content: center; gap: 0; max-width: 900px; margin: 0 auto; position: relative; }
|
||||
.steps::before {
|
||||
content: ''; position: absolute; top: 28px; left: 15%; right: 15%; height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent); opacity: 0.3;
|
||||
}
|
||||
.step { flex: 1; text-align: center; padding: 0 var(--space-4); position: relative; }
|
||||
.step-number {
|
||||
display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
|
||||
border-radius: var(--radius-full); background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
border: 2px solid var(--color-border-accent); color: var(--color-text-accent);
|
||||
font-family: var(--font-heading); font-size: var(--text-h3); font-weight: var(--heading-weight-primary);
|
||||
margin-bottom: var(--space-4); position: relative; z-index: 1; transition: all 0.3s ease;
|
||||
}
|
||||
.step:hover .step-number {
|
||||
box-shadow: 0 0 24px var(--glow-color), 0 0 48px var(--glow-color-soft);
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
}
|
||||
.step h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-2); }
|
||||
.step p { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
DIFFERENTIATOR — Competitive highlight
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.differentiator { padding: var(--space-16) 0; }
|
||||
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
|
||||
.diff-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.diff-card:hover { border-color: var(--color-border-accent); box-shadow: 0 4px 20px var(--glow-color-soft); transform: translateY(-3px); }
|
||||
.diff-icon {
|
||||
width: 48px; height: 48px; margin: 0 auto var(--space-3);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary-muted); border: 1px dashed var(--color-border-accent);
|
||||
border-radius: var(--radius-md); font-size: 1.3rem;
|
||||
}
|
||||
.diff-card h4 { font-family: var(--font-heading); font-size: var(--text-body); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-1); }
|
||||
.diff-card p { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
BRANDS MARQUEE
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.brands-section {
|
||||
padding: var(--space-12) 0; overflow: hidden;
|
||||
border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.brands-header { display: flex; align-items: center; }
|
||||
.brands-label {
|
||||
flex-shrink: 0; width: 200px; padding: var(--space-6);
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm); font-weight: var(--heading-weight-secondary);
|
||||
color: var(--color-text-muted); text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
border-right: 1px solid var(--color-border); text-align: center;
|
||||
}
|
||||
.marquee-track { flex: 1; overflow: hidden; position: relative; padding: var(--space-4) 0; }
|
||||
.marquee-track::before, .marquee-track::after {
|
||||
content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
|
||||
}
|
||||
.marquee-track::before { left: 0; background: linear-gradient(90deg, var(--color-bg-base), transparent); }
|
||||
.marquee-track::after { right: 0; background: linear-gradient(270deg, var(--color-bg-base), transparent); }
|
||||
.marquee-inner { display: flex; gap: var(--space-3); width: max-content; animation: nx-marquee 40s linear infinite; }
|
||||
.marquee-inner:hover { animation-play-state: paused; }
|
||||
.brand-tag {
|
||||
display: inline-flex; align-items: center; padding: var(--space-2) var(--space-4);
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); letter-spacing: var(--tracking-wide);
|
||||
white-space: nowrap; transition: all 0.25s ease; cursor: pointer;
|
||||
}
|
||||
.brand-tag:hover {
|
||||
border-color: var(--color-border-accent); color: var(--color-text-accent);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft); text-decoration: none;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
PRICING PREVIEW
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.pricing { padding: var(--space-16) 0; }
|
||||
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); max-width: 900px; margin: 0 auto; }
|
||||
.pricing-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.pricing-card:hover { border-color: var(--color-border-accent); box-shadow: 0 8px 32px var(--glow-color-soft); transform: translateY(-3px); }
|
||||
.pricing-card.featured { border-color: var(--color-border-accent); }
|
||||
.pricing-card h4 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h6); font-weight: var(--heading-weight-secondary);
|
||||
margin-bottom: var(--space-2); color: var(--color-text-primary);
|
||||
}
|
||||
.pricing-price {
|
||||
font-family: var(--font-heading); font-size: var(--text-h3); font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent); margin-bottom: var(--space-1);
|
||||
}
|
||||
.pricing-period { font-size: var(--text-caption); color: var(--color-text-muted); margin-bottom: var(--space-4); }
|
||||
.pricing-card ul { list-style: none; text-align: left; font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.pricing-card ul li { padding: 3px 0; }
|
||||
.pricing-card ul li::before { content: '✓ '; color: var(--color-text-accent); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
CONTACT
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.contact { padding: var(--space-16) 0; }
|
||||
.contact-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: var(--space-6); max-width: 900px; margin: 0 auto;
|
||||
}
|
||||
.contact-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-8); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.contact-card:hover { border-color: var(--color-border-accent); box-shadow: 0 8px 32px var(--glow-color-soft); transform: translateY(-4px); }
|
||||
.contact-icon {
|
||||
width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary-muted); border: 1px dashed var(--color-border-accent);
|
||||
border-radius: var(--radius-md); font-size: 1.3rem; margin-bottom: var(--space-4);
|
||||
}
|
||||
.contact-card h4 { font-family: var(--font-heading); font-size: var(--text-h6); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-2); }
|
||||
.contact-card p, .contact-card a { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.btn-whatsapp {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-5); background: #25D366; color: #fff;
|
||||
border: none; border-radius: var(--radius-md); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
text-decoration: none; transition: all 0.25s ease;
|
||||
box-shadow: 0 4px 0 #1aa84c, 0 6px 12px rgba(37,211,102,0.2);
|
||||
}
|
||||
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #1aa84c, 0 10px 24px rgba(37,211,102,0.3); text-decoration: none; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
FOOTER
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.site-footer { border-top: 1px solid var(--color-border); padding: var(--space-10) 0 var(--space-6); position: relative; overflow: hidden; }
|
||||
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; }
|
||||
.footer-info { position: relative; z-index: 1; }
|
||||
.footer-info .logo { font-size: var(--text-h5); display: block; margin-bottom: var(--space-2); }
|
||||
.footer-info p { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.footer-watermark {
|
||||
font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 10rem);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-muted);
|
||||
opacity: 0.06; line-height: 1; text-transform: uppercase; letter-spacing: var(--tracking-tight);
|
||||
user-select: none; white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 768px) {
|
||||
.header-nav { display: none; }
|
||||
.hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
|
||||
.hero-content { padding: var(--space-6) var(--space-4); }
|
||||
.hero-buttons { flex-direction: column; align-items: center; }
|
||||
.hero-stats { flex-direction: column; align-items: center; gap: var(--space-4); }
|
||||
.stat-card { width: 100%; max-width: 280px; }
|
||||
.product-grid { grid-template-columns: 1fr; }
|
||||
.steps { flex-direction: column; gap: var(--space-8); }
|
||||
.steps::before { display: none; }
|
||||
.diff-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.brands-header { flex-direction: column; }
|
||||
.brands-label { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); padding: var(--space-3); }
|
||||
.pricing-grid { grid-template-columns: 1fr; }
|
||||
.footer-inner { flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
|
||||
.footer-watermark { font-size: 4rem; }
|
||||
}
|
||||
@@ -12,425 +12,7 @@
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="/static/css/tokens.css">
|
||||
<style>
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; scrollbar-width: none; }
|
||||
html::-webkit-scrollbar { width: 0; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
line-height: var(--leading-body);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
a { color: var(--color-text-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
.container {
|
||||
max-width: var(--content-xl);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HEADER — Glassmorphism sticky
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.site-header {
|
||||
position: fixed; top: 0; left: 0; right: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
.site-header .container {
|
||||
display: flex; align-items: center; justify-content: space-between; height: 64px;
|
||||
}
|
||||
.logo {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase; text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.logo::after {
|
||||
content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
|
||||
height: 2px; background: var(--gradient-accent); border-radius: 1px; opacity: 0.6; filter: blur(2px);
|
||||
}
|
||||
.header-nav { display: flex; gap: var(--space-6); align-items: center; }
|
||||
.header-nav a {
|
||||
font-size: var(--text-body-sm); color: var(--color-text-secondary);
|
||||
text-decoration: none; position: relative; padding: var(--space-1) 0; transition: color 0.2s ease;
|
||||
}
|
||||
.header-nav a:hover { color: var(--color-text-accent); text-decoration: none; }
|
||||
.header-nav a::after {
|
||||
content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
|
||||
background: var(--color-primary); transition: width 0.3s ease;
|
||||
}
|
||||
.header-nav a:hover::after { width: 100%; }
|
||||
.header-actions { display: flex; gap: var(--space-3); align-items: center; }
|
||||
.theme-toggle {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px dashed var(--glass-border); border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted); cursor: pointer; font-size: 1.1rem; transition: var(--transition-fast);
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
border-color: var(--color-border-accent); color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-5); border-radius: var(--radius-md);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer; border: 2px solid transparent; text-decoration: none;
|
||||
transition: all 0.25s var(--ease-out); position: relative; overflow: hidden;
|
||||
}
|
||||
.btn:hover { text-decoration: none; }
|
||||
.btn-primary {
|
||||
background: var(--gradient-accent); color: var(--btn-primary-text); border: none;
|
||||
box-shadow: 0 4px 0 var(--color-primary-active), 0 6px 12px var(--glow-color-soft);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 0 var(--color-primary-active), 0 10px 24px var(--glow-color);
|
||||
}
|
||||
.btn-primary:active {
|
||||
transform: translateY(2px);
|
||||
box-shadow: 0 2px 0 var(--color-primary-active), 0 3px 8px var(--glow-color-soft);
|
||||
}
|
||||
.btn-primary::after {
|
||||
content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.btn-primary:hover::after { left: 120%; }
|
||||
.btn-secondary {
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
color: var(--color-text-accent); border: 1px solid var(--color-border-accent);
|
||||
}
|
||||
.btn-secondary:hover { background: var(--color-primary-muted); box-shadow: 0 0 20px var(--glow-color-soft); }
|
||||
.btn-lg { padding: var(--space-3) var(--space-8); font-size: var(--text-body); border-radius: var(--radius-lg); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HERO
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.hero {
|
||||
position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden; padding-top: 64px;
|
||||
}
|
||||
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
||||
.hero::after {
|
||||
content: ''; position: absolute; inset: 0;
|
||||
background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--glow-color-soft) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: var(--space-8) var(--space-6); }
|
||||
.hero h1 {
|
||||
font-family: var(--font-heading); font-size: clamp(2.5rem, 7vw, 4.5rem);
|
||||
font-weight: var(--heading-weight-primary); line-height: 1.05; letter-spacing: var(--tracking-tight);
|
||||
background: var(--gradient-text); background-size: 200% auto;
|
||||
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
||||
animation: nx-shimmer 4s linear infinite; margin-bottom: var(--space-3);
|
||||
}
|
||||
.hero .subtitle {
|
||||
font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--color-text-secondary);
|
||||
margin-bottom: var(--space-2); max-width: 650px; margin-left: auto; margin-right: auto;
|
||||
}
|
||||
.hero .typewriter-line {
|
||||
display: inline-block; font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted); background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
padding: var(--space-1) var(--space-4); border-radius: var(--radius-md);
|
||||
border: 1px dashed var(--glass-border); margin-bottom: var(--space-8); min-height: 2em;
|
||||
}
|
||||
.typewriter-cursor {
|
||||
display: inline-block; width: 2px; height: 1em; background: var(--color-primary);
|
||||
vertical-align: text-bottom; margin-left: 2px; animation: nx-typewriter-cursor 0.8s ease infinite;
|
||||
}
|
||||
.hero-buttons { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-12); }
|
||||
.hero-stats { display: flex; justify-content: center; gap: var(--space-6); flex-wrap: wrap; }
|
||||
.stat-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-5) var(--space-8); text-align: center; min-width: 140px;
|
||||
transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.stat-card:hover { border-color: var(--color-border-accent); box-shadow: 0 0 24px var(--glow-color-soft); transform: translateY(-4px); }
|
||||
.stat-card .number {
|
||||
font-family: var(--font-heading); font-size: var(--text-h2); font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent); line-height: 1;
|
||||
}
|
||||
.stat-card .label {
|
||||
font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
SECTION CHROME — Terminal style separator
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.section-chrome {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
}
|
||||
.chrome-dots { display: flex; gap: 6px; }
|
||||
.chrome-dots span { width: 10px; height: 10px; border-radius: var(--radius-full); border: 1.5px solid var(--color-text-muted); opacity: 0.3; }
|
||||
.chrome-label {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
.chrome-star { color: var(--color-text-muted); opacity: 0.3; font-size: 14px; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
PRODUCT SECTION — 3 columns with feature lists
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.product { padding: var(--space-16) 0; }
|
||||
.section-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h2); font-weight: var(--heading-weight-primary);
|
||||
text-align: center; margin-bottom: var(--space-3); letter-spacing: var(--heading-tracking-h2);
|
||||
}
|
||||
.section-subtitle {
|
||||
text-align: center; font-size: var(--text-body); color: var(--color-text-secondary);
|
||||
margin-bottom: var(--space-10); max-width: 600px; margin-left: auto; margin-right: auto;
|
||||
}
|
||||
.product-grid {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
|
||||
}
|
||||
.product-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); transition: all 0.35s var(--ease-out); position: relative; overflow: hidden;
|
||||
}
|
||||
.product-card::before {
|
||||
content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
|
||||
border-radius: 3px 0 0 3px;
|
||||
}
|
||||
.product-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 8px 32px var(--glow-color-soft);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
.product-card--orange::before { background: var(--color-primary); }
|
||||
.product-card--cyan::before { background: #00D4FF; }
|
||||
.product-card--green::before { background: #3FB950; }
|
||||
|
||||
.product-card h3 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h6);
|
||||
font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-4);
|
||||
}
|
||||
.product-card--orange h3 { color: var(--color-text-accent); }
|
||||
.product-card--cyan h3 { color: #00D4FF; }
|
||||
.product-card--green h3 { color: #3FB950; }
|
||||
|
||||
.product-card ul { list-style: none; font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.product-card ul li {
|
||||
padding: var(--space-1) 0; line-height: 1.8;
|
||||
}
|
||||
.product-card ul li::before { margin-right: var(--space-2); }
|
||||
.product-card--orange ul li::before { content: '▸ '; color: var(--color-text-accent); }
|
||||
.product-card--cyan ul li::before { content: '▸ '; color: #00D4FF; }
|
||||
.product-card--green ul li::before { content: '▸ '; color: #3FB950; }
|
||||
|
||||
/* Hardware banner */
|
||||
.hw-banner {
|
||||
margin-top: var(--space-6); text-align: center;
|
||||
}
|
||||
.hw-banner-inner {
|
||||
display: inline-flex; align-items: center; gap: var(--space-4);
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px dashed var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-4) var(--space-8); transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.hw-banner-inner:hover { border-color: var(--color-border-accent); box-shadow: 0 0 20px var(--glow-color-soft); }
|
||||
.hw-banner-inner span:first-child { font-size: 1.5rem; }
|
||||
.hw-banner-inner .hw-text { font-size: var(--text-body-sm); color: var(--color-text-secondary); text-align: left; }
|
||||
.hw-banner-inner .hw-text strong { color: var(--color-text-accent); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HOW IT WORKS — Timeline
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.how-it-works { padding: var(--space-16) 0; }
|
||||
.steps { display: flex; justify-content: center; gap: 0; max-width: 900px; margin: 0 auto; position: relative; }
|
||||
.steps::before {
|
||||
content: ''; position: absolute; top: 28px; left: 15%; right: 15%; height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent); opacity: 0.3;
|
||||
}
|
||||
.step { flex: 1; text-align: center; padding: 0 var(--space-4); position: relative; }
|
||||
.step-number {
|
||||
display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
|
||||
border-radius: var(--radius-full); background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
border: 2px solid var(--color-border-accent); color: var(--color-text-accent);
|
||||
font-family: var(--font-heading); font-size: var(--text-h3); font-weight: var(--heading-weight-primary);
|
||||
margin-bottom: var(--space-4); position: relative; z-index: 1; transition: all 0.3s ease;
|
||||
}
|
||||
.step:hover .step-number {
|
||||
box-shadow: 0 0 24px var(--glow-color), 0 0 48px var(--glow-color-soft);
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
}
|
||||
.step h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-2); }
|
||||
.step p { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
DIFFERENTIATOR — Competitive highlight
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.differentiator { padding: var(--space-16) 0; }
|
||||
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
|
||||
.diff-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.diff-card:hover { border-color: var(--color-border-accent); box-shadow: 0 4px 20px var(--glow-color-soft); transform: translateY(-3px); }
|
||||
.diff-icon {
|
||||
width: 48px; height: 48px; margin: 0 auto var(--space-3);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary-muted); border: 1px dashed var(--color-border-accent);
|
||||
border-radius: var(--radius-md); font-size: 1.3rem;
|
||||
}
|
||||
.diff-card h4 { font-family: var(--font-heading); font-size: var(--text-body); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-1); }
|
||||
.diff-card p { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
BRANDS MARQUEE
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.brands-section {
|
||||
padding: var(--space-12) 0; overflow: hidden;
|
||||
border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.brands-header { display: flex; align-items: center; }
|
||||
.brands-label {
|
||||
flex-shrink: 0; width: 200px; padding: var(--space-6);
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm); font-weight: var(--heading-weight-secondary);
|
||||
color: var(--color-text-muted); text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
border-right: 1px solid var(--color-border); text-align: center;
|
||||
}
|
||||
.marquee-track { flex: 1; overflow: hidden; position: relative; padding: var(--space-4) 0; }
|
||||
.marquee-track::before, .marquee-track::after {
|
||||
content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
|
||||
}
|
||||
.marquee-track::before { left: 0; background: linear-gradient(90deg, var(--color-bg-base), transparent); }
|
||||
.marquee-track::after { right: 0; background: linear-gradient(270deg, var(--color-bg-base), transparent); }
|
||||
.marquee-inner { display: flex; gap: var(--space-3); width: max-content; animation: nx-marquee 40s linear infinite; }
|
||||
.marquee-inner:hover { animation-play-state: paused; }
|
||||
.brand-tag {
|
||||
display: inline-flex; align-items: center; padding: var(--space-2) var(--space-4);
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); letter-spacing: var(--tracking-wide);
|
||||
white-space: nowrap; transition: all 0.25s ease; cursor: pointer;
|
||||
}
|
||||
.brand-tag:hover {
|
||||
border-color: var(--color-border-accent); color: var(--color-text-accent);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft); text-decoration: none;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
PRICING PREVIEW
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.pricing { padding: var(--space-16) 0; }
|
||||
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); max-width: 900px; margin: 0 auto; }
|
||||
.pricing-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.pricing-card:hover { border-color: var(--color-border-accent); box-shadow: 0 8px 32px var(--glow-color-soft); transform: translateY(-3px); }
|
||||
.pricing-card.featured { border-color: var(--color-border-accent); }
|
||||
.pricing-card h4 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h6); font-weight: var(--heading-weight-secondary);
|
||||
margin-bottom: var(--space-2); color: var(--color-text-primary);
|
||||
}
|
||||
.pricing-price {
|
||||
font-family: var(--font-heading); font-size: var(--text-h3); font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent); margin-bottom: var(--space-1);
|
||||
}
|
||||
.pricing-period { font-size: var(--text-caption); color: var(--color-text-muted); margin-bottom: var(--space-4); }
|
||||
.pricing-card ul { list-style: none; text-align: left; font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.pricing-card ul li { padding: 3px 0; }
|
||||
.pricing-card ul li::before { content: '✓ '; color: var(--color-text-accent); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
CONTACT
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.contact { padding: var(--space-16) 0; }
|
||||
.contact-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: var(--space-6); max-width: 900px; margin: 0 auto;
|
||||
}
|
||||
.contact-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-8); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.contact-card:hover { border-color: var(--color-border-accent); box-shadow: 0 8px 32px var(--glow-color-soft); transform: translateY(-4px); }
|
||||
.contact-icon {
|
||||
width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary-muted); border: 1px dashed var(--color-border-accent);
|
||||
border-radius: var(--radius-md); font-size: 1.3rem; margin-bottom: var(--space-4);
|
||||
}
|
||||
.contact-card h4 { font-family: var(--font-heading); font-size: var(--text-h6); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-2); }
|
||||
.contact-card p, .contact-card a { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.btn-whatsapp {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-5); background: #25D366; color: #fff;
|
||||
border: none; border-radius: var(--radius-md); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
text-decoration: none; transition: all 0.25s ease;
|
||||
box-shadow: 0 4px 0 #1aa84c, 0 6px 12px rgba(37,211,102,0.2);
|
||||
}
|
||||
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #1aa84c, 0 10px 24px rgba(37,211,102,0.3); text-decoration: none; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
FOOTER
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.site-footer { border-top: 1px solid var(--color-border); padding: var(--space-10) 0 var(--space-6); position: relative; overflow: hidden; }
|
||||
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; }
|
||||
.footer-info { position: relative; z-index: 1; }
|
||||
.footer-info .logo { font-size: var(--text-h5); display: block; margin-bottom: var(--space-2); }
|
||||
.footer-info p { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.footer-watermark {
|
||||
font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 10rem);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-muted);
|
||||
opacity: 0.06; line-height: 1; text-transform: uppercase; letter-spacing: var(--tracking-tight);
|
||||
user-select: none; white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 768px) {
|
||||
.header-nav { display: none; }
|
||||
.hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
|
||||
.hero-content { padding: var(--space-6) var(--space-4); }
|
||||
.hero-buttons { flex-direction: column; align-items: center; }
|
||||
.hero-stats { flex-direction: column; align-items: center; gap: var(--space-4); }
|
||||
.stat-card { width: 100%; max-width: 280px; }
|
||||
.product-grid { grid-template-columns: 1fr; }
|
||||
.steps { flex-direction: column; gap: var(--space-8); }
|
||||
.steps::before { display: none; }
|
||||
.diff-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.brands-header { flex-direction: column; }
|
||||
.brands-label { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); padding: var(--space-3); }
|
||||
.pricing-grid { grid-template-columns: 1fr; }
|
||||
.footer-inner { flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
|
||||
.footer-watermark { font-size: 4rem; }
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="landing.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
419
dashboard/landing.min.css
vendored
Normal file
419
dashboard/landing.min.css
vendored
Normal file
@@ -0,0 +1,419 @@
|
||||
/* Extracted from landing.html */
|
||||
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; scrollbar-width: none; }
|
||||
html::-webkit-scrollbar { width: 0; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
line-height: var(--leading-body);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
a { color: var(--color-text-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
.container {
|
||||
max-width: var(--content-xl);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--space-6);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HEADER — Glassmorphism sticky
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.site-header {
|
||||
position: fixed; top: 0; left: 0; right: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
.site-header .container {
|
||||
display: flex; align-items: center; justify-content: space-between; height: 64px;
|
||||
}
|
||||
.logo {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase; text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.logo::after {
|
||||
content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
|
||||
height: 2px; background: var(--gradient-accent); border-radius: 1px; opacity: 0.6; filter: blur(2px);
|
||||
}
|
||||
.header-nav { display: flex; gap: var(--space-6); align-items: center; }
|
||||
.header-nav a {
|
||||
font-size: var(--text-body-sm); color: var(--color-text-secondary);
|
||||
text-decoration: none; position: relative; padding: var(--space-1) 0; transition: color 0.2s ease;
|
||||
}
|
||||
.header-nav a:hover { color: var(--color-text-accent); text-decoration: none; }
|
||||
.header-nav a::after {
|
||||
content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
|
||||
background: var(--color-primary); transition: width 0.3s ease;
|
||||
}
|
||||
.header-nav a:hover::after { width: 100%; }
|
||||
.header-actions { display: flex; gap: var(--space-3); align-items: center; }
|
||||
.theme-toggle {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px dashed var(--glass-border); border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted); cursor: pointer; font-size: 1.1rem; transition: var(--transition-fast);
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
border-color: var(--color-border-accent); color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-5); border-radius: var(--radius-md);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer; border: 2px solid transparent; text-decoration: none;
|
||||
transition: all 0.25s var(--ease-out); position: relative; overflow: hidden;
|
||||
}
|
||||
.btn:hover { text-decoration: none; }
|
||||
.btn-primary {
|
||||
background: var(--gradient-accent); color: var(--btn-primary-text); border: none;
|
||||
box-shadow: 0 4px 0 var(--color-primary-active), 0 6px 12px var(--glow-color-soft);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 0 var(--color-primary-active), 0 10px 24px var(--glow-color);
|
||||
}
|
||||
.btn-primary:active {
|
||||
transform: translateY(2px);
|
||||
box-shadow: 0 2px 0 var(--color-primary-active), 0 3px 8px var(--glow-color-soft);
|
||||
}
|
||||
.btn-primary::after {
|
||||
content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.btn-primary:hover::after { left: 120%; }
|
||||
.btn-secondary {
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
color: var(--color-text-accent); border: 1px solid var(--color-border-accent);
|
||||
}
|
||||
.btn-secondary:hover { background: var(--color-primary-muted); box-shadow: 0 0 20px var(--glow-color-soft); }
|
||||
.btn-lg { padding: var(--space-3) var(--space-8); font-size: var(--text-body); border-radius: var(--radius-lg); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HERO
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.hero {
|
||||
position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden; padding-top: 64px;
|
||||
}
|
||||
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
||||
.hero::after {
|
||||
content: ''; position: absolute; inset: 0;
|
||||
background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--glow-color-soft) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: var(--space-8) var(--space-6); }
|
||||
.hero h1 {
|
||||
font-family: var(--font-heading); font-size: clamp(2.5rem, 7vw, 4.5rem);
|
||||
font-weight: var(--heading-weight-primary); line-height: 1.05; letter-spacing: var(--tracking-tight);
|
||||
background: var(--gradient-text); background-size: 200% auto;
|
||||
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
||||
animation: nx-shimmer 4s linear infinite; margin-bottom: var(--space-3);
|
||||
}
|
||||
.hero .subtitle {
|
||||
font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--color-text-secondary);
|
||||
margin-bottom: var(--space-2); max-width: 650px; margin-left: auto; margin-right: auto;
|
||||
}
|
||||
.hero .typewriter-line {
|
||||
display: inline-block; font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted); background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
padding: var(--space-1) var(--space-4); border-radius: var(--radius-md);
|
||||
border: 1px dashed var(--glass-border); margin-bottom: var(--space-8); min-height: 2em;
|
||||
}
|
||||
.typewriter-cursor {
|
||||
display: inline-block; width: 2px; height: 1em; background: var(--color-primary);
|
||||
vertical-align: text-bottom; margin-left: 2px; animation: nx-typewriter-cursor 0.8s ease infinite;
|
||||
}
|
||||
.hero-buttons { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-12); }
|
||||
.hero-stats { display: flex; justify-content: center; gap: var(--space-6); flex-wrap: wrap; }
|
||||
.stat-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-5) var(--space-8); text-align: center; min-width: 140px;
|
||||
transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.stat-card:hover { border-color: var(--color-border-accent); box-shadow: 0 0 24px var(--glow-color-soft); transform: translateY(-4px); }
|
||||
.stat-card .number {
|
||||
font-family: var(--font-heading); font-size: var(--text-h2); font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent); line-height: 1;
|
||||
}
|
||||
.stat-card .label {
|
||||
font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
SECTION CHROME — Terminal style separator
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.section-chrome {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
}
|
||||
.chrome-dots { display: flex; gap: 6px; }
|
||||
.chrome-dots span { width: 10px; height: 10px; border-radius: var(--radius-full); border: 1.5px solid var(--color-text-muted); opacity: 0.3; }
|
||||
.chrome-label {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
.chrome-star { color: var(--color-text-muted); opacity: 0.3; font-size: 14px; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
PRODUCT SECTION — 3 columns with feature lists
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.product { padding: var(--space-16) 0; }
|
||||
.section-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h2); font-weight: var(--heading-weight-primary);
|
||||
text-align: center; margin-bottom: var(--space-3); letter-spacing: var(--heading-tracking-h2);
|
||||
}
|
||||
.section-subtitle {
|
||||
text-align: center; font-size: var(--text-body); color: var(--color-text-secondary);
|
||||
margin-bottom: var(--space-10); max-width: 600px; margin-left: auto; margin-right: auto;
|
||||
}
|
||||
.product-grid {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
|
||||
}
|
||||
.product-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); transition: all 0.35s var(--ease-out); position: relative; overflow: hidden;
|
||||
}
|
||||
.product-card::before {
|
||||
content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
|
||||
border-radius: 3px 0 0 3px;
|
||||
}
|
||||
.product-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 8px 32px var(--glow-color-soft);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
.product-card--orange::before { background: var(--color-primary); }
|
||||
.product-card--cyan::before { background: #00D4FF; }
|
||||
.product-card--green::before { background: #3FB950; }
|
||||
|
||||
.product-card h3 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h6);
|
||||
font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-4);
|
||||
}
|
||||
.product-card--orange h3 { color: var(--color-text-accent); }
|
||||
.product-card--cyan h3 { color: #00D4FF; }
|
||||
.product-card--green h3 { color: #3FB950; }
|
||||
|
||||
.product-card ul { list-style: none; font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.product-card ul li {
|
||||
padding: var(--space-1) 0; line-height: 1.8;
|
||||
}
|
||||
.product-card ul li::before { margin-right: var(--space-2); }
|
||||
.product-card--orange ul li::before { content: '▸ '; color: var(--color-text-accent); }
|
||||
.product-card--cyan ul li::before { content: '▸ '; color: #00D4FF; }
|
||||
.product-card--green ul li::before { content: '▸ '; color: #3FB950; }
|
||||
|
||||
/* Hardware banner */
|
||||
.hw-banner {
|
||||
margin-top: var(--space-6); text-align: center;
|
||||
}
|
||||
.hw-banner-inner {
|
||||
display: inline-flex; align-items: center; gap: var(--space-4);
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px dashed var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-4) var(--space-8); transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.hw-banner-inner:hover { border-color: var(--color-border-accent); box-shadow: 0 0 20px var(--glow-color-soft); }
|
||||
.hw-banner-inner span:first-child { font-size: 1.5rem; }
|
||||
.hw-banner-inner .hw-text { font-size: var(--text-body-sm); color: var(--color-text-secondary); text-align: left; }
|
||||
.hw-banner-inner .hw-text strong { color: var(--color-text-accent); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
HOW IT WORKS — Timeline
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.how-it-works { padding: var(--space-16) 0; }
|
||||
.steps { display: flex; justify-content: center; gap: 0; max-width: 900px; margin: 0 auto; position: relative; }
|
||||
.steps::before {
|
||||
content: ''; position: absolute; top: 28px; left: 15%; right: 15%; height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent); opacity: 0.3;
|
||||
}
|
||||
.step { flex: 1; text-align: center; padding: 0 var(--space-4); position: relative; }
|
||||
.step-number {
|
||||
display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
|
||||
border-radius: var(--radius-full); background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
border: 2px solid var(--color-border-accent); color: var(--color-text-accent);
|
||||
font-family: var(--font-heading); font-size: var(--text-h3); font-weight: var(--heading-weight-primary);
|
||||
margin-bottom: var(--space-4); position: relative; z-index: 1; transition: all 0.3s ease;
|
||||
}
|
||||
.step:hover .step-number {
|
||||
box-shadow: 0 0 24px var(--glow-color), 0 0 48px var(--glow-color-soft);
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
}
|
||||
.step h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-2); }
|
||||
.step p { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
DIFFERENTIATOR — Competitive highlight
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.differentiator { padding: var(--space-16) 0; }
|
||||
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
|
||||
.diff-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.diff-card:hover { border-color: var(--color-border-accent); box-shadow: 0 4px 20px var(--glow-color-soft); transform: translateY(-3px); }
|
||||
.diff-icon {
|
||||
width: 48px; height: 48px; margin: 0 auto var(--space-3);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary-muted); border: 1px dashed var(--color-border-accent);
|
||||
border-radius: var(--radius-md); font-size: 1.3rem;
|
||||
}
|
||||
.diff-card h4 { font-family: var(--font-heading); font-size: var(--text-body); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-1); }
|
||||
.diff-card p { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
BRANDS MARQUEE
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.brands-section {
|
||||
padding: var(--space-12) 0; overflow: hidden;
|
||||
border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.brands-header { display: flex; align-items: center; }
|
||||
.brands-label {
|
||||
flex-shrink: 0; width: 200px; padding: var(--space-6);
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm); font-weight: var(--heading-weight-secondary);
|
||||
color: var(--color-text-muted); text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
border-right: 1px solid var(--color-border); text-align: center;
|
||||
}
|
||||
.marquee-track { flex: 1; overflow: hidden; position: relative; padding: var(--space-4) 0; }
|
||||
.marquee-track::before, .marquee-track::after {
|
||||
content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
|
||||
}
|
||||
.marquee-track::before { left: 0; background: linear-gradient(90deg, var(--color-bg-base), transparent); }
|
||||
.marquee-track::after { right: 0; background: linear-gradient(270deg, var(--color-bg-base), transparent); }
|
||||
.marquee-inner { display: flex; gap: var(--space-3); width: max-content; animation: nx-marquee 40s linear infinite; }
|
||||
.marquee-inner:hover { animation-play-state: paused; }
|
||||
.brand-tag {
|
||||
display: inline-flex; align-items: center; padding: var(--space-2) var(--space-4);
|
||||
background: var(--glass-bg); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); letter-spacing: var(--tracking-wide);
|
||||
white-space: nowrap; transition: all 0.25s ease; cursor: pointer;
|
||||
}
|
||||
.brand-tag:hover {
|
||||
border-color: var(--color-border-accent); color: var(--color-text-accent);
|
||||
box-shadow: 0 0 16px var(--glow-color-soft); text-decoration: none;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
PRICING PREVIEW
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.pricing { padding: var(--space-16) 0; }
|
||||
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); max-width: 900px; margin: 0 auto; }
|
||||
.pricing-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-6); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.pricing-card:hover { border-color: var(--color-border-accent); box-shadow: 0 8px 32px var(--glow-color-soft); transform: translateY(-3px); }
|
||||
.pricing-card.featured { border-color: var(--color-border-accent); }
|
||||
.pricing-card h4 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h6); font-weight: var(--heading-weight-secondary);
|
||||
margin-bottom: var(--space-2); color: var(--color-text-primary);
|
||||
}
|
||||
.pricing-price {
|
||||
font-family: var(--font-heading); font-size: var(--text-h3); font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-accent); margin-bottom: var(--space-1);
|
||||
}
|
||||
.pricing-period { font-size: var(--text-caption); color: var(--color-text-muted); margin-bottom: var(--space-4); }
|
||||
.pricing-card ul { list-style: none; text-align: left; font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.pricing-card ul li { padding: 3px 0; }
|
||||
.pricing-card ul li::before { content: '✓ '; color: var(--color-text-accent); }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
CONTACT
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.contact { padding: var(--space-16) 0; }
|
||||
.contact-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: var(--space-6); max-width: 900px; margin: 0 auto;
|
||||
}
|
||||
.contact-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-8); text-align: center; transition: all 0.3s var(--ease-out);
|
||||
}
|
||||
.contact-card:hover { border-color: var(--color-border-accent); box-shadow: 0 8px 32px var(--glow-color-soft); transform: translateY(-4px); }
|
||||
.contact-icon {
|
||||
width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary-muted); border: 1px dashed var(--color-border-accent);
|
||||
border-radius: var(--radius-md); font-size: 1.3rem; margin-bottom: var(--space-4);
|
||||
}
|
||||
.contact-card h4 { font-family: var(--font-heading); font-size: var(--text-h6); font-weight: var(--heading-weight-secondary); margin-bottom: var(--space-2); }
|
||||
.contact-card p, .contact-card a { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.btn-whatsapp {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-5); background: #25D366; color: #fff;
|
||||
border: none; border-radius: var(--radius-md); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
text-decoration: none; transition: all 0.25s ease;
|
||||
box-shadow: 0 4px 0 #1aa84c, 0 6px 12px rgba(37,211,102,0.2);
|
||||
}
|
||||
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #1aa84c, 0 10px 24px rgba(37,211,102,0.3); text-decoration: none; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
FOOTER
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.site-footer { border-top: 1px solid var(--color-border); padding: var(--space-10) 0 var(--space-6); position: relative; overflow: hidden; }
|
||||
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; }
|
||||
.footer-info { position: relative; z-index: 1; }
|
||||
.footer-info .logo { font-size: var(--text-h5); display: block; margin-bottom: var(--space-2); }
|
||||
.footer-info p { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.footer-watermark {
|
||||
font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 10rem);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-muted);
|
||||
opacity: 0.06; line-height: 1; text-transform: uppercase; letter-spacing: var(--tracking-tight);
|
||||
user-select: none; white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 768px) {
|
||||
.header-nav { display: none; }
|
||||
.hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
|
||||
.hero-content { padding: var(--space-6) var(--space-4); }
|
||||
.hero-buttons { flex-direction: column; align-items: center; }
|
||||
.hero-stats { flex-direction: column; align-items: center; gap: var(--space-4); }
|
||||
.stat-card { width: 100%; max-width: 280px; }
|
||||
.product-grid { grid-template-columns: 1fr; }
|
||||
.steps { flex-direction: column; gap: var(--space-8); }
|
||||
.steps::before { display: none; }
|
||||
.diff-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.brands-header { flex-direction: column; }
|
||||
.brands-label { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); padding: var(--space-3); }
|
||||
.pricing-grid { grid-template-columns: 1fr; }
|
||||
.footer-inner { flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
|
||||
.footer-watermark { font-size: 4rem; }
|
||||
}
|
||||
1246
pos/static/css/accounting.css
Normal file
1246
pos/static/css/accounting.css
Normal file
File diff suppressed because it is too large
Load Diff
1246
pos/static/css/accounting.min.css
vendored
Normal file
1246
pos/static/css/accounting.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
555
pos/static/css/catalog.css
Normal file
555
pos/static/css/catalog.css
Normal file
@@ -0,0 +1,555 @@
|
||||
/* Extracted from catalog.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
APP LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.app-shell { display: flex; height: 100vh; padding-top: 36px; }
|
||||
|
||||
/* =========================================================================
|
||||
SIDEBAR (shared pattern)
|
||||
========================================================================= */
|
||||
|
||||
.sidebar {
|
||||
width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto; transition: var(--transition-normal);
|
||||
}
|
||||
.sidebar__brand {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.brand-logo {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.375rem; letter-spacing: var(--tracking-tight); flex-shrink: 0;
|
||||
}
|
||||
[data-theme="industrial"] .brand-logo { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 0; }
|
||||
[data-theme="modern"] .brand-logo { border-radius: var(--radius-md); }
|
||||
.brand-name { display: flex; flex-direction: column; line-height: 1; }
|
||||
.brand-name__primary { font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 1.125rem; letter-spacing: var(--tracking-wide); color: var(--color-text-primary); text-transform: uppercase; }
|
||||
.brand-name__sub { font-family: var(--font-body); font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
|
||||
|
||||
.sidebar__nav { flex: 1; padding: var(--space-3) 0; }
|
||||
.nav-section-label { padding: var(--space-3) var(--space-5) var(--space-1); font-size: var(--text-caption); font-family: var(--font-body); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
|
||||
.nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-regular); text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: var(--transition-fast); border-left: 3px solid transparent; }
|
||||
.nav-item:hover { background: var(--color-primary-muted); color: var(--color-text-primary); border-left-color: var(--color-primary); }
|
||||
.nav-item.is-active { background: var(--color-primary-muted); color: var(--color-primary); font-weight: var(--font-weight-semibold); border-left-color: var(--color-primary); }
|
||||
[data-theme="industrial"] .nav-item.is-active { background: rgba(245, 166, 35, 0.12); }
|
||||
.nav-item__icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
|
||||
.nav-item.is-active .nav-item__icon, .nav-item:hover .nav-item__icon { opacity: 1; }
|
||||
.nav-item__badge { margin-left: auto; background: var(--color-primary); color: var(--color-text-inverse); font-size: 10px; font-weight: var(--font-weight-bold); padding: 1px 6px; border-radius: var(--radius-full); line-height: 1.4; }
|
||||
|
||||
.sidebar__profile { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
||||
.profile-avatar { width: 36px; height: 36px; background: var(--color-primary); color: var(--color-text-inverse); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 0.9rem; flex-shrink: 0; }
|
||||
[data-theme="industrial"] .profile-avatar { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .profile-avatar { border-radius: var(--radius-full); }
|
||||
.profile-info { flex: 1; min-width: 0; }
|
||||
.profile-info__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.profile-info__role { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================= */
|
||||
|
||||
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
|
||||
|
||||
/* Header with breadcrumb + search */
|
||||
.content-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 var(--space-6); height: 56px; flex-shrink: 0;
|
||||
background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-sm); color: var(--color-text-muted); flex-wrap: wrap; }
|
||||
.breadcrumb__link { color: var(--color-text-muted); text-decoration: none; cursor: pointer; transition: var(--transition-fast); }
|
||||
.breadcrumb__link:hover { color: var(--color-primary); }
|
||||
.breadcrumb__sep { color: var(--color-text-disabled); }
|
||||
.breadcrumb__current { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
|
||||
|
||||
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
|
||||
|
||||
/* ── Catalog mode toggle (OEM / Local) ── */
|
||||
.mode-toggle {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
gap: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.mode-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
padding: 4px 12px;
|
||||
border-radius: calc(var(--radius-md) - 3px);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s var(--ease-out);
|
||||
}
|
||||
.mode-toggle button:hover {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.mode-toggle button.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
.search-bar {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
background: var(--color-bg-overlay); border: 1px solid var(--color-border);
|
||||
padding: var(--space-1) var(--space-3); width: 360px; transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .search-bar { border-radius: 0; }
|
||||
[data-theme="modern"] .search-bar { border-radius: var(--radius-md); }
|
||||
.search-bar:focus-within { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
.search-bar svg { color: var(--color-text-muted); flex-shrink: 0; }
|
||||
.search-bar input {
|
||||
flex: 1; border: none; background: transparent; color: var(--color-text-primary);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); outline: none;
|
||||
height: 32px;
|
||||
}
|
||||
.search-bar input::placeholder { color: var(--color-text-disabled); }
|
||||
|
||||
/* Search dropdown */
|
||||
.search-dropdown {
|
||||
position: absolute; top: 100%; left: 0; right: 0;
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto;
|
||||
display: none; z-index: var(--z-dropdown);
|
||||
}
|
||||
[data-theme="industrial"] .search-dropdown { border-radius: 0; }
|
||||
[data-theme="modern"] .search-dropdown { border-radius: var(--radius-md); }
|
||||
.search-dropdown.is-visible { display: block; }
|
||||
.search-result-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4); cursor: pointer;
|
||||
border-bottom: 1px solid var(--color-border); transition: var(--transition-fast);
|
||||
}
|
||||
.search-result-item:hover { background: var(--color-primary-muted); }
|
||||
.search-result-item:last-child { border-bottom: none; }
|
||||
.search-result__oem { font-weight: var(--font-weight-semibold); color: var(--color-primary); font-size: var(--text-body-sm); }
|
||||
.search-result__name { color: var(--color-text-primary); font-size: var(--text-body-sm); }
|
||||
.search-result__vehicle { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
PAGE BODY
|
||||
========================================================================= */
|
||||
|
||||
.page-body {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-6);
|
||||
display: flex; flex-direction: column; gap: var(--space-5);
|
||||
}
|
||||
[data-theme="modern"] .page-body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* Level title */
|
||||
.level-title {
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: var(--text-h4); color: var(--color-text-primary);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
}
|
||||
[data-theme="industrial"] .level-title { color: var(--color-primary); }
|
||||
|
||||
/* Filter input (quick filter within level) */
|
||||
.level-filter {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: var(--color-bg-overlay); border: 1px solid var(--color-border);
|
||||
color: var(--color-text-primary); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); outline: none; width: 100%; max-width: 400px;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .level-filter { border-radius: 0; }
|
||||
[data-theme="modern"] .level-filter { border-radius: var(--radius-md); }
|
||||
.level-filter:focus { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
|
||||
/* =========================================================================
|
||||
NAVIGATION CARDS
|
||||
========================================================================= */
|
||||
|
||||
.nav-grid {
|
||||
display: grid; gap: var(--space-4);
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
}
|
||||
.nav-grid--years {
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
}
|
||||
.nav-grid--parts {
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
}
|
||||
|
||||
.nav-card {
|
||||
display: flex; flex-direction: column; justify-content: center; align-items: center;
|
||||
padding: var(--space-5) var(--space-4); gap: var(--space-2);
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
box-shadow: var(--shadow-sm); min-height: 80px;
|
||||
}
|
||||
[data-theme="industrial"] .nav-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .nav-card { border-radius: var(--radius-lg); }
|
||||
.nav-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
|
||||
.nav-card__name { font-family: var(--font-heading); font-weight: var(--heading-weight-secondary); font-size: var(--text-body); color: var(--color-text-primary); letter-spacing: var(--tracking-wide); }
|
||||
.nav-card__sub { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.nav-card__count { font-size: var(--text-caption); color: var(--color-primary); font-weight: var(--font-weight-semibold); }
|
||||
|
||||
/* Year buttons (compact) */
|
||||
.nav-card--year { min-height: 48px; padding: var(--space-3); }
|
||||
.nav-card--year .nav-card__name { font-size: var(--text-h5); }
|
||||
|
||||
/* =========================================================================
|
||||
PART CARDS
|
||||
========================================================================= */
|
||||
|
||||
.part-card {
|
||||
display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition-fast);
|
||||
overflow: hidden;
|
||||
}
|
||||
[data-theme="industrial"] .part-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .part-card { border-radius: var(--radius-lg); }
|
||||
.part-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
|
||||
|
||||
.part-card__image {
|
||||
height: 120px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-bg-overlay); position: relative; overflow: hidden;
|
||||
color: var(--color-text-disabled);
|
||||
}
|
||||
.part-card__image img { width: 100%; height: 100%; object-fit: contain; }
|
||||
|
||||
.part-card__body { padding: var(--space-3) var(--space-4); flex: 1; }
|
||||
.part-card__oem { font-family: var(--font-mono, monospace); font-size: var(--text-caption); color: var(--color-primary); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-1); }
|
||||
.part-card__oem-sub { font-family: var(--font-mono, monospace); font-size: 10px; color: var(--color-text-muted); font-weight: var(--font-weight-regular); }
|
||||
.part-card__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); line-height: 1.3; }
|
||||
|
||||
/* Local mode — manufacturer badge + priority tier */
|
||||
.part-card__manu {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
padding: 2px 8px; margin-bottom: var(--space-1);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 10px;
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.part-card__manu .manu-tier {
|
||||
color: var(--color-primary);
|
||||
font-size: 11px;
|
||||
}
|
||||
.part-card--tier1 {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.part-card--tier1 .part-card__manu {
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.part-card--tier2 .part-card__manu {
|
||||
border-color: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.part-card__footer {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.part-card__price { font-weight: var(--font-weight-bold); color: var(--color-text-primary); }
|
||||
|
||||
/* Stock badges */
|
||||
.stock-badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
padding: 2px 8px; border-radius: var(--radius-full);
|
||||
}
|
||||
.stock-badge--local { background: var(--color-success-light); color: var(--color-success-dark); }
|
||||
.stock-badge--bodega { background: var(--color-warning-light); color: var(--color-warning-dark); }
|
||||
.stock-badge--none { background: var(--color-neutral-200); color: var(--color-neutral-600); }
|
||||
[data-theme="industrial"] .stock-badge--none { background: var(--color-neutral-700); color: var(--color-neutral-400); }
|
||||
|
||||
/* =========================================================================
|
||||
DETAIL PANEL (slide-in from right)
|
||||
========================================================================= */
|
||||
|
||||
.detail-overlay {
|
||||
position: fixed; inset: 0; z-index: calc(var(--z-modal) - 2);
|
||||
background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); display: none;
|
||||
}
|
||||
.detail-overlay.is-visible { display: block; }
|
||||
|
||||
.detail-panel {
|
||||
position: fixed; top: 0; right: 0; bottom: 0;
|
||||
width: 440px; max-width: 100vw; z-index: calc(var(--z-modal) - 1);
|
||||
background: var(--color-bg-elevated); border-left: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
|
||||
transform: translateX(100%); transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.detail-panel.is-open { transform: translateX(0); }
|
||||
|
||||
.detail-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.detail-header h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); color: var(--color-text-primary); }
|
||||
.detail-close {
|
||||
background: none; border: none; cursor: pointer; font-size: 1.4rem;
|
||||
color: var(--color-text-secondary); padding: var(--space-1);
|
||||
}
|
||||
.detail-close:hover { color: var(--color-text-primary); }
|
||||
|
||||
.detail-body { flex: 1; overflow-y: auto; padding: var(--space-5); }
|
||||
|
||||
.detail-section { margin-bottom: var(--space-5); }
|
||||
.detail-section__title {
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm);
|
||||
font-weight: var(--heading-weight-secondary); color: var(--color-text-muted);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wider);
|
||||
margin-bottom: var(--space-3); padding-bottom: var(--space-2);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.detail-oem { font-family: var(--font-mono, monospace); font-size: var(--text-h5); color: var(--color-primary); font-weight: var(--font-weight-bold); margin-bottom: var(--space-2); }
|
||||
.detail-name { font-size: var(--text-body); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-2); }
|
||||
.detail-desc { font-size: var(--text-body-sm); color: var(--color-text-secondary); line-height: 1.5; }
|
||||
|
||||
/* Stock info */
|
||||
.stock-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; }
|
||||
.stock-label { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.stock-value { font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); }
|
||||
.stock-value--ok { color: var(--color-success); }
|
||||
.stock-value--zero { color: var(--color-text-muted); }
|
||||
|
||||
/* Bodega table */
|
||||
.bodega-table { width: 100%; font-size: var(--text-body-sm); border-collapse: collapse; }
|
||||
.bodega-table th { text-align: left; font-weight: var(--font-weight-semibold); color: var(--color-text-muted); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: var(--tracking-wider); padding: var(--space-2) var(--space-2); border-bottom: 1px solid var(--color-border); }
|
||||
.bodega-table td { padding: var(--space-2); border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); }
|
||||
|
||||
/* Alternatives list */
|
||||
.alt-item { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
|
||||
.alt-item:last-child { border-bottom: none; }
|
||||
.alt-item__pn { font-weight: var(--font-weight-semibold); color: var(--color-text-primary); font-size: var(--text-body-sm); }
|
||||
.alt-item__mfr { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.alt-item__stock { font-size: var(--text-caption); }
|
||||
|
||||
/* Add to cart section */
|
||||
.detail-footer {
|
||||
padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border);
|
||||
flex-shrink: 0; background: var(--color-bg-elevated);
|
||||
}
|
||||
.qty-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
|
||||
.qty-btn {
|
||||
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
|
||||
border: 1px solid var(--color-border); background: var(--color-bg-base);
|
||||
color: var(--color-text-primary); cursor: pointer; font-size: 1.2rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .qty-btn { border-radius: 0; }
|
||||
[data-theme="modern"] .qty-btn { border-radius: var(--radius-sm); }
|
||||
.qty-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.qty-display { font-weight: var(--font-weight-bold); font-size: var(--text-body); min-width: 30px; text-align: center; }
|
||||
|
||||
/* Buttons */
|
||||
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-5); height: 40px; font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); border: 1px solid transparent; cursor: pointer; transition: var(--transition-fast); white-space: nowrap; letter-spacing: var(--tracking-wide); }
|
||||
[data-theme="industrial"] .btn { border-radius: 0; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); text-transform: uppercase; }
|
||||
[data-theme="modern"] .btn { border-radius: var(--radius-md); }
|
||||
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-border); }
|
||||
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost { background: var(--btn-ghost-bg); color: var(--btn-ghost-text); border-color: var(--btn-ghost-border); }
|
||||
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
/* =========================================================================
|
||||
PAGINATION
|
||||
========================================================================= */
|
||||
|
||||
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4) 0; }
|
||||
.page-item { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); background: var(--color-bg-elevated); color: var(--color-text-secondary); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: var(--transition-fast); }
|
||||
[data-theme="industrial"] .page-item { border-radius: 0; }
|
||||
[data-theme="modern"] .page-item { border-radius: var(--radius-md); }
|
||||
.page-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.page-item.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
.page-item.is-disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.page-item--wide { padding: 0 var(--space-4); gap: var(--space-2); }
|
||||
|
||||
/* =========================================================================
|
||||
EMPTY STATE
|
||||
========================================================================= */
|
||||
|
||||
.empty-state {
|
||||
display: none; flex-direction: column; align-items: center; justify-content: center;
|
||||
padding: var(--space-10) var(--space-6); text-align: center; gap: var(--space-3);
|
||||
}
|
||||
.empty-state.is-visible { display: flex; }
|
||||
.empty-state__title { font-family: var(--font-heading); font-weight: var(--heading-weight-secondary); font-size: var(--text-h4); color: var(--color-text-primary); }
|
||||
.empty-state__subtitle { font-size: var(--text-body-sm); color: var(--color-text-muted); max-width: 400px; }
|
||||
|
||||
/* =========================================================================
|
||||
LOADING SPINNER
|
||||
========================================================================= */
|
||||
|
||||
.loading { display: none; justify-content: center; padding: var(--space-10); }
|
||||
.loading.is-visible { display: flex; }
|
||||
.spinner { width: 40px; height: 40px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* =========================================================================
|
||||
CART FAB + SIDEBAR
|
||||
========================================================================= */
|
||||
|
||||
.cart-fab {
|
||||
position: fixed; bottom: var(--space-6); right: var(--space-6);
|
||||
width: 56px; height: 56px; z-index: var(--z-sticky);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
border: none; cursor: pointer; box-shadow: var(--shadow-lg);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .cart-fab { border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .cart-fab { border-radius: var(--radius-full); }
|
||||
.cart-fab:hover { transform: scale(1.08); }
|
||||
.cart-fab__badge {
|
||||
position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
|
||||
padding: 0 5px; border-radius: var(--radius-full);
|
||||
background: var(--color-error); color: #fff; font-size: 11px;
|
||||
font-weight: var(--font-weight-bold); display: none;
|
||||
align-items: center; justify-content: center; line-height: 1;
|
||||
}
|
||||
|
||||
.cart-sidebar {
|
||||
position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100vw;
|
||||
z-index: var(--z-modal); background: var(--color-bg-elevated);
|
||||
border-left: 1px solid var(--color-border); box-shadow: var(--shadow-xl);
|
||||
display: flex; flex-direction: column;
|
||||
transform: translateX(100%); transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.cart-sidebar.open { transform: translateX(0); }
|
||||
|
||||
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
|
||||
.cart-header h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); color: var(--color-text-primary); }
|
||||
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); }
|
||||
.cart-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
|
||||
.cart-item:last-child { border-bottom: none; }
|
||||
.cart-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); flex-shrink: 0; background: var(--color-bg-elevated); }
|
||||
.cart-totals { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.cart-overlay { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1); background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); display: none; }
|
||||
.cart-overlay.open { display: block; }
|
||||
|
||||
/* =========================================================================
|
||||
THEME BAR
|
||||
========================================================================= */
|
||||
|
||||
.theme-bar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-toast); display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-4); background: var(--color-bg-overlay); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px); height: 36px; }
|
||||
.theme-bar__label { font-size: var(--text-caption); color: var(--color-text-muted); font-family: var(--font-body); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
|
||||
.theme-btn { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: transparent; color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-caption); font-weight: var(--font-weight-semibold); cursor: pointer; transition: var(--transition-fast); }
|
||||
.theme-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.theme-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
/* ── Vehicle Selector ── */
|
||||
.vehicle-selector {
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 2px solid var(--color-primary-muted, rgba(245,166,35,0.2));
|
||||
padding: var(--space-3) var(--space-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.vehicle-selector__inner {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.vs-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
|
||||
.vs-label {
|
||||
font-size: var(--text-caption, 0.75rem);
|
||||
font-weight: var(--font-weight-semibold, 600);
|
||||
color: var(--color-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider, 0.04em);
|
||||
}
|
||||
.vs-select {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
border: 1px solid var(--color-border);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm, 0.875rem);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
appearance: auto;
|
||||
}
|
||||
[data-theme="industrial"] .vs-select { border-radius: 0; }
|
||||
[data-theme="modern"] .vs-select { border-radius: var(--radius-md); }
|
||||
.vs-select:focus { border-color: var(--color-primary); outline: none; box-shadow: var(--shadow-focus); }
|
||||
.vs-select:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.vs-arrow {
|
||||
color: var(--color-primary);
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
padding-bottom: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.vs-clear {
|
||||
background: none;
|
||||
border: 1px solid var(--color-border);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .vs-clear { border-radius: 0; }
|
||||
[data-theme="modern"] .vs-clear { border-radius: var(--radius-md); }
|
||||
.vs-clear:hover { color: var(--color-error); border-color: var(--color-error); }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sidebar { position: fixed; left: -260px; z-index: var(--z-modal); transition: left var(--duration-normal) var(--ease-in-out); height: 100vh; }
|
||||
.sidebar.is-open { left: 0; }
|
||||
.search-bar { width: 200px; }
|
||||
.detail-panel { width: 100%; }
|
||||
.nav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
|
||||
.vehicle-selector__inner { flex-direction: column; }
|
||||
.vs-arrow { display: none; }
|
||||
}
|
||||
555
pos/static/css/catalog.min.css
vendored
Normal file
555
pos/static/css/catalog.min.css
vendored
Normal file
@@ -0,0 +1,555 @@
|
||||
/* Extracted from catalog.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
APP LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.app-shell { display: flex; height: 100vh; padding-top: 36px; }
|
||||
|
||||
/* =========================================================================
|
||||
SIDEBAR (shared pattern)
|
||||
========================================================================= */
|
||||
|
||||
.sidebar {
|
||||
width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto; transition: var(--transition-normal);
|
||||
}
|
||||
.sidebar__brand {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.brand-logo {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.375rem; letter-spacing: var(--tracking-tight); flex-shrink: 0;
|
||||
}
|
||||
[data-theme="industrial"] .brand-logo { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 0; }
|
||||
[data-theme="modern"] .brand-logo { border-radius: var(--radius-md); }
|
||||
.brand-name { display: flex; flex-direction: column; line-height: 1; }
|
||||
.brand-name__primary { font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 1.125rem; letter-spacing: var(--tracking-wide); color: var(--color-text-primary); text-transform: uppercase; }
|
||||
.brand-name__sub { font-family: var(--font-body); font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
|
||||
|
||||
.sidebar__nav { flex: 1; padding: var(--space-3) 0; }
|
||||
.nav-section-label { padding: var(--space-3) var(--space-5) var(--space-1); font-size: var(--text-caption); font-family: var(--font-body); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
|
||||
.nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-regular); text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: var(--transition-fast); border-left: 3px solid transparent; }
|
||||
.nav-item:hover { background: var(--color-primary-muted); color: var(--color-text-primary); border-left-color: var(--color-primary); }
|
||||
.nav-item.is-active { background: var(--color-primary-muted); color: var(--color-primary); font-weight: var(--font-weight-semibold); border-left-color: var(--color-primary); }
|
||||
[data-theme="industrial"] .nav-item.is-active { background: rgba(245, 166, 35, 0.12); }
|
||||
.nav-item__icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
|
||||
.nav-item.is-active .nav-item__icon, .nav-item:hover .nav-item__icon { opacity: 1; }
|
||||
.nav-item__badge { margin-left: auto; background: var(--color-primary); color: var(--color-text-inverse); font-size: 10px; font-weight: var(--font-weight-bold); padding: 1px 6px; border-radius: var(--radius-full); line-height: 1.4; }
|
||||
|
||||
.sidebar__profile { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
||||
.profile-avatar { width: 36px; height: 36px; background: var(--color-primary); color: var(--color-text-inverse); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 0.9rem; flex-shrink: 0; }
|
||||
[data-theme="industrial"] .profile-avatar { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .profile-avatar { border-radius: var(--radius-full); }
|
||||
.profile-info { flex: 1; min-width: 0; }
|
||||
.profile-info__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.profile-info__role { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================= */
|
||||
|
||||
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
|
||||
|
||||
/* Header with breadcrumb + search */
|
||||
.content-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 var(--space-6); height: 56px; flex-shrink: 0;
|
||||
background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-sm); color: var(--color-text-muted); flex-wrap: wrap; }
|
||||
.breadcrumb__link { color: var(--color-text-muted); text-decoration: none; cursor: pointer; transition: var(--transition-fast); }
|
||||
.breadcrumb__link:hover { color: var(--color-primary); }
|
||||
.breadcrumb__sep { color: var(--color-text-disabled); }
|
||||
.breadcrumb__current { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
|
||||
|
||||
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
|
||||
|
||||
/* ── Catalog mode toggle (OEM / Local) ── */
|
||||
.mode-toggle {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
gap: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.mode-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
padding: 4px 12px;
|
||||
border-radius: calc(var(--radius-md) - 3px);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s var(--ease-out);
|
||||
}
|
||||
.mode-toggle button:hover {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.mode-toggle button.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
.search-bar {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
background: var(--color-bg-overlay); border: 1px solid var(--color-border);
|
||||
padding: var(--space-1) var(--space-3); width: 360px; transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .search-bar { border-radius: 0; }
|
||||
[data-theme="modern"] .search-bar { border-radius: var(--radius-md); }
|
||||
.search-bar:focus-within { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
.search-bar svg { color: var(--color-text-muted); flex-shrink: 0; }
|
||||
.search-bar input {
|
||||
flex: 1; border: none; background: transparent; color: var(--color-text-primary);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); outline: none;
|
||||
height: 32px;
|
||||
}
|
||||
.search-bar input::placeholder { color: var(--color-text-disabled); }
|
||||
|
||||
/* Search dropdown */
|
||||
.search-dropdown {
|
||||
position: absolute; top: 100%; left: 0; right: 0;
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto;
|
||||
display: none; z-index: var(--z-dropdown);
|
||||
}
|
||||
[data-theme="industrial"] .search-dropdown { border-radius: 0; }
|
||||
[data-theme="modern"] .search-dropdown { border-radius: var(--radius-md); }
|
||||
.search-dropdown.is-visible { display: block; }
|
||||
.search-result-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4); cursor: pointer;
|
||||
border-bottom: 1px solid var(--color-border); transition: var(--transition-fast);
|
||||
}
|
||||
.search-result-item:hover { background: var(--color-primary-muted); }
|
||||
.search-result-item:last-child { border-bottom: none; }
|
||||
.search-result__oem { font-weight: var(--font-weight-semibold); color: var(--color-primary); font-size: var(--text-body-sm); }
|
||||
.search-result__name { color: var(--color-text-primary); font-size: var(--text-body-sm); }
|
||||
.search-result__vehicle { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
PAGE BODY
|
||||
========================================================================= */
|
||||
|
||||
.page-body {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-6);
|
||||
display: flex; flex-direction: column; gap: var(--space-5);
|
||||
}
|
||||
[data-theme="modern"] .page-body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* Level title */
|
||||
.level-title {
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: var(--text-h4); color: var(--color-text-primary);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
}
|
||||
[data-theme="industrial"] .level-title { color: var(--color-primary); }
|
||||
|
||||
/* Filter input (quick filter within level) */
|
||||
.level-filter {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: var(--color-bg-overlay); border: 1px solid var(--color-border);
|
||||
color: var(--color-text-primary); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); outline: none; width: 100%; max-width: 400px;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .level-filter { border-radius: 0; }
|
||||
[data-theme="modern"] .level-filter { border-radius: var(--radius-md); }
|
||||
.level-filter:focus { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
|
||||
/* =========================================================================
|
||||
NAVIGATION CARDS
|
||||
========================================================================= */
|
||||
|
||||
.nav-grid {
|
||||
display: grid; gap: var(--space-4);
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
}
|
||||
.nav-grid--years {
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
}
|
||||
.nav-grid--parts {
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
}
|
||||
|
||||
.nav-card {
|
||||
display: flex; flex-direction: column; justify-content: center; align-items: center;
|
||||
padding: var(--space-5) var(--space-4); gap: var(--space-2);
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
box-shadow: var(--shadow-sm); min-height: 80px;
|
||||
}
|
||||
[data-theme="industrial"] .nav-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .nav-card { border-radius: var(--radius-lg); }
|
||||
.nav-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
|
||||
.nav-card__name { font-family: var(--font-heading); font-weight: var(--heading-weight-secondary); font-size: var(--text-body); color: var(--color-text-primary); letter-spacing: var(--tracking-wide); }
|
||||
.nav-card__sub { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.nav-card__count { font-size: var(--text-caption); color: var(--color-primary); font-weight: var(--font-weight-semibold); }
|
||||
|
||||
/* Year buttons (compact) */
|
||||
.nav-card--year { min-height: 48px; padding: var(--space-3); }
|
||||
.nav-card--year .nav-card__name { font-size: var(--text-h5); }
|
||||
|
||||
/* =========================================================================
|
||||
PART CARDS
|
||||
========================================================================= */
|
||||
|
||||
.part-card {
|
||||
display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition-fast);
|
||||
overflow: hidden;
|
||||
}
|
||||
[data-theme="industrial"] .part-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .part-card { border-radius: var(--radius-lg); }
|
||||
.part-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
|
||||
|
||||
.part-card__image {
|
||||
height: 120px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-bg-overlay); position: relative; overflow: hidden;
|
||||
color: var(--color-text-disabled);
|
||||
}
|
||||
.part-card__image img { width: 100%; height: 100%; object-fit: contain; }
|
||||
|
||||
.part-card__body { padding: var(--space-3) var(--space-4); flex: 1; }
|
||||
.part-card__oem { font-family: var(--font-mono, monospace); font-size: var(--text-caption); color: var(--color-primary); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-1); }
|
||||
.part-card__oem-sub { font-family: var(--font-mono, monospace); font-size: 10px; color: var(--color-text-muted); font-weight: var(--font-weight-regular); }
|
||||
.part-card__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); line-height: 1.3; }
|
||||
|
||||
/* Local mode — manufacturer badge + priority tier */
|
||||
.part-card__manu {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
padding: 2px 8px; margin-bottom: var(--space-1);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 10px;
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.part-card__manu .manu-tier {
|
||||
color: var(--color-primary);
|
||||
font-size: 11px;
|
||||
}
|
||||
.part-card--tier1 {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.part-card--tier1 .part-card__manu {
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.part-card--tier2 .part-card__manu {
|
||||
border-color: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.part-card__footer {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.part-card__price { font-weight: var(--font-weight-bold); color: var(--color-text-primary); }
|
||||
|
||||
/* Stock badges */
|
||||
.stock-badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
padding: 2px 8px; border-radius: var(--radius-full);
|
||||
}
|
||||
.stock-badge--local { background: var(--color-success-light); color: var(--color-success-dark); }
|
||||
.stock-badge--bodega { background: var(--color-warning-light); color: var(--color-warning-dark); }
|
||||
.stock-badge--none { background: var(--color-neutral-200); color: var(--color-neutral-600); }
|
||||
[data-theme="industrial"] .stock-badge--none { background: var(--color-neutral-700); color: var(--color-neutral-400); }
|
||||
|
||||
/* =========================================================================
|
||||
DETAIL PANEL (slide-in from right)
|
||||
========================================================================= */
|
||||
|
||||
.detail-overlay {
|
||||
position: fixed; inset: 0; z-index: calc(var(--z-modal) - 2);
|
||||
background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); display: none;
|
||||
}
|
||||
.detail-overlay.is-visible { display: block; }
|
||||
|
||||
.detail-panel {
|
||||
position: fixed; top: 0; right: 0; bottom: 0;
|
||||
width: 440px; max-width: 100vw; z-index: calc(var(--z-modal) - 1);
|
||||
background: var(--color-bg-elevated); border-left: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
|
||||
transform: translateX(100%); transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.detail-panel.is-open { transform: translateX(0); }
|
||||
|
||||
.detail-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.detail-header h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); color: var(--color-text-primary); }
|
||||
.detail-close {
|
||||
background: none; border: none; cursor: pointer; font-size: 1.4rem;
|
||||
color: var(--color-text-secondary); padding: var(--space-1);
|
||||
}
|
||||
.detail-close:hover { color: var(--color-text-primary); }
|
||||
|
||||
.detail-body { flex: 1; overflow-y: auto; padding: var(--space-5); }
|
||||
|
||||
.detail-section { margin-bottom: var(--space-5); }
|
||||
.detail-section__title {
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm);
|
||||
font-weight: var(--heading-weight-secondary); color: var(--color-text-muted);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wider);
|
||||
margin-bottom: var(--space-3); padding-bottom: var(--space-2);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.detail-oem { font-family: var(--font-mono, monospace); font-size: var(--text-h5); color: var(--color-primary); font-weight: var(--font-weight-bold); margin-bottom: var(--space-2); }
|
||||
.detail-name { font-size: var(--text-body); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-2); }
|
||||
.detail-desc { font-size: var(--text-body-sm); color: var(--color-text-secondary); line-height: 1.5; }
|
||||
|
||||
/* Stock info */
|
||||
.stock-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; }
|
||||
.stock-label { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.stock-value { font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); }
|
||||
.stock-value--ok { color: var(--color-success); }
|
||||
.stock-value--zero { color: var(--color-text-muted); }
|
||||
|
||||
/* Bodega table */
|
||||
.bodega-table { width: 100%; font-size: var(--text-body-sm); border-collapse: collapse; }
|
||||
.bodega-table th { text-align: left; font-weight: var(--font-weight-semibold); color: var(--color-text-muted); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: var(--tracking-wider); padding: var(--space-2) var(--space-2); border-bottom: 1px solid var(--color-border); }
|
||||
.bodega-table td { padding: var(--space-2); border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); }
|
||||
|
||||
/* Alternatives list */
|
||||
.alt-item { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
|
||||
.alt-item:last-child { border-bottom: none; }
|
||||
.alt-item__pn { font-weight: var(--font-weight-semibold); color: var(--color-text-primary); font-size: var(--text-body-sm); }
|
||||
.alt-item__mfr { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.alt-item__stock { font-size: var(--text-caption); }
|
||||
|
||||
/* Add to cart section */
|
||||
.detail-footer {
|
||||
padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border);
|
||||
flex-shrink: 0; background: var(--color-bg-elevated);
|
||||
}
|
||||
.qty-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
|
||||
.qty-btn {
|
||||
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
|
||||
border: 1px solid var(--color-border); background: var(--color-bg-base);
|
||||
color: var(--color-text-primary); cursor: pointer; font-size: 1.2rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .qty-btn { border-radius: 0; }
|
||||
[data-theme="modern"] .qty-btn { border-radius: var(--radius-sm); }
|
||||
.qty-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.qty-display { font-weight: var(--font-weight-bold); font-size: var(--text-body); min-width: 30px; text-align: center; }
|
||||
|
||||
/* Buttons */
|
||||
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-5); height: 40px; font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); border: 1px solid transparent; cursor: pointer; transition: var(--transition-fast); white-space: nowrap; letter-spacing: var(--tracking-wide); }
|
||||
[data-theme="industrial"] .btn { border-radius: 0; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); text-transform: uppercase; }
|
||||
[data-theme="modern"] .btn { border-radius: var(--radius-md); }
|
||||
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-border); }
|
||||
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost { background: var(--btn-ghost-bg); color: var(--btn-ghost-text); border-color: var(--btn-ghost-border); }
|
||||
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
/* =========================================================================
|
||||
PAGINATION
|
||||
========================================================================= */
|
||||
|
||||
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4) 0; }
|
||||
.page-item { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); background: var(--color-bg-elevated); color: var(--color-text-secondary); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: var(--transition-fast); }
|
||||
[data-theme="industrial"] .page-item { border-radius: 0; }
|
||||
[data-theme="modern"] .page-item { border-radius: var(--radius-md); }
|
||||
.page-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.page-item.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
.page-item.is-disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.page-item--wide { padding: 0 var(--space-4); gap: var(--space-2); }
|
||||
|
||||
/* =========================================================================
|
||||
EMPTY STATE
|
||||
========================================================================= */
|
||||
|
||||
.empty-state {
|
||||
display: none; flex-direction: column; align-items: center; justify-content: center;
|
||||
padding: var(--space-10) var(--space-6); text-align: center; gap: var(--space-3);
|
||||
}
|
||||
.empty-state.is-visible { display: flex; }
|
||||
.empty-state__title { font-family: var(--font-heading); font-weight: var(--heading-weight-secondary); font-size: var(--text-h4); color: var(--color-text-primary); }
|
||||
.empty-state__subtitle { font-size: var(--text-body-sm); color: var(--color-text-muted); max-width: 400px; }
|
||||
|
||||
/* =========================================================================
|
||||
LOADING SPINNER
|
||||
========================================================================= */
|
||||
|
||||
.loading { display: none; justify-content: center; padding: var(--space-10); }
|
||||
.loading.is-visible { display: flex; }
|
||||
.spinner { width: 40px; height: 40px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* =========================================================================
|
||||
CART FAB + SIDEBAR
|
||||
========================================================================= */
|
||||
|
||||
.cart-fab {
|
||||
position: fixed; bottom: var(--space-6); right: var(--space-6);
|
||||
width: 56px; height: 56px; z-index: var(--z-sticky);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
border: none; cursor: pointer; box-shadow: var(--shadow-lg);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .cart-fab { border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .cart-fab { border-radius: var(--radius-full); }
|
||||
.cart-fab:hover { transform: scale(1.08); }
|
||||
.cart-fab__badge {
|
||||
position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
|
||||
padding: 0 5px; border-radius: var(--radius-full);
|
||||
background: var(--color-error); color: #fff; font-size: 11px;
|
||||
font-weight: var(--font-weight-bold); display: none;
|
||||
align-items: center; justify-content: center; line-height: 1;
|
||||
}
|
||||
|
||||
.cart-sidebar {
|
||||
position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100vw;
|
||||
z-index: var(--z-modal); background: var(--color-bg-elevated);
|
||||
border-left: 1px solid var(--color-border); box-shadow: var(--shadow-xl);
|
||||
display: flex; flex-direction: column;
|
||||
transform: translateX(100%); transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.cart-sidebar.open { transform: translateX(0); }
|
||||
|
||||
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
|
||||
.cart-header h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); color: var(--color-text-primary); }
|
||||
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); }
|
||||
.cart-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
|
||||
.cart-item:last-child { border-bottom: none; }
|
||||
.cart-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); flex-shrink: 0; background: var(--color-bg-elevated); }
|
||||
.cart-totals { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.cart-overlay { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1); background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); display: none; }
|
||||
.cart-overlay.open { display: block; }
|
||||
|
||||
/* =========================================================================
|
||||
THEME BAR
|
||||
========================================================================= */
|
||||
|
||||
.theme-bar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-toast); display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-4); background: var(--color-bg-overlay); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px); height: 36px; }
|
||||
.theme-bar__label { font-size: var(--text-caption); color: var(--color-text-muted); font-family: var(--font-body); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
|
||||
.theme-btn { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: transparent; color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-caption); font-weight: var(--font-weight-semibold); cursor: pointer; transition: var(--transition-fast); }
|
||||
.theme-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.theme-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
/* ── Vehicle Selector ── */
|
||||
.vehicle-selector {
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 2px solid var(--color-primary-muted, rgba(245,166,35,0.2));
|
||||
padding: var(--space-3) var(--space-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.vehicle-selector__inner {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.vs-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
|
||||
.vs-label {
|
||||
font-size: var(--text-caption, 0.75rem);
|
||||
font-weight: var(--font-weight-semibold, 600);
|
||||
color: var(--color-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider, 0.04em);
|
||||
}
|
||||
.vs-select {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
border: 1px solid var(--color-border);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm, 0.875rem);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
appearance: auto;
|
||||
}
|
||||
[data-theme="industrial"] .vs-select { border-radius: 0; }
|
||||
[data-theme="modern"] .vs-select { border-radius: var(--radius-md); }
|
||||
.vs-select:focus { border-color: var(--color-primary); outline: none; box-shadow: var(--shadow-focus); }
|
||||
.vs-select:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.vs-arrow {
|
||||
color: var(--color-primary);
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
padding-bottom: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.vs-clear {
|
||||
background: none;
|
||||
border: 1px solid var(--color-border);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .vs-clear { border-radius: 0; }
|
||||
[data-theme="modern"] .vs-clear { border-radius: var(--radius-md); }
|
||||
.vs-clear:hover { color: var(--color-error); border-color: var(--color-error); }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sidebar { position: fixed; left: -260px; z-index: var(--z-modal); transition: left var(--duration-normal) var(--ease-in-out); height: 100vh; }
|
||||
.sidebar.is-open { left: 0; }
|
||||
.search-bar { width: 200px; }
|
||||
.detail-panel { width: 100%; }
|
||||
.nav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
|
||||
.vehicle-selector__inner { flex-direction: column; }
|
||||
.vs-arrow { display: none; }
|
||||
}
|
||||
1201
pos/static/css/config.css
Normal file
1201
pos/static/css/config.css
Normal file
File diff suppressed because it is too large
Load Diff
1201
pos/static/css/config.min.css
vendored
Normal file
1201
pos/static/css/config.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1552
pos/static/css/customers.css
Normal file
1552
pos/static/css/customers.css
Normal file
File diff suppressed because it is too large
Load Diff
1552
pos/static/css/customers.min.css
vendored
Normal file
1552
pos/static/css/customers.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1237
pos/static/css/dashboard.css
Normal file
1237
pos/static/css/dashboard.css
Normal file
File diff suppressed because it is too large
Load Diff
1237
pos/static/css/dashboard.min.css
vendored
Normal file
1237
pos/static/css/dashboard.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
460
pos/static/css/diagrams.css
Normal file
460
pos/static/css/diagrams.css
Normal file
@@ -0,0 +1,460 @@
|
||||
/* Extracted from diagrams.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
APP LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.app-shell { display: flex; height: 100vh; padding-top: 36px; }
|
||||
|
||||
/* =========================================================================
|
||||
SIDEBAR (shared pattern)
|
||||
========================================================================= */
|
||||
|
||||
.sidebar {
|
||||
width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto; transition: var(--transition-normal);
|
||||
}
|
||||
.sidebar__brand {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.brand-logo {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.375rem; letter-spacing: var(--tracking-tight); flex-shrink: 0;
|
||||
}
|
||||
[data-theme="industrial"] .brand-logo { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 0; }
|
||||
[data-theme="modern"] .brand-logo { border-radius: var(--radius-md); }
|
||||
.brand-name { display: flex; flex-direction: column; line-height: 1; }
|
||||
.brand-name__primary { font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 1.125rem; letter-spacing: var(--tracking-wide); color: var(--color-text-primary); text-transform: uppercase; }
|
||||
.brand-name__sub { font-family: var(--font-body); font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
|
||||
|
||||
.sidebar__nav { flex: 1; padding: var(--space-3) 0; }
|
||||
.nav-section-label { padding: var(--space-3) var(--space-5) var(--space-1); font-size: var(--text-caption); font-family: var(--font-body); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
|
||||
.nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-regular); text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: var(--transition-fast); border-left: 3px solid transparent; }
|
||||
.nav-item:hover { background: var(--color-primary-muted); color: var(--color-text-primary); border-left-color: var(--color-primary); }
|
||||
.nav-item.is-active { background: var(--color-primary-muted); color: var(--color-primary); font-weight: var(--font-weight-semibold); border-left-color: var(--color-primary); }
|
||||
[data-theme="industrial"] .nav-item.is-active { background: rgba(245, 166, 35, 0.12); }
|
||||
.nav-item__icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
|
||||
.nav-item.is-active .nav-item__icon, .nav-item:hover .nav-item__icon { opacity: 1; }
|
||||
|
||||
.sidebar__profile { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
||||
.profile-avatar { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-primary-muted); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); flex-shrink: 0; }
|
||||
.profile-info { overflow: hidden; }
|
||||
.profile-info__name { font-weight: var(--font-weight-semibold); font-size: var(--text-body-sm); color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.profile-info__role { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================= */
|
||||
|
||||
.main-content {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex; align-items: center; gap: var(--space-4);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.page-header__title {
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.25rem; color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.page-header__filter {
|
||||
margin-left: auto;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
min-width: 220px;
|
||||
outline: none;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.page-header__filter:focus {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.page-body {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-5);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LOADING & EMPTY
|
||||
========================================================================= */
|
||||
|
||||
.loading {
|
||||
display: none; align-items: center; justify-content: center;
|
||||
padding: var(--space-8); flex: 1;
|
||||
}
|
||||
.spinner {
|
||||
width: 40px; height: 40px; border: 3px solid var(--color-border);
|
||||
border-top-color: var(--color-primary); border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
.empty-state {
|
||||
display: none; flex-direction: column; align-items: center;
|
||||
justify-content: center; gap: var(--space-3); padding: var(--space-8);
|
||||
color: var(--color-text-muted); text-align: center;
|
||||
}
|
||||
.empty-state__title { font-weight: var(--font-weight-semibold); font-size: 1.1rem; }
|
||||
.empty-state__subtitle { font-size: var(--text-body-sm); }
|
||||
|
||||
/* =========================================================================
|
||||
DIAGRAM LIST VIEW
|
||||
========================================================================= */
|
||||
|
||||
.diagram-category { margin-bottom: var(--space-6); }
|
||||
|
||||
.category-title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
padding-bottom: var(--space-2);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.diagram-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.diagram-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.diagram-card:hover {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
[data-theme="industrial"] .diagram-card {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.diagram-card__preview {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
background: #f8f8f8;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
[data-theme="modern"] .diagram-card__preview {
|
||||
background: var(--color-bg-base);
|
||||
}
|
||||
.diagram-card__preview img {
|
||||
width: 100%; height: 100%;
|
||||
object-fit: contain;
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.diagram-card__info {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
}
|
||||
.diagram-card__name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.diagram-card__group {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
DIAGRAM VIEWER
|
||||
========================================================================= */
|
||||
|
||||
.diagram-viewer {
|
||||
display: none; flex: 1; flex-direction: row; overflow: hidden;
|
||||
}
|
||||
|
||||
.viewer-main {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.viewer-toolbar {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.viewer-toolbar .btn-icon {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-bg-base); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.viewer-toolbar .btn-icon:hover {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.viewer-toolbar__title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
flex: 1;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.zoom-controls {
|
||||
display: flex; gap: var(--space-1); margin-left: auto;
|
||||
}
|
||||
|
||||
.svg-container {
|
||||
flex: 1; overflow: hidden; position: relative;
|
||||
background: var(--color-bg-base);
|
||||
cursor: grab;
|
||||
}
|
||||
.svg-container:active { cursor: grabbing; }
|
||||
|
||||
.svg-wrapper {
|
||||
width: 100%; height: 100%;
|
||||
transform-origin: center center;
|
||||
transition: none;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.svg-wrapper svg {
|
||||
max-width: 100%; max-height: 100%;
|
||||
}
|
||||
|
||||
.svg-loading, .svg-error {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body);
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
/* ---- Parts list sidebar ---- */
|
||||
.parts-sidebar {
|
||||
width: 280px; flex-shrink: 0;
|
||||
background: var(--color-bg-elevated);
|
||||
border-left: 1px solid var(--color-border);
|
||||
overflow-y: auto;
|
||||
display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
.parts-list__title {
|
||||
padding: var(--space-4);
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: var(--text-body-sm);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
color: var(--color-text-muted);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.part-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
cursor: pointer; border-bottom: 1px solid var(--color-border);
|
||||
transition: var(--transition-fast);
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
.part-item:hover, .part-item.is-highlighted {
|
||||
background: var(--color-primary-muted);
|
||||
border-left-color: var(--color-primary);
|
||||
}
|
||||
.part-item.is-active {
|
||||
background: rgba(245, 166, 35, 0.15);
|
||||
border-left-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.part-item__callout {
|
||||
width: 28px; height: 28px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
font-weight: var(--font-weight-bold);
|
||||
font-size: var(--text-body-sm);
|
||||
border-radius: var(--radius-full);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.part-item__info { min-width: 0; }
|
||||
.part-item__name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.part-item__number {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono, monospace);
|
||||
}
|
||||
|
||||
.parts-list__empty {
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
/* ---- Hotspot detail panel ---- */
|
||||
.hotspot-panel {
|
||||
position: fixed;
|
||||
bottom: 0; left: 260px; right: 280px;
|
||||
background: var(--color-bg-elevated);
|
||||
border-top: 2px solid var(--color-primary);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
transform: translateY(100%);
|
||||
transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
z-index: 50;
|
||||
}
|
||||
.hotspot-panel.is-open {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.hotspot-panel__close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-4);
|
||||
background: none; border: none; cursor: pointer;
|
||||
font-size: 1.3rem; color: var(--color-text-muted);
|
||||
padding: var(--space-1);
|
||||
}
|
||||
.hotspot-panel__close:hover { color: var(--color-text-primary); }
|
||||
|
||||
.hotspot-detail {
|
||||
display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hotspot-callout {
|
||||
width: 40px; height: 40px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-weight: var(--font-weight-bold); font-size: 1.2rem;
|
||||
border-radius: var(--radius-full); flex-shrink: 0;
|
||||
}
|
||||
|
||||
.hotspot-name {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-primary);
|
||||
margin: 0;
|
||||
}
|
||||
.hotspot-partnumber {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono, monospace);
|
||||
}
|
||||
.hotspot-desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
max-width: 400px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hotspot-actions {
|
||||
display: flex; gap: var(--space-2); margin-left: auto;
|
||||
}
|
||||
|
||||
/* ---- Buttons ---- */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
background: var(--color-bg-elevated);
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.btn-primary:hover { opacity: 0.9; }
|
||||
.btn-accent {
|
||||
background: var(--color-success, #22c55e);
|
||||
color: white;
|
||||
border-color: var(--color-success, #22c55e);
|
||||
}
|
||||
.btn-accent:hover { opacity: 0.9; }
|
||||
.btn-sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.sidebar { width: 56px; overflow: hidden; }
|
||||
.sidebar__brand { padding: var(--space-3); justify-content: center; }
|
||||
.brand-name { display: none; }
|
||||
.nav-section-label { display: none; }
|
||||
.nav-item { padding: var(--space-2) var(--space-3); justify-content: center; }
|
||||
.nav-item span:not(.nav-item__icon) { display: none; }
|
||||
|
||||
.parts-sidebar { width: 200px; }
|
||||
.hotspot-panel { left: 56px; right: 200px; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.parts-sidebar { display: none; }
|
||||
.hotspot-panel { left: 56px; right: 0; }
|
||||
.diagram-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
460
pos/static/css/diagrams.min.css
vendored
Normal file
460
pos/static/css/diagrams.min.css
vendored
Normal file
@@ -0,0 +1,460 @@
|
||||
/* Extracted from diagrams.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
APP LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.app-shell { display: flex; height: 100vh; padding-top: 36px; }
|
||||
|
||||
/* =========================================================================
|
||||
SIDEBAR (shared pattern)
|
||||
========================================================================= */
|
||||
|
||||
.sidebar {
|
||||
width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto; transition: var(--transition-normal);
|
||||
}
|
||||
.sidebar__brand {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.brand-logo {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.375rem; letter-spacing: var(--tracking-tight); flex-shrink: 0;
|
||||
}
|
||||
[data-theme="industrial"] .brand-logo { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 0; }
|
||||
[data-theme="modern"] .brand-logo { border-radius: var(--radius-md); }
|
||||
.brand-name { display: flex; flex-direction: column; line-height: 1; }
|
||||
.brand-name__primary { font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 1.125rem; letter-spacing: var(--tracking-wide); color: var(--color-text-primary); text-transform: uppercase; }
|
||||
.brand-name__sub { font-family: var(--font-body); font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
|
||||
|
||||
.sidebar__nav { flex: 1; padding: var(--space-3) 0; }
|
||||
.nav-section-label { padding: var(--space-3) var(--space-5) var(--space-1); font-size: var(--text-caption); font-family: var(--font-body); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
|
||||
.nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-regular); text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: var(--transition-fast); border-left: 3px solid transparent; }
|
||||
.nav-item:hover { background: var(--color-primary-muted); color: var(--color-text-primary); border-left-color: var(--color-primary); }
|
||||
.nav-item.is-active { background: var(--color-primary-muted); color: var(--color-primary); font-weight: var(--font-weight-semibold); border-left-color: var(--color-primary); }
|
||||
[data-theme="industrial"] .nav-item.is-active { background: rgba(245, 166, 35, 0.12); }
|
||||
.nav-item__icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
|
||||
.nav-item.is-active .nav-item__icon, .nav-item:hover .nav-item__icon { opacity: 1; }
|
||||
|
||||
.sidebar__profile { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
||||
.profile-avatar { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-primary-muted); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); flex-shrink: 0; }
|
||||
.profile-info { overflow: hidden; }
|
||||
.profile-info__name { font-weight: var(--font-weight-semibold); font-size: var(--text-body-sm); color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.profile-info__role { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================= */
|
||||
|
||||
.main-content {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex; align-items: center; gap: var(--space-4);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.page-header__title {
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.25rem; color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.page-header__filter {
|
||||
margin-left: auto;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
min-width: 220px;
|
||||
outline: none;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.page-header__filter:focus {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.page-body {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-5);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LOADING & EMPTY
|
||||
========================================================================= */
|
||||
|
||||
.loading {
|
||||
display: none; align-items: center; justify-content: center;
|
||||
padding: var(--space-8); flex: 1;
|
||||
}
|
||||
.spinner {
|
||||
width: 40px; height: 40px; border: 3px solid var(--color-border);
|
||||
border-top-color: var(--color-primary); border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
.empty-state {
|
||||
display: none; flex-direction: column; align-items: center;
|
||||
justify-content: center; gap: var(--space-3); padding: var(--space-8);
|
||||
color: var(--color-text-muted); text-align: center;
|
||||
}
|
||||
.empty-state__title { font-weight: var(--font-weight-semibold); font-size: 1.1rem; }
|
||||
.empty-state__subtitle { font-size: var(--text-body-sm); }
|
||||
|
||||
/* =========================================================================
|
||||
DIAGRAM LIST VIEW
|
||||
========================================================================= */
|
||||
|
||||
.diagram-category { margin-bottom: var(--space-6); }
|
||||
|
||||
.category-title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
padding-bottom: var(--space-2);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.diagram-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.diagram-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.diagram-card:hover {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
[data-theme="industrial"] .diagram-card {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.diagram-card__preview {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
background: #f8f8f8;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
[data-theme="modern"] .diagram-card__preview {
|
||||
background: var(--color-bg-base);
|
||||
}
|
||||
.diagram-card__preview img {
|
||||
width: 100%; height: 100%;
|
||||
object-fit: contain;
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.diagram-card__info {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
}
|
||||
.diagram-card__name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.diagram-card__group {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
DIAGRAM VIEWER
|
||||
========================================================================= */
|
||||
|
||||
.diagram-viewer {
|
||||
display: none; flex: 1; flex-direction: row; overflow: hidden;
|
||||
}
|
||||
|
||||
.viewer-main {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.viewer-toolbar {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.viewer-toolbar .btn-icon {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-bg-base); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.viewer-toolbar .btn-icon:hover {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.viewer-toolbar__title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
flex: 1;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.zoom-controls {
|
||||
display: flex; gap: var(--space-1); margin-left: auto;
|
||||
}
|
||||
|
||||
.svg-container {
|
||||
flex: 1; overflow: hidden; position: relative;
|
||||
background: var(--color-bg-base);
|
||||
cursor: grab;
|
||||
}
|
||||
.svg-container:active { cursor: grabbing; }
|
||||
|
||||
.svg-wrapper {
|
||||
width: 100%; height: 100%;
|
||||
transform-origin: center center;
|
||||
transition: none;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.svg-wrapper svg {
|
||||
max-width: 100%; max-height: 100%;
|
||||
}
|
||||
|
||||
.svg-loading, .svg-error {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body);
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
/* ---- Parts list sidebar ---- */
|
||||
.parts-sidebar {
|
||||
width: 280px; flex-shrink: 0;
|
||||
background: var(--color-bg-elevated);
|
||||
border-left: 1px solid var(--color-border);
|
||||
overflow-y: auto;
|
||||
display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
.parts-list__title {
|
||||
padding: var(--space-4);
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: var(--text-body-sm);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
color: var(--color-text-muted);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.part-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
cursor: pointer; border-bottom: 1px solid var(--color-border);
|
||||
transition: var(--transition-fast);
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
.part-item:hover, .part-item.is-highlighted {
|
||||
background: var(--color-primary-muted);
|
||||
border-left-color: var(--color-primary);
|
||||
}
|
||||
.part-item.is-active {
|
||||
background: rgba(245, 166, 35, 0.15);
|
||||
border-left-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.part-item__callout {
|
||||
width: 28px; height: 28px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
font-weight: var(--font-weight-bold);
|
||||
font-size: var(--text-body-sm);
|
||||
border-radius: var(--radius-full);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.part-item__info { min-width: 0; }
|
||||
.part-item__name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.part-item__number {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono, monospace);
|
||||
}
|
||||
|
||||
.parts-list__empty {
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
/* ---- Hotspot detail panel ---- */
|
||||
.hotspot-panel {
|
||||
position: fixed;
|
||||
bottom: 0; left: 260px; right: 280px;
|
||||
background: var(--color-bg-elevated);
|
||||
border-top: 2px solid var(--color-primary);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
transform: translateY(100%);
|
||||
transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
z-index: 50;
|
||||
}
|
||||
.hotspot-panel.is-open {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.hotspot-panel__close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-4);
|
||||
background: none; border: none; cursor: pointer;
|
||||
font-size: 1.3rem; color: var(--color-text-muted);
|
||||
padding: var(--space-1);
|
||||
}
|
||||
.hotspot-panel__close:hover { color: var(--color-text-primary); }
|
||||
|
||||
.hotspot-detail {
|
||||
display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hotspot-callout {
|
||||
width: 40px; height: 40px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-weight: var(--font-weight-bold); font-size: 1.2rem;
|
||||
border-radius: var(--radius-full); flex-shrink: 0;
|
||||
}
|
||||
|
||||
.hotspot-name {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-primary);
|
||||
margin: 0;
|
||||
}
|
||||
.hotspot-partnumber {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono, monospace);
|
||||
}
|
||||
.hotspot-desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
max-width: 400px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hotspot-actions {
|
||||
display: flex; gap: var(--space-2); margin-left: auto;
|
||||
}
|
||||
|
||||
/* ---- Buttons ---- */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
background: var(--color-bg-elevated);
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.btn-primary:hover { opacity: 0.9; }
|
||||
.btn-accent {
|
||||
background: var(--color-success, #22c55e);
|
||||
color: white;
|
||||
border-color: var(--color-success, #22c55e);
|
||||
}
|
||||
.btn-accent:hover { opacity: 0.9; }
|
||||
.btn-sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.sidebar { width: 56px; overflow: hidden; }
|
||||
.sidebar__brand { padding: var(--space-3); justify-content: center; }
|
||||
.brand-name { display: none; }
|
||||
.nav-section-label { display: none; }
|
||||
.nav-item { padding: var(--space-2) var(--space-3); justify-content: center; }
|
||||
.nav-item span:not(.nav-item__icon) { display: none; }
|
||||
|
||||
.parts-sidebar { width: 200px; }
|
||||
.hotspot-panel { left: 56px; right: 200px; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.parts-sidebar { display: none; }
|
||||
.hotspot-panel { left: 56px; right: 0; }
|
||||
.diagram-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
670
pos/static/css/fleet.css
Normal file
670
pos/static/css/fleet.css
Normal file
@@ -0,0 +1,670 @@
|
||||
/* Extracted from fleet.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.page-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-header__actions {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-5) var(--space-6);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
STATS ROW
|
||||
========================================================================= */
|
||||
|
||||
.stats-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: var(--space-4);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .stat-card {
|
||||
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .stat-card {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.stat-card__label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.stat-card__value {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h2);
|
||||
font-weight: var(--font-weight-extrabold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.stat-card__value--warn {
|
||||
color: var(--color-warning, #E3B341);
|
||||
}
|
||||
|
||||
.stat-card__value--danger {
|
||||
color: var(--color-error, #F85149);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TABS
|
||||
========================================================================= */
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 2px solid var(--color-border);
|
||||
margin-bottom: var(--space-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px;
|
||||
cursor: pointer;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tab-btn.is-active {
|
||||
color: var(--color-primary);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.tab-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-panel.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TABLE
|
||||
========================================================================= */
|
||||
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.data-table th {
|
||||
text-align: left;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table td {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
color: var(--color-text-secondary);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.data-table tr:hover td {
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.data-table .mono {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
BADGES
|
||||
========================================================================= */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
padding: 2px var(--space-2);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .badge {
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.badge--active {
|
||||
background: rgba(63, 185, 80, 0.15);
|
||||
border-color: rgba(63, 185, 80, 0.3);
|
||||
color: #3FB950;
|
||||
}
|
||||
|
||||
.badge--inactive {
|
||||
background: rgba(139, 148, 158, 0.15);
|
||||
border-color: rgba(139, 148, 158, 0.3);
|
||||
color: #8B949E;
|
||||
}
|
||||
|
||||
.badge--overdue {
|
||||
background: rgba(248, 81, 73, 0.15);
|
||||
border-color: rgba(248, 81, 73, 0.3);
|
||||
color: #F85149;
|
||||
}
|
||||
|
||||
.badge--upcoming {
|
||||
background: rgba(227, 179, 65, 0.15);
|
||||
border-color: rgba(227, 179, 65, 0.3);
|
||||
color: #E3B341;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
BUTTONS
|
||||
========================================================================= */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
border: 1px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
white-space: nowrap;
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .btn {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse, #000);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.btn--ghost {
|
||||
background: none;
|
||||
border-color: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.btn--ghost:hover {
|
||||
color: var(--color-text-primary);
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.btn--danger {
|
||||
background: rgba(248, 81, 73, 0.15);
|
||||
border-color: rgba(248, 81, 73, 0.3);
|
||||
color: #F85149;
|
||||
}
|
||||
|
||||
.btn--danger:hover {
|
||||
background: rgba(248, 81, 73, 0.25);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
SEARCH BAR
|
||||
========================================================================= */
|
||||
|
||||
.search-input {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
width: 280px;
|
||||
transition: border-color var(--duration-fast);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .search-input {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
VEHICLE GRID (alternative view)
|
||||
========================================================================= */
|
||||
|
||||
.vehicle-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.vehicle-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .vehicle-card {
|
||||
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .vehicle-card {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.vehicle-card:hover {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 1px var(--color-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.vehicle-card__plate {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--font-weight-extrabold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__info {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.vehicle-card__info strong {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: var(--space-3);
|
||||
padding-top: var(--space-3);
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
MODAL
|
||||
========================================================================= */
|
||||
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 500;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.modal-overlay.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
width: 90%;
|
||||
max-width: 560px;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .modal {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.modal__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.modal__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.modal__close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
padding: var(--space-1);
|
||||
}
|
||||
|
||||
.modal__close:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.modal__body {
|
||||
padding: var(--space-5) var(--space-6);
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.modal__footer {
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
FORM
|
||||
========================================================================= */
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group select,
|
||||
.form-group textarea {
|
||||
width: 100%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .form-group input,
|
||||
[data-theme="modern"] .form-group select,
|
||||
[data-theme="modern"] .form-group textarea {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group select:focus,
|
||||
.form-group textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
ALERT CARD
|
||||
========================================================================= */
|
||||
|
||||
.alert-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid rgba(248, 81, 73, 0.3);
|
||||
border-left: 4px solid #F85149;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
margin-bottom: var(--space-3);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .alert-card {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.alert-card__info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.alert-card__vehicle {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.alert-card__detail {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
PAGINATION
|
||||
========================================================================= */
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-4) 0;
|
||||
}
|
||||
|
||||
.pagination__btn {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pagination__btn {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.pagination__btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.pagination__btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pagination__info {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
EMPTY STATE
|
||||
========================================================================= */
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: var(--space-8) var(--space-4);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.empty-state__icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: var(--space-3);
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: var(--text-body);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.page-header {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.page-content {
|
||||
padding: var(--space-4);
|
||||
}
|
||||
.search-input {
|
||||
width: 100%;
|
||||
}
|
||||
.form-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.vehicle-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.stats-row {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
670
pos/static/css/fleet.min.css
vendored
Normal file
670
pos/static/css/fleet.min.css
vendored
Normal file
@@ -0,0 +1,670 @@
|
||||
/* Extracted from fleet.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.page-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-header__actions {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-5) var(--space-6);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
STATS ROW
|
||||
========================================================================= */
|
||||
|
||||
.stats-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: var(--space-4);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .stat-card {
|
||||
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .stat-card {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.stat-card__label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.stat-card__value {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h2);
|
||||
font-weight: var(--font-weight-extrabold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.stat-card__value--warn {
|
||||
color: var(--color-warning, #E3B341);
|
||||
}
|
||||
|
||||
.stat-card__value--danger {
|
||||
color: var(--color-error, #F85149);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TABS
|
||||
========================================================================= */
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 2px solid var(--color-border);
|
||||
margin-bottom: var(--space-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px;
|
||||
cursor: pointer;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tab-btn.is-active {
|
||||
color: var(--color-primary);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.tab-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-panel.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TABLE
|
||||
========================================================================= */
|
||||
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.data-table th {
|
||||
text-align: left;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table td {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
color: var(--color-text-secondary);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.data-table tr:hover td {
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.data-table .mono {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
BADGES
|
||||
========================================================================= */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
padding: 2px var(--space-2);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .badge {
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.badge--active {
|
||||
background: rgba(63, 185, 80, 0.15);
|
||||
border-color: rgba(63, 185, 80, 0.3);
|
||||
color: #3FB950;
|
||||
}
|
||||
|
||||
.badge--inactive {
|
||||
background: rgba(139, 148, 158, 0.15);
|
||||
border-color: rgba(139, 148, 158, 0.3);
|
||||
color: #8B949E;
|
||||
}
|
||||
|
||||
.badge--overdue {
|
||||
background: rgba(248, 81, 73, 0.15);
|
||||
border-color: rgba(248, 81, 73, 0.3);
|
||||
color: #F85149;
|
||||
}
|
||||
|
||||
.badge--upcoming {
|
||||
background: rgba(227, 179, 65, 0.15);
|
||||
border-color: rgba(227, 179, 65, 0.3);
|
||||
color: #E3B341;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
BUTTONS
|
||||
========================================================================= */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
border: 1px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
white-space: nowrap;
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .btn {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse, #000);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.btn--ghost {
|
||||
background: none;
|
||||
border-color: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.btn--ghost:hover {
|
||||
color: var(--color-text-primary);
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.btn--danger {
|
||||
background: rgba(248, 81, 73, 0.15);
|
||||
border-color: rgba(248, 81, 73, 0.3);
|
||||
color: #F85149;
|
||||
}
|
||||
|
||||
.btn--danger:hover {
|
||||
background: rgba(248, 81, 73, 0.25);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
SEARCH BAR
|
||||
========================================================================= */
|
||||
|
||||
.search-input {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
width: 280px;
|
||||
transition: border-color var(--duration-fast);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .search-input {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
VEHICLE GRID (alternative view)
|
||||
========================================================================= */
|
||||
|
||||
.vehicle-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.vehicle-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .vehicle-card {
|
||||
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .vehicle-card {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.vehicle-card:hover {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 1px var(--color-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.vehicle-card__plate {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--font-weight-extrabold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__info {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.vehicle-card__info strong {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: var(--space-3);
|
||||
padding-top: var(--space-3);
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
MODAL
|
||||
========================================================================= */
|
||||
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 500;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.modal-overlay.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
width: 90%;
|
||||
max-width: 560px;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .modal {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.modal__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.modal__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.modal__close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
padding: var(--space-1);
|
||||
}
|
||||
|
||||
.modal__close:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.modal__body {
|
||||
padding: var(--space-5) var(--space-6);
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.modal__footer {
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
FORM
|
||||
========================================================================= */
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group select,
|
||||
.form-group textarea {
|
||||
width: 100%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .form-group input,
|
||||
[data-theme="modern"] .form-group select,
|
||||
[data-theme="modern"] .form-group textarea {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group select:focus,
|
||||
.form-group textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
ALERT CARD
|
||||
========================================================================= */
|
||||
|
||||
.alert-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid rgba(248, 81, 73, 0.3);
|
||||
border-left: 4px solid #F85149;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
margin-bottom: var(--space-3);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .alert-card {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.alert-card__info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.alert-card__vehicle {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.alert-card__detail {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
PAGINATION
|
||||
========================================================================= */
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-4) 0;
|
||||
}
|
||||
|
||||
.pagination__btn {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pagination__btn {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.pagination__btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.pagination__btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pagination__info {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
EMPTY STATE
|
||||
========================================================================= */
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: var(--space-8) var(--space-4);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.empty-state__icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: var(--space-3);
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: var(--text-body);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.page-header {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.page-content {
|
||||
padding: var(--space-4);
|
||||
}
|
||||
.search-input {
|
||||
width: 100%;
|
||||
}
|
||||
.form-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.vehicle-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.stats-row {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
1302
pos/static/css/inventory.css
Normal file
1302
pos/static/css/inventory.css
Normal file
File diff suppressed because it is too large
Load Diff
1302
pos/static/css/inventory.min.css
vendored
Normal file
1302
pos/static/css/inventory.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1340
pos/static/css/invoicing.css
Normal file
1340
pos/static/css/invoicing.css
Normal file
File diff suppressed because it is too large
Load Diff
1340
pos/static/css/invoicing.min.css
vendored
Normal file
1340
pos/static/css/invoicing.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
832
pos/static/css/login.css
Normal file
832
pos/static/css/login.css
Normal file
@@ -0,0 +1,832 @@
|
||||
/* Extracted from login.html */
|
||||
|
||||
/* =====================================================================
|
||||
RESET & BASE
|
||||
===================================================================== */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
color var(--duration-slow) var(--ease-in-out);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Modern theme dot-grid on body */
|
||||
[data-theme="modern"] body,
|
||||
[data-theme="modern"].theme-root {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
background: none;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
THEME SWITCHER BAR (sticky top)
|
||||
===================================================================== */
|
||||
|
||||
.theme-bar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-6);
|
||||
background-color: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.theme-bar__label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-right: var(--space-2);
|
||||
}
|
||||
|
||||
.theme-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
border: 1.5px solid var(--color-border);
|
||||
background: transparent;
|
||||
transition: var(--transition-normal);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
.theme-btn:hover {
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.theme-btn.active {
|
||||
color: var(--color-text-inverse);
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .theme-btn.active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.theme-btn__dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="industrial"] .theme-btn__dot {
|
||||
background: #F5A623;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="industrial"].active .theme-btn__dot {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="modern"] .theme-btn__dot {
|
||||
background: #FF6B35;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="modern"].active .theme-btn__dot {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LAYOUT — centered login screen
|
||||
===================================================================== */
|
||||
|
||||
.login-screen {
|
||||
min-height: calc(100vh - 49px); /* subtract theme bar height */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-8) var(--space-4);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LOGIN CARD
|
||||
===================================================================== */
|
||||
|
||||
.login-card {
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-xl);
|
||||
overflow: hidden;
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out),
|
||||
box-shadow var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
/* Industrial theme: angular clip-path on the card */
|
||||
[data-theme="industrial"] .login-card {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
|
||||
}
|
||||
|
||||
/* Modern theme: smooth rounded corners */
|
||||
[data-theme="modern"] .login-card {
|
||||
border-radius: var(--radius-xl);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD HEADER — brand / logo
|
||||
===================================================================== */
|
||||
|
||||
.card-header {
|
||||
padding: var(--space-8) var(--space-8) var(--space-6);
|
||||
text-align: center;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Industrial: amber accent bar at top of header */
|
||||
[data-theme="industrial"] .card-header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
|
||||
}
|
||||
|
||||
/* Modern: subtle gradient wash */
|
||||
[data-theme="modern"] .card-header {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 107, 53, 0.04) 0%,
|
||||
rgba(255, 107, 53, 0.01) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
background: var(--color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.75rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-inverse);
|
||||
flex-shrink: 0;
|
||||
transition: background var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-logo {
|
||||
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .brand-logo {
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-logo {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-primary);
|
||||
letter-spacing: var(--heading-tracking-h4);
|
||||
line-height: var(--leading-h4);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-name {
|
||||
letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-accent);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD BODY
|
||||
===================================================================== */
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-6) var(--space-8);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
SECTION LABEL
|
||||
===================================================================== */
|
||||
|
||||
.section-label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
USER SELECTION
|
||||
===================================================================== */
|
||||
|
||||
.users-section {}
|
||||
|
||||
.users-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.user-avatar-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-2);
|
||||
background: var(--color-surface-1);
|
||||
border: 1.5px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-normal);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .user-avatar-btn {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.user-avatar-btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
box-shadow: var(--shadow-accent);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn.selected {
|
||||
background: rgba(245, 166, 35, 0.10);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected .user-initials {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn.selected .user-initials {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Selected check indicator */
|
||||
.user-avatar-btn.selected::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 6px;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: var(--color-primary);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.user-initials {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-heading);
|
||||
font-size: 0.9rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-secondary);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
transition: var(--transition-normal);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-initials {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .user-initials {
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
text-align: center;
|
||||
line-height: 1.3;
|
||||
transition: color var(--duration-normal);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected .user-name {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.user-role {
|
||||
font-size: 10px;
|
||||
color: var(--color-text-muted);
|
||||
text-align: center;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
PIN DISPLAY (dots)
|
||||
===================================================================== */
|
||||
|
||||
.pin-section {}
|
||||
|
||||
.pin-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
margin-bottom: var(--space-4);
|
||||
transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
|
||||
min-height: 64px;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-display {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pin-display {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.pin-display.has-digits {
|
||||
border-color: var(--color-border-accent);
|
||||
}
|
||||
|
||||
.pin-display.error {
|
||||
border-color: var(--color-error);
|
||||
animation: pin-shake 0.4s var(--ease-in-out);
|
||||
}
|
||||
|
||||
@keyframes pin-shake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
20% { transform: translateX(-8px); }
|
||||
40% { transform: translateX(8px); }
|
||||
60% { transform: translateX(-5px); }
|
||||
80% { transform: translateX(5px); }
|
||||
}
|
||||
|
||||
.pin-dot {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--color-border-strong);
|
||||
background: transparent;
|
||||
transition: all var(--duration-fast) var(--ease-out);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pin-dot.filled {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 0 8px var(--color-primary);
|
||||
}
|
||||
|
||||
/* PIN placeholder text when no user selected */
|
||||
.pin-placeholder {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
PIN PAD
|
||||
===================================================================== */
|
||||
|
||||
.pin-pad {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
height: 64px;
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.5rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-key {
|
||||
border-radius: 0;
|
||||
letter-spacing: var(--tracking-normal);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pin-key {
|
||||
border-radius: var(--radius-md);
|
||||
letter-spacing: var(--tracking-snug);
|
||||
}
|
||||
|
||||
.pin-key:hover {
|
||||
background: var(--color-surface-3);
|
||||
border-color: var(--color-border-strong);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.pin-key:active {
|
||||
transform: translateY(1px) scale(0.97);
|
||||
box-shadow: none;
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* Ripple effect */
|
||||
.pin-key::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
border-radius: inherit;
|
||||
transform: scale(0);
|
||||
transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
|
||||
}
|
||||
|
||||
.pin-key.ripple::after {
|
||||
transform: scale(2.5);
|
||||
opacity: 0.12;
|
||||
}
|
||||
|
||||
/* Backspace key */
|
||||
.pin-key--backspace {
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.pin-key--backspace:hover {
|
||||
color: var(--color-error);
|
||||
border-color: var(--color-error);
|
||||
background: rgba(239, 68, 68, 0.06);
|
||||
}
|
||||
|
||||
.pin-key--backspace:active {
|
||||
border-color: var(--color-error);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
}
|
||||
|
||||
/* Enter key */
|
||||
.pin-key--enter {
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
.pin-key--enter:hover {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-key--enter:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.pin-key--enter:active {
|
||||
background: var(--color-primary-active, var(--color-primary));
|
||||
color: var(--color-text-inverse);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
SUBMIT BUTTON
|
||||
===================================================================== */
|
||||
|
||||
.btn-login {
|
||||
width: 100%;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
border: 1.5px solid var(--btn-primary-border, transparent);
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-normal);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .btn-login {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .btn-login {
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-login:hover:not(:disabled) {
|
||||
background: var(--btn-primary-bg-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.btn-login:active:not(:disabled) {
|
||||
background: var(--btn-primary-bg-active);
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.btn-login:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.btn-login__icon {
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD FOOTER
|
||||
===================================================================== */
|
||||
|
||||
.card-footer {
|
||||
padding: var(--space-4) var(--space-8);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
background: var(--color-surface-1);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.footer-version {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.footer-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-success);
|
||||
animation: status-pulse 2.5s infinite ease-in-out;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@keyframes status-pulse {
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.5; transform: scale(0.85); }
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
INDUSTRIAL THEME EXTRAS — accent border line on card
|
||||
===================================================================== */
|
||||
|
||||
[data-theme="industrial"] .login-card {
|
||||
border-color: #2a2a2a;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .login-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
/* Simulated angular highlight on top-left edge */
|
||||
border-top: 1px solid rgba(245, 166, 35, 0.15);
|
||||
border-left: 1px solid rgba(245, 166, 35, 0.08);
|
||||
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
NOTIFICATION / TOAST for error feedback
|
||||
===================================================================== */
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: var(--space-8);
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(120%);
|
||||
background: var(--color-error);
|
||||
color: #fff;
|
||||
padding: var(--space-3) var(--space-6);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-radius: var(--radius-full);
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: var(--z-toast);
|
||||
transition: transform 0.3s var(--ease-out);
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
RESPONSIVE
|
||||
===================================================================== */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.theme-bar {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
}
|
||||
|
||||
.theme-bar__label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-screen {
|
||||
padding: var(--space-4) var(--space-3);
|
||||
align-items: flex-start;
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-5) var(--space-5);
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
padding: var(--space-6) var(--space-5) var(--space-5);
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.users-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
height: 56px;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.pin-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.users-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.user-initials {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
height: 50px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
ACCESSIBILITY
|
||||
===================================================================== */
|
||||
|
||||
.pin-key:focus-visible,
|
||||
.user-avatar-btn:focus-visible,
|
||||
.theme-btn:focus-visible,
|
||||
.btn-login:focus-visible {
|
||||
outline: 2px solid var(--color-border-focus);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
832
pos/static/css/login.min.css
vendored
Normal file
832
pos/static/css/login.min.css
vendored
Normal file
@@ -0,0 +1,832 @@
|
||||
/* Extracted from login.html */
|
||||
|
||||
/* =====================================================================
|
||||
RESET & BASE
|
||||
===================================================================== */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
color var(--duration-slow) var(--ease-in-out);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Modern theme dot-grid on body */
|
||||
[data-theme="modern"] body,
|
||||
[data-theme="modern"].theme-root {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
background: none;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
THEME SWITCHER BAR (sticky top)
|
||||
===================================================================== */
|
||||
|
||||
.theme-bar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-6);
|
||||
background-color: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.theme-bar__label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-right: var(--space-2);
|
||||
}
|
||||
|
||||
.theme-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
border: 1.5px solid var(--color-border);
|
||||
background: transparent;
|
||||
transition: var(--transition-normal);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
.theme-btn:hover {
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.theme-btn.active {
|
||||
color: var(--color-text-inverse);
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .theme-btn.active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.theme-btn__dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="industrial"] .theme-btn__dot {
|
||||
background: #F5A623;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="industrial"].active .theme-btn__dot {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="modern"] .theme-btn__dot {
|
||||
background: #FF6B35;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="modern"].active .theme-btn__dot {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LAYOUT — centered login screen
|
||||
===================================================================== */
|
||||
|
||||
.login-screen {
|
||||
min-height: calc(100vh - 49px); /* subtract theme bar height */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-8) var(--space-4);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LOGIN CARD
|
||||
===================================================================== */
|
||||
|
||||
.login-card {
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-xl);
|
||||
overflow: hidden;
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out),
|
||||
box-shadow var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
/* Industrial theme: angular clip-path on the card */
|
||||
[data-theme="industrial"] .login-card {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
|
||||
}
|
||||
|
||||
/* Modern theme: smooth rounded corners */
|
||||
[data-theme="modern"] .login-card {
|
||||
border-radius: var(--radius-xl);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD HEADER — brand / logo
|
||||
===================================================================== */
|
||||
|
||||
.card-header {
|
||||
padding: var(--space-8) var(--space-8) var(--space-6);
|
||||
text-align: center;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Industrial: amber accent bar at top of header */
|
||||
[data-theme="industrial"] .card-header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
|
||||
}
|
||||
|
||||
/* Modern: subtle gradient wash */
|
||||
[data-theme="modern"] .card-header {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 107, 53, 0.04) 0%,
|
||||
rgba(255, 107, 53, 0.01) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
background: var(--color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.75rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-inverse);
|
||||
flex-shrink: 0;
|
||||
transition: background var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-logo {
|
||||
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .brand-logo {
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-logo {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-primary);
|
||||
letter-spacing: var(--heading-tracking-h4);
|
||||
line-height: var(--leading-h4);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-name {
|
||||
letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-accent);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD BODY
|
||||
===================================================================== */
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-6) var(--space-8);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
SECTION LABEL
|
||||
===================================================================== */
|
||||
|
||||
.section-label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
USER SELECTION
|
||||
===================================================================== */
|
||||
|
||||
.users-section {}
|
||||
|
||||
.users-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.user-avatar-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-2);
|
||||
background: var(--color-surface-1);
|
||||
border: 1.5px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-normal);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .user-avatar-btn {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.user-avatar-btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
box-shadow: var(--shadow-accent);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn.selected {
|
||||
background: rgba(245, 166, 35, 0.10);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected .user-initials {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn.selected .user-initials {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Selected check indicator */
|
||||
.user-avatar-btn.selected::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 6px;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: var(--color-primary);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.user-initials {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-heading);
|
||||
font-size: 0.9rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-secondary);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
transition: var(--transition-normal);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-initials {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .user-initials {
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
text-align: center;
|
||||
line-height: 1.3;
|
||||
transition: color var(--duration-normal);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected .user-name {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.user-role {
|
||||
font-size: 10px;
|
||||
color: var(--color-text-muted);
|
||||
text-align: center;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
PIN DISPLAY (dots)
|
||||
===================================================================== */
|
||||
|
||||
.pin-section {}
|
||||
|
||||
.pin-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
margin-bottom: var(--space-4);
|
||||
transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
|
||||
min-height: 64px;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-display {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pin-display {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.pin-display.has-digits {
|
||||
border-color: var(--color-border-accent);
|
||||
}
|
||||
|
||||
.pin-display.error {
|
||||
border-color: var(--color-error);
|
||||
animation: pin-shake 0.4s var(--ease-in-out);
|
||||
}
|
||||
|
||||
@keyframes pin-shake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
20% { transform: translateX(-8px); }
|
||||
40% { transform: translateX(8px); }
|
||||
60% { transform: translateX(-5px); }
|
||||
80% { transform: translateX(5px); }
|
||||
}
|
||||
|
||||
.pin-dot {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--color-border-strong);
|
||||
background: transparent;
|
||||
transition: all var(--duration-fast) var(--ease-out);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pin-dot.filled {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 0 8px var(--color-primary);
|
||||
}
|
||||
|
||||
/* PIN placeholder text when no user selected */
|
||||
.pin-placeholder {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
PIN PAD
|
||||
===================================================================== */
|
||||
|
||||
.pin-pad {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
height: 64px;
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.5rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-key {
|
||||
border-radius: 0;
|
||||
letter-spacing: var(--tracking-normal);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pin-key {
|
||||
border-radius: var(--radius-md);
|
||||
letter-spacing: var(--tracking-snug);
|
||||
}
|
||||
|
||||
.pin-key:hover {
|
||||
background: var(--color-surface-3);
|
||||
border-color: var(--color-border-strong);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.pin-key:active {
|
||||
transform: translateY(1px) scale(0.97);
|
||||
box-shadow: none;
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* Ripple effect */
|
||||
.pin-key::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
border-radius: inherit;
|
||||
transform: scale(0);
|
||||
transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
|
||||
}
|
||||
|
||||
.pin-key.ripple::after {
|
||||
transform: scale(2.5);
|
||||
opacity: 0.12;
|
||||
}
|
||||
|
||||
/* Backspace key */
|
||||
.pin-key--backspace {
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.pin-key--backspace:hover {
|
||||
color: var(--color-error);
|
||||
border-color: var(--color-error);
|
||||
background: rgba(239, 68, 68, 0.06);
|
||||
}
|
||||
|
||||
.pin-key--backspace:active {
|
||||
border-color: var(--color-error);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
}
|
||||
|
||||
/* Enter key */
|
||||
.pin-key--enter {
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
.pin-key--enter:hover {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-key--enter:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.pin-key--enter:active {
|
||||
background: var(--color-primary-active, var(--color-primary));
|
||||
color: var(--color-text-inverse);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
SUBMIT BUTTON
|
||||
===================================================================== */
|
||||
|
||||
.btn-login {
|
||||
width: 100%;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
border: 1.5px solid var(--btn-primary-border, transparent);
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-normal);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .btn-login {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .btn-login {
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-login:hover:not(:disabled) {
|
||||
background: var(--btn-primary-bg-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.btn-login:active:not(:disabled) {
|
||||
background: var(--btn-primary-bg-active);
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.btn-login:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.btn-login__icon {
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD FOOTER
|
||||
===================================================================== */
|
||||
|
||||
.card-footer {
|
||||
padding: var(--space-4) var(--space-8);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
background: var(--color-surface-1);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.footer-version {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.footer-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-success);
|
||||
animation: status-pulse 2.5s infinite ease-in-out;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@keyframes status-pulse {
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.5; transform: scale(0.85); }
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
INDUSTRIAL THEME EXTRAS — accent border line on card
|
||||
===================================================================== */
|
||||
|
||||
[data-theme="industrial"] .login-card {
|
||||
border-color: #2a2a2a;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .login-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
/* Simulated angular highlight on top-left edge */
|
||||
border-top: 1px solid rgba(245, 166, 35, 0.15);
|
||||
border-left: 1px solid rgba(245, 166, 35, 0.08);
|
||||
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
NOTIFICATION / TOAST for error feedback
|
||||
===================================================================== */
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: var(--space-8);
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(120%);
|
||||
background: var(--color-error);
|
||||
color: #fff;
|
||||
padding: var(--space-3) var(--space-6);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-radius: var(--radius-full);
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: var(--z-toast);
|
||||
transition: transform 0.3s var(--ease-out);
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
RESPONSIVE
|
||||
===================================================================== */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.theme-bar {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
}
|
||||
|
||||
.theme-bar__label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-screen {
|
||||
padding: var(--space-4) var(--space-3);
|
||||
align-items: flex-start;
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-5) var(--space-5);
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
padding: var(--space-6) var(--space-5) var(--space-5);
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.users-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
height: 56px;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.pin-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.users-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.user-initials {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
height: 50px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
ACCESSIBILITY
|
||||
===================================================================== */
|
||||
|
||||
.pin-key:focus-visible,
|
||||
.user-avatar-btn:focus-visible,
|
||||
.theme-btn:focus-visible,
|
||||
.btn-login:focus-visible {
|
||||
outline: 2px solid var(--color-border-focus);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
224
pos/static/css/marketplace.css
Normal file
224
pos/static/css/marketplace.css
Normal file
@@ -0,0 +1,224 @@
|
||||
/* Extracted from marketplace.html */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm);
|
||||
background: var(--color-bg-base); color: var(--color-text-primary);
|
||||
min-height: 100vh; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Page header ── */
|
||||
.page-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--glass-bg-strong); backdrop-filter: blur(16px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.page-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-accent);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.page-title::before { content: '// '; opacity: 0.5; font-family: var(--font-mono); }
|
||||
.user-role {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px dashed var(--glass-border); border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* ── Tab bar ── */
|
||||
.tab-bar {
|
||||
display: flex; gap: var(--space-1);
|
||||
padding: 0 var(--space-6); background: var(--color-bg-base);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.tab-btn {
|
||||
background: transparent; border: none;
|
||||
padding: var(--space-3) var(--space-5);
|
||||
color: var(--color-text-muted); cursor: pointer;
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.tab-btn:hover { color: var(--color-text-accent); }
|
||||
.tab-btn.active {
|
||||
color: var(--color-text-accent);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
.tab-panel { display: none; padding: var(--space-6); flex: 1; overflow-y: auto; }
|
||||
.tab-panel.active { display: block; }
|
||||
|
||||
/* ── Search bar ── */
|
||||
.search-row {
|
||||
display: flex; gap: var(--space-3); margin-bottom: var(--space-5);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.search-row input {
|
||||
flex: 1; min-width: 240px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
.search-row button {
|
||||
padding: var(--space-3) var(--space-6);
|
||||
background: var(--gradient-accent); color: var(--btn-primary-text);
|
||||
border: none; border-radius: var(--radius-md);
|
||||
font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Results table/grid ── */
|
||||
.results-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
.part-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-4); cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.part-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.part-card__oem {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-accent); font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.part-card__name {
|
||||
font-size: var(--text-body); font-weight: var(--font-weight-semibold);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.part-card__meta {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
margin-top: var(--space-3); padding-top: var(--space-3);
|
||||
border-top: 1px dashed var(--glass-border);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
.price-range {
|
||||
font-family: var(--font-mono); color: var(--color-text-accent);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.bodega-count {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.stock-pill {
|
||||
display: inline-block; padding: 2px 8px;
|
||||
background: rgba(63,185,80,0.15); color: #3FB950;
|
||||
border: 1px solid rgba(63,185,80,0.3);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* ── PO list table ── */
|
||||
.po-table {
|
||||
width: 100%; border-collapse: collapse;
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
}
|
||||
.po-table th, .po-table td {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.po-table th {
|
||||
background: var(--glass-bg-strong);
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.po-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
||||
.po-table tbody tr:hover { background: var(--glass-highlight); }
|
||||
|
||||
/* ── Status badges ── */
|
||||
.status-badge {
|
||||
display: inline-block; padding: 2px 10px; border-radius: var(--radius-full);
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
.status-draft { background: rgba(130,130,130,0.2); color: #888; }
|
||||
.status-submitted { background: rgba(245,166,35,0.15); color: #F5A623; border: 1px solid rgba(245,166,35,0.3); }
|
||||
.status-confirmed { background: rgba(0,212,255,0.15); color: #00D4FF; border: 1px solid rgba(0,212,255,0.3); }
|
||||
.status-ready { background: rgba(167,139,250,0.15); color: #A78BFA; border: 1px solid rgba(167,139,250,0.3); }
|
||||
.status-delivered { background: rgba(63,185,80,0.15); color: #3FB950; border: 1px solid rgba(63,185,80,0.3); }
|
||||
.status-closed { background: rgba(255,255,255,0.05); color: #888; }
|
||||
.status-rejected { background: rgba(248,81,73,0.15); color: #F85149; border: 1px solid rgba(248,81,73,0.3); }
|
||||
|
||||
/* ── Modals ── */
|
||||
.modal-overlay {
|
||||
display: none; position: fixed; inset: 0; z-index: 1000;
|
||||
background: var(--overlay-backdrop); backdrop-filter: blur(4px);
|
||||
align-items: flex-start; justify-content: center;
|
||||
padding: var(--space-8) var(--space-4); overflow-y: auto;
|
||||
}
|
||||
.modal-overlay.open { display: flex; }
|
||||
.modal-content {
|
||||
background: var(--glass-bg-strong); backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
max-width: 700px; width: 100%;
|
||||
padding: var(--space-6); position: relative;
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-3);
|
||||
background: none; border: none; color: var(--color-text-muted);
|
||||
font-size: 1.4rem; cursor: pointer;
|
||||
}
|
||||
.modal-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
text-align: center; padding: var(--space-12);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.empty-state h3 { margin-bottom: var(--space-2); font-family: var(--font-heading); }
|
||||
|
||||
/* ── CSV upload box ── */
|
||||
.upload-box {
|
||||
background: var(--glass-bg); border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-lg); padding: var(--space-5);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
.upload-box label {
|
||||
display: block; margin-bottom: var(--space-2); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.upload-box textarea {
|
||||
width: 100%; height: 160px;
|
||||
padding: var(--space-3); font-family: var(--font-mono); font-size: 12px;
|
||||
background: var(--glass-bg); border: 1px solid var(--glass-border);
|
||||
color: var(--color-text-primary); border-radius: var(--radius-md);
|
||||
resize: vertical;
|
||||
}
|
||||
.upload-box .hint {
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
/* Item list inside the create-PO modal */
|
||||
.cart-items {
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-md);
|
||||
margin: var(--space-3) 0;
|
||||
max-height: 260px; overflow-y: auto;
|
||||
}
|
||||
.cart-row {
|
||||
display: flex; gap: var(--space-3); align-items: center;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.cart-row:last-child { border-bottom: none; }
|
||||
.cart-row input[type="number"] { width: 70px; }
|
||||
.cart-row .remove-btn {
|
||||
background: none; border: none; color: #F85149; cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
224
pos/static/css/marketplace.min.css
vendored
Normal file
224
pos/static/css/marketplace.min.css
vendored
Normal file
@@ -0,0 +1,224 @@
|
||||
/* Extracted from marketplace.html */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm);
|
||||
background: var(--color-bg-base); color: var(--color-text-primary);
|
||||
min-height: 100vh; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Page header ── */
|
||||
.page-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--glass-bg-strong); backdrop-filter: blur(16px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.page-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-accent);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.page-title::before { content: '// '; opacity: 0.5; font-family: var(--font-mono); }
|
||||
.user-role {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px dashed var(--glass-border); border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* ── Tab bar ── */
|
||||
.tab-bar {
|
||||
display: flex; gap: var(--space-1);
|
||||
padding: 0 var(--space-6); background: var(--color-bg-base);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.tab-btn {
|
||||
background: transparent; border: none;
|
||||
padding: var(--space-3) var(--space-5);
|
||||
color: var(--color-text-muted); cursor: pointer;
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.tab-btn:hover { color: var(--color-text-accent); }
|
||||
.tab-btn.active {
|
||||
color: var(--color-text-accent);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
.tab-panel { display: none; padding: var(--space-6); flex: 1; overflow-y: auto; }
|
||||
.tab-panel.active { display: block; }
|
||||
|
||||
/* ── Search bar ── */
|
||||
.search-row {
|
||||
display: flex; gap: var(--space-3); margin-bottom: var(--space-5);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.search-row input {
|
||||
flex: 1; min-width: 240px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
.search-row button {
|
||||
padding: var(--space-3) var(--space-6);
|
||||
background: var(--gradient-accent); color: var(--btn-primary-text);
|
||||
border: none; border-radius: var(--radius-md);
|
||||
font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Results table/grid ── */
|
||||
.results-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
.part-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-4); cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.part-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.part-card__oem {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-accent); font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.part-card__name {
|
||||
font-size: var(--text-body); font-weight: var(--font-weight-semibold);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.part-card__meta {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
margin-top: var(--space-3); padding-top: var(--space-3);
|
||||
border-top: 1px dashed var(--glass-border);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
.price-range {
|
||||
font-family: var(--font-mono); color: var(--color-text-accent);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.bodega-count {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.stock-pill {
|
||||
display: inline-block; padding: 2px 8px;
|
||||
background: rgba(63,185,80,0.15); color: #3FB950;
|
||||
border: 1px solid rgba(63,185,80,0.3);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* ── PO list table ── */
|
||||
.po-table {
|
||||
width: 100%; border-collapse: collapse;
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
}
|
||||
.po-table th, .po-table td {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.po-table th {
|
||||
background: var(--glass-bg-strong);
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.po-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
||||
.po-table tbody tr:hover { background: var(--glass-highlight); }
|
||||
|
||||
/* ── Status badges ── */
|
||||
.status-badge {
|
||||
display: inline-block; padding: 2px 10px; border-radius: var(--radius-full);
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
.status-draft { background: rgba(130,130,130,0.2); color: #888; }
|
||||
.status-submitted { background: rgba(245,166,35,0.15); color: #F5A623; border: 1px solid rgba(245,166,35,0.3); }
|
||||
.status-confirmed { background: rgba(0,212,255,0.15); color: #00D4FF; border: 1px solid rgba(0,212,255,0.3); }
|
||||
.status-ready { background: rgba(167,139,250,0.15); color: #A78BFA; border: 1px solid rgba(167,139,250,0.3); }
|
||||
.status-delivered { background: rgba(63,185,80,0.15); color: #3FB950; border: 1px solid rgba(63,185,80,0.3); }
|
||||
.status-closed { background: rgba(255,255,255,0.05); color: #888; }
|
||||
.status-rejected { background: rgba(248,81,73,0.15); color: #F85149; border: 1px solid rgba(248,81,73,0.3); }
|
||||
|
||||
/* ── Modals ── */
|
||||
.modal-overlay {
|
||||
display: none; position: fixed; inset: 0; z-index: 1000;
|
||||
background: var(--overlay-backdrop); backdrop-filter: blur(4px);
|
||||
align-items: flex-start; justify-content: center;
|
||||
padding: var(--space-8) var(--space-4); overflow-y: auto;
|
||||
}
|
||||
.modal-overlay.open { display: flex; }
|
||||
.modal-content {
|
||||
background: var(--glass-bg-strong); backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
max-width: 700px; width: 100%;
|
||||
padding: var(--space-6); position: relative;
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-3);
|
||||
background: none; border: none; color: var(--color-text-muted);
|
||||
font-size: 1.4rem; cursor: pointer;
|
||||
}
|
||||
.modal-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
text-align: center; padding: var(--space-12);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.empty-state h3 { margin-bottom: var(--space-2); font-family: var(--font-heading); }
|
||||
|
||||
/* ── CSV upload box ── */
|
||||
.upload-box {
|
||||
background: var(--glass-bg); border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-lg); padding: var(--space-5);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
.upload-box label {
|
||||
display: block; margin-bottom: var(--space-2); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.upload-box textarea {
|
||||
width: 100%; height: 160px;
|
||||
padding: var(--space-3); font-family: var(--font-mono); font-size: 12px;
|
||||
background: var(--glass-bg); border: 1px solid var(--glass-border);
|
||||
color: var(--color-text-primary); border-radius: var(--radius-md);
|
||||
resize: vertical;
|
||||
}
|
||||
.upload-box .hint {
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
/* Item list inside the create-PO modal */
|
||||
.cart-items {
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-md);
|
||||
margin: var(--space-3) 0;
|
||||
max-height: 260px; overflow-y: auto;
|
||||
}
|
||||
.cart-row {
|
||||
display: flex; gap: var(--space-3); align-items: center;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.cart-row:last-child { border-bottom: none; }
|
||||
.cart-row input[type="number"] { width: 70px; }
|
||||
.cart-row .remove-btn {
|
||||
background: none; border: none; color: #F85149; cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
985
pos/static/css/pos.css
Normal file
985
pos/static/css/pos.css
Normal file
@@ -0,0 +1,985 @@
|
||||
/* Extracted from pos.html */
|
||||
|
||||
/* =====================================================================
|
||||
BASE RESET & LAYOUT SHELL
|
||||
===================================================================== */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-regular);
|
||||
background-color: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Dot-grid for modern theme */
|
||||
[data-theme="modern"] body,
|
||||
[data-theme="modern"].pos-shell {
|
||||
background-color: var(--color-bg-base);
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
STATUS BAR (very top)
|
||||
===================================================================== */
|
||||
|
||||
.status-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 36px;
|
||||
padding: 0 var(--space-5);
|
||||
background-color: var(--color-surface-3);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
flex-shrink: 0;
|
||||
z-index: var(--z-sticky);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .status-bar {
|
||||
background-color: #111111;
|
||||
border-bottom-color: var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.status-bar__store {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
color: var(--color-text-accent);
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
|
||||
.status-bar__store-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
background-color: var(--color-success);
|
||||
border-radius: var(--radius-full);
|
||||
box-shadow: 0 0 6px var(--color-success);
|
||||
animation: pulse-dot 2.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
}
|
||||
|
||||
.status-bar__center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.status-bar__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.status-bar__user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.status-bar__user-avatar {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.6rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
MAIN CONTENT -- split layout
|
||||
===================================================================== */
|
||||
|
||||
.pos-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pos-main {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LEFT PANEL -- Product Browser (60%)
|
||||
===================================================================== */
|
||||
|
||||
.panel-products {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 60%;
|
||||
min-width: 0;
|
||||
border-right: 1px solid var(--color-border);
|
||||
background-color: var(--color-bg-base);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .panel-products {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Search bar row */
|
||||
.search-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
background-color: var(--color-surface-1);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-wrap {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: var(--space-4);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--color-text-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
padding: 0 var(--space-4) 0 44px;
|
||||
background-color: var(--color-bg-overlay);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-lg);
|
||||
font-weight: var(--font-weight-regular);
|
||||
color: var(--color-text-primary);
|
||||
outline: none;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
|
||||
.search-input::placeholder { color: var(--color-text-muted); }
|
||||
|
||||
.search-input:focus {
|
||||
border-color: var(--color-border-focus);
|
||||
box-shadow: var(--shadow-focus);
|
||||
background-color: var(--color-bg-overlay);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .search-input {
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.btn-scan {
|
||||
width: 48px; height: 48px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background-color: var(--btn-secondary-bg);
|
||||
border: 1.5px solid var(--btn-secondary-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-primary);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn-scan:hover {
|
||||
background-color: var(--btn-secondary-bg-hover);
|
||||
box-shadow: var(--shadow-accent);
|
||||
}
|
||||
|
||||
/* Quick category buttons */
|
||||
.categories-row {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
|
||||
}
|
||||
.categories-row::-webkit-scrollbar { display: none; }
|
||||
|
||||
.category-label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
margin-right: var(--space-1);
|
||||
}
|
||||
|
||||
.cat-btn {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background-color: transparent;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer; white-space: nowrap;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.cat-btn:hover {
|
||||
border-color: var(--color-primary); color: var(--color-primary);
|
||||
background-color: var(--color-primary-muted);
|
||||
}
|
||||
.cat-btn.active {
|
||||
border-color: var(--color-primary); background-color: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
}
|
||||
[data-theme="industrial"] .cat-btn.active { color: #000; }
|
||||
[data-theme="modern"] .cat-btn { border-radius: var(--radius-full); }
|
||||
|
||||
/* Product grid */
|
||||
.product-grid-wrap {
|
||||
flex: 1; overflow-y: auto;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
}
|
||||
.product-grid-wrap::-webkit-scrollbar { width: 6px; }
|
||||
.product-grid-wrap::-webkit-scrollbar-track { background: var(--scrollbar-track); }
|
||||
.product-grid-wrap::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: var(--radius-full); }
|
||||
|
||||
.product-grid {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
|
||||
}
|
||||
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
|
||||
/* Product card */
|
||||
.product-card {
|
||||
position: relative; display: flex; flex-direction: column;
|
||||
padding: var(--space-4);
|
||||
background-color: var(--color-surface-1);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); overflow: hidden;
|
||||
}
|
||||
.product-card:hover {
|
||||
border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-1px);
|
||||
}
|
||||
.product-card:hover .product-card__add { opacity: 1; transform: scale(1); }
|
||||
|
||||
[data-theme="industrial"] .product-card { background-color: var(--color-surface-1); border-color: #2a2a2a; }
|
||||
[data-theme="industrial"] .product-card:hover { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md); }
|
||||
[data-theme="modern"] .product-card { border-radius: var(--radius-lg); background-color: #fff; box-shadow: var(--shadow-sm); }
|
||||
[data-theme="modern"] .product-card:hover { box-shadow: var(--shadow-lg); }
|
||||
|
||||
.product-card__category {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest); text-transform: uppercase;
|
||||
color: var(--color-primary); margin-bottom: var(--space-1);
|
||||
}
|
||||
.product-card__name {
|
||||
font-family: var(--font-heading); font-size: var(--text-body);
|
||||
font-weight: var(--heading-weight-primary); line-height: var(--leading-h5);
|
||||
color: var(--color-text-primary); margin-bottom: var(--space-1);
|
||||
}
|
||||
.product-card__oem {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); margin-bottom: var(--space-3);
|
||||
}
|
||||
.product-card__footer {
|
||||
display: flex; align-items: flex-end; justify-content: space-between;
|
||||
margin-top: auto; gap: var(--space-2);
|
||||
}
|
||||
.product-card__price {
|
||||
font-family: var(--font-mono); font-size: 1.1rem;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); line-height: 1;
|
||||
}
|
||||
.product-card__stock { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: 2px; }
|
||||
.product-card__stock.low { color: var(--color-warning); }
|
||||
.product-card__stock.out { color: var(--color-error); }
|
||||
|
||||
.product-card__add {
|
||||
width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
|
||||
background-color: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-size: 1.2rem; font-weight: var(--font-weight-bold);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; opacity: 0.75; transform: scale(0.95);
|
||||
transition: var(--transition-fast); flex-shrink: 0;
|
||||
}
|
||||
.product-card__add:hover { background-color: var(--color-primary-hover); opacity: 1; transform: scale(1.08) !important; }
|
||||
[data-theme="industrial"] .product-card__add { color: #000; }
|
||||
[data-theme="modern"] .product-card__add { border-radius: var(--radius-md); }
|
||||
|
||||
@keyframes card-flash {
|
||||
0% { background-color: var(--color-primary-muted); }
|
||||
100% { background-color: transparent; }
|
||||
}
|
||||
.product-card.added { animation: card-flash 0.4s ease forwards; }
|
||||
|
||||
/* =====================================================================
|
||||
RIGHT PANEL -- Cart / Ticket (40%)
|
||||
===================================================================== */
|
||||
|
||||
.panel-cart {
|
||||
display: flex; flex-direction: column; width: 40%; min-width: 320px;
|
||||
background-color: var(--color-surface-1); overflow: hidden; position: relative;
|
||||
}
|
||||
[data-theme="modern"] .panel-cart { background-color: #fff; box-shadow: -4px 0 20px rgba(26,26,46,0.06); }
|
||||
[data-theme="industrial"] .panel-cart { background-color: #141414; border-left: 1px solid #2a2a2a; }
|
||||
|
||||
/* Cart header */
|
||||
.cart-header {
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0; background-color: var(--color-surface-2);
|
||||
}
|
||||
[data-theme="industrial"] .cart-header { background-color: #1a1a1a; border-bottom-color: var(--color-primary-muted); }
|
||||
|
||||
.cart-header__top {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.cart-header__sale-id {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
}
|
||||
.cart-header__sale-id::before {
|
||||
content: ''; display: block; width: 4px; height: 20px;
|
||||
background-color: var(--color-primary); border-radius: 2px; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cart-header__status {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider); text-transform: uppercase;
|
||||
color: var(--color-success); background-color: rgba(34,197,94,0.12);
|
||||
padding: 3px var(--space-3); border-radius: var(--radius-full);
|
||||
border: 1px solid rgba(34,197,94,0.25);
|
||||
}
|
||||
|
||||
/* Customer row */
|
||||
.customer-row {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
}
|
||||
.customer-icon {
|
||||
width: 34px; height: 34px; border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary-muted); border: 1.5px solid var(--color-primary);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: var(--color-primary); flex-shrink: 0;
|
||||
}
|
||||
.customer-info { flex: 1; min-width: 0; }
|
||||
.customer-info__name {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.customer-info__label { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.btn-change-customer {
|
||||
padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-full); background: transparent;
|
||||
font-family: var(--font-body); font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold); color: var(--color-text-muted);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
|
||||
}
|
||||
.btn-change-customer:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
/* Banner Cliente */
|
||||
.banner-cliente {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
display: none;
|
||||
}
|
||||
.banner-cliente.visible { display: block; }
|
||||
.banner-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
|
||||
.banner-avatar {
|
||||
width: 36px; height: 36px; border-radius: var(--radius-full);
|
||||
background: var(--color-primary); display: flex; align-items: center; justify-content: center;
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-inverse); flex-shrink: 0;
|
||||
}
|
||||
.banner-name-block { flex: 1; min-width: 0; }
|
||||
.banner-name {
|
||||
font-family: var(--font-heading); font-size: var(--text-body);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.banner-rfc {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.banner-close {
|
||||
width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-muted); font-size: 14px; transition: var(--transition-fast); flex-shrink: 0;
|
||||
}
|
||||
.banner-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
|
||||
.banner-info {
|
||||
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2);
|
||||
}
|
||||
.banner-info-item {
|
||||
padding: var(--space-2) var(--space-3); background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
}
|
||||
.banner-info-label {
|
||||
font-size: 10px; color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.banner-info-value {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); margin-top: 1px;
|
||||
}
|
||||
.banner-info-value.credit-ok { color: var(--color-success); }
|
||||
.banner-info-value.credit-low { color: var(--color-warning-dark); }
|
||||
.banner-info-value.credit-none { color: var(--color-error); }
|
||||
|
||||
/* Cart items list */
|
||||
.cart-items {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4);
|
||||
scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
}
|
||||
.cart-items::-webkit-scrollbar { width: 4px; }
|
||||
.cart-items::-webkit-scrollbar-track { background: transparent; }
|
||||
.cart-items::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: var(--radius-full); }
|
||||
|
||||
.cart-empty {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
height: 120px; color: var(--color-text-muted); font-size: var(--text-body-sm); gap: var(--space-2); opacity: 0.6;
|
||||
}
|
||||
|
||||
.cart-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--color-border);
|
||||
transition: var(--transition-fast);
|
||||
animation: item-slide-in 0.2s ease;
|
||||
}
|
||||
@keyframes item-slide-in {
|
||||
from { opacity: 0; transform: translateX(10px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
.cart-item:hover { background-color: var(--color-primary-muted); border-radius: var(--radius-sm); }
|
||||
.cart-item:last-child { border-bottom: none; }
|
||||
|
||||
.cart-item__qty-ctrl { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; }
|
||||
.qty-btn {
|
||||
width: 26px; height: 26px; border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm); background-color: var(--color-surface-3);
|
||||
color: var(--color-text-primary); font-size: 0.9rem; font-weight: var(--font-weight-bold);
|
||||
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
||||
transition: var(--transition-fast); line-height: 1;
|
||||
}
|
||||
.qty-btn:hover { border-color: var(--color-primary); background-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
[data-theme="industrial"] .qty-btn:hover { color: #000; }
|
||||
.qty-display {
|
||||
font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); min-width: 24px; text-align: center;
|
||||
}
|
||||
|
||||
.cart-item__info { flex: 1; min-width: 0; }
|
||||
.cart-item__name {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.cart-item__unit { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.cart-item__total {
|
||||
font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); text-align: right; min-width: 72px;
|
||||
}
|
||||
.cart-item__remove {
|
||||
width: 24px; height: 24px; border: none; border-radius: var(--radius-sm);
|
||||
background: transparent; color: var(--color-text-muted); font-size: 1rem;
|
||||
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
||||
transition: var(--transition-fast); flex-shrink: 0; line-height: 1;
|
||||
}
|
||||
.cart-item__remove:hover { background-color: rgba(239,68,68,0.15); color: var(--color-error); }
|
||||
|
||||
/* Columnas Costo/Margen (hidden by default, visible with permission) */
|
||||
.cart-item__cost, .cart-item__margin {
|
||||
display: none; font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
text-align: right; min-width: 56px; flex-shrink: 0;
|
||||
}
|
||||
.cart-item__cost { color: var(--color-text-muted); }
|
||||
.cart-item__margin { font-weight: var(--font-weight-bold); }
|
||||
.cart-item__margin.margin-high { color: var(--color-success); }
|
||||
.cart-item__margin.margin-mid { color: var(--color-warning); }
|
||||
.cart-item__margin.margin-low { color: var(--color-error); }
|
||||
|
||||
body.show-cost-columns .cart-item__cost,
|
||||
body.show-cost-columns .cart-item__margin { display: block; }
|
||||
|
||||
.margin-summary {
|
||||
display: none; padding: var(--space-2) var(--space-5);
|
||||
border-top: 1px dashed var(--color-border);
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
}
|
||||
body.show-cost-columns .margin-summary { display: flex; justify-content: space-between; }
|
||||
.margin-summary__value { font-family: var(--font-mono); font-weight: var(--font-weight-bold); }
|
||||
|
||||
.cost-toggle {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm); background: transparent;
|
||||
color: var(--color-text-muted); font-size: 10px; font-family: var(--font-body);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
cursor: pointer; transition: var(--transition-fast);
|
||||
}
|
||||
.cost-toggle:hover { border-color: var(--color-primary); color: var(--color-text-accent); }
|
||||
.cost-toggle.active { background: var(--color-primary-muted); border-color: var(--color-primary); color: var(--color-text-accent); }
|
||||
|
||||
/* Cart footer (totals + payment) */
|
||||
.cart-footer {
|
||||
flex-shrink: 0; border-top: 1px solid var(--color-border);
|
||||
background-color: var(--color-surface-2);
|
||||
}
|
||||
[data-theme="industrial"] .cart-footer { background-color: #1a1a1a; border-top-color: var(--color-primary-muted); }
|
||||
|
||||
.totals-block { padding: var(--space-3) var(--space-5) var(--space-2); }
|
||||
.totals-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-1) 0; }
|
||||
.totals-row__label { font-size: var(--text-body-sm); color: var(--color-text-muted); }
|
||||
.totals-row__value { font-family: var(--font-mono); font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
|
||||
.totals-row--total { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
|
||||
.totals-row--total .totals-row__label {
|
||||
font-family: var(--font-heading); font-size: var(--text-body-lg);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
}
|
||||
.totals-row--total .totals-row__value {
|
||||
font-family: var(--font-mono); font-size: 1.5rem;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* COBRAR Button */
|
||||
.btn-cobrar {
|
||||
display: flex; align-items: center; justify-content: center; gap: var(--space-3);
|
||||
width: calc(100% - var(--space-10)); margin: var(--space-3) var(--space-5);
|
||||
height: 56px; background-color: var(--btn-primary-bg); border: none;
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-heading); font-size: 1.2rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
letter-spacing: var(--tracking-widest); text-transform: uppercase;
|
||||
color: var(--btn-primary-text); cursor: pointer;
|
||||
transition: var(--transition-fast); box-shadow: var(--shadow-md);
|
||||
}
|
||||
.btn-cobrar:hover { background-color: var(--btn-primary-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
|
||||
.btn-cobrar:active { background-color: var(--btn-primary-bg-active); transform: translateY(0); }
|
||||
.btn-cobrar:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
|
||||
[data-theme="industrial"] .btn-cobrar { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .btn-cobrar { border-radius: var(--radius-lg); }
|
||||
|
||||
/* Secondary actions row */
|
||||
.secondary-actions {
|
||||
display: flex; gap: var(--space-2); padding: 0 var(--space-5) var(--space-4);
|
||||
}
|
||||
.btn-secondary-action {
|
||||
flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-1);
|
||||
height: 34px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
|
||||
background: transparent; font-family: var(--font-body); font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase; color: var(--color-text-muted); cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.btn-secondary-action:hover { border-color: var(--color-border-strong); color: var(--color-text-secondary); background-color: var(--color-surface-3); }
|
||||
.btn-secondary-action.danger:hover { border-color: var(--color-error); color: var(--color-error); background-color: rgba(239,68,68,0.08); }
|
||||
[data-theme="modern"] .btn-secondary-action { border-radius: var(--radius-md); }
|
||||
|
||||
/* =====================================================================
|
||||
F-KEYS FOOTER BAR
|
||||
===================================================================== */
|
||||
.fkeys-footer {
|
||||
position: fixed; bottom: 0; left: 0; right: 0;
|
||||
background: var(--color-surface-2); border-top: 2px solid var(--color-primary);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
display: flex; align-items: center; justify-content: center; gap: var(--space-1);
|
||||
z-index: var(--z-sticky); box-shadow: var(--shadow-lg);
|
||||
}
|
||||
.fkey {
|
||||
display: flex; align-items: center; gap: var(--space-1);
|
||||
padding: var(--space-2) var(--space-3); background: transparent;
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap; flex-shrink: 0;
|
||||
}
|
||||
.fkey:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }
|
||||
.fkey:active { background: var(--color-primary); transform: scale(0.96); }
|
||||
.fkey:active .fkey-label { color: var(--color-text-inverse); }
|
||||
.fkey:active .fkey-key { background: rgba(0,0,0,0.2); color: var(--color-text-inverse); border-color: transparent; }
|
||||
.fkey-key {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
min-width: 28px; height: 22px; padding: 0 var(--space-2);
|
||||
background: var(--color-bg-base); border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-accent); line-height: 1;
|
||||
}
|
||||
.fkey-label {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.fkey-sep { width: 1px; height: 24px; background: var(--color-border); margin: 0 var(--space-1); flex-shrink: 0; }
|
||||
.fkey.highlight {
|
||||
background: var(--color-primary-muted); border-color: var(--color-primary);
|
||||
}
|
||||
.fkey.highlight .fkey-key {
|
||||
background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary);
|
||||
}
|
||||
.fkey.highlight .fkey-label { color: var(--color-text-accent); font-weight: var(--font-weight-bold); }
|
||||
|
||||
/* =====================================================================
|
||||
MODAL DE PAGO
|
||||
===================================================================== */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
z-index: var(--z-modal);
|
||||
opacity: 0; pointer-events: none;
|
||||
transition: var(--transition-normal);
|
||||
}
|
||||
.modal-overlay.open { opacity: 1; pointer-events: auto; }
|
||||
|
||||
.modal-pago {
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
|
||||
width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
|
||||
transform: translateY(20px); transition: var(--transition-normal);
|
||||
}
|
||||
.modal-overlay.open .modal-pago { transform: translateY(0); }
|
||||
|
||||
.modal-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.modal-header h3 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
}
|
||||
.modal-close {
|
||||
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-muted); font-size: 18px; transition: var(--transition-fast);
|
||||
}
|
||||
.modal-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
|
||||
|
||||
.total-banner {
|
||||
background: var(--color-primary-muted); border-bottom: 2px solid var(--color-primary);
|
||||
padding: var(--space-4) var(--space-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.total-label {
|
||||
font-size: var(--text-body); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.total-amount {
|
||||
font-family: var(--font-mono); font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.items-summary {
|
||||
padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-body-sm); color: var(--color-text-muted); display: flex; gap: var(--space-4);
|
||||
}
|
||||
|
||||
.pago-tabs {
|
||||
display: flex; border-bottom: 2px solid var(--color-border); padding: 0 var(--space-6);
|
||||
}
|
||||
.pago-tab {
|
||||
padding: var(--space-3) var(--space-5); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
background: transparent; border: none; color: var(--color-text-muted);
|
||||
cursor: pointer; border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px; transition: var(--transition-fast);
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
}
|
||||
.pago-tab:hover { color: var(--color-text-primary); }
|
||||
.pago-tab.active { color: var(--color-text-accent); border-bottom-color: var(--color-primary); }
|
||||
|
||||
.tab-content { padding: var(--space-6); display: none; }
|
||||
.tab-content.active { display: block; }
|
||||
|
||||
.form-group { margin-bottom: var(--space-4); }
|
||||
.form-label {
|
||||
display: block; font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); margin-bottom: var(--space-2);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.form-input {
|
||||
width: 100%; padding: var(--space-3) var(--space-4);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
background: var(--color-bg-base); color: var(--color-text-primary);
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.form-input:focus { outline: none; border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
.form-input-lg {
|
||||
font-family: var(--font-mono); font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold); text-align: right;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
}
|
||||
|
||||
.cambio-display {
|
||||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
|
||||
display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-4);
|
||||
}
|
||||
.cambio-label { font-size: var(--text-body-sm); color: var(--color-text-secondary); font-weight: var(--font-weight-semibold); }
|
||||
.cambio-amount { font-family: var(--font-mono); font-size: var(--text-h4); font-weight: var(--font-weight-bold); }
|
||||
.cambio-amount.positive { color: var(--color-success); }
|
||||
.cambio-amount.negative { color: var(--color-error); }
|
||||
|
||||
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
|
||||
.quick-btn {
|
||||
padding: var(--space-2) var(--space-3); font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold); background: var(--color-surface-2);
|
||||
color: var(--color-text-primary); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
}
|
||||
.quick-btn:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }
|
||||
|
||||
.split-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: end; margin-bottom: var(--space-3); }
|
||||
.split-method {
|
||||
padding: var(--space-2) var(--space-3); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold); background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary); border-radius: var(--radius-md);
|
||||
text-align: center; border: 1px solid var(--color-border);
|
||||
}
|
||||
.split-remaining {
|
||||
background: var(--color-surface-2); border-radius: var(--radius-md);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
font-size: var(--text-body-sm); margin-top: var(--space-3);
|
||||
}
|
||||
.split-remaining .amount { font-family: var(--font-mono); font-weight: var(--font-weight-bold); color: var(--color-text-accent); }
|
||||
|
||||
.cfdi-check {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border);
|
||||
background: var(--color-surface-1);
|
||||
}
|
||||
.cfdi-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--color-primary); cursor: pointer; }
|
||||
.cfdi-check label { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-secondary); cursor: pointer; }
|
||||
.cfdi-check .cfdi-hint { font-size: var(--text-caption); color: var(--color-text-muted); margin-left: auto; }
|
||||
|
||||
.modal-footer {
|
||||
padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border);
|
||||
display: flex; gap: var(--space-3); justify-content: flex-end;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-6); font-family: var(--font-body); font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-semibold); line-height: 1;
|
||||
border: 2px solid transparent; border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
|
||||
}
|
||||
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
|
||||
.btn:active { transform: scale(0.97); }
|
||||
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
|
||||
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
|
||||
.btn-ghost:hover { background: var(--color-surface-2); }
|
||||
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-body-lg); }
|
||||
|
||||
.ref-field { display: flex; gap: var(--space-3); align-items: end; }
|
||||
.ref-field .form-group { flex: 1; }
|
||||
.form-hint { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
|
||||
.status-indicator {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.status-indicator.pending { background: var(--color-warning-light); color: var(--color-warning-dark); }
|
||||
.status-indicator.confirmed { background: var(--color-success-light); color: var(--color-success-dark); }
|
||||
|
||||
.terminal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
|
||||
.terminal-card {
|
||||
padding: var(--space-4); background: var(--color-surface-2); border: 2px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
}
|
||||
.terminal-card:hover { border-color: var(--color-primary); }
|
||||
.terminal-card.selected { border-color: var(--color-primary); background: var(--color-primary-muted); }
|
||||
.terminal-card .terminal-name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
|
||||
.terminal-card .terminal-type { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
|
||||
|
||||
/* =====================================================================
|
||||
MODAL CONFIRMACION
|
||||
===================================================================== */
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes scaleIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
|
||||
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
|
||||
@keyframes scaleOut { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } }
|
||||
|
||||
.confirm-overlay {
|
||||
position: fixed; inset: 0; background: var(--overlay-backdrop);
|
||||
z-index: calc(var(--z-modal) + 1); display: none; animation: fadeIn 0.2s ease-out forwards;
|
||||
}
|
||||
.confirm-overlay.active { display: block; }
|
||||
.confirm-overlay.closing { animation: fadeOut 0.2s ease-in forwards; }
|
||||
|
||||
.confirm-dialog {
|
||||
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
|
||||
z-index: calc(var(--z-modal) + 2);
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
|
||||
width: 90%; max-width: 420px; padding: var(--space-6); text-align: center;
|
||||
display: none; animation: scaleIn 0.25s ease-out forwards;
|
||||
}
|
||||
.confirm-dialog.active { display: block; }
|
||||
.confirm-dialog.closing { animation: scaleOut 0.2s ease-in forwards; }
|
||||
|
||||
.modal__icon {
|
||||
width: 56px; height: 56px; border-radius: var(--radius-full);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 26px; margin: 0 auto var(--space-4);
|
||||
}
|
||||
.modal__icon--warning { background: var(--color-warning-light); }
|
||||
.modal__title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary); margin-bottom: var(--space-2);
|
||||
}
|
||||
.modal__desc {
|
||||
font-size: var(--text-body-sm); color: var(--color-text-muted);
|
||||
line-height: 1.6; margin-bottom: var(--space-6); padding: 0 var(--space-2);
|
||||
}
|
||||
.modal__actions { display: flex; gap: var(--space-3); justify-content: center; }
|
||||
.modal__btn {
|
||||
flex: 1; max-width: 180px; padding: var(--space-3) var(--space-4);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: 600;
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.modal__btn--secondary {
|
||||
background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border-color: var(--btn-secondary-border);
|
||||
}
|
||||
.modal__btn--secondary:hover { background: var(--btn-secondary-bg-hover); }
|
||||
.modal__btn--danger {
|
||||
background: var(--btn-danger-bg, var(--color-error)); color: var(--btn-danger-text, #fff);
|
||||
border-color: var(--btn-danger-bg, var(--color-error));
|
||||
}
|
||||
.modal__btn--danger:hover { opacity: 0.9; }
|
||||
|
||||
/* =====================================================================
|
||||
TICKET TERMICO (hidden, for print)
|
||||
===================================================================== */
|
||||
.ticket-print-area { display: none; }
|
||||
|
||||
.ticket {
|
||||
background: #ffffff; color: #000000;
|
||||
font-family: 'Courier New', 'Consolas', monospace;
|
||||
font-size: 11px; line-height: 1.4; padding: 12px; text-align: left;
|
||||
border: 1px dashed #ccc;
|
||||
}
|
||||
.ticket-80 { width: 302px; }
|
||||
.ticket .store-name { font-size: 14px; font-weight: bold; text-align: center; margin-bottom: 2px; }
|
||||
.ticket .store-tagline { font-size: 9px; text-align: center; color: #555; margin-bottom: 4px; }
|
||||
.ticket .store-info { font-size: 9px; text-align: center; color: #333; margin-bottom: 6px; line-height: 1.3; }
|
||||
.ticket .divider { border: none; border-top: 1px dashed #999; margin: 6px 0; }
|
||||
.ticket .divider-double { border: none; border-top: 2px solid #333; margin: 6px 0; }
|
||||
.ticket .ticket-row { display: flex; justify-content: space-between; }
|
||||
.ticket .folio-line { font-size: 10px; font-weight: bold; display: flex; justify-content: space-between; margin-bottom: 4px; }
|
||||
.ticket .total-section { margin-top: 4px; }
|
||||
.ticket .total-line { display: flex; justify-content: space-between; font-size: 11px; }
|
||||
.ticket .total-line.grand { font-size: 14px; font-weight: bold; margin-top: 2px; padding-top: 2px; border-top: 1px solid #333; }
|
||||
.ticket .payment-section { margin-top: 4px; font-size: 10px; }
|
||||
.ticket .footer-section { text-align: center; margin-top: 8px; font-size: 9px; color: #555; }
|
||||
.ticket .footer-section .thanks { font-size: 11px; font-weight: bold; color: #000; margin-bottom: 2px; }
|
||||
.ticket-80 .item-line-wide {
|
||||
display: grid; grid-template-columns: auto 1fr auto auto;
|
||||
gap: 8px; align-items: baseline; font-size: 10px; margin-bottom: 3px;
|
||||
}
|
||||
.ticket-80 .item-line-wide .qty { font-weight: bold; min-width: 24px; text-align: right; }
|
||||
.ticket-80 .item-line-wide .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ticket-80 .item-line-wide .price { text-align: right; min-width: 55px; }
|
||||
.ticket-80 .item-line-wide .subtotal { text-align: right; font-weight: bold; min-width: 60px; }
|
||||
|
||||
@media print {
|
||||
body * { display: none !important; }
|
||||
.ticket-print-area, .ticket-print-area * { display: block !important; }
|
||||
.ticket-print-area { position: fixed; top: 0; left: 0; }
|
||||
.ticket { border: none; box-shadow: none; padding: 4px; }
|
||||
.ticket .item-line-wide { display: grid !important; }
|
||||
.ticket .ticket-row, .ticket .folio-line, .ticket .total-line { display: flex !important; }
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
TOAST NOTIFICATION
|
||||
===================================================================== */
|
||||
.toast-container {
|
||||
position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
|
||||
z-index: var(--z-toast); display: flex; flex-direction: column;
|
||||
gap: var(--space-2); pointer-events: none;
|
||||
}
|
||||
.toast {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background-color: var(--color-surface-3); border: 1px solid var(--color-border);
|
||||
border-left: 3px solid var(--color-primary); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); box-shadow: var(--shadow-lg); white-space: nowrap;
|
||||
animation: toast-in 0.25s ease, toast-out 0.3s ease 1.7s forwards;
|
||||
}
|
||||
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
|
||||
|
||||
/* =====================================================================
|
||||
RESPONSIVE
|
||||
===================================================================== */
|
||||
@media (max-width: 900px) {
|
||||
.pos-main { flex-direction: column; }
|
||||
.panel-products, .panel-cart { width: 100%; min-width: 0; }
|
||||
.panel-products { border-right: none; border-bottom: 1px solid var(--color-border); max-height: 55%; }
|
||||
.panel-cart { max-height: 45%; }
|
||||
.product-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.status-bar__center { display: none; }
|
||||
.fkeys-footer { flex-wrap: wrap; }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.fkeys-footer { flex-wrap: wrap; gap: var(--space-1); padding: var(--space-2); }
|
||||
.fkey { padding: var(--space-1) var(--space-2); }
|
||||
.fkey-label { font-size: 10px; }
|
||||
.fkey-key { min-width: 24px; height: 20px; font-size: 10px; }
|
||||
.fkey-sep { display: none; }
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute; width: 1px; height: 1px; padding: 0;
|
||||
margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
|
||||
}
|
||||
|
||||
/* Add padding at bottom so content isn't hidden by fixed fkeys bar */
|
||||
body { padding-bottom: 50px; }
|
||||
985
pos/static/css/pos.min.css
vendored
Normal file
985
pos/static/css/pos.min.css
vendored
Normal file
@@ -0,0 +1,985 @@
|
||||
/* Extracted from pos.html */
|
||||
|
||||
/* =====================================================================
|
||||
BASE RESET & LAYOUT SHELL
|
||||
===================================================================== */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-regular);
|
||||
background-color: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Dot-grid for modern theme */
|
||||
[data-theme="modern"] body,
|
||||
[data-theme="modern"].pos-shell {
|
||||
background-color: var(--color-bg-base);
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
STATUS BAR (very top)
|
||||
===================================================================== */
|
||||
|
||||
.status-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 36px;
|
||||
padding: 0 var(--space-5);
|
||||
background-color: var(--color-surface-3);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
flex-shrink: 0;
|
||||
z-index: var(--z-sticky);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .status-bar {
|
||||
background-color: #111111;
|
||||
border-bottom-color: var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.status-bar__store {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
color: var(--color-text-accent);
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
|
||||
.status-bar__store-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
background-color: var(--color-success);
|
||||
border-radius: var(--radius-full);
|
||||
box-shadow: 0 0 6px var(--color-success);
|
||||
animation: pulse-dot 2.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
}
|
||||
|
||||
.status-bar__center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.status-bar__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.status-bar__user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.status-bar__user-avatar {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.6rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
MAIN CONTENT -- split layout
|
||||
===================================================================== */
|
||||
|
||||
.pos-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pos-main {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LEFT PANEL -- Product Browser (60%)
|
||||
===================================================================== */
|
||||
|
||||
.panel-products {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 60%;
|
||||
min-width: 0;
|
||||
border-right: 1px solid var(--color-border);
|
||||
background-color: var(--color-bg-base);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .panel-products {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Search bar row */
|
||||
.search-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
background-color: var(--color-surface-1);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-wrap {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: var(--space-4);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--color-text-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
padding: 0 var(--space-4) 0 44px;
|
||||
background-color: var(--color-bg-overlay);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-lg);
|
||||
font-weight: var(--font-weight-regular);
|
||||
color: var(--color-text-primary);
|
||||
outline: none;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
|
||||
.search-input::placeholder { color: var(--color-text-muted); }
|
||||
|
||||
.search-input:focus {
|
||||
border-color: var(--color-border-focus);
|
||||
box-shadow: var(--shadow-focus);
|
||||
background-color: var(--color-bg-overlay);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .search-input {
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.btn-scan {
|
||||
width: 48px; height: 48px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background-color: var(--btn-secondary-bg);
|
||||
border: 1.5px solid var(--btn-secondary-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-primary);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn-scan:hover {
|
||||
background-color: var(--btn-secondary-bg-hover);
|
||||
box-shadow: var(--shadow-accent);
|
||||
}
|
||||
|
||||
/* Quick category buttons */
|
||||
.categories-row {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
|
||||
}
|
||||
.categories-row::-webkit-scrollbar { display: none; }
|
||||
|
||||
.category-label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
margin-right: var(--space-1);
|
||||
}
|
||||
|
||||
.cat-btn {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background-color: transparent;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer; white-space: nowrap;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.cat-btn:hover {
|
||||
border-color: var(--color-primary); color: var(--color-primary);
|
||||
background-color: var(--color-primary-muted);
|
||||
}
|
||||
.cat-btn.active {
|
||||
border-color: var(--color-primary); background-color: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
}
|
||||
[data-theme="industrial"] .cat-btn.active { color: #000; }
|
||||
[data-theme="modern"] .cat-btn { border-radius: var(--radius-full); }
|
||||
|
||||
/* Product grid */
|
||||
.product-grid-wrap {
|
||||
flex: 1; overflow-y: auto;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
}
|
||||
.product-grid-wrap::-webkit-scrollbar { width: 6px; }
|
||||
.product-grid-wrap::-webkit-scrollbar-track { background: var(--scrollbar-track); }
|
||||
.product-grid-wrap::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: var(--radius-full); }
|
||||
|
||||
.product-grid {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
|
||||
}
|
||||
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
|
||||
/* Product card */
|
||||
.product-card {
|
||||
position: relative; display: flex; flex-direction: column;
|
||||
padding: var(--space-4);
|
||||
background-color: var(--color-surface-1);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); overflow: hidden;
|
||||
}
|
||||
.product-card:hover {
|
||||
border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-1px);
|
||||
}
|
||||
.product-card:hover .product-card__add { opacity: 1; transform: scale(1); }
|
||||
|
||||
[data-theme="industrial"] .product-card { background-color: var(--color-surface-1); border-color: #2a2a2a; }
|
||||
[data-theme="industrial"] .product-card:hover { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md); }
|
||||
[data-theme="modern"] .product-card { border-radius: var(--radius-lg); background-color: #fff; box-shadow: var(--shadow-sm); }
|
||||
[data-theme="modern"] .product-card:hover { box-shadow: var(--shadow-lg); }
|
||||
|
||||
.product-card__category {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest); text-transform: uppercase;
|
||||
color: var(--color-primary); margin-bottom: var(--space-1);
|
||||
}
|
||||
.product-card__name {
|
||||
font-family: var(--font-heading); font-size: var(--text-body);
|
||||
font-weight: var(--heading-weight-primary); line-height: var(--leading-h5);
|
||||
color: var(--color-text-primary); margin-bottom: var(--space-1);
|
||||
}
|
||||
.product-card__oem {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); margin-bottom: var(--space-3);
|
||||
}
|
||||
.product-card__footer {
|
||||
display: flex; align-items: flex-end; justify-content: space-between;
|
||||
margin-top: auto; gap: var(--space-2);
|
||||
}
|
||||
.product-card__price {
|
||||
font-family: var(--font-mono); font-size: 1.1rem;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); line-height: 1;
|
||||
}
|
||||
.product-card__stock { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: 2px; }
|
||||
.product-card__stock.low { color: var(--color-warning); }
|
||||
.product-card__stock.out { color: var(--color-error); }
|
||||
|
||||
.product-card__add {
|
||||
width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
|
||||
background-color: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-size: 1.2rem; font-weight: var(--font-weight-bold);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; opacity: 0.75; transform: scale(0.95);
|
||||
transition: var(--transition-fast); flex-shrink: 0;
|
||||
}
|
||||
.product-card__add:hover { background-color: var(--color-primary-hover); opacity: 1; transform: scale(1.08) !important; }
|
||||
[data-theme="industrial"] .product-card__add { color: #000; }
|
||||
[data-theme="modern"] .product-card__add { border-radius: var(--radius-md); }
|
||||
|
||||
@keyframes card-flash {
|
||||
0% { background-color: var(--color-primary-muted); }
|
||||
100% { background-color: transparent; }
|
||||
}
|
||||
.product-card.added { animation: card-flash 0.4s ease forwards; }
|
||||
|
||||
/* =====================================================================
|
||||
RIGHT PANEL -- Cart / Ticket (40%)
|
||||
===================================================================== */
|
||||
|
||||
.panel-cart {
|
||||
display: flex; flex-direction: column; width: 40%; min-width: 320px;
|
||||
background-color: var(--color-surface-1); overflow: hidden; position: relative;
|
||||
}
|
||||
[data-theme="modern"] .panel-cart { background-color: #fff; box-shadow: -4px 0 20px rgba(26,26,46,0.06); }
|
||||
[data-theme="industrial"] .panel-cart { background-color: #141414; border-left: 1px solid #2a2a2a; }
|
||||
|
||||
/* Cart header */
|
||||
.cart-header {
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0; background-color: var(--color-surface-2);
|
||||
}
|
||||
[data-theme="industrial"] .cart-header { background-color: #1a1a1a; border-bottom-color: var(--color-primary-muted); }
|
||||
|
||||
.cart-header__top {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.cart-header__sale-id {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
}
|
||||
.cart-header__sale-id::before {
|
||||
content: ''; display: block; width: 4px; height: 20px;
|
||||
background-color: var(--color-primary); border-radius: 2px; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cart-header__status {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider); text-transform: uppercase;
|
||||
color: var(--color-success); background-color: rgba(34,197,94,0.12);
|
||||
padding: 3px var(--space-3); border-radius: var(--radius-full);
|
||||
border: 1px solid rgba(34,197,94,0.25);
|
||||
}
|
||||
|
||||
/* Customer row */
|
||||
.customer-row {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
}
|
||||
.customer-icon {
|
||||
width: 34px; height: 34px; border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary-muted); border: 1.5px solid var(--color-primary);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: var(--color-primary); flex-shrink: 0;
|
||||
}
|
||||
.customer-info { flex: 1; min-width: 0; }
|
||||
.customer-info__name {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.customer-info__label { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.btn-change-customer {
|
||||
padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-full); background: transparent;
|
||||
font-family: var(--font-body); font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold); color: var(--color-text-muted);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
|
||||
}
|
||||
.btn-change-customer:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
/* Banner Cliente */
|
||||
.banner-cliente {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
display: none;
|
||||
}
|
||||
.banner-cliente.visible { display: block; }
|
||||
.banner-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
|
||||
.banner-avatar {
|
||||
width: 36px; height: 36px; border-radius: var(--radius-full);
|
||||
background: var(--color-primary); display: flex; align-items: center; justify-content: center;
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-inverse); flex-shrink: 0;
|
||||
}
|
||||
.banner-name-block { flex: 1; min-width: 0; }
|
||||
.banner-name {
|
||||
font-family: var(--font-heading); font-size: var(--text-body);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.banner-rfc {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.banner-close {
|
||||
width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-muted); font-size: 14px; transition: var(--transition-fast); flex-shrink: 0;
|
||||
}
|
||||
.banner-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
|
||||
.banner-info {
|
||||
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2);
|
||||
}
|
||||
.banner-info-item {
|
||||
padding: var(--space-2) var(--space-3); background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
}
|
||||
.banner-info-label {
|
||||
font-size: 10px; color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.banner-info-value {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); margin-top: 1px;
|
||||
}
|
||||
.banner-info-value.credit-ok { color: var(--color-success); }
|
||||
.banner-info-value.credit-low { color: var(--color-warning-dark); }
|
||||
.banner-info-value.credit-none { color: var(--color-error); }
|
||||
|
||||
/* Cart items list */
|
||||
.cart-items {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4);
|
||||
scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
}
|
||||
.cart-items::-webkit-scrollbar { width: 4px; }
|
||||
.cart-items::-webkit-scrollbar-track { background: transparent; }
|
||||
.cart-items::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: var(--radius-full); }
|
||||
|
||||
.cart-empty {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
height: 120px; color: var(--color-text-muted); font-size: var(--text-body-sm); gap: var(--space-2); opacity: 0.6;
|
||||
}
|
||||
|
||||
.cart-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--color-border);
|
||||
transition: var(--transition-fast);
|
||||
animation: item-slide-in 0.2s ease;
|
||||
}
|
||||
@keyframes item-slide-in {
|
||||
from { opacity: 0; transform: translateX(10px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
.cart-item:hover { background-color: var(--color-primary-muted); border-radius: var(--radius-sm); }
|
||||
.cart-item:last-child { border-bottom: none; }
|
||||
|
||||
.cart-item__qty-ctrl { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; }
|
||||
.qty-btn {
|
||||
width: 26px; height: 26px; border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm); background-color: var(--color-surface-3);
|
||||
color: var(--color-text-primary); font-size: 0.9rem; font-weight: var(--font-weight-bold);
|
||||
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
||||
transition: var(--transition-fast); line-height: 1;
|
||||
}
|
||||
.qty-btn:hover { border-color: var(--color-primary); background-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
[data-theme="industrial"] .qty-btn:hover { color: #000; }
|
||||
.qty-display {
|
||||
font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); min-width: 24px; text-align: center;
|
||||
}
|
||||
|
||||
.cart-item__info { flex: 1; min-width: 0; }
|
||||
.cart-item__name {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.cart-item__unit { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.cart-item__total {
|
||||
font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); text-align: right; min-width: 72px;
|
||||
}
|
||||
.cart-item__remove {
|
||||
width: 24px; height: 24px; border: none; border-radius: var(--radius-sm);
|
||||
background: transparent; color: var(--color-text-muted); font-size: 1rem;
|
||||
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
||||
transition: var(--transition-fast); flex-shrink: 0; line-height: 1;
|
||||
}
|
||||
.cart-item__remove:hover { background-color: rgba(239,68,68,0.15); color: var(--color-error); }
|
||||
|
||||
/* Columnas Costo/Margen (hidden by default, visible with permission) */
|
||||
.cart-item__cost, .cart-item__margin {
|
||||
display: none; font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
text-align: right; min-width: 56px; flex-shrink: 0;
|
||||
}
|
||||
.cart-item__cost { color: var(--color-text-muted); }
|
||||
.cart-item__margin { font-weight: var(--font-weight-bold); }
|
||||
.cart-item__margin.margin-high { color: var(--color-success); }
|
||||
.cart-item__margin.margin-mid { color: var(--color-warning); }
|
||||
.cart-item__margin.margin-low { color: var(--color-error); }
|
||||
|
||||
body.show-cost-columns .cart-item__cost,
|
||||
body.show-cost-columns .cart-item__margin { display: block; }
|
||||
|
||||
.margin-summary {
|
||||
display: none; padding: var(--space-2) var(--space-5);
|
||||
border-top: 1px dashed var(--color-border);
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
}
|
||||
body.show-cost-columns .margin-summary { display: flex; justify-content: space-between; }
|
||||
.margin-summary__value { font-family: var(--font-mono); font-weight: var(--font-weight-bold); }
|
||||
|
||||
.cost-toggle {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm); background: transparent;
|
||||
color: var(--color-text-muted); font-size: 10px; font-family: var(--font-body);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
cursor: pointer; transition: var(--transition-fast);
|
||||
}
|
||||
.cost-toggle:hover { border-color: var(--color-primary); color: var(--color-text-accent); }
|
||||
.cost-toggle.active { background: var(--color-primary-muted); border-color: var(--color-primary); color: var(--color-text-accent); }
|
||||
|
||||
/* Cart footer (totals + payment) */
|
||||
.cart-footer {
|
||||
flex-shrink: 0; border-top: 1px solid var(--color-border);
|
||||
background-color: var(--color-surface-2);
|
||||
}
|
||||
[data-theme="industrial"] .cart-footer { background-color: #1a1a1a; border-top-color: var(--color-primary-muted); }
|
||||
|
||||
.totals-block { padding: var(--space-3) var(--space-5) var(--space-2); }
|
||||
.totals-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-1) 0; }
|
||||
.totals-row__label { font-size: var(--text-body-sm); color: var(--color-text-muted); }
|
||||
.totals-row__value { font-family: var(--font-mono); font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
|
||||
.totals-row--total { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
|
||||
.totals-row--total .totals-row__label {
|
||||
font-family: var(--font-heading); font-size: var(--text-body-lg);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
}
|
||||
.totals-row--total .totals-row__value {
|
||||
font-family: var(--font-mono); font-size: 1.5rem;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* COBRAR Button */
|
||||
.btn-cobrar {
|
||||
display: flex; align-items: center; justify-content: center; gap: var(--space-3);
|
||||
width: calc(100% - var(--space-10)); margin: var(--space-3) var(--space-5);
|
||||
height: 56px; background-color: var(--btn-primary-bg); border: none;
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-heading); font-size: 1.2rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
letter-spacing: var(--tracking-widest); text-transform: uppercase;
|
||||
color: var(--btn-primary-text); cursor: pointer;
|
||||
transition: var(--transition-fast); box-shadow: var(--shadow-md);
|
||||
}
|
||||
.btn-cobrar:hover { background-color: var(--btn-primary-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
|
||||
.btn-cobrar:active { background-color: var(--btn-primary-bg-active); transform: translateY(0); }
|
||||
.btn-cobrar:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
|
||||
[data-theme="industrial"] .btn-cobrar { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .btn-cobrar { border-radius: var(--radius-lg); }
|
||||
|
||||
/* Secondary actions row */
|
||||
.secondary-actions {
|
||||
display: flex; gap: var(--space-2); padding: 0 var(--space-5) var(--space-4);
|
||||
}
|
||||
.btn-secondary-action {
|
||||
flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-1);
|
||||
height: 34px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
|
||||
background: transparent; font-family: var(--font-body); font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase; color: var(--color-text-muted); cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.btn-secondary-action:hover { border-color: var(--color-border-strong); color: var(--color-text-secondary); background-color: var(--color-surface-3); }
|
||||
.btn-secondary-action.danger:hover { border-color: var(--color-error); color: var(--color-error); background-color: rgba(239,68,68,0.08); }
|
||||
[data-theme="modern"] .btn-secondary-action { border-radius: var(--radius-md); }
|
||||
|
||||
/* =====================================================================
|
||||
F-KEYS FOOTER BAR
|
||||
===================================================================== */
|
||||
.fkeys-footer {
|
||||
position: fixed; bottom: 0; left: 0; right: 0;
|
||||
background: var(--color-surface-2); border-top: 2px solid var(--color-primary);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
display: flex; align-items: center; justify-content: center; gap: var(--space-1);
|
||||
z-index: var(--z-sticky); box-shadow: var(--shadow-lg);
|
||||
}
|
||||
.fkey {
|
||||
display: flex; align-items: center; gap: var(--space-1);
|
||||
padding: var(--space-2) var(--space-3); background: transparent;
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap; flex-shrink: 0;
|
||||
}
|
||||
.fkey:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }
|
||||
.fkey:active { background: var(--color-primary); transform: scale(0.96); }
|
||||
.fkey:active .fkey-label { color: var(--color-text-inverse); }
|
||||
.fkey:active .fkey-key { background: rgba(0,0,0,0.2); color: var(--color-text-inverse); border-color: transparent; }
|
||||
.fkey-key {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
min-width: 28px; height: 22px; padding: 0 var(--space-2);
|
||||
background: var(--color-bg-base); border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-accent); line-height: 1;
|
||||
}
|
||||
.fkey-label {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.fkey-sep { width: 1px; height: 24px; background: var(--color-border); margin: 0 var(--space-1); flex-shrink: 0; }
|
||||
.fkey.highlight {
|
||||
background: var(--color-primary-muted); border-color: var(--color-primary);
|
||||
}
|
||||
.fkey.highlight .fkey-key {
|
||||
background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary);
|
||||
}
|
||||
.fkey.highlight .fkey-label { color: var(--color-text-accent); font-weight: var(--font-weight-bold); }
|
||||
|
||||
/* =====================================================================
|
||||
MODAL DE PAGO
|
||||
===================================================================== */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
z-index: var(--z-modal);
|
||||
opacity: 0; pointer-events: none;
|
||||
transition: var(--transition-normal);
|
||||
}
|
||||
.modal-overlay.open { opacity: 1; pointer-events: auto; }
|
||||
|
||||
.modal-pago {
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
|
||||
width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
|
||||
transform: translateY(20px); transition: var(--transition-normal);
|
||||
}
|
||||
.modal-overlay.open .modal-pago { transform: translateY(0); }
|
||||
|
||||
.modal-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.modal-header h3 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
}
|
||||
.modal-close {
|
||||
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-muted); font-size: 18px; transition: var(--transition-fast);
|
||||
}
|
||||
.modal-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
|
||||
|
||||
.total-banner {
|
||||
background: var(--color-primary-muted); border-bottom: 2px solid var(--color-primary);
|
||||
padding: var(--space-4) var(--space-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.total-label {
|
||||
font-size: var(--text-body); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.total-amount {
|
||||
font-family: var(--font-mono); font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.items-summary {
|
||||
padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-body-sm); color: var(--color-text-muted); display: flex; gap: var(--space-4);
|
||||
}
|
||||
|
||||
.pago-tabs {
|
||||
display: flex; border-bottom: 2px solid var(--color-border); padding: 0 var(--space-6);
|
||||
}
|
||||
.pago-tab {
|
||||
padding: var(--space-3) var(--space-5); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
background: transparent; border: none; color: var(--color-text-muted);
|
||||
cursor: pointer; border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px; transition: var(--transition-fast);
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
}
|
||||
.pago-tab:hover { color: var(--color-text-primary); }
|
||||
.pago-tab.active { color: var(--color-text-accent); border-bottom-color: var(--color-primary); }
|
||||
|
||||
.tab-content { padding: var(--space-6); display: none; }
|
||||
.tab-content.active { display: block; }
|
||||
|
||||
.form-group { margin-bottom: var(--space-4); }
|
||||
.form-label {
|
||||
display: block; font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); margin-bottom: var(--space-2);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.form-input {
|
||||
width: 100%; padding: var(--space-3) var(--space-4);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
background: var(--color-bg-base); color: var(--color-text-primary);
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.form-input:focus { outline: none; border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
.form-input-lg {
|
||||
font-family: var(--font-mono); font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold); text-align: right;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
}
|
||||
|
||||
.cambio-display {
|
||||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
|
||||
display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-4);
|
||||
}
|
||||
.cambio-label { font-size: var(--text-body-sm); color: var(--color-text-secondary); font-weight: var(--font-weight-semibold); }
|
||||
.cambio-amount { font-family: var(--font-mono); font-size: var(--text-h4); font-weight: var(--font-weight-bold); }
|
||||
.cambio-amount.positive { color: var(--color-success); }
|
||||
.cambio-amount.negative { color: var(--color-error); }
|
||||
|
||||
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
|
||||
.quick-btn {
|
||||
padding: var(--space-2) var(--space-3); font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold); background: var(--color-surface-2);
|
||||
color: var(--color-text-primary); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
}
|
||||
.quick-btn:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }
|
||||
|
||||
.split-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: end; margin-bottom: var(--space-3); }
|
||||
.split-method {
|
||||
padding: var(--space-2) var(--space-3); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold); background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary); border-radius: var(--radius-md);
|
||||
text-align: center; border: 1px solid var(--color-border);
|
||||
}
|
||||
.split-remaining {
|
||||
background: var(--color-surface-2); border-radius: var(--radius-md);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
font-size: var(--text-body-sm); margin-top: var(--space-3);
|
||||
}
|
||||
.split-remaining .amount { font-family: var(--font-mono); font-weight: var(--font-weight-bold); color: var(--color-text-accent); }
|
||||
|
||||
.cfdi-check {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border);
|
||||
background: var(--color-surface-1);
|
||||
}
|
||||
.cfdi-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--color-primary); cursor: pointer; }
|
||||
.cfdi-check label { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-secondary); cursor: pointer; }
|
||||
.cfdi-check .cfdi-hint { font-size: var(--text-caption); color: var(--color-text-muted); margin-left: auto; }
|
||||
|
||||
.modal-footer {
|
||||
padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border);
|
||||
display: flex; gap: var(--space-3); justify-content: flex-end;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-6); font-family: var(--font-body); font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-semibold); line-height: 1;
|
||||
border: 2px solid transparent; border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
|
||||
}
|
||||
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
|
||||
.btn:active { transform: scale(0.97); }
|
||||
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
|
||||
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
|
||||
.btn-ghost:hover { background: var(--color-surface-2); }
|
||||
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-body-lg); }
|
||||
|
||||
.ref-field { display: flex; gap: var(--space-3); align-items: end; }
|
||||
.ref-field .form-group { flex: 1; }
|
||||
.form-hint { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
|
||||
.status-indicator {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.status-indicator.pending { background: var(--color-warning-light); color: var(--color-warning-dark); }
|
||||
.status-indicator.confirmed { background: var(--color-success-light); color: var(--color-success-dark); }
|
||||
|
||||
.terminal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
|
||||
.terminal-card {
|
||||
padding: var(--space-4); background: var(--color-surface-2); border: 2px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
}
|
||||
.terminal-card:hover { border-color: var(--color-primary); }
|
||||
.terminal-card.selected { border-color: var(--color-primary); background: var(--color-primary-muted); }
|
||||
.terminal-card .terminal-name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
|
||||
.terminal-card .terminal-type { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
|
||||
|
||||
/* =====================================================================
|
||||
MODAL CONFIRMACION
|
||||
===================================================================== */
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes scaleIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
|
||||
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
|
||||
@keyframes scaleOut { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } }
|
||||
|
||||
.confirm-overlay {
|
||||
position: fixed; inset: 0; background: var(--overlay-backdrop);
|
||||
z-index: calc(var(--z-modal) + 1); display: none; animation: fadeIn 0.2s ease-out forwards;
|
||||
}
|
||||
.confirm-overlay.active { display: block; }
|
||||
.confirm-overlay.closing { animation: fadeOut 0.2s ease-in forwards; }
|
||||
|
||||
.confirm-dialog {
|
||||
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
|
||||
z-index: calc(var(--z-modal) + 2);
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
|
||||
width: 90%; max-width: 420px; padding: var(--space-6); text-align: center;
|
||||
display: none; animation: scaleIn 0.25s ease-out forwards;
|
||||
}
|
||||
.confirm-dialog.active { display: block; }
|
||||
.confirm-dialog.closing { animation: scaleOut 0.2s ease-in forwards; }
|
||||
|
||||
.modal__icon {
|
||||
width: 56px; height: 56px; border-radius: var(--radius-full);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 26px; margin: 0 auto var(--space-4);
|
||||
}
|
||||
.modal__icon--warning { background: var(--color-warning-light); }
|
||||
.modal__title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary); margin-bottom: var(--space-2);
|
||||
}
|
||||
.modal__desc {
|
||||
font-size: var(--text-body-sm); color: var(--color-text-muted);
|
||||
line-height: 1.6; margin-bottom: var(--space-6); padding: 0 var(--space-2);
|
||||
}
|
||||
.modal__actions { display: flex; gap: var(--space-3); justify-content: center; }
|
||||
.modal__btn {
|
||||
flex: 1; max-width: 180px; padding: var(--space-3) var(--space-4);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: 600;
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.modal__btn--secondary {
|
||||
background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border-color: var(--btn-secondary-border);
|
||||
}
|
||||
.modal__btn--secondary:hover { background: var(--btn-secondary-bg-hover); }
|
||||
.modal__btn--danger {
|
||||
background: var(--btn-danger-bg, var(--color-error)); color: var(--btn-danger-text, #fff);
|
||||
border-color: var(--btn-danger-bg, var(--color-error));
|
||||
}
|
||||
.modal__btn--danger:hover { opacity: 0.9; }
|
||||
|
||||
/* =====================================================================
|
||||
TICKET TERMICO (hidden, for print)
|
||||
===================================================================== */
|
||||
.ticket-print-area { display: none; }
|
||||
|
||||
.ticket {
|
||||
background: #ffffff; color: #000000;
|
||||
font-family: 'Courier New', 'Consolas', monospace;
|
||||
font-size: 11px; line-height: 1.4; padding: 12px; text-align: left;
|
||||
border: 1px dashed #ccc;
|
||||
}
|
||||
.ticket-80 { width: 302px; }
|
||||
.ticket .store-name { font-size: 14px; font-weight: bold; text-align: center; margin-bottom: 2px; }
|
||||
.ticket .store-tagline { font-size: 9px; text-align: center; color: #555; margin-bottom: 4px; }
|
||||
.ticket .store-info { font-size: 9px; text-align: center; color: #333; margin-bottom: 6px; line-height: 1.3; }
|
||||
.ticket .divider { border: none; border-top: 1px dashed #999; margin: 6px 0; }
|
||||
.ticket .divider-double { border: none; border-top: 2px solid #333; margin: 6px 0; }
|
||||
.ticket .ticket-row { display: flex; justify-content: space-between; }
|
||||
.ticket .folio-line { font-size: 10px; font-weight: bold; display: flex; justify-content: space-between; margin-bottom: 4px; }
|
||||
.ticket .total-section { margin-top: 4px; }
|
||||
.ticket .total-line { display: flex; justify-content: space-between; font-size: 11px; }
|
||||
.ticket .total-line.grand { font-size: 14px; font-weight: bold; margin-top: 2px; padding-top: 2px; border-top: 1px solid #333; }
|
||||
.ticket .payment-section { margin-top: 4px; font-size: 10px; }
|
||||
.ticket .footer-section { text-align: center; margin-top: 8px; font-size: 9px; color: #555; }
|
||||
.ticket .footer-section .thanks { font-size: 11px; font-weight: bold; color: #000; margin-bottom: 2px; }
|
||||
.ticket-80 .item-line-wide {
|
||||
display: grid; grid-template-columns: auto 1fr auto auto;
|
||||
gap: 8px; align-items: baseline; font-size: 10px; margin-bottom: 3px;
|
||||
}
|
||||
.ticket-80 .item-line-wide .qty { font-weight: bold; min-width: 24px; text-align: right; }
|
||||
.ticket-80 .item-line-wide .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ticket-80 .item-line-wide .price { text-align: right; min-width: 55px; }
|
||||
.ticket-80 .item-line-wide .subtotal { text-align: right; font-weight: bold; min-width: 60px; }
|
||||
|
||||
@media print {
|
||||
body * { display: none !important; }
|
||||
.ticket-print-area, .ticket-print-area * { display: block !important; }
|
||||
.ticket-print-area { position: fixed; top: 0; left: 0; }
|
||||
.ticket { border: none; box-shadow: none; padding: 4px; }
|
||||
.ticket .item-line-wide { display: grid !important; }
|
||||
.ticket .ticket-row, .ticket .folio-line, .ticket .total-line { display: flex !important; }
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
TOAST NOTIFICATION
|
||||
===================================================================== */
|
||||
.toast-container {
|
||||
position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
|
||||
z-index: var(--z-toast); display: flex; flex-direction: column;
|
||||
gap: var(--space-2); pointer-events: none;
|
||||
}
|
||||
.toast {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background-color: var(--color-surface-3); border: 1px solid var(--color-border);
|
||||
border-left: 3px solid var(--color-primary); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); box-shadow: var(--shadow-lg); white-space: nowrap;
|
||||
animation: toast-in 0.25s ease, toast-out 0.3s ease 1.7s forwards;
|
||||
}
|
||||
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
|
||||
|
||||
/* =====================================================================
|
||||
RESPONSIVE
|
||||
===================================================================== */
|
||||
@media (max-width: 900px) {
|
||||
.pos-main { flex-direction: column; }
|
||||
.panel-products, .panel-cart { width: 100%; min-width: 0; }
|
||||
.panel-products { border-right: none; border-bottom: 1px solid var(--color-border); max-height: 55%; }
|
||||
.panel-cart { max-height: 45%; }
|
||||
.product-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.status-bar__center { display: none; }
|
||||
.fkeys-footer { flex-wrap: wrap; }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.fkeys-footer { flex-wrap: wrap; gap: var(--space-1); padding: var(--space-2); }
|
||||
.fkey { padding: var(--space-1) var(--space-2); }
|
||||
.fkey-label { font-size: 10px; }
|
||||
.fkey-key { min-width: 24px; height: 20px; font-size: 10px; }
|
||||
.fkey-sep { display: none; }
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute; width: 1px; height: 1px; padding: 0;
|
||||
margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
|
||||
}
|
||||
|
||||
/* Add padding at bottom so content isn't hidden by fixed fkeys bar */
|
||||
body { padding-bottom: 50px; }
|
||||
27
pos/static/css/quotations.css
Normal file
27
pos/static/css/quotations.css
Normal file
@@ -0,0 +1,27 @@
|
||||
/* Extracted from quotations.html */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: var(--font-body); background: var(--color-bg-base); color: var(--color-text-primary); min-height: 100vh; }
|
||||
.page { max-width: 1200px; margin: 0 auto; padding: var(--space-6); margin-left: 240px; }
|
||||
@media (max-width: 1023px) { .page { margin-left: 0; } }
|
||||
.page-title { font-family: var(--font-heading); font-size: var(--text-h3); margin-bottom: var(--space-6); }
|
||||
.quote-table { width: 100%; border-collapse: collapse; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; }
|
||||
.quote-table th, .quote-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--glass-border); }
|
||||
.quote-table th { background: var(--glass-bg-strong); font-family: var(--font-mono); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
|
||||
.quote-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
||||
.quote-table tbody tr:hover { background: var(--glass-highlight); }
|
||||
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
|
||||
.badge--active { background: rgba(63,185,80,0.15); color: #3FB950; }
|
||||
.badge--converted { background: rgba(0,212,255,0.15); color: #00D4FF; }
|
||||
.badge--cancelled { background: rgba(248,81,73,0.15); color: #F85149; }
|
||||
.badge--expired { background: rgba(130,130,130,0.2); color: #888; }
|
||||
.badge--wa { background: rgba(37,211,102,0.15); color: #25D366; }
|
||||
.badge--pos { background: var(--color-primary-muted); color: var(--color-text-accent); }
|
||||
.modal-overlay { display:none; position:fixed; inset:0; z-index:1000; background:var(--overlay-backdrop); backdrop-filter:blur(4px); align-items:flex-start; justify-content:center; padding:var(--space-8) var(--space-4); overflow-y:auto; }
|
||||
.modal-overlay.open { display:flex; }
|
||||
.modal-content { background:var(--glass-bg-strong); backdrop-filter:blur(24px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); max-width:650px; width:100%; padding:var(--space-6); position:relative; }
|
||||
.modal-close { position:absolute; top:var(--space-3); right:var(--space-3); background:none; border:none; color:var(--color-text-muted); font-size:1.4rem; cursor:pointer; }
|
||||
.detail-table { width:100%; border-collapse:collapse; margin:var(--space-4) 0; }
|
||||
.detail-table th, .detail-table td { padding:var(--space-2) var(--space-3); text-align:left; border-bottom:1px solid var(--glass-border); font-size:var(--text-body-sm); }
|
||||
.detail-table th { color:var(--color-text-muted); font-size:var(--text-caption); text-transform:uppercase; }
|
||||
.empty { text-align:center; padding:var(--space-12); color:var(--color-text-muted); }
|
||||
27
pos/static/css/quotations.min.css
vendored
Normal file
27
pos/static/css/quotations.min.css
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/* Extracted from quotations.html */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: var(--font-body); background: var(--color-bg-base); color: var(--color-text-primary); min-height: 100vh; }
|
||||
.page { max-width: 1200px; margin: 0 auto; padding: var(--space-6); margin-left: 240px; }
|
||||
@media (max-width: 1023px) { .page { margin-left: 0; } }
|
||||
.page-title { font-family: var(--font-heading); font-size: var(--text-h3); margin-bottom: var(--space-6); }
|
||||
.quote-table { width: 100%; border-collapse: collapse; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; }
|
||||
.quote-table th, .quote-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--glass-border); }
|
||||
.quote-table th { background: var(--glass-bg-strong); font-family: var(--font-mono); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
|
||||
.quote-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
||||
.quote-table tbody tr:hover { background: var(--glass-highlight); }
|
||||
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
|
||||
.badge--active { background: rgba(63,185,80,0.15); color: #3FB950; }
|
||||
.badge--converted { background: rgba(0,212,255,0.15); color: #00D4FF; }
|
||||
.badge--cancelled { background: rgba(248,81,73,0.15); color: #F85149; }
|
||||
.badge--expired { background: rgba(130,130,130,0.2); color: #888; }
|
||||
.badge--wa { background: rgba(37,211,102,0.15); color: #25D366; }
|
||||
.badge--pos { background: var(--color-primary-muted); color: var(--color-text-accent); }
|
||||
.modal-overlay { display:none; position:fixed; inset:0; z-index:1000; background:var(--overlay-backdrop); backdrop-filter:blur(4px); align-items:flex-start; justify-content:center; padding:var(--space-8) var(--space-4); overflow-y:auto; }
|
||||
.modal-overlay.open { display:flex; }
|
||||
.modal-content { background:var(--glass-bg-strong); backdrop-filter:blur(24px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); max-width:650px; width:100%; padding:var(--space-6); position:relative; }
|
||||
.modal-close { position:absolute; top:var(--space-3); right:var(--space-3); background:none; border:none; color:var(--color-text-muted); font-size:1.4rem; cursor:pointer; }
|
||||
.detail-table { width:100%; border-collapse:collapse; margin:var(--space-4) 0; }
|
||||
.detail-table th, .detail-table td { padding:var(--space-2) var(--space-3); text-align:left; border-bottom:1px solid var(--glass-border); font-size:var(--text-body-sm); }
|
||||
.detail-table th { color:var(--color-text-muted); font-size:var(--text-caption); text-transform:uppercase; }
|
||||
.empty { text-align:center; padding:var(--space-12); color:var(--color-text-muted); }
|
||||
1535
pos/static/css/reports.css
Normal file
1535
pos/static/css/reports.css
Normal file
File diff suppressed because it is too large
Load Diff
1535
pos/static/css/reports.min.css
vendored
Normal file
1535
pos/static/css/reports.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
506
pos/static/css/whatsapp.css
Normal file
506
pos/static/css/whatsapp.css
Normal file
@@ -0,0 +1,506 @@
|
||||
/* Extracted from whatsapp.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LAYOUT: sidebar offset + full-height messenger
|
||||
========================================================================= */
|
||||
|
||||
.page-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TOP BAR
|
||||
========================================================================= */
|
||||
|
||||
.top-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 48px;
|
||||
padding: 0 var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.top-bar__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.top-bar__title svg {
|
||||
color: #25D366;
|
||||
}
|
||||
|
||||
.top-bar__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-bar__status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot--ok { background: var(--color-success); }
|
||||
.status-dot--warn { background: var(--color-warning); }
|
||||
.status-dot--error { background: var(--color-error); }
|
||||
|
||||
/* =========================================================================
|
||||
MESSENGER LAYOUT: conversations list + chat panel
|
||||
========================================================================= */
|
||||
|
||||
.messenger {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ─── Left panel: conversation list ──────────────────────────────── */
|
||||
|
||||
.conv-panel {
|
||||
width: 320px;
|
||||
min-width: 260px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
}
|
||||
|
||||
.conv-panel__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.conv-panel__title {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
|
||||
.conv-panel__list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
.conv-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.conv-item:hover {
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.04));
|
||||
}
|
||||
|
||||
.conv-item.is-active {
|
||||
background: var(--color-primary-muted, rgba(245,166,35,0.12));
|
||||
border-left: 3px solid var(--color-primary);
|
||||
}
|
||||
|
||||
.conv-item__phone {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.conv-item__preview {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.conv-item__time {
|
||||
font-size: 0.6875rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.conv-item__delete {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.conv-item:hover .conv-item__delete { opacity: 1; }
|
||||
.conv-item__delete:hover { color: #F85149; background: rgba(248,81,73,0.1); }
|
||||
.conv-item { position: relative; }
|
||||
|
||||
.conv-empty {
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
/* ─── Right panel: chat view ─────────────────────────────────────── */
|
||||
|
||||
.chat-panel {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--color-bg-base);
|
||||
}
|
||||
|
||||
.chat-panel__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-panel__phone {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.chat-panel__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.chat-panel__messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
/* ─── Message bubbles ────────────────────────────────────────────── */
|
||||
|
||||
.msg-bubble {
|
||||
max-width: 70%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
word-wrap: break-word;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.msg-bubble--in {
|
||||
align-self: flex-start;
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.06));
|
||||
color: var(--color-text-primary);
|
||||
border-bottom-left-radius: var(--radius-xs, 2px);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .msg-bubble--in {
|
||||
background: var(--color-neutral-100);
|
||||
}
|
||||
|
||||
.msg-bubble--out {
|
||||
align-self: flex-end;
|
||||
background: var(--color-primary-muted, rgba(245,166,35,0.15));
|
||||
color: var(--color-text-primary);
|
||||
border-bottom-right-radius: var(--radius-xs, 2px);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .msg-bubble--out {
|
||||
background: #dcf8c6;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.msg-bubble__text {
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.msg-bubble__meta {
|
||||
font-size: 0.6875rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-top: 4px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.msg-status {
|
||||
display: inline-block;
|
||||
font-size: 0.625rem;
|
||||
padding: 1px 4px;
|
||||
border-radius: var(--radius-xs, 2px);
|
||||
background: var(--color-surface-3, rgba(255,255,255,0.04));
|
||||
color: var(--color-text-muted);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.chat-empty {
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-8);
|
||||
}
|
||||
|
||||
/* ─── Chat input bar ─────────────────────────────────────────────── */
|
||||
|
||||
.chat-input-bar {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-input-bar textarea {
|
||||
flex: 1;
|
||||
resize: none;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
line-height: 1.4;
|
||||
min-height: 40px;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
.chat-input-bar textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px var(--color-primary-muted, rgba(245,166,35,0.2));
|
||||
}
|
||||
|
||||
.chat-input-bar textarea::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ─── Buttons ────────────────────────────────────────────────────── */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
background: var(--color-bg-elevated);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.06));
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse, #fff);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn--primary:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: 4px 8px;
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.btn--whatsapp {
|
||||
background: #25D366;
|
||||
color: #fff;
|
||||
border-color: #25D366;
|
||||
}
|
||||
|
||||
.btn--whatsapp:hover {
|
||||
background: #1da851;
|
||||
}
|
||||
|
||||
/* ─── Empty state (no conversation selected) ─────────────────────── */
|
||||
|
||||
.empty-state {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-text-muted);
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.empty-state svg {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: var(--text-body);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state__hint {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ─── Connection / QR section ────────────────────────────────────── */
|
||||
|
||||
.connect-section {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.connect-section__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h3, 1.25rem);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.connect-section__desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
max-width: 400px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.connect-section__qr {
|
||||
border: 2px dashed var(--color-border);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
padding: var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
min-width: 280px;
|
||||
min-height: 280px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.connect-section__qr img {
|
||||
max-width: 256px;
|
||||
max-height: 256px;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
}
|
||||
|
||||
.connect-section__qr-placeholder {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.connect-section__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
/* ─── Industrial theme cuts ──────────────────────────────────────── */
|
||||
|
||||
[data-theme="industrial"] .btn--primary {
|
||||
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .msg-bubble--out {
|
||||
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
|
||||
}
|
||||
|
||||
/* ─── Responsive ─────────────────────────────────────────────────── */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.conv-panel { width: 100%; min-width: 0; }
|
||||
.chat-panel { display: none; }
|
||||
.messenger.has-active-chat .conv-panel { display: none; }
|
||||
.messenger.has-active-chat .chat-panel { display: flex; }
|
||||
}
|
||||
506
pos/static/css/whatsapp.min.css
vendored
Normal file
506
pos/static/css/whatsapp.min.css
vendored
Normal file
@@ -0,0 +1,506 @@
|
||||
/* Extracted from whatsapp.html */
|
||||
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LAYOUT: sidebar offset + full-height messenger
|
||||
========================================================================= */
|
||||
|
||||
.page-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TOP BAR
|
||||
========================================================================= */
|
||||
|
||||
.top-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 48px;
|
||||
padding: 0 var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.top-bar__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.top-bar__title svg {
|
||||
color: #25D366;
|
||||
}
|
||||
|
||||
.top-bar__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-bar__status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot--ok { background: var(--color-success); }
|
||||
.status-dot--warn { background: var(--color-warning); }
|
||||
.status-dot--error { background: var(--color-error); }
|
||||
|
||||
/* =========================================================================
|
||||
MESSENGER LAYOUT: conversations list + chat panel
|
||||
========================================================================= */
|
||||
|
||||
.messenger {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ─── Left panel: conversation list ──────────────────────────────── */
|
||||
|
||||
.conv-panel {
|
||||
width: 320px;
|
||||
min-width: 260px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
}
|
||||
|
||||
.conv-panel__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.conv-panel__title {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
|
||||
.conv-panel__list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
.conv-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.conv-item:hover {
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.04));
|
||||
}
|
||||
|
||||
.conv-item.is-active {
|
||||
background: var(--color-primary-muted, rgba(245,166,35,0.12));
|
||||
border-left: 3px solid var(--color-primary);
|
||||
}
|
||||
|
||||
.conv-item__phone {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.conv-item__preview {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.conv-item__time {
|
||||
font-size: 0.6875rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.conv-item__delete {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.conv-item:hover .conv-item__delete { opacity: 1; }
|
||||
.conv-item__delete:hover { color: #F85149; background: rgba(248,81,73,0.1); }
|
||||
.conv-item { position: relative; }
|
||||
|
||||
.conv-empty {
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
/* ─── Right panel: chat view ─────────────────────────────────────── */
|
||||
|
||||
.chat-panel {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--color-bg-base);
|
||||
}
|
||||
|
||||
.chat-panel__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-panel__phone {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.chat-panel__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.chat-panel__messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
/* ─── Message bubbles ────────────────────────────────────────────── */
|
||||
|
||||
.msg-bubble {
|
||||
max-width: 70%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
word-wrap: break-word;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.msg-bubble--in {
|
||||
align-self: flex-start;
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.06));
|
||||
color: var(--color-text-primary);
|
||||
border-bottom-left-radius: var(--radius-xs, 2px);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .msg-bubble--in {
|
||||
background: var(--color-neutral-100);
|
||||
}
|
||||
|
||||
.msg-bubble--out {
|
||||
align-self: flex-end;
|
||||
background: var(--color-primary-muted, rgba(245,166,35,0.15));
|
||||
color: var(--color-text-primary);
|
||||
border-bottom-right-radius: var(--radius-xs, 2px);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .msg-bubble--out {
|
||||
background: #dcf8c6;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.msg-bubble__text {
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.msg-bubble__meta {
|
||||
font-size: 0.6875rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-top: 4px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.msg-status {
|
||||
display: inline-block;
|
||||
font-size: 0.625rem;
|
||||
padding: 1px 4px;
|
||||
border-radius: var(--radius-xs, 2px);
|
||||
background: var(--color-surface-3, rgba(255,255,255,0.04));
|
||||
color: var(--color-text-muted);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.chat-empty {
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-8);
|
||||
}
|
||||
|
||||
/* ─── Chat input bar ─────────────────────────────────────────────── */
|
||||
|
||||
.chat-input-bar {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-input-bar textarea {
|
||||
flex: 1;
|
||||
resize: none;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
line-height: 1.4;
|
||||
min-height: 40px;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
.chat-input-bar textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px var(--color-primary-muted, rgba(245,166,35,0.2));
|
||||
}
|
||||
|
||||
.chat-input-bar textarea::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ─── Buttons ────────────────────────────────────────────────────── */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
background: var(--color-bg-elevated);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.06));
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse, #fff);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn--primary:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: 4px 8px;
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.btn--whatsapp {
|
||||
background: #25D366;
|
||||
color: #fff;
|
||||
border-color: #25D366;
|
||||
}
|
||||
|
||||
.btn--whatsapp:hover {
|
||||
background: #1da851;
|
||||
}
|
||||
|
||||
/* ─── Empty state (no conversation selected) ─────────────────────── */
|
||||
|
||||
.empty-state {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-text-muted);
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.empty-state svg {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: var(--text-body);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state__hint {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ─── Connection / QR section ────────────────────────────────────── */
|
||||
|
||||
.connect-section {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.connect-section__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h3, 1.25rem);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.connect-section__desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
max-width: 400px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.connect-section__qr {
|
||||
border: 2px dashed var(--color-border);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
padding: var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
min-width: 280px;
|
||||
min-height: 280px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.connect-section__qr img {
|
||||
max-width: 256px;
|
||||
max-height: 256px;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
}
|
||||
|
||||
.connect-section__qr-placeholder {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.connect-section__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
/* ─── Industrial theme cuts ──────────────────────────────────────── */
|
||||
|
||||
[data-theme="industrial"] .btn--primary {
|
||||
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .msg-bubble--out {
|
||||
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
|
||||
}
|
||||
|
||||
/* ─── Responsive ─────────────────────────────────────────────────── */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.conv-panel { width: 100%; min-width: 0; }
|
||||
.chat-panel { display: none; }
|
||||
.messenger.has-active-chat .conv-panel { display: none; }
|
||||
.messenger.has-active-chat .chat-panel { display: flex; }
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -13,561 +13,7 @@
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
<script src="/pos/static/js/native-bridge.js" defer></script>
|
||||
|
||||
<style>
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
APP LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.app-shell { display: flex; height: 100vh; padding-top: 36px; }
|
||||
|
||||
/* =========================================================================
|
||||
SIDEBAR (shared pattern)
|
||||
========================================================================= */
|
||||
|
||||
.sidebar {
|
||||
width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto; transition: var(--transition-normal);
|
||||
}
|
||||
.sidebar__brand {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.brand-logo {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.375rem; letter-spacing: var(--tracking-tight); flex-shrink: 0;
|
||||
}
|
||||
[data-theme="industrial"] .brand-logo { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 0; }
|
||||
[data-theme="modern"] .brand-logo { border-radius: var(--radius-md); }
|
||||
.brand-name { display: flex; flex-direction: column; line-height: 1; }
|
||||
.brand-name__primary { font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 1.125rem; letter-spacing: var(--tracking-wide); color: var(--color-text-primary); text-transform: uppercase; }
|
||||
.brand-name__sub { font-family: var(--font-body); font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
|
||||
|
||||
.sidebar__nav { flex: 1; padding: var(--space-3) 0; }
|
||||
.nav-section-label { padding: var(--space-3) var(--space-5) var(--space-1); font-size: var(--text-caption); font-family: var(--font-body); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
|
||||
.nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-regular); text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: var(--transition-fast); border-left: 3px solid transparent; }
|
||||
.nav-item:hover { background: var(--color-primary-muted); color: var(--color-text-primary); border-left-color: var(--color-primary); }
|
||||
.nav-item.is-active { background: var(--color-primary-muted); color: var(--color-primary); font-weight: var(--font-weight-semibold); border-left-color: var(--color-primary); }
|
||||
[data-theme="industrial"] .nav-item.is-active { background: rgba(245, 166, 35, 0.12); }
|
||||
.nav-item__icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
|
||||
.nav-item.is-active .nav-item__icon, .nav-item:hover .nav-item__icon { opacity: 1; }
|
||||
.nav-item__badge { margin-left: auto; background: var(--color-primary); color: var(--color-text-inverse); font-size: 10px; font-weight: var(--font-weight-bold); padding: 1px 6px; border-radius: var(--radius-full); line-height: 1.4; }
|
||||
|
||||
.sidebar__profile { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
||||
.profile-avatar { width: 36px; height: 36px; background: var(--color-primary); color: var(--color-text-inverse); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 0.9rem; flex-shrink: 0; }
|
||||
[data-theme="industrial"] .profile-avatar { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .profile-avatar { border-radius: var(--radius-full); }
|
||||
.profile-info { flex: 1; min-width: 0; }
|
||||
.profile-info__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.profile-info__role { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================= */
|
||||
|
||||
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
|
||||
|
||||
/* Header with breadcrumb + search */
|
||||
.content-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 var(--space-6); height: 56px; flex-shrink: 0;
|
||||
background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-sm); color: var(--color-text-muted); flex-wrap: wrap; }
|
||||
.breadcrumb__link { color: var(--color-text-muted); text-decoration: none; cursor: pointer; transition: var(--transition-fast); }
|
||||
.breadcrumb__link:hover { color: var(--color-primary); }
|
||||
.breadcrumb__sep { color: var(--color-text-disabled); }
|
||||
.breadcrumb__current { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
|
||||
|
||||
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
|
||||
|
||||
/* ── Catalog mode toggle (OEM / Local) ── */
|
||||
.mode-toggle {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
gap: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.mode-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
padding: 4px 12px;
|
||||
border-radius: calc(var(--radius-md) - 3px);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s var(--ease-out);
|
||||
}
|
||||
.mode-toggle button:hover {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.mode-toggle button.is-active {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-text-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
.search-bar {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
background: var(--color-bg-overlay); border: 1px solid var(--color-border);
|
||||
padding: var(--space-1) var(--space-3); width: 360px; transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .search-bar { border-radius: 0; }
|
||||
[data-theme="modern"] .search-bar { border-radius: var(--radius-md); }
|
||||
.search-bar:focus-within { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
.search-bar svg { color: var(--color-text-muted); flex-shrink: 0; }
|
||||
.search-bar input {
|
||||
flex: 1; border: none; background: transparent; color: var(--color-text-primary);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); outline: none;
|
||||
height: 32px;
|
||||
}
|
||||
.search-bar input::placeholder { color: var(--color-text-disabled); }
|
||||
|
||||
/* Search dropdown */
|
||||
.search-dropdown {
|
||||
position: absolute; top: 100%; left: 0; right: 0;
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto;
|
||||
display: none; z-index: var(--z-dropdown);
|
||||
}
|
||||
[data-theme="industrial"] .search-dropdown { border-radius: 0; }
|
||||
[data-theme="modern"] .search-dropdown { border-radius: var(--radius-md); }
|
||||
.search-dropdown.is-visible { display: block; }
|
||||
.search-result-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4); cursor: pointer;
|
||||
border-bottom: 1px solid var(--color-border); transition: var(--transition-fast);
|
||||
}
|
||||
.search-result-item:hover { background: var(--color-primary-muted); }
|
||||
.search-result-item:last-child { border-bottom: none; }
|
||||
.search-result__oem { font-weight: var(--font-weight-semibold); color: var(--color-primary); font-size: var(--text-body-sm); }
|
||||
.search-result__name { color: var(--color-text-primary); font-size: var(--text-body-sm); }
|
||||
.search-result__vehicle { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
PAGE BODY
|
||||
========================================================================= */
|
||||
|
||||
.page-body {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-6);
|
||||
display: flex; flex-direction: column; gap: var(--space-5);
|
||||
}
|
||||
[data-theme="modern"] .page-body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* Level title */
|
||||
.level-title {
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: var(--text-h4); color: var(--color-text-primary);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
}
|
||||
[data-theme="industrial"] .level-title { color: var(--color-primary); }
|
||||
|
||||
/* Filter input (quick filter within level) */
|
||||
.level-filter {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: var(--color-bg-overlay); border: 1px solid var(--color-border);
|
||||
color: var(--color-text-primary); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); outline: none; width: 100%; max-width: 400px;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .level-filter { border-radius: 0; }
|
||||
[data-theme="modern"] .level-filter { border-radius: var(--radius-md); }
|
||||
.level-filter:focus { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
|
||||
/* =========================================================================
|
||||
NAVIGATION CARDS
|
||||
========================================================================= */
|
||||
|
||||
.nav-grid {
|
||||
display: grid; gap: var(--space-4);
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
}
|
||||
.nav-grid--years {
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
}
|
||||
.nav-grid--parts {
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
}
|
||||
|
||||
.nav-card {
|
||||
display: flex; flex-direction: column; justify-content: center; align-items: center;
|
||||
padding: var(--space-5) var(--space-4); gap: var(--space-2);
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
box-shadow: var(--shadow-sm); min-height: 80px;
|
||||
}
|
||||
[data-theme="industrial"] .nav-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .nav-card { border-radius: var(--radius-lg); }
|
||||
.nav-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
|
||||
.nav-card__name { font-family: var(--font-heading); font-weight: var(--heading-weight-secondary); font-size: var(--text-body); color: var(--color-text-primary); letter-spacing: var(--tracking-wide); }
|
||||
.nav-card__sub { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.nav-card__count { font-size: var(--text-caption); color: var(--color-primary); font-weight: var(--font-weight-semibold); }
|
||||
|
||||
/* Year buttons (compact) */
|
||||
.nav-card--year { min-height: 48px; padding: var(--space-3); }
|
||||
.nav-card--year .nav-card__name { font-size: var(--text-h5); }
|
||||
|
||||
/* =========================================================================
|
||||
PART CARDS
|
||||
========================================================================= */
|
||||
|
||||
.part-card {
|
||||
display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition-fast);
|
||||
overflow: hidden;
|
||||
}
|
||||
[data-theme="industrial"] .part-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .part-card { border-radius: var(--radius-lg); }
|
||||
.part-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
|
||||
|
||||
.part-card__image {
|
||||
height: 120px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-bg-overlay); position: relative; overflow: hidden;
|
||||
color: var(--color-text-disabled);
|
||||
}
|
||||
.part-card__image img { width: 100%; height: 100%; object-fit: contain; }
|
||||
|
||||
.part-card__body { padding: var(--space-3) var(--space-4); flex: 1; }
|
||||
.part-card__oem { font-family: var(--font-mono, monospace); font-size: var(--text-caption); color: var(--color-primary); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-1); }
|
||||
.part-card__oem-sub { font-family: var(--font-mono, monospace); font-size: 10px; color: var(--color-text-muted); font-weight: var(--font-weight-regular); }
|
||||
.part-card__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); line-height: 1.3; }
|
||||
|
||||
/* Local mode — manufacturer badge + priority tier */
|
||||
.part-card__manu {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
padding: 2px 8px; margin-bottom: var(--space-1);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 10px;
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.part-card__manu .manu-tier {
|
||||
color: var(--color-primary);
|
||||
font-size: 11px;
|
||||
}
|
||||
.part-card--tier1 {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 0 12px var(--glow-color-soft);
|
||||
}
|
||||
.part-card--tier1 .part-card__manu {
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-border-accent);
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
.part-card--tier2 .part-card__manu {
|
||||
border-color: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.part-card__footer {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.part-card__price { font-weight: var(--font-weight-bold); color: var(--color-text-primary); }
|
||||
|
||||
/* Stock badges */
|
||||
.stock-badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
padding: 2px 8px; border-radius: var(--radius-full);
|
||||
}
|
||||
.stock-badge--local { background: var(--color-success-light); color: var(--color-success-dark); }
|
||||
.stock-badge--bodega { background: var(--color-warning-light); color: var(--color-warning-dark); }
|
||||
.stock-badge--none { background: var(--color-neutral-200); color: var(--color-neutral-600); }
|
||||
[data-theme="industrial"] .stock-badge--none { background: var(--color-neutral-700); color: var(--color-neutral-400); }
|
||||
|
||||
/* =========================================================================
|
||||
DETAIL PANEL (slide-in from right)
|
||||
========================================================================= */
|
||||
|
||||
.detail-overlay {
|
||||
position: fixed; inset: 0; z-index: calc(var(--z-modal) - 2);
|
||||
background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); display: none;
|
||||
}
|
||||
.detail-overlay.is-visible { display: block; }
|
||||
|
||||
.detail-panel {
|
||||
position: fixed; top: 0; right: 0; bottom: 0;
|
||||
width: 440px; max-width: 100vw; z-index: calc(var(--z-modal) - 1);
|
||||
background: var(--color-bg-elevated); border-left: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
|
||||
transform: translateX(100%); transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.detail-panel.is-open { transform: translateX(0); }
|
||||
|
||||
.detail-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.detail-header h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); color: var(--color-text-primary); }
|
||||
.detail-close {
|
||||
background: none; border: none; cursor: pointer; font-size: 1.4rem;
|
||||
color: var(--color-text-secondary); padding: var(--space-1);
|
||||
}
|
||||
.detail-close:hover { color: var(--color-text-primary); }
|
||||
|
||||
.detail-body { flex: 1; overflow-y: auto; padding: var(--space-5); }
|
||||
|
||||
.detail-section { margin-bottom: var(--space-5); }
|
||||
.detail-section__title {
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm);
|
||||
font-weight: var(--heading-weight-secondary); color: var(--color-text-muted);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wider);
|
||||
margin-bottom: var(--space-3); padding-bottom: var(--space-2);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.detail-oem { font-family: var(--font-mono, monospace); font-size: var(--text-h5); color: var(--color-primary); font-weight: var(--font-weight-bold); margin-bottom: var(--space-2); }
|
||||
.detail-name { font-size: var(--text-body); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-2); }
|
||||
.detail-desc { font-size: var(--text-body-sm); color: var(--color-text-secondary); line-height: 1.5; }
|
||||
|
||||
/* Stock info */
|
||||
.stock-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; }
|
||||
.stock-label { font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.stock-value { font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); }
|
||||
.stock-value--ok { color: var(--color-success); }
|
||||
.stock-value--zero { color: var(--color-text-muted); }
|
||||
|
||||
/* Bodega table */
|
||||
.bodega-table { width: 100%; font-size: var(--text-body-sm); border-collapse: collapse; }
|
||||
.bodega-table th { text-align: left; font-weight: var(--font-weight-semibold); color: var(--color-text-muted); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: var(--tracking-wider); padding: var(--space-2) var(--space-2); border-bottom: 1px solid var(--color-border); }
|
||||
.bodega-table td { padding: var(--space-2); border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); }
|
||||
|
||||
/* Alternatives list */
|
||||
.alt-item { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
|
||||
.alt-item:last-child { border-bottom: none; }
|
||||
.alt-item__pn { font-weight: var(--font-weight-semibold); color: var(--color-text-primary); font-size: var(--text-body-sm); }
|
||||
.alt-item__mfr { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.alt-item__stock { font-size: var(--text-caption); }
|
||||
|
||||
/* Add to cart section */
|
||||
.detail-footer {
|
||||
padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border);
|
||||
flex-shrink: 0; background: var(--color-bg-elevated);
|
||||
}
|
||||
.qty-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
|
||||
.qty-btn {
|
||||
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
|
||||
border: 1px solid var(--color-border); background: var(--color-bg-base);
|
||||
color: var(--color-text-primary); cursor: pointer; font-size: 1.2rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .qty-btn { border-radius: 0; }
|
||||
[data-theme="modern"] .qty-btn { border-radius: var(--radius-sm); }
|
||||
.qty-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.qty-display { font-weight: var(--font-weight-bold); font-size: var(--text-body); min-width: 30px; text-align: center; }
|
||||
|
||||
/* Buttons */
|
||||
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-5); height: 40px; font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); border: 1px solid transparent; cursor: pointer; transition: var(--transition-fast); white-space: nowrap; letter-spacing: var(--tracking-wide); }
|
||||
[data-theme="industrial"] .btn { border-radius: 0; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); text-transform: uppercase; }
|
||||
[data-theme="modern"] .btn { border-radius: var(--radius-md); }
|
||||
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-border); }
|
||||
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost { background: var(--btn-ghost-bg); color: var(--btn-ghost-text); border-color: var(--btn-ghost-border); }
|
||||
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
/* =========================================================================
|
||||
PAGINATION
|
||||
========================================================================= */
|
||||
|
||||
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4) 0; }
|
||||
.page-item { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); background: var(--color-bg-elevated); color: var(--color-text-secondary); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: var(--transition-fast); }
|
||||
[data-theme="industrial"] .page-item { border-radius: 0; }
|
||||
[data-theme="modern"] .page-item { border-radius: var(--radius-md); }
|
||||
.page-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.page-item.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
.page-item.is-disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.page-item--wide { padding: 0 var(--space-4); gap: var(--space-2); }
|
||||
|
||||
/* =========================================================================
|
||||
EMPTY STATE
|
||||
========================================================================= */
|
||||
|
||||
.empty-state {
|
||||
display: none; flex-direction: column; align-items: center; justify-content: center;
|
||||
padding: var(--space-10) var(--space-6); text-align: center; gap: var(--space-3);
|
||||
}
|
||||
.empty-state.is-visible { display: flex; }
|
||||
.empty-state__title { font-family: var(--font-heading); font-weight: var(--heading-weight-secondary); font-size: var(--text-h4); color: var(--color-text-primary); }
|
||||
.empty-state__subtitle { font-size: var(--text-body-sm); color: var(--color-text-muted); max-width: 400px; }
|
||||
|
||||
/* =========================================================================
|
||||
LOADING SPINNER
|
||||
========================================================================= */
|
||||
|
||||
.loading { display: none; justify-content: center; padding: var(--space-10); }
|
||||
.loading.is-visible { display: flex; }
|
||||
.spinner { width: 40px; height: 40px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* =========================================================================
|
||||
CART FAB + SIDEBAR
|
||||
========================================================================= */
|
||||
|
||||
.cart-fab {
|
||||
position: fixed; bottom: var(--space-6); right: var(--space-6);
|
||||
width: 56px; height: 56px; z-index: var(--z-sticky);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
border: none; cursor: pointer; box-shadow: var(--shadow-lg);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .cart-fab { border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .cart-fab { border-radius: var(--radius-full); }
|
||||
.cart-fab:hover { transform: scale(1.08); }
|
||||
.cart-fab__badge {
|
||||
position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
|
||||
padding: 0 5px; border-radius: var(--radius-full);
|
||||
background: var(--color-error); color: #fff; font-size: 11px;
|
||||
font-weight: var(--font-weight-bold); display: none;
|
||||
align-items: center; justify-content: center; line-height: 1;
|
||||
}
|
||||
|
||||
.cart-sidebar {
|
||||
position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100vw;
|
||||
z-index: var(--z-modal); background: var(--color-bg-elevated);
|
||||
border-left: 1px solid var(--color-border); box-shadow: var(--shadow-xl);
|
||||
display: flex; flex-direction: column;
|
||||
transform: translateX(100%); transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.cart-sidebar.open { transform: translateX(0); }
|
||||
|
||||
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
|
||||
.cart-header h3 { font-family: var(--font-heading); font-size: var(--text-h5); font-weight: var(--heading-weight-secondary); color: var(--color-text-primary); }
|
||||
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); }
|
||||
.cart-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
|
||||
.cart-item:last-child { border-bottom: none; }
|
||||
.cart-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); flex-shrink: 0; background: var(--color-bg-elevated); }
|
||||
.cart-totals { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
.cart-overlay { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1); background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); display: none; }
|
||||
.cart-overlay.open { display: block; }
|
||||
|
||||
/* =========================================================================
|
||||
THEME BAR
|
||||
========================================================================= */
|
||||
|
||||
.theme-bar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-toast); display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-4); background: var(--color-bg-overlay); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px); height: 36px; }
|
||||
.theme-bar__label { font-size: var(--text-caption); color: var(--color-text-muted); font-family: var(--font-body); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
|
||||
.theme-btn { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: transparent; color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-caption); font-weight: var(--font-weight-semibold); cursor: pointer; transition: var(--transition-fast); }
|
||||
.theme-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
.theme-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
/* ── Vehicle Selector ── */
|
||||
.vehicle-selector {
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 2px solid var(--color-primary-muted, rgba(245,166,35,0.2));
|
||||
padding: var(--space-3) var(--space-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.vehicle-selector__inner {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.vs-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
|
||||
.vs-label {
|
||||
font-size: var(--text-caption, 0.75rem);
|
||||
font-weight: var(--font-weight-semibold, 600);
|
||||
color: var(--color-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider, 0.04em);
|
||||
}
|
||||
.vs-select {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
border: 1px solid var(--color-border);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm, 0.875rem);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
appearance: auto;
|
||||
}
|
||||
[data-theme="industrial"] .vs-select { border-radius: 0; }
|
||||
[data-theme="modern"] .vs-select { border-radius: var(--radius-md); }
|
||||
.vs-select:focus { border-color: var(--color-primary); outline: none; box-shadow: var(--shadow-focus); }
|
||||
.vs-select:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.vs-arrow {
|
||||
color: var(--color-primary);
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
padding-bottom: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.vs-clear {
|
||||
background: none;
|
||||
border: 1px solid var(--color-border);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
[data-theme="industrial"] .vs-clear { border-radius: 0; }
|
||||
[data-theme="modern"] .vs-clear { border-radius: var(--radius-md); }
|
||||
.vs-clear:hover { color: var(--color-error); border-color: var(--color-error); }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sidebar { position: fixed; left: -260px; z-index: var(--z-modal); transition: left var(--duration-normal) var(--ease-in-out); height: 100vh; }
|
||||
.sidebar.is-open { left: 0; }
|
||||
.search-bar { width: 200px; }
|
||||
.detail-panel { width: 100%; }
|
||||
.nav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
|
||||
.vehicle-selector__inner { flex-direction: column; }
|
||||
.vs-arrow { display: none; }
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/catalog.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -13,466 +13,7 @@
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
<script src="/pos/static/js/native-bridge.js" defer></script>
|
||||
|
||||
<style>
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(circle, var(--dot-grid-color) 1px, transparent 1px);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
APP LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.app-shell { display: flex; height: 100vh; padding-top: 36px; }
|
||||
|
||||
/* =========================================================================
|
||||
SIDEBAR (shared pattern)
|
||||
========================================================================= */
|
||||
|
||||
.sidebar {
|
||||
width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
background: var(--color-bg-elevated); border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto; transition: var(--transition-normal);
|
||||
}
|
||||
.sidebar__brand {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border); flex-shrink: 0;
|
||||
}
|
||||
.brand-logo {
|
||||
width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.375rem; letter-spacing: var(--tracking-tight); flex-shrink: 0;
|
||||
}
|
||||
[data-theme="industrial"] .brand-logo { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 0; }
|
||||
[data-theme="modern"] .brand-logo { border-radius: var(--radius-md); }
|
||||
.brand-name { display: flex; flex-direction: column; line-height: 1; }
|
||||
.brand-name__primary { font-family: var(--font-heading); font-weight: var(--heading-weight-primary); font-size: 1.125rem; letter-spacing: var(--tracking-wide); color: var(--color-text-primary); text-transform: uppercase; }
|
||||
.brand-name__sub { font-family: var(--font-body); font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
|
||||
|
||||
.sidebar__nav { flex: 1; padding: var(--space-3) 0; }
|
||||
.nav-section-label { padding: var(--space-3) var(--space-5) var(--space-1); font-size: var(--text-caption); font-family: var(--font-body); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
|
||||
.nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); color: var(--color-text-secondary); font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: var(--font-weight-regular); text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: var(--transition-fast); border-left: 3px solid transparent; }
|
||||
.nav-item:hover { background: var(--color-primary-muted); color: var(--color-text-primary); border-left-color: var(--color-primary); }
|
||||
.nav-item.is-active { background: var(--color-primary-muted); color: var(--color-primary); font-weight: var(--font-weight-semibold); border-left-color: var(--color-primary); }
|
||||
[data-theme="industrial"] .nav-item.is-active { background: rgba(245, 166, 35, 0.12); }
|
||||
.nav-item__icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
|
||||
.nav-item.is-active .nav-item__icon, .nav-item:hover .nav-item__icon { opacity: 1; }
|
||||
|
||||
.sidebar__profile { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
||||
.profile-avatar { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-primary-muted); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); flex-shrink: 0; }
|
||||
.profile-info { overflow: hidden; }
|
||||
.profile-info__name { font-weight: var(--font-weight-semibold); font-size: var(--text-body-sm); color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.profile-info__role { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
|
||||
/* =========================================================================
|
||||
MAIN CONTENT
|
||||
========================================================================= */
|
||||
|
||||
.main-content {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex; align-items: center; gap: var(--space-4);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.page-header__title {
|
||||
font-family: var(--font-heading); font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.25rem; color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.page-header__filter {
|
||||
margin-left: auto;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
min-width: 220px;
|
||||
outline: none;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.page-header__filter:focus {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.page-body {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-5);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LOADING & EMPTY
|
||||
========================================================================= */
|
||||
|
||||
.loading {
|
||||
display: none; align-items: center; justify-content: center;
|
||||
padding: var(--space-8); flex: 1;
|
||||
}
|
||||
.spinner {
|
||||
width: 40px; height: 40px; border: 3px solid var(--color-border);
|
||||
border-top-color: var(--color-primary); border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
.empty-state {
|
||||
display: none; flex-direction: column; align-items: center;
|
||||
justify-content: center; gap: var(--space-3); padding: var(--space-8);
|
||||
color: var(--color-text-muted); text-align: center;
|
||||
}
|
||||
.empty-state__title { font-weight: var(--font-weight-semibold); font-size: 1.1rem; }
|
||||
.empty-state__subtitle { font-size: var(--text-body-sm); }
|
||||
|
||||
/* =========================================================================
|
||||
DIAGRAM LIST VIEW
|
||||
========================================================================= */
|
||||
|
||||
.diagram-category { margin-bottom: var(--space-6); }
|
||||
|
||||
.category-title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
padding-bottom: var(--space-2);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.diagram-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.diagram-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.diagram-card:hover {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
[data-theme="industrial"] .diagram-card {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.diagram-card__preview {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
background: #f8f8f8;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
[data-theme="modern"] .diagram-card__preview {
|
||||
background: var(--color-bg-base);
|
||||
}
|
||||
.diagram-card__preview img {
|
||||
width: 100%; height: 100%;
|
||||
object-fit: contain;
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.diagram-card__info {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
}
|
||||
.diagram-card__name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.diagram-card__group {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
DIAGRAM VIEWER
|
||||
========================================================================= */
|
||||
|
||||
.diagram-viewer {
|
||||
display: none; flex: 1; flex-direction: row; overflow: hidden;
|
||||
}
|
||||
|
||||
.viewer-main {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.viewer-toolbar {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.viewer-toolbar .btn-icon {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-bg-base); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.viewer-toolbar .btn-icon:hover {
|
||||
background: var(--color-primary-muted);
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.viewer-toolbar__title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
flex: 1;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.zoom-controls {
|
||||
display: flex; gap: var(--space-1); margin-left: auto;
|
||||
}
|
||||
|
||||
.svg-container {
|
||||
flex: 1; overflow: hidden; position: relative;
|
||||
background: var(--color-bg-base);
|
||||
cursor: grab;
|
||||
}
|
||||
.svg-container:active { cursor: grabbing; }
|
||||
|
||||
.svg-wrapper {
|
||||
width: 100%; height: 100%;
|
||||
transform-origin: center center;
|
||||
transition: none;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.svg-wrapper svg {
|
||||
max-width: 100%; max-height: 100%;
|
||||
}
|
||||
|
||||
.svg-loading, .svg-error {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body);
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
/* ---- Parts list sidebar ---- */
|
||||
.parts-sidebar {
|
||||
width: 280px; flex-shrink: 0;
|
||||
background: var(--color-bg-elevated);
|
||||
border-left: 1px solid var(--color-border);
|
||||
overflow-y: auto;
|
||||
display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
.parts-list__title {
|
||||
padding: var(--space-4);
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: var(--text-body-sm);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
color: var(--color-text-muted);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.part-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
cursor: pointer; border-bottom: 1px solid var(--color-border);
|
||||
transition: var(--transition-fast);
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
.part-item:hover, .part-item.is-highlighted {
|
||||
background: var(--color-primary-muted);
|
||||
border-left-color: var(--color-primary);
|
||||
}
|
||||
.part-item.is-active {
|
||||
background: rgba(245, 166, 35, 0.15);
|
||||
border-left-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.part-item__callout {
|
||||
width: 28px; height: 28px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
font-weight: var(--font-weight-bold);
|
||||
font-size: var(--text-body-sm);
|
||||
border-radius: var(--radius-full);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.part-item__info { min-width: 0; }
|
||||
.part-item__name {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.part-item__number {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono, monospace);
|
||||
}
|
||||
|
||||
.parts-list__empty {
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
/* ---- Hotspot detail panel ---- */
|
||||
.hotspot-panel {
|
||||
position: fixed;
|
||||
bottom: 0; left: 260px; right: 280px;
|
||||
background: var(--color-bg-elevated);
|
||||
border-top: 2px solid var(--color-primary);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
transform: translateY(100%);
|
||||
transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
z-index: 50;
|
||||
}
|
||||
.hotspot-panel.is-open {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.hotspot-panel__close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-4);
|
||||
background: none; border: none; cursor: pointer;
|
||||
font-size: 1.3rem; color: var(--color-text-muted);
|
||||
padding: var(--space-1);
|
||||
}
|
||||
.hotspot-panel__close:hover { color: var(--color-text-primary); }
|
||||
|
||||
.hotspot-detail {
|
||||
display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hotspot-callout {
|
||||
width: 40px; height: 40px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-weight: var(--font-weight-bold); font-size: 1.2rem;
|
||||
border-radius: var(--radius-full); flex-shrink: 0;
|
||||
}
|
||||
|
||||
.hotspot-name {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-primary);
|
||||
margin: 0;
|
||||
}
|
||||
.hotspot-partnumber {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-family: var(--font-mono, monospace);
|
||||
}
|
||||
.hotspot-desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
max-width: 400px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hotspot-actions {
|
||||
display: flex; gap: var(--space-2); margin-left: auto;
|
||||
}
|
||||
|
||||
/* ---- Buttons ---- */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
background: var(--color-bg-elevated);
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.btn-primary:hover { opacity: 0.9; }
|
||||
.btn-accent {
|
||||
background: var(--color-success, #22c55e);
|
||||
color: white;
|
||||
border-color: var(--color-success, #22c55e);
|
||||
}
|
||||
.btn-accent:hover { opacity: 0.9; }
|
||||
.btn-sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.sidebar { width: 56px; overflow: hidden; }
|
||||
.sidebar__brand { padding: var(--space-3); justify-content: center; }
|
||||
.brand-name { display: none; }
|
||||
.nav-section-label { display: none; }
|
||||
.nav-item { padding: var(--space-2) var(--space-3); justify-content: center; }
|
||||
.nav-item span:not(.nav-item__icon) { display: none; }
|
||||
|
||||
.parts-sidebar { width: 200px; }
|
||||
.hotspot-panel { left: 56px; right: 200px; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.parts-sidebar { display: none; }
|
||||
.hotspot-panel { left: 56px; right: 0; }
|
||||
.diagram-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/diagrams.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="app-shell">
|
||||
|
||||
@@ -10,676 +10,7 @@
|
||||
<link rel="manifest" href="/pos/static/pwa/manifest.json" />
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
|
||||
<style>
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LAYOUT
|
||||
========================================================================= */
|
||||
|
||||
.page-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-header__actions {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-5) var(--space-6);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
STATS ROW
|
||||
========================================================================= */
|
||||
|
||||
.stats-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: var(--space-4);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .stat-card {
|
||||
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .stat-card {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.stat-card__label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.stat-card__value {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h2);
|
||||
font-weight: var(--font-weight-extrabold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.stat-card__value--warn {
|
||||
color: var(--color-warning, #E3B341);
|
||||
}
|
||||
|
||||
.stat-card__value--danger {
|
||||
color: var(--color-error, #F85149);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TABS
|
||||
========================================================================= */
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 2px solid var(--color-border);
|
||||
margin-bottom: var(--space-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px;
|
||||
cursor: pointer;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tab-btn.is-active {
|
||||
color: var(--color-primary);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.tab-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-panel.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TABLE
|
||||
========================================================================= */
|
||||
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.data-table th {
|
||||
text-align: left;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table td {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
color: var(--color-text-secondary);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.data-table tr:hover td {
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.data-table .mono {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
BADGES
|
||||
========================================================================= */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
padding: 2px var(--space-2);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .badge {
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.badge--active {
|
||||
background: rgba(63, 185, 80, 0.15);
|
||||
border-color: rgba(63, 185, 80, 0.3);
|
||||
color: #3FB950;
|
||||
}
|
||||
|
||||
.badge--inactive {
|
||||
background: rgba(139, 148, 158, 0.15);
|
||||
border-color: rgba(139, 148, 158, 0.3);
|
||||
color: #8B949E;
|
||||
}
|
||||
|
||||
.badge--overdue {
|
||||
background: rgba(248, 81, 73, 0.15);
|
||||
border-color: rgba(248, 81, 73, 0.3);
|
||||
color: #F85149;
|
||||
}
|
||||
|
||||
.badge--upcoming {
|
||||
background: rgba(227, 179, 65, 0.15);
|
||||
border-color: rgba(227, 179, 65, 0.3);
|
||||
color: #E3B341;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
BUTTONS
|
||||
========================================================================= */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
border: 1px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
white-space: nowrap;
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .btn {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse, #000);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.btn--ghost {
|
||||
background: none;
|
||||
border-color: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.btn--ghost:hover {
|
||||
color: var(--color-text-primary);
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.btn--danger {
|
||||
background: rgba(248, 81, 73, 0.15);
|
||||
border-color: rgba(248, 81, 73, 0.3);
|
||||
color: #F85149;
|
||||
}
|
||||
|
||||
.btn--danger:hover {
|
||||
background: rgba(248, 81, 73, 0.25);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
SEARCH BAR
|
||||
========================================================================= */
|
||||
|
||||
.search-input {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
width: 280px;
|
||||
transition: border-color var(--duration-fast);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .search-input {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
VEHICLE GRID (alternative view)
|
||||
========================================================================= */
|
||||
|
||||
.vehicle-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.vehicle-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .vehicle-card {
|
||||
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .vehicle-card {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.vehicle-card:hover {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 1px var(--color-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.vehicle-card__plate {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--font-weight-extrabold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__info {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.vehicle-card__info strong {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.vehicle-card__footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: var(--space-3);
|
||||
padding-top: var(--space-3);
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
MODAL
|
||||
========================================================================= */
|
||||
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 500;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.modal-overlay.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
width: 90%;
|
||||
max-width: 560px;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .modal {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.modal__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.modal__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.modal__close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
padding: var(--space-1);
|
||||
}
|
||||
|
||||
.modal__close:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.modal__body {
|
||||
padding: var(--space-5) var(--space-6);
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.modal__footer {
|
||||
padding: var(--space-4) var(--space-6);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
FORM
|
||||
========================================================================= */
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group select,
|
||||
.form-group textarea {
|
||||
width: 100%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .form-group input,
|
||||
[data-theme="modern"] .form-group select,
|
||||
[data-theme="modern"] .form-group textarea {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group select:focus,
|
||||
.form-group textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
ALERT CARD
|
||||
========================================================================= */
|
||||
|
||||
.alert-card {
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid rgba(248, 81, 73, 0.3);
|
||||
border-left: 4px solid #F85149;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
margin-bottom: var(--space-3);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .alert-card {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.alert-card__info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.alert-card__vehicle {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.alert-card__detail {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
PAGINATION
|
||||
========================================================================= */
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-4) 0;
|
||||
}
|
||||
|
||||
.pagination__btn {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pagination__btn {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.pagination__btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.pagination__btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pagination__info {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
EMPTY STATE
|
||||
========================================================================= */
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: var(--space-8) var(--space-4);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.empty-state__icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: var(--space-3);
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: var(--text-body);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
RESPONSIVE
|
||||
========================================================================= */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.page-header {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.page-content {
|
||||
padding: var(--space-4);
|
||||
}
|
||||
.search-input {
|
||||
width: 100%;
|
||||
}
|
||||
.form-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.vehicle-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.stats-row {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/fleet.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -9,840 +9,7 @@
|
||||
<link rel="stylesheet" href="/pos/static/css/pos-glass.css" />
|
||||
<link rel="manifest" href="/pos/static/pwa/manifest.json" />
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
<style>
|
||||
|
||||
/* =====================================================================
|
||||
RESET & BASE
|
||||
===================================================================== */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
color var(--duration-slow) var(--ease-in-out);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Modern theme dot-grid on body */
|
||||
[data-theme="modern"] body,
|
||||
[data-theme="modern"].theme-root {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
background: none;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
THEME SWITCHER BAR (sticky top)
|
||||
===================================================================== */
|
||||
|
||||
.theme-bar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-6);
|
||||
background-color: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.theme-bar__label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-right: var(--space-2);
|
||||
}
|
||||
|
||||
.theme-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
border: 1.5px solid var(--color-border);
|
||||
background: transparent;
|
||||
transition: var(--transition-normal);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
.theme-btn:hover {
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.theme-btn.active {
|
||||
color: var(--color-text-inverse);
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .theme-btn.active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.theme-btn__dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="industrial"] .theme-btn__dot {
|
||||
background: #F5A623;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="industrial"].active .theme-btn__dot {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="modern"] .theme-btn__dot {
|
||||
background: #FF6B35;
|
||||
}
|
||||
|
||||
.theme-btn[data-theme-target="modern"].active .theme-btn__dot {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LAYOUT — centered login screen
|
||||
===================================================================== */
|
||||
|
||||
.login-screen {
|
||||
min-height: calc(100vh - 49px); /* subtract theme bar height */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-8) var(--space-4);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LOGIN CARD
|
||||
===================================================================== */
|
||||
|
||||
.login-card {
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-xl);
|
||||
overflow: hidden;
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out),
|
||||
box-shadow var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
/* Industrial theme: angular clip-path on the card */
|
||||
[data-theme="industrial"] .login-card {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
|
||||
}
|
||||
|
||||
/* Modern theme: smooth rounded corners */
|
||||
[data-theme="modern"] .login-card {
|
||||
border-radius: var(--radius-xl);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD HEADER — brand / logo
|
||||
===================================================================== */
|
||||
|
||||
.card-header {
|
||||
padding: var(--space-8) var(--space-8) var(--space-6);
|
||||
text-align: center;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Industrial: amber accent bar at top of header */
|
||||
[data-theme="industrial"] .card-header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
|
||||
}
|
||||
|
||||
/* Modern: subtle gradient wash */
|
||||
[data-theme="modern"] .card-header {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 107, 53, 0.04) 0%,
|
||||
rgba(255, 107, 53, 0.01) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
background: var(--color-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.75rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-inverse);
|
||||
flex-shrink: 0;
|
||||
transition: background var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-logo {
|
||||
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .brand-logo {
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-logo {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-primary);
|
||||
letter-spacing: var(--heading-tracking-h4);
|
||||
line-height: var(--leading-h4);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .brand-name {
|
||||
letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-accent);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD BODY
|
||||
===================================================================== */
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-6) var(--space-8);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
SECTION LABEL
|
||||
===================================================================== */
|
||||
|
||||
.section-label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
USER SELECTION
|
||||
===================================================================== */
|
||||
|
||||
.users-section {}
|
||||
|
||||
.users-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.user-avatar-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-2);
|
||||
background: var(--color-surface-1);
|
||||
border: 1.5px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-normal);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .user-avatar-btn {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.user-avatar-btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
box-shadow: var(--shadow-accent);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn.selected {
|
||||
background: rgba(245, 166, 35, 0.10);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected .user-initials {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-avatar-btn.selected .user-initials {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Selected check indicator */
|
||||
.user-avatar-btn.selected::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 6px;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: var(--color-primary);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.user-initials {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-heading);
|
||||
font-size: 0.9rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-secondary);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
transition: var(--transition-normal);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .user-initials {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .user-initials {
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
text-align: center;
|
||||
line-height: 1.3;
|
||||
transition: color var(--duration-normal);
|
||||
}
|
||||
|
||||
.user-avatar-btn.selected .user-name {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.user-role {
|
||||
font-size: 10px;
|
||||
color: var(--color-text-muted);
|
||||
text-align: center;
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
PIN DISPLAY (dots)
|
||||
===================================================================== */
|
||||
|
||||
.pin-section {}
|
||||
|
||||
.pin-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
margin-bottom: var(--space-4);
|
||||
transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
|
||||
min-height: 64px;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-display {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pin-display {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.pin-display.has-digits {
|
||||
border-color: var(--color-border-accent);
|
||||
}
|
||||
|
||||
.pin-display.error {
|
||||
border-color: var(--color-error);
|
||||
animation: pin-shake 0.4s var(--ease-in-out);
|
||||
}
|
||||
|
||||
@keyframes pin-shake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
20% { transform: translateX(-8px); }
|
||||
40% { transform: translateX(8px); }
|
||||
60% { transform: translateX(-5px); }
|
||||
80% { transform: translateX(5px); }
|
||||
}
|
||||
|
||||
.pin-dot {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--color-border-strong);
|
||||
background: transparent;
|
||||
transition: all var(--duration-fast) var(--ease-out);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pin-dot.filled {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 0 8px var(--color-primary);
|
||||
}
|
||||
|
||||
/* PIN placeholder text when no user selected */
|
||||
.pin-placeholder {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
PIN PAD
|
||||
===================================================================== */
|
||||
|
||||
.pin-pad {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
height: 64px;
|
||||
background: var(--color-surface-2);
|
||||
border: 1.5px solid var(--color-border);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.5rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
color: var(--color-text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-key {
|
||||
border-radius: 0;
|
||||
letter-spacing: var(--tracking-normal);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .pin-key {
|
||||
border-radius: var(--radius-md);
|
||||
letter-spacing: var(--tracking-snug);
|
||||
}
|
||||
|
||||
.pin-key:hover {
|
||||
background: var(--color-surface-3);
|
||||
border-color: var(--color-border-strong);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.pin-key:active {
|
||||
transform: translateY(1px) scale(0.97);
|
||||
box-shadow: none;
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* Ripple effect */
|
||||
.pin-key::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
border-radius: inherit;
|
||||
transform: scale(0);
|
||||
transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
|
||||
}
|
||||
|
||||
.pin-key.ripple::after {
|
||||
transform: scale(2.5);
|
||||
opacity: 0.12;
|
||||
}
|
||||
|
||||
/* Backspace key */
|
||||
.pin-key--backspace {
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.pin-key--backspace:hover {
|
||||
color: var(--color-error);
|
||||
border-color: var(--color-error);
|
||||
background: rgba(239, 68, 68, 0.06);
|
||||
}
|
||||
|
||||
.pin-key--backspace:active {
|
||||
border-color: var(--color-error);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
}
|
||||
|
||||
/* Enter key */
|
||||
.pin-key--enter {
|
||||
background: var(--color-primary-muted);
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
|
||||
.pin-key--enter:hover {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .pin-key--enter:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.pin-key--enter:active {
|
||||
background: var(--color-primary-active, var(--color-primary));
|
||||
color: var(--color-text-inverse);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
SUBMIT BUTTON
|
||||
===================================================================== */
|
||||
|
||||
.btn-login {
|
||||
width: 100%;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
border: 1.5px solid var(--btn-primary-border, transparent);
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-normal);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .btn-login {
|
||||
border-radius: 0;
|
||||
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
|
||||
}
|
||||
|
||||
[data-theme="modern"] .btn-login {
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-login:hover:not(:disabled) {
|
||||
background: var(--btn-primary-bg-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.btn-login:active:not(:disabled) {
|
||||
background: var(--btn-primary-bg-active);
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.btn-login:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.btn-login__icon {
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
CARD FOOTER
|
||||
===================================================================== */
|
||||
|
||||
.card-footer {
|
||||
padding: var(--space-4) var(--space-8);
|
||||
border-top: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
background: var(--color-surface-1);
|
||||
transition: background-color var(--duration-slow) var(--ease-in-out),
|
||||
border-color var(--duration-slow) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.footer-version {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.footer-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-success);
|
||||
animation: status-pulse 2.5s infinite ease-in-out;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@keyframes status-pulse {
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.5; transform: scale(0.85); }
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
INDUSTRIAL THEME EXTRAS — accent border line on card
|
||||
===================================================================== */
|
||||
|
||||
[data-theme="industrial"] .login-card {
|
||||
border-color: #2a2a2a;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .login-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
/* Simulated angular highlight on top-left edge */
|
||||
border-top: 1px solid rgba(245, 166, 35, 0.15);
|
||||
border-left: 1px solid rgba(245, 166, 35, 0.08);
|
||||
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
NOTIFICATION / TOAST for error feedback
|
||||
===================================================================== */
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: var(--space-8);
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(120%);
|
||||
background: var(--color-error);
|
||||
color: #fff;
|
||||
padding: var(--space-3) var(--space-6);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-radius: var(--radius-full);
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: var(--z-toast);
|
||||
transition: transform 0.3s var(--ease-out);
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
RESPONSIVE
|
||||
===================================================================== */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.theme-bar {
|
||||
padding: var(--space-2) var(--space-4);
|
||||
}
|
||||
|
||||
.theme-bar__label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-screen {
|
||||
padding: var(--space-4) var(--space-3);
|
||||
align-items: flex-start;
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-5) var(--space-5);
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
padding: var(--space-6) var(--space-5) var(--space-5);
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.users-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
height: 56px;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.pin-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.users-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.user-initials {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.pin-key {
|
||||
height: 50px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
ACCESSIBILITY
|
||||
===================================================================== */
|
||||
|
||||
.pin-key:focus-visible,
|
||||
.user-avatar-btn:focus-visible,
|
||||
.theme-btn:focus-visible,
|
||||
.btn-login:focus-visible {
|
||||
outline: 2px solid var(--color-border-focus);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/login.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -10,230 +10,7 @@
|
||||
<link rel="manifest" href="/pos/static/pwa/manifest.json" />
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm);
|
||||
background: var(--color-bg-base); color: var(--color-text-primary);
|
||||
min-height: 100vh; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Page header ── */
|
||||
.page-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
background: var(--glass-bg-strong); backdrop-filter: blur(16px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.page-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-accent);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.page-title::before { content: '// '; opacity: 0.5; font-family: var(--font-mono); }
|
||||
.user-role {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px dashed var(--glass-border); border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* ── Tab bar ── */
|
||||
.tab-bar {
|
||||
display: flex; gap: var(--space-1);
|
||||
padding: 0 var(--space-6); background: var(--color-bg-base);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.tab-btn {
|
||||
background: transparent; border: none;
|
||||
padding: var(--space-3) var(--space-5);
|
||||
color: var(--color-text-muted); cursor: pointer;
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.tab-btn:hover { color: var(--color-text-accent); }
|
||||
.tab-btn.active {
|
||||
color: var(--color-text-accent);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
.tab-panel { display: none; padding: var(--space-6); flex: 1; overflow-y: auto; }
|
||||
.tab-panel.active { display: block; }
|
||||
|
||||
/* ── Search bar ── */
|
||||
.search-row {
|
||||
display: flex; gap: var(--space-3); margin-bottom: var(--space-5);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.search-row input {
|
||||
flex: 1; min-width: 240px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
.search-row button {
|
||||
padding: var(--space-3) var(--space-6);
|
||||
background: var(--gradient-accent); color: var(--btn-primary-text);
|
||||
border: none; border-radius: var(--radius-md);
|
||||
font-weight: var(--font-weight-semibold); cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Results table/grid ── */
|
||||
.results-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
.part-card {
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
padding: var(--space-4); cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.part-card:hover {
|
||||
border-color: var(--color-border-accent);
|
||||
box-shadow: 0 4px 20px var(--glow-color-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.part-card__oem {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-accent); font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.part-card__name {
|
||||
font-size: var(--text-body); font-weight: var(--font-weight-semibold);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.part-card__meta {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
margin-top: var(--space-3); padding-top: var(--space-3);
|
||||
border-top: 1px dashed var(--glass-border);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
.price-range {
|
||||
font-family: var(--font-mono); color: var(--color-text-accent);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.bodega-count {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.stock-pill {
|
||||
display: inline-block; padding: 2px 8px;
|
||||
background: rgba(63,185,80,0.15); color: #3FB950;
|
||||
border: 1px solid rgba(63,185,80,0.3);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* ── PO list table ── */
|
||||
.po-table {
|
||||
width: 100%; border-collapse: collapse;
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
}
|
||||
.po-table th, .po-table td {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.po-table th {
|
||||
background: var(--glass-bg-strong);
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-widest);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.po-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
||||
.po-table tbody tr:hover { background: var(--glass-highlight); }
|
||||
|
||||
/* ── Status badges ── */
|
||||
.status-badge {
|
||||
display: inline-block; padding: 2px 10px; border-radius: var(--radius-full);
|
||||
font-size: 11px; font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
.status-draft { background: rgba(130,130,130,0.2); color: #888; }
|
||||
.status-submitted { background: rgba(245,166,35,0.15); color: #F5A623; border: 1px solid rgba(245,166,35,0.3); }
|
||||
.status-confirmed { background: rgba(0,212,255,0.15); color: #00D4FF; border: 1px solid rgba(0,212,255,0.3); }
|
||||
.status-ready { background: rgba(167,139,250,0.15); color: #A78BFA; border: 1px solid rgba(167,139,250,0.3); }
|
||||
.status-delivered { background: rgba(63,185,80,0.15); color: #3FB950; border: 1px solid rgba(63,185,80,0.3); }
|
||||
.status-closed { background: rgba(255,255,255,0.05); color: #888; }
|
||||
.status-rejected { background: rgba(248,81,73,0.15); color: #F85149; border: 1px solid rgba(248,81,73,0.3); }
|
||||
|
||||
/* ── Modals ── */
|
||||
.modal-overlay {
|
||||
display: none; position: fixed; inset: 0; z-index: 1000;
|
||||
background: var(--overlay-backdrop); backdrop-filter: blur(4px);
|
||||
align-items: flex-start; justify-content: center;
|
||||
padding: var(--space-8) var(--space-4); overflow-y: auto;
|
||||
}
|
||||
.modal-overlay.open { display: flex; }
|
||||
.modal-content {
|
||||
background: var(--glass-bg-strong); backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
|
||||
max-width: 700px; width: 100%;
|
||||
padding: var(--space-6); position: relative;
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute; top: var(--space-3); right: var(--space-3);
|
||||
background: none; border: none; color: var(--color-text-muted);
|
||||
font-size: 1.4rem; cursor: pointer;
|
||||
}
|
||||
.modal-title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
text-align: center; padding: var(--space-12);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.empty-state h3 { margin-bottom: var(--space-2); font-family: var(--font-heading); }
|
||||
|
||||
/* ── CSV upload box ── */
|
||||
.upload-box {
|
||||
background: var(--glass-bg); border: 1px dashed var(--glass-border);
|
||||
border-radius: var(--radius-lg); padding: var(--space-5);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
.upload-box label {
|
||||
display: block; margin-bottom: var(--space-2); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.upload-box textarea {
|
||||
width: 100%; height: 160px;
|
||||
padding: var(--space-3); font-family: var(--font-mono); font-size: 12px;
|
||||
background: var(--glass-bg); border: 1px solid var(--glass-border);
|
||||
color: var(--color-text-primary); border-radius: var(--radius-md);
|
||||
resize: vertical;
|
||||
}
|
||||
.upload-box .hint {
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
/* Item list inside the create-PO modal */
|
||||
.cart-items {
|
||||
border: 1px solid var(--glass-border); border-radius: var(--radius-md);
|
||||
margin: var(--space-3) 0;
|
||||
max-height: 260px; overflow-y: auto;
|
||||
}
|
||||
.cart-row {
|
||||
display: flex; gap: var(--space-3); align-items: center;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.cart-row:last-child { border-bottom: none; }
|
||||
.cart-row input[type="number"] { width: 70px; }
|
||||
.cart-row .remove-btn {
|
||||
background: none; border: none; color: #F85149; cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/marketplace.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -12,991 +12,7 @@
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
<script src="/pos/static/js/native-bridge.js" defer></script>
|
||||
|
||||
<style>
|
||||
/* =====================================================================
|
||||
BASE RESET & LAYOUT SHELL
|
||||
===================================================================== */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-regular);
|
||||
background-color: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Dot-grid for modern theme */
|
||||
[data-theme="modern"] body,
|
||||
[data-theme="modern"].pos-shell {
|
||||
background-color: var(--color-bg-base);
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
STATUS BAR (very top)
|
||||
===================================================================== */
|
||||
|
||||
.status-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 36px;
|
||||
padding: 0 var(--space-5);
|
||||
background-color: var(--color-surface-3);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
flex-shrink: 0;
|
||||
z-index: var(--z-sticky);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .status-bar {
|
||||
background-color: #111111;
|
||||
border-bottom-color: var(--color-primary-muted);
|
||||
}
|
||||
|
||||
.status-bar__store {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
color: var(--color-text-accent);
|
||||
font-family: var(--font-heading);
|
||||
font-weight: var(--heading-weight-primary);
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: var(--tracking-widest);
|
||||
}
|
||||
|
||||
.status-bar__store-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
background-color: var(--color-success);
|
||||
border-radius: var(--radius-full);
|
||||
box-shadow: 0 0 6px var(--color-success);
|
||||
animation: pulse-dot 2.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
}
|
||||
|
||||
.status-bar__center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.status-bar__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.status-bar__user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.status-bar__user-avatar {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.6rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
MAIN CONTENT -- split layout
|
||||
===================================================================== */
|
||||
|
||||
.pos-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pos-main {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
LEFT PANEL -- Product Browser (60%)
|
||||
===================================================================== */
|
||||
|
||||
.panel-products {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 60%;
|
||||
min-width: 0;
|
||||
border-right: 1px solid var(--color-border);
|
||||
background-color: var(--color-bg-base);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] .panel-products {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Search bar row */
|
||||
.search-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
background-color: var(--color-surface-1);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-wrap {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: var(--space-4);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--color-text-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
padding: 0 var(--space-4) 0 44px;
|
||||
background-color: var(--color-bg-overlay);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-lg);
|
||||
font-weight: var(--font-weight-regular);
|
||||
color: var(--color-text-primary);
|
||||
outline: none;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
|
||||
.search-input::placeholder { color: var(--color-text-muted); }
|
||||
|
||||
.search-input:focus {
|
||||
border-color: var(--color-border-focus);
|
||||
box-shadow: var(--shadow-focus);
|
||||
background-color: var(--color-bg-overlay);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .search-input {
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.btn-scan {
|
||||
width: 48px; height: 48px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background-color: var(--btn-secondary-bg);
|
||||
border: 1.5px solid var(--btn-secondary-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-primary);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn-scan:hover {
|
||||
background-color: var(--btn-secondary-bg-hover);
|
||||
box-shadow: var(--shadow-accent);
|
||||
}
|
||||
|
||||
/* Quick category buttons */
|
||||
.categories-row {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
|
||||
}
|
||||
.categories-row::-webkit-scrollbar { display: none; }
|
||||
|
||||
.category-label {
|
||||
font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
margin-right: var(--space-1);
|
||||
}
|
||||
|
||||
.cat-btn {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background-color: transparent;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer; white-space: nowrap;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.cat-btn:hover {
|
||||
border-color: var(--color-primary); color: var(--color-primary);
|
||||
background-color: var(--color-primary-muted);
|
||||
}
|
||||
.cat-btn.active {
|
||||
border-color: var(--color-primary); background-color: var(--color-primary);
|
||||
color: var(--color-text-inverse);
|
||||
}
|
||||
[data-theme="industrial"] .cat-btn.active { color: #000; }
|
||||
[data-theme="modern"] .cat-btn { border-radius: var(--radius-full); }
|
||||
|
||||
/* Product grid */
|
||||
.product-grid-wrap {
|
||||
flex: 1; overflow-y: auto;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
}
|
||||
.product-grid-wrap::-webkit-scrollbar { width: 6px; }
|
||||
.product-grid-wrap::-webkit-scrollbar-track { background: var(--scrollbar-track); }
|
||||
.product-grid-wrap::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: var(--radius-full); }
|
||||
|
||||
.product-grid {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
|
||||
}
|
||||
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
|
||||
/* Product card */
|
||||
.product-card {
|
||||
position: relative; display: flex; flex-direction: column;
|
||||
padding: var(--space-4);
|
||||
background-color: var(--color-surface-1);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); overflow: hidden;
|
||||
}
|
||||
.product-card:hover {
|
||||
border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-1px);
|
||||
}
|
||||
.product-card:hover .product-card__add { opacity: 1; transform: scale(1); }
|
||||
|
||||
[data-theme="industrial"] .product-card { background-color: var(--color-surface-1); border-color: #2a2a2a; }
|
||||
[data-theme="industrial"] .product-card:hover { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md); }
|
||||
[data-theme="modern"] .product-card { border-radius: var(--radius-lg); background-color: #fff; box-shadow: var(--shadow-sm); }
|
||||
[data-theme="modern"] .product-card:hover { box-shadow: var(--shadow-lg); }
|
||||
|
||||
.product-card__category {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-widest); text-transform: uppercase;
|
||||
color: var(--color-primary); margin-bottom: var(--space-1);
|
||||
}
|
||||
.product-card__name {
|
||||
font-family: var(--font-heading); font-size: var(--text-body);
|
||||
font-weight: var(--heading-weight-primary); line-height: var(--leading-h5);
|
||||
color: var(--color-text-primary); margin-bottom: var(--space-1);
|
||||
}
|
||||
.product-card__oem {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); margin-bottom: var(--space-3);
|
||||
}
|
||||
.product-card__footer {
|
||||
display: flex; align-items: flex-end; justify-content: space-between;
|
||||
margin-top: auto; gap: var(--space-2);
|
||||
}
|
||||
.product-card__price {
|
||||
font-family: var(--font-mono); font-size: 1.1rem;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); line-height: 1;
|
||||
}
|
||||
.product-card__stock { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: 2px; }
|
||||
.product-card__stock.low { color: var(--color-warning); }
|
||||
.product-card__stock.out { color: var(--color-error); }
|
||||
|
||||
.product-card__add {
|
||||
width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
|
||||
background-color: var(--color-primary); color: var(--color-text-inverse);
|
||||
font-size: 1.2rem; font-weight: var(--font-weight-bold);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; opacity: 0.75; transform: scale(0.95);
|
||||
transition: var(--transition-fast); flex-shrink: 0;
|
||||
}
|
||||
.product-card__add:hover { background-color: var(--color-primary-hover); opacity: 1; transform: scale(1.08) !important; }
|
||||
[data-theme="industrial"] .product-card__add { color: #000; }
|
||||
[data-theme="modern"] .product-card__add { border-radius: var(--radius-md); }
|
||||
|
||||
@keyframes card-flash {
|
||||
0% { background-color: var(--color-primary-muted); }
|
||||
100% { background-color: transparent; }
|
||||
}
|
||||
.product-card.added { animation: card-flash 0.4s ease forwards; }
|
||||
|
||||
/* =====================================================================
|
||||
RIGHT PANEL -- Cart / Ticket (40%)
|
||||
===================================================================== */
|
||||
|
||||
.panel-cart {
|
||||
display: flex; flex-direction: column; width: 40%; min-width: 320px;
|
||||
background-color: var(--color-surface-1); overflow: hidden; position: relative;
|
||||
}
|
||||
[data-theme="modern"] .panel-cart { background-color: #fff; box-shadow: -4px 0 20px rgba(26,26,46,0.06); }
|
||||
[data-theme="industrial"] .panel-cart { background-color: #141414; border-left: 1px solid #2a2a2a; }
|
||||
|
||||
/* Cart header */
|
||||
.cart-header {
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0; background-color: var(--color-surface-2);
|
||||
}
|
||||
[data-theme="industrial"] .cart-header { background-color: #1a1a1a; border-bottom-color: var(--color-primary-muted); }
|
||||
|
||||
.cart-header__top {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.cart-header__sale-id {
|
||||
font-family: var(--font-heading); font-size: var(--text-h5);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
}
|
||||
.cart-header__sale-id::before {
|
||||
content: ''; display: block; width: 4px; height: 20px;
|
||||
background-color: var(--color-primary); border-radius: 2px; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cart-header__status {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: var(--tracking-wider); text-transform: uppercase;
|
||||
color: var(--color-success); background-color: rgba(34,197,94,0.12);
|
||||
padding: 3px var(--space-3); border-radius: var(--radius-full);
|
||||
border: 1px solid rgba(34,197,94,0.25);
|
||||
}
|
||||
|
||||
/* Customer row */
|
||||
.customer-row {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
}
|
||||
.customer-icon {
|
||||
width: 34px; height: 34px; border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary-muted); border: 1.5px solid var(--color-primary);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: var(--color-primary); flex-shrink: 0;
|
||||
}
|
||||
.customer-info { flex: 1; min-width: 0; }
|
||||
.customer-info__name {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.customer-info__label { font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.btn-change-customer {
|
||||
padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-full); background: transparent;
|
||||
font-family: var(--font-body); font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold); color: var(--color-text-muted);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
|
||||
}
|
||||
.btn-change-customer:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
/* Banner Cliente */
|
||||
.banner-cliente {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
background: var(--color-primary-muted);
|
||||
display: none;
|
||||
}
|
||||
.banner-cliente.visible { display: block; }
|
||||
.banner-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
|
||||
.banner-avatar {
|
||||
width: 36px; height: 36px; border-radius: var(--radius-full);
|
||||
background: var(--color-primary); display: flex; align-items: center; justify-content: center;
|
||||
font-family: var(--font-heading); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-inverse); flex-shrink: 0;
|
||||
}
|
||||
.banner-name-block { flex: 1; min-width: 0; }
|
||||
.banner-name {
|
||||
font-family: var(--font-heading); font-size: var(--text-body);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.banner-rfc {
|
||||
font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
color: var(--color-text-muted); letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.banner-close {
|
||||
width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-muted); font-size: 14px; transition: var(--transition-fast); flex-shrink: 0;
|
||||
}
|
||||
.banner-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
|
||||
.banner-info {
|
||||
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2);
|
||||
}
|
||||
.banner-info-item {
|
||||
padding: var(--space-2) var(--space-3); background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
}
|
||||
.banner-info-label {
|
||||
font-size: 10px; color: var(--color-text-muted); text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-widest); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.banner-info-value {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); margin-top: 1px;
|
||||
}
|
||||
.banner-info-value.credit-ok { color: var(--color-success); }
|
||||
.banner-info-value.credit-low { color: var(--color-warning-dark); }
|
||||
.banner-info-value.credit-none { color: var(--color-error); }
|
||||
|
||||
/* Cart items list */
|
||||
.cart-items {
|
||||
flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4);
|
||||
scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
}
|
||||
.cart-items::-webkit-scrollbar { width: 4px; }
|
||||
.cart-items::-webkit-scrollbar-track { background: transparent; }
|
||||
.cart-items::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: var(--radius-full); }
|
||||
|
||||
.cart-empty {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
height: 120px; color: var(--color-text-muted); font-size: var(--text-body-sm); gap: var(--space-2); opacity: 0.6;
|
||||
}
|
||||
|
||||
.cart-item {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--color-border);
|
||||
transition: var(--transition-fast);
|
||||
animation: item-slide-in 0.2s ease;
|
||||
}
|
||||
@keyframes item-slide-in {
|
||||
from { opacity: 0; transform: translateX(10px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
.cart-item:hover { background-color: var(--color-primary-muted); border-radius: var(--radius-sm); }
|
||||
.cart-item:last-child { border-bottom: none; }
|
||||
|
||||
.cart-item__qty-ctrl { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; }
|
||||
.qty-btn {
|
||||
width: 26px; height: 26px; border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm); background-color: var(--color-surface-3);
|
||||
color: var(--color-text-primary); font-size: 0.9rem; font-weight: var(--font-weight-bold);
|
||||
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
||||
transition: var(--transition-fast); line-height: 1;
|
||||
}
|
||||
.qty-btn:hover { border-color: var(--color-primary); background-color: var(--color-primary); color: var(--color-text-inverse); }
|
||||
[data-theme="industrial"] .qty-btn:hover { color: #000; }
|
||||
.qty-display {
|
||||
font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); min-width: 24px; text-align: center;
|
||||
}
|
||||
|
||||
.cart-item__info { flex: 1; min-width: 0; }
|
||||
.cart-item__name {
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.cart-item__unit { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted); }
|
||||
.cart-item__total {
|
||||
font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-primary); text-align: right; min-width: 72px;
|
||||
}
|
||||
.cart-item__remove {
|
||||
width: 24px; height: 24px; border: none; border-radius: var(--radius-sm);
|
||||
background: transparent; color: var(--color-text-muted); font-size: 1rem;
|
||||
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
||||
transition: var(--transition-fast); flex-shrink: 0; line-height: 1;
|
||||
}
|
||||
.cart-item__remove:hover { background-color: rgba(239,68,68,0.15); color: var(--color-error); }
|
||||
|
||||
/* Columnas Costo/Margen (hidden by default, visible with permission) */
|
||||
.cart-item__cost, .cart-item__margin {
|
||||
display: none; font-family: var(--font-mono); font-size: var(--text-caption);
|
||||
text-align: right; min-width: 56px; flex-shrink: 0;
|
||||
}
|
||||
.cart-item__cost { color: var(--color-text-muted); }
|
||||
.cart-item__margin { font-weight: var(--font-weight-bold); }
|
||||
.cart-item__margin.margin-high { color: var(--color-success); }
|
||||
.cart-item__margin.margin-mid { color: var(--color-warning); }
|
||||
.cart-item__margin.margin-low { color: var(--color-error); }
|
||||
|
||||
body.show-cost-columns .cart-item__cost,
|
||||
body.show-cost-columns .cart-item__margin { display: block; }
|
||||
|
||||
.margin-summary {
|
||||
display: none; padding: var(--space-2) var(--space-5);
|
||||
border-top: 1px dashed var(--color-border);
|
||||
font-size: var(--text-caption); color: var(--color-text-muted);
|
||||
}
|
||||
body.show-cost-columns .margin-summary { display: flex; justify-content: space-between; }
|
||||
.margin-summary__value { font-family: var(--font-mono); font-weight: var(--font-weight-bold); }
|
||||
|
||||
.cost-toggle {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm); background: transparent;
|
||||
color: var(--color-text-muted); font-size: 10px; font-family: var(--font-body);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
cursor: pointer; transition: var(--transition-fast);
|
||||
}
|
||||
.cost-toggle:hover { border-color: var(--color-primary); color: var(--color-text-accent); }
|
||||
.cost-toggle.active { background: var(--color-primary-muted); border-color: var(--color-primary); color: var(--color-text-accent); }
|
||||
|
||||
/* Cart footer (totals + payment) */
|
||||
.cart-footer {
|
||||
flex-shrink: 0; border-top: 1px solid var(--color-border);
|
||||
background-color: var(--color-surface-2);
|
||||
}
|
||||
[data-theme="industrial"] .cart-footer { background-color: #1a1a1a; border-top-color: var(--color-primary-muted); }
|
||||
|
||||
.totals-block { padding: var(--space-3) var(--space-5) var(--space-2); }
|
||||
.totals-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-1) 0; }
|
||||
.totals-row__label { font-size: var(--text-body-sm); color: var(--color-text-muted); }
|
||||
.totals-row__value { font-family: var(--font-mono); font-size: var(--text-body-sm); color: var(--color-text-secondary); }
|
||||
|
||||
.totals-row--total { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
|
||||
.totals-row--total .totals-row__label {
|
||||
font-family: var(--font-heading); font-size: var(--text-body-lg);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
letter-spacing: var(--tracking-wide); text-transform: uppercase;
|
||||
}
|
||||
.totals-row--total .totals-row__value {
|
||||
font-family: var(--font-mono); font-size: 1.5rem;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* COBRAR Button */
|
||||
.btn-cobrar {
|
||||
display: flex; align-items: center; justify-content: center; gap: var(--space-3);
|
||||
width: calc(100% - var(--space-10)); margin: var(--space-3) var(--space-5);
|
||||
height: 56px; background-color: var(--btn-primary-bg); border: none;
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-heading); font-size: 1.2rem;
|
||||
font-weight: var(--heading-weight-primary);
|
||||
letter-spacing: var(--tracking-widest); text-transform: uppercase;
|
||||
color: var(--btn-primary-text); cursor: pointer;
|
||||
transition: var(--transition-fast); box-shadow: var(--shadow-md);
|
||||
}
|
||||
.btn-cobrar:hover { background-color: var(--btn-primary-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
|
||||
.btn-cobrar:active { background-color: var(--btn-primary-bg-active); transform: translateY(0); }
|
||||
.btn-cobrar:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
|
||||
[data-theme="industrial"] .btn-cobrar { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
|
||||
[data-theme="modern"] .btn-cobrar { border-radius: var(--radius-lg); }
|
||||
|
||||
/* Secondary actions row */
|
||||
.secondary-actions {
|
||||
display: flex; gap: var(--space-2); padding: 0 var(--space-5) var(--space-4);
|
||||
}
|
||||
.btn-secondary-action {
|
||||
flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-1);
|
||||
height: 34px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
|
||||
background: transparent; font-family: var(--font-body); font-size: var(--text-caption);
|
||||
font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase; color: var(--color-text-muted); cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.btn-secondary-action:hover { border-color: var(--color-border-strong); color: var(--color-text-secondary); background-color: var(--color-surface-3); }
|
||||
.btn-secondary-action.danger:hover { border-color: var(--color-error); color: var(--color-error); background-color: rgba(239,68,68,0.08); }
|
||||
[data-theme="modern"] .btn-secondary-action { border-radius: var(--radius-md); }
|
||||
|
||||
/* =====================================================================
|
||||
F-KEYS FOOTER BAR
|
||||
===================================================================== */
|
||||
.fkeys-footer {
|
||||
position: fixed; bottom: 0; left: 0; right: 0;
|
||||
background: var(--color-surface-2); border-top: 2px solid var(--color-primary);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
display: flex; align-items: center; justify-content: center; gap: var(--space-1);
|
||||
z-index: var(--z-sticky); box-shadow: var(--shadow-lg);
|
||||
}
|
||||
.fkey {
|
||||
display: flex; align-items: center; gap: var(--space-1);
|
||||
padding: var(--space-2) var(--space-3); background: transparent;
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap; flex-shrink: 0;
|
||||
}
|
||||
.fkey:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }
|
||||
.fkey:active { background: var(--color-primary); transform: scale(0.96); }
|
||||
.fkey:active .fkey-label { color: var(--color-text-inverse); }
|
||||
.fkey:active .fkey-key { background: rgba(0,0,0,0.2); color: var(--color-text-inverse); border-color: transparent; }
|
||||
.fkey-key {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
min-width: 28px; height: 22px; padding: 0 var(--space-2);
|
||||
background: var(--color-bg-base); border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px;
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-accent); line-height: 1;
|
||||
}
|
||||
.fkey-label {
|
||||
font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.fkey-sep { width: 1px; height: 24px; background: var(--color-border); margin: 0 var(--space-1); flex-shrink: 0; }
|
||||
.fkey.highlight {
|
||||
background: var(--color-primary-muted); border-color: var(--color-primary);
|
||||
}
|
||||
.fkey.highlight .fkey-key {
|
||||
background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary);
|
||||
}
|
||||
.fkey.highlight .fkey-label { color: var(--color-text-accent); font-weight: var(--font-weight-bold); }
|
||||
|
||||
/* =====================================================================
|
||||
MODAL DE PAGO
|
||||
===================================================================== */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
z-index: var(--z-modal);
|
||||
opacity: 0; pointer-events: none;
|
||||
transition: var(--transition-normal);
|
||||
}
|
||||
.modal-overlay.open { opacity: 1; pointer-events: auto; }
|
||||
|
||||
.modal-pago {
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
|
||||
width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
|
||||
transform: translateY(20px); transition: var(--transition-normal);
|
||||
}
|
||||
.modal-overlay.open .modal-pago { transform: translateY(0); }
|
||||
|
||||
.modal-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.modal-header h3 {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary);
|
||||
}
|
||||
.modal-close {
|
||||
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
|
||||
background: transparent; border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer;
|
||||
color: var(--color-text-muted); font-size: 18px; transition: var(--transition-fast);
|
||||
}
|
||||
.modal-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
|
||||
|
||||
.total-banner {
|
||||
background: var(--color-primary-muted); border-bottom: 2px solid var(--color-primary);
|
||||
padding: var(--space-4) var(--space-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.total-label {
|
||||
font-size: var(--text-body); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.total-amount {
|
||||
font-family: var(--font-mono); font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold); color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.items-summary {
|
||||
padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-body-sm); color: var(--color-text-muted); display: flex; gap: var(--space-4);
|
||||
}
|
||||
|
||||
.pago-tabs {
|
||||
display: flex; border-bottom: 2px solid var(--color-border); padding: 0 var(--space-6);
|
||||
}
|
||||
.pago-tab {
|
||||
padding: var(--space-3) var(--space-5); font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
background: transparent; border: none; color: var(--color-text-muted);
|
||||
cursor: pointer; border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px; transition: var(--transition-fast);
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
}
|
||||
.pago-tab:hover { color: var(--color-text-primary); }
|
||||
.pago-tab.active { color: var(--color-text-accent); border-bottom-color: var(--color-primary); }
|
||||
|
||||
.tab-content { padding: var(--space-6); display: none; }
|
||||
.tab-content.active { display: block; }
|
||||
|
||||
.form-group { margin-bottom: var(--space-4); }
|
||||
.form-label {
|
||||
display: block; font-size: var(--text-caption); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-secondary); margin-bottom: var(--space-2);
|
||||
text-transform: uppercase; letter-spacing: var(--tracking-wide);
|
||||
}
|
||||
.form-input {
|
||||
width: 100%; padding: var(--space-3) var(--space-4);
|
||||
font-family: var(--font-body); font-size: var(--text-body);
|
||||
background: var(--color-bg-base); color: var(--color-text-primary);
|
||||
border: 1px solid var(--color-border); border-radius: var(--radius-md);
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
.form-input:focus { outline: none; border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); }
|
||||
.form-input-lg {
|
||||
font-family: var(--font-mono); font-size: var(--text-h3);
|
||||
font-weight: var(--font-weight-bold); text-align: right;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
}
|
||||
|
||||
.cambio-display {
|
||||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
|
||||
display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-4);
|
||||
}
|
||||
.cambio-label { font-size: var(--text-body-sm); color: var(--color-text-secondary); font-weight: var(--font-weight-semibold); }
|
||||
.cambio-amount { font-family: var(--font-mono); font-size: var(--text-h4); font-weight: var(--font-weight-bold); }
|
||||
.cambio-amount.positive { color: var(--color-success); }
|
||||
.cambio-amount.negative { color: var(--color-error); }
|
||||
|
||||
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
|
||||
.quick-btn {
|
||||
padding: var(--space-2) var(--space-3); font-family: var(--font-mono); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold); background: var(--color-surface-2);
|
||||
color: var(--color-text-primary); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
}
|
||||
.quick-btn:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }
|
||||
|
||||
.split-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: end; margin-bottom: var(--space-3); }
|
||||
.split-method {
|
||||
padding: var(--space-2) var(--space-3); font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold); background: var(--color-surface-2);
|
||||
color: var(--color-text-secondary); border-radius: var(--radius-md);
|
||||
text-align: center; border: 1px solid var(--color-border);
|
||||
}
|
||||
.split-remaining {
|
||||
background: var(--color-surface-2); border-radius: var(--radius-md);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
font-size: var(--text-body-sm); margin-top: var(--space-3);
|
||||
}
|
||||
.split-remaining .amount { font-family: var(--font-mono); font-weight: var(--font-weight-bold); color: var(--color-text-accent); }
|
||||
|
||||
.cfdi-check {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border);
|
||||
background: var(--color-surface-1);
|
||||
}
|
||||
.cfdi-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--color-primary); cursor: pointer; }
|
||||
.cfdi-check label { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-secondary); cursor: pointer; }
|
||||
.cfdi-check .cfdi-hint { font-size: var(--text-caption); color: var(--color-text-muted); margin-left: auto; }
|
||||
|
||||
.modal-footer {
|
||||
padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border);
|
||||
display: flex; gap: var(--space-3); justify-content: flex-end;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-6); font-family: var(--font-body); font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-semibold); line-height: 1;
|
||||
border: 2px solid transparent; border-radius: var(--radius-md);
|
||||
cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
|
||||
}
|
||||
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
|
||||
.btn:active { transform: scale(0.97); }
|
||||
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
|
||||
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
|
||||
.btn-ghost:hover { background: var(--color-surface-2); }
|
||||
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-body-lg); }
|
||||
|
||||
.ref-field { display: flex; gap: var(--space-3); align-items: end; }
|
||||
.ref-field .form-group { flex: 1; }
|
||||
.form-hint { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
|
||||
.status-indicator {
|
||||
display: flex; align-items: center; gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.status-indicator.pending { background: var(--color-warning-light); color: var(--color-warning-dark); }
|
||||
.status-indicator.confirmed { background: var(--color-success-light); color: var(--color-success-dark); }
|
||||
|
||||
.terminal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
|
||||
.terminal-card {
|
||||
padding: var(--space-4); background: var(--color-surface-2); border: 2px solid var(--color-border);
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center;
|
||||
}
|
||||
.terminal-card:hover { border-color: var(--color-primary); }
|
||||
.terminal-card.selected { border-color: var(--color-primary); background: var(--color-primary-muted); }
|
||||
.terminal-card .terminal-name { font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
|
||||
.terminal-card .terminal-type { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
|
||||
|
||||
/* =====================================================================
|
||||
MODAL CONFIRMACION
|
||||
===================================================================== */
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes scaleIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
|
||||
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
|
||||
@keyframes scaleOut { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } }
|
||||
|
||||
.confirm-overlay {
|
||||
position: fixed; inset: 0; background: var(--overlay-backdrop);
|
||||
z-index: calc(var(--z-modal) + 1); display: none; animation: fadeIn 0.2s ease-out forwards;
|
||||
}
|
||||
.confirm-overlay.active { display: block; }
|
||||
.confirm-overlay.closing { animation: fadeOut 0.2s ease-in forwards; }
|
||||
|
||||
.confirm-dialog {
|
||||
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
|
||||
z-index: calc(var(--z-modal) + 2);
|
||||
background: var(--color-bg-elevated); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
|
||||
width: 90%; max-width: 420px; padding: var(--space-6); text-align: center;
|
||||
display: none; animation: scaleIn 0.25s ease-out forwards;
|
||||
}
|
||||
.confirm-dialog.active { display: block; }
|
||||
.confirm-dialog.closing { animation: scaleOut 0.2s ease-in forwards; }
|
||||
|
||||
.modal__icon {
|
||||
width: 56px; height: 56px; border-radius: var(--radius-full);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 26px; margin: 0 auto var(--space-4);
|
||||
}
|
||||
.modal__icon--warning { background: var(--color-warning-light); }
|
||||
.modal__title {
|
||||
font-family: var(--font-heading); font-size: var(--text-h4);
|
||||
font-weight: var(--heading-weight-primary); color: var(--color-text-primary); margin-bottom: var(--space-2);
|
||||
}
|
||||
.modal__desc {
|
||||
font-size: var(--text-body-sm); color: var(--color-text-muted);
|
||||
line-height: 1.6; margin-bottom: var(--space-6); padding: 0 var(--space-2);
|
||||
}
|
||||
.modal__actions { display: flex; gap: var(--space-3); justify-content: center; }
|
||||
.modal__btn {
|
||||
flex: 1; max-width: 180px; padding: var(--space-3) var(--space-4);
|
||||
font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: 600;
|
||||
border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.modal__btn--secondary {
|
||||
background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border-color: var(--btn-secondary-border);
|
||||
}
|
||||
.modal__btn--secondary:hover { background: var(--btn-secondary-bg-hover); }
|
||||
.modal__btn--danger {
|
||||
background: var(--btn-danger-bg, var(--color-error)); color: var(--btn-danger-text, #fff);
|
||||
border-color: var(--btn-danger-bg, var(--color-error));
|
||||
}
|
||||
.modal__btn--danger:hover { opacity: 0.9; }
|
||||
|
||||
/* =====================================================================
|
||||
TICKET TERMICO (hidden, for print)
|
||||
===================================================================== */
|
||||
.ticket-print-area { display: none; }
|
||||
|
||||
.ticket {
|
||||
background: #ffffff; color: #000000;
|
||||
font-family: 'Courier New', 'Consolas', monospace;
|
||||
font-size: 11px; line-height: 1.4; padding: 12px; text-align: left;
|
||||
border: 1px dashed #ccc;
|
||||
}
|
||||
.ticket-80 { width: 302px; }
|
||||
.ticket .store-name { font-size: 14px; font-weight: bold; text-align: center; margin-bottom: 2px; }
|
||||
.ticket .store-tagline { font-size: 9px; text-align: center; color: #555; margin-bottom: 4px; }
|
||||
.ticket .store-info { font-size: 9px; text-align: center; color: #333; margin-bottom: 6px; line-height: 1.3; }
|
||||
.ticket .divider { border: none; border-top: 1px dashed #999; margin: 6px 0; }
|
||||
.ticket .divider-double { border: none; border-top: 2px solid #333; margin: 6px 0; }
|
||||
.ticket .ticket-row { display: flex; justify-content: space-between; }
|
||||
.ticket .folio-line { font-size: 10px; font-weight: bold; display: flex; justify-content: space-between; margin-bottom: 4px; }
|
||||
.ticket .total-section { margin-top: 4px; }
|
||||
.ticket .total-line { display: flex; justify-content: space-between; font-size: 11px; }
|
||||
.ticket .total-line.grand { font-size: 14px; font-weight: bold; margin-top: 2px; padding-top: 2px; border-top: 1px solid #333; }
|
||||
.ticket .payment-section { margin-top: 4px; font-size: 10px; }
|
||||
.ticket .footer-section { text-align: center; margin-top: 8px; font-size: 9px; color: #555; }
|
||||
.ticket .footer-section .thanks { font-size: 11px; font-weight: bold; color: #000; margin-bottom: 2px; }
|
||||
.ticket-80 .item-line-wide {
|
||||
display: grid; grid-template-columns: auto 1fr auto auto;
|
||||
gap: 8px; align-items: baseline; font-size: 10px; margin-bottom: 3px;
|
||||
}
|
||||
.ticket-80 .item-line-wide .qty { font-weight: bold; min-width: 24px; text-align: right; }
|
||||
.ticket-80 .item-line-wide .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ticket-80 .item-line-wide .price { text-align: right; min-width: 55px; }
|
||||
.ticket-80 .item-line-wide .subtotal { text-align: right; font-weight: bold; min-width: 60px; }
|
||||
|
||||
@media print {
|
||||
body * { display: none !important; }
|
||||
.ticket-print-area, .ticket-print-area * { display: block !important; }
|
||||
.ticket-print-area { position: fixed; top: 0; left: 0; }
|
||||
.ticket { border: none; box-shadow: none; padding: 4px; }
|
||||
.ticket .item-line-wide { display: grid !important; }
|
||||
.ticket .ticket-row, .ticket .folio-line, .ticket .total-line { display: flex !important; }
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
TOAST NOTIFICATION
|
||||
===================================================================== */
|
||||
.toast-container {
|
||||
position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
|
||||
z-index: var(--z-toast); display: flex; flex-direction: column;
|
||||
gap: var(--space-2); pointer-events: none;
|
||||
}
|
||||
.toast {
|
||||
padding: var(--space-3) var(--space-5);
|
||||
background-color: var(--color-surface-3); border: 1px solid var(--color-border);
|
||||
border-left: 3px solid var(--color-primary); border-radius: var(--radius-md);
|
||||
font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary); box-shadow: var(--shadow-lg); white-space: nowrap;
|
||||
animation: toast-in 0.25s ease, toast-out 0.3s ease 1.7s forwards;
|
||||
}
|
||||
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
|
||||
|
||||
/* =====================================================================
|
||||
RESPONSIVE
|
||||
===================================================================== */
|
||||
@media (max-width: 900px) {
|
||||
.pos-main { flex-direction: column; }
|
||||
.panel-products, .panel-cart { width: 100%; min-width: 0; }
|
||||
.panel-products { border-right: none; border-bottom: 1px solid var(--color-border); max-height: 55%; }
|
||||
.panel-cart { max-height: 45%; }
|
||||
.product-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.status-bar__center { display: none; }
|
||||
.fkeys-footer { flex-wrap: wrap; }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.fkeys-footer { flex-wrap: wrap; gap: var(--space-1); padding: var(--space-2); }
|
||||
.fkey { padding: var(--space-1) var(--space-2); }
|
||||
.fkey-label { font-size: 10px; }
|
||||
.fkey-key { min-width: 24px; height: 20px; font-size: 10px; }
|
||||
.fkey-sep { display: none; }
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute; width: 1px; height: 1px; padding: 0;
|
||||
margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
|
||||
}
|
||||
|
||||
/* Add padding at bottom so content isn't hidden by fixed fkeys bar */
|
||||
body { padding-bottom: 50px; }
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/pos.css">
|
||||
</head>
|
||||
|
||||
<body class="pos-shell" id="appBody">
|
||||
|
||||
@@ -7,33 +7,7 @@
|
||||
<title>Cotizaciones — Nexus Autoparts POS</title>
|
||||
<link rel="stylesheet" href="/pos/static/css/tokens.css" />
|
||||
<link rel="stylesheet" href="/pos/static/css/pos-glass.css" />
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: var(--font-body); background: var(--color-bg-base); color: var(--color-text-primary); min-height: 100vh; }
|
||||
.page { max-width: 1200px; margin: 0 auto; padding: var(--space-6); margin-left: 240px; }
|
||||
@media (max-width: 1023px) { .page { margin-left: 0; } }
|
||||
.page-title { font-family: var(--font-heading); font-size: var(--text-h3); margin-bottom: var(--space-6); }
|
||||
.quote-table { width: 100%; border-collapse: collapse; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; }
|
||||
.quote-table th, .quote-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--glass-border); }
|
||||
.quote-table th { background: var(--glass-bg-strong); font-family: var(--font-mono); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
|
||||
.quote-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
||||
.quote-table tbody tr:hover { background: var(--glass-highlight); }
|
||||
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
|
||||
.badge--active { background: rgba(63,185,80,0.15); color: #3FB950; }
|
||||
.badge--converted { background: rgba(0,212,255,0.15); color: #00D4FF; }
|
||||
.badge--cancelled { background: rgba(248,81,73,0.15); color: #F85149; }
|
||||
.badge--expired { background: rgba(130,130,130,0.2); color: #888; }
|
||||
.badge--wa { background: rgba(37,211,102,0.15); color: #25D366; }
|
||||
.badge--pos { background: var(--color-primary-muted); color: var(--color-text-accent); }
|
||||
.modal-overlay { display:none; position:fixed; inset:0; z-index:1000; background:var(--overlay-backdrop); backdrop-filter:blur(4px); align-items:flex-start; justify-content:center; padding:var(--space-8) var(--space-4); overflow-y:auto; }
|
||||
.modal-overlay.open { display:flex; }
|
||||
.modal-content { background:var(--glass-bg-strong); backdrop-filter:blur(24px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); max-width:650px; width:100%; padding:var(--space-6); position:relative; }
|
||||
.modal-close { position:absolute; top:var(--space-3); right:var(--space-3); background:none; border:none; color:var(--color-text-muted); font-size:1.4rem; cursor:pointer; }
|
||||
.detail-table { width:100%; border-collapse:collapse; margin:var(--space-4) 0; }
|
||||
.detail-table th, .detail-table td { padding:var(--space-2) var(--space-3); text-align:left; border-bottom:1px solid var(--glass-border); font-size:var(--text-body-sm); }
|
||||
.detail-table th { color:var(--color-text-muted); font-size:var(--text-caption); text-transform:uppercase; }
|
||||
.empty { text-align:center; padding:var(--space-12); color:var(--color-text-muted); }
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/quotations.css">
|
||||
</head>
|
||||
<body>
|
||||
<script src="/pos/static/js/pos-utils.js" defer></script>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -10,512 +10,7 @@
|
||||
<link rel="manifest" href="/pos/static/pwa/manifest.json" />
|
||||
<meta name="theme-color" content="#F5A623" />
|
||||
|
||||
<style>
|
||||
/* =========================================================================
|
||||
BASE RESET & SHELL
|
||||
========================================================================= */
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
transition: background-color var(--duration-normal) var(--ease-in-out),
|
||||
color var(--duration-normal) var(--ease-in-out);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-theme="modern"] body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
var(--dot-grid-color) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: var(--dot-grid-size) var(--dot-grid-size);
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
LAYOUT: sidebar offset + full-height messenger
|
||||
========================================================================= */
|
||||
|
||||
.page-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
TOP BAR
|
||||
========================================================================= */
|
||||
|
||||
.top-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 48px;
|
||||
padding: 0 var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.top-bar__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-body);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.top-bar__title svg {
|
||||
color: #25D366;
|
||||
}
|
||||
|
||||
.top-bar__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-bar__status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.status-dot--ok { background: var(--color-success); }
|
||||
.status-dot--warn { background: var(--color-warning); }
|
||||
.status-dot--error { background: var(--color-error); }
|
||||
|
||||
/* =========================================================================
|
||||
MESSENGER LAYOUT: conversations list + chat panel
|
||||
========================================================================= */
|
||||
|
||||
.messenger {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ─── Left panel: conversation list ──────────────────────────────── */
|
||||
|
||||
.conv-panel {
|
||||
width: 320px;
|
||||
min-width: 260px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
}
|
||||
|
||||
.conv-panel__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.conv-panel__title {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wider);
|
||||
}
|
||||
|
||||
.conv-panel__list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
.conv-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-fast) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.conv-item:hover {
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.04));
|
||||
}
|
||||
|
||||
.conv-item.is-active {
|
||||
background: var(--color-primary-muted, rgba(245,166,35,0.12));
|
||||
border-left: 3px solid var(--color-primary);
|
||||
}
|
||||
|
||||
.conv-item__phone {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.conv-item__preview {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.conv-item__time {
|
||||
font-size: 0.6875rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.conv-item__delete {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.conv-item:hover .conv-item__delete { opacity: 1; }
|
||||
.conv-item__delete:hover { color: #F85149; background: rgba(248,81,73,0.1); }
|
||||
.conv-item { position: relative; }
|
||||
|
||||
.conv-empty {
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
/* ─── Right panel: chat view ─────────────────────────────────────── */
|
||||
|
||||
.chat-panel {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--color-bg-base);
|
||||
}
|
||||
|
||||
.chat-panel__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-panel__phone {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--text-body);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.chat-panel__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.chat-panel__messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, #444) var(--scrollbar-track, #222);
|
||||
}
|
||||
|
||||
/* ─── Message bubbles ────────────────────────────────────────────── */
|
||||
|
||||
.msg-bubble {
|
||||
max-width: 70%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
word-wrap: break-word;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.msg-bubble--in {
|
||||
align-self: flex-start;
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.06));
|
||||
color: var(--color-text-primary);
|
||||
border-bottom-left-radius: var(--radius-xs, 2px);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .msg-bubble--in {
|
||||
background: var(--color-neutral-100);
|
||||
}
|
||||
|
||||
.msg-bubble--out {
|
||||
align-self: flex-end;
|
||||
background: var(--color-primary-muted, rgba(245,166,35,0.15));
|
||||
color: var(--color-text-primary);
|
||||
border-bottom-right-radius: var(--radius-xs, 2px);
|
||||
}
|
||||
|
||||
[data-theme="modern"] .msg-bubble--out {
|
||||
background: #dcf8c6;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.msg-bubble__text {
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.msg-bubble__meta {
|
||||
font-size: 0.6875rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-top: 4px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.msg-status {
|
||||
display: inline-block;
|
||||
font-size: 0.625rem;
|
||||
padding: 1px 4px;
|
||||
border-radius: var(--radius-xs, 2px);
|
||||
background: var(--color-surface-3, rgba(255,255,255,0.04));
|
||||
color: var(--color-text-muted);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.chat-empty {
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--space-8);
|
||||
}
|
||||
|
||||
/* ─── Chat input bar ─────────────────────────────────────────────── */
|
||||
|
||||
.chat-input-bar {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
background: var(--color-bg-elevated);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chat-input-bar textarea {
|
||||
flex: 1;
|
||||
resize: none;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
background: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
line-height: 1.4;
|
||||
min-height: 40px;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
.chat-input-bar textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px var(--color-primary-muted, rgba(245,166,35,0.2));
|
||||
}
|
||||
|
||||
.chat-input-bar textarea::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ─── Buttons ────────────────────────────────────────────────────── */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
background: var(--color-bg-elevated);
|
||||
color: var(--color-text-primary);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-body-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-fast) var(--ease-in-out);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: var(--color-surface-2, rgba(255,255,255,0.06));
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-inverse, #fff);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn--primary:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: 4px 8px;
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.btn--whatsapp {
|
||||
background: #25D366;
|
||||
color: #fff;
|
||||
border-color: #25D366;
|
||||
}
|
||||
|
||||
.btn--whatsapp:hover {
|
||||
background: #1da851;
|
||||
}
|
||||
|
||||
/* ─── Empty state (no conversation selected) ─────────────────────── */
|
||||
|
||||
.empty-state {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-text-muted);
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.empty-state svg {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: var(--text-body);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state__hint {
|
||||
font-size: var(--text-caption);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* ─── Connection / QR section ────────────────────────────────────── */
|
||||
|
||||
.connect-section {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.connect-section__title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-h3, 1.25rem);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.connect-section__desc {
|
||||
font-size: var(--text-body-sm);
|
||||
color: var(--color-text-muted);
|
||||
max-width: 400px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.connect-section__qr {
|
||||
border: 2px dashed var(--color-border);
|
||||
border-radius: var(--radius-md, 8px);
|
||||
padding: var(--space-4);
|
||||
background: var(--color-bg-elevated);
|
||||
min-width: 280px;
|
||||
min-height: 280px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.connect-section__qr img {
|
||||
max-width: 256px;
|
||||
max-height: 256px;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
}
|
||||
|
||||
.connect-section__qr-placeholder {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-body-sm);
|
||||
}
|
||||
|
||||
.connect-section__actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
/* ─── Industrial theme cuts ──────────────────────────────────────── */
|
||||
|
||||
[data-theme="industrial"] .btn--primary {
|
||||
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
[data-theme="industrial"] .msg-bubble--out {
|
||||
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
|
||||
}
|
||||
|
||||
/* ─── Responsive ─────────────────────────────────────────────────── */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.conv-panel { width: 100%; min-width: 0; }
|
||||
.chat-panel { display: none; }
|
||||
.messenger.has-active-chat .conv-panel { display: none; }
|
||||
.messenger.has-active-chat .chat-panel { display: flex; }
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/pos/static/css/whatsapp.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
110
scripts/extract-inline-css.py
Normal file
110
scripts/extract-inline-css.py
Normal file
@@ -0,0 +1,110 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Extract inline <style> blocks from HTML templates into external CSS files.
|
||||
|
||||
Replaces each <style>...</style> block with a <link rel="stylesheet"> tag.
|
||||
This allows browsers to cache CSS across page navigations and dramatically
|
||||
reduces HTML payload size.
|
||||
|
||||
Usage:
|
||||
python3 extract-inline-css.py
|
||||
"""
|
||||
|
||||
import glob
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def extract_css_from_template(html_path, css_output_dir, css_url_prefix):
|
||||
"""Extract <style> blocks from an HTML file into an external CSS file.
|
||||
|
||||
Returns the modified HTML content.
|
||||
"""
|
||||
with open(html_path, 'r', encoding='utf-8') as f:
|
||||
html = f.read()
|
||||
|
||||
style_blocks = list(re.finditer(
|
||||
r'<style[^>]*>(.*?)</style>',
|
||||
html,
|
||||
re.DOTALL | re.IGNORECASE
|
||||
))
|
||||
|
||||
if not style_blocks:
|
||||
return html # No inline CSS to extract
|
||||
|
||||
# Extract all CSS content
|
||||
css_parts = []
|
||||
for m in style_blocks:
|
||||
css = m.group(1).strip()
|
||||
if css:
|
||||
css_parts.append(css)
|
||||
|
||||
if not css_parts:
|
||||
return html
|
||||
|
||||
# Write external CSS file
|
||||
name = Path(html_path).stem
|
||||
css_filename = f"{name}.css"
|
||||
css_path = Path(css_output_dir) / css_filename
|
||||
css_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
combined_css = '\n\n'.join(css_parts)
|
||||
with open(css_path, 'w', encoding='utf-8') as f:
|
||||
f.write(f"/* Extracted from {Path(html_path).name} */\n\n")
|
||||
f.write(combined_css)
|
||||
f.write('\n')
|
||||
|
||||
# Replace first <style> block with <link>, remove the rest
|
||||
link_tag = f'<link rel="stylesheet" href="{css_url_prefix}{css_filename}">'
|
||||
new_html = html[:style_blocks[0].start()] + link_tag + html[style_blocks[0].end():]
|
||||
|
||||
# Remove remaining style blocks (they were concatenated into the CSS file)
|
||||
for m in reversed(style_blocks[1:]):
|
||||
new_html = new_html[:m.start()] + new_html[m.end():]
|
||||
|
||||
return new_html
|
||||
|
||||
|
||||
def process_directory(html_dir, css_output_dir, css_url_prefix):
|
||||
"""Process all HTML files in a directory."""
|
||||
templates = sorted(glob.glob(f"{html_dir}/*.html"))
|
||||
total_saved = 0
|
||||
|
||||
for html_path in templates:
|
||||
new_html = extract_css_from_template(html_path, css_output_dir, css_url_prefix)
|
||||
|
||||
# Write back the modified HTML
|
||||
with open(html_path, 'w', encoding='utf-8') as f:
|
||||
f.write(new_html)
|
||||
|
||||
original_size = Path(html_path).stat().st_size
|
||||
total_saved += original_size - len(new_html.encode('utf-8'))
|
||||
name = Path(html_path).name
|
||||
print(f" {name}: extracted CSS -> {css_url_prefix}{Path(html_path).stem}.css")
|
||||
|
||||
return total_saved
|
||||
|
||||
|
||||
def main():
|
||||
print("=== Extracting inline CSS from POS templates ===")
|
||||
saved_pos = process_directory(
|
||||
'/home/Autopartes/pos/templates',
|
||||
'/home/Autopartes/pos/static/css',
|
||||
'/pos/static/css/'
|
||||
)
|
||||
|
||||
print("\n=== Extracting inline CSS from Dashboard templates ===")
|
||||
saved_dash = process_directory(
|
||||
'/home/Autopartes/dashboard',
|
||||
'/home/Autopartes/dashboard',
|
||||
'' # Dashboard CSS is in the same directory
|
||||
)
|
||||
|
||||
total_saved_kb = (saved_pos + saved_dash) / 1024
|
||||
print(f"\n=== Done ===")
|
||||
print(f"Total HTML payload reduced by ~{total_saved_kb:.0f} KB")
|
||||
print(f"POS templates: ~{saved_pos/1024:.0f} KB")
|
||||
print(f"Dashboard templates: ~{saved_dash/1024:.0f} KB")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user