new maps admin feature

This commit is contained in:
2025-07-05 16:01:39 -06:00
parent b47e44bdeb
commit 153498f0fe
9 changed files with 1529 additions and 8 deletions

View File

@@ -228,7 +228,271 @@
}
}
/* Walk Sheet Styles */
.walk-sheet-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-top: 20px;
}
.walk-sheet-config {
background-color: #f9f9f9;
padding: 20px;
border-radius: var(--border-radius);
}
.walk-sheet-config h3 {
font-size: 16px;
margin-bottom: 15px;
color: var(--dark-color);
}
.qr-code-group {
background-color: white;
padding: 15px;
border-radius: var(--border-radius);
margin-bottom: 15px;
border: 1px solid #e0e0e0;
position: relative;
}
.qr-code-group h4 {
font-size: 14px;
margin-bottom: 10px;
color: #666;
}
.form-row {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 10px;
}
.help-text-inline {
font-size: 14px;
color: #666;
margin-bottom: 15px;
}
/* Walk Sheet Preview */
.walk-sheet-preview {
background-color: #f5f5f5;
padding: 20px;
border-radius: var(--border-radius);
}
.walk-sheet-preview h3 {
font-size: 16px;
margin-bottom: 10px;
color: var(--dark-color);
}
.preview-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.preview-info {
font-size: 12px;
color: #666;
}
/* Walk Sheet Page (8.5 x 11 preview) */
.walk-sheet-page {
width: 100%;
max-width: 425px; /* Half of 8.5 inches at 100dpi */
aspect-ratio: 8.5 / 11;
background: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 20px;
margin: 0 auto;
overflow: auto;
font-size: 10px;
line-height: 1.4;
position: relative;
}
/* Walk Sheet Print Styles */
@media print {
body * {
visibility: hidden;
}
.walk-sheet-page, .walk-sheet-page * {
visibility: visible;
}
.walk-sheet-page {
position: absolute;
left: 0;
top: 0;
width: 8.5in;
height: 11in;
max-width: none;
padding: 0.5in;
margin: 0;
box-shadow: none;
font-size: 12pt;
}
}
/* Walk Sheet Content Styles */
.ws-header {
text-align: center;
margin-bottom: 20px;
border-bottom: 2px solid #333;
padding-bottom: 10px;
}
.ws-title {
font-size: 18px;
font-weight: bold;
margin: 0;
}
.ws-subtitle {
font-size: 14px;
color: #666;
margin: 5px 0 0 0;
}
.ws-qr-section {
display: flex;
justify-content: space-around;
margin: 20px 0;
padding: 15px;
background-color: #f9f9f9;
border-radius: 5px;
}
.ws-qr-item {
text-align: center;
}
.ws-qr-code {
margin-bottom: 5px;
}
.ws-qr-code img {
display: block;
margin: 0 auto;
image-rendering: crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
}
.ws-qr-label {
font-size: 10px;
font-weight: bold;
}
.ws-form-section {
margin-top: 20px;
}
.ws-form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-bottom: 10px;
}
.ws-form-group {
border-bottom: 1px solid #ccc;
padding-bottom: 5px;
}
.ws-form-label {
font-size: 9px;
color: #666;
display: block;
margin-bottom: 2px;
}
.ws-form-field {
height: 20px;
background-color: #f9f9f9;
}
.ws-notes-section {
margin-top: 20px;
}
.ws-notes-label {
font-size: 10px;
font-weight: bold;
margin-bottom: 5px;
}
.ws-notes-area {
width: 100%;
height: 60px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}
.ws-footer {
position: absolute;
bottom: 20px;
left: 20px;
right: 20px;
text-align: center;
font-size: 9px;
color: #666;
padding-top: 10px;
border-top: 1px solid #ccc;
}
/* QR Code Generation Status */
.qr-code-group.generating::after {
content: 'Generating QR Code...';
position: absolute;
top: 0;
right: 0;
font-size: 12px;
color: var(--primary-color);
background: white;
padding: 2px 8px;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Loading state for save button */
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* QR code stored indicator */
.qr-status {
font-size: 12px;
color: var(--success-color);
margin-top: 5px;
}
.qr-status.stored {
color: var(--success-color);
}
.qr-status.pending {
color: var(--warning-color);
}
/* Responsive */
@media (max-width: 1200px) {
.walk-sheet-container {
grid-template-columns: 1fr;
}
.walk-sheet-preview {
order: -1;
}
}
@media (max-width: 768px) {
.admin-container {
flex-direction: column;
@@ -255,6 +519,15 @@
.admin-section {
padding: 20px;
}
.form-row {
grid-template-columns: 1fr;
}
.walk-sheet-page {
font-size: 8px;
padding: 15px;
}
}
/* CSS Variables (define these in style.css if not already defined) */