1274 lines
24 KiB
CSS
1274 lines
24 KiB
CSS
/* Admin Panel Specific Styles */
|
|
.admin-container {
|
|
display: flex;
|
|
height: calc(100vh - var(--header-height));
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
width: 250px;
|
|
background-color: white;
|
|
border-right: 1px solid #e0e0e0;
|
|
padding: 20px;
|
|
}
|
|
|
|
.admin-sidebar h2 {
|
|
font-size: 18px;
|
|
margin-bottom: 20px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.admin-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.admin-nav a {
|
|
padding: 10px 15px;
|
|
color: var(--dark-color);
|
|
text-decoration: none;
|
|
border-radius: var(--border-radius);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.admin-nav a:hover {
|
|
background-color: var(--light-color);
|
|
}
|
|
|
|
.admin-nav a.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.admin-content {
|
|
flex: 1;
|
|
padding: 30px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.admin-section {
|
|
background-color: white;
|
|
border-radius: var(--border-radius);
|
|
padding: 30px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.admin-section h2 {
|
|
margin-bottom: 15px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.admin-section p {
|
|
color: #666;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.admin-map-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 300px;
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.admin-map {
|
|
height: 500px;
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.location-controls {
|
|
padding: 20px;
|
|
background-color: #f9f9f9;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
.location-controls .form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.location-controls .form-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.help-text {
|
|
margin-top: 20px;
|
|
padding: 15px;
|
|
background-color: #e3f2fd;
|
|
border-radius: var(--border-radius);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.help-text p {
|
|
margin: 0;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.admin-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: rgba(255,255,255,0.9);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Form styles */
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
/* Button styles */
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #45a049;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #5a6268;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Status messages */
|
|
.status-container {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 10000;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.status-message {
|
|
padding: 12px 16px;
|
|
margin-bottom: 10px;
|
|
border-radius: var(--border-radius);
|
|
font-size: 14px;
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
.status-message.success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
.status-message.error {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.status-message.info {
|
|
background-color: #cce7ff;
|
|
color: #004085;
|
|
border: 1px solid #b3d7ff;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Walk Sheet Styles */
|
|
.walk-sheet-container {
|
|
display: grid;
|
|
grid-template-columns: 2fr 3fr;
|
|
gap: 30px;
|
|
margin-top: 20px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.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: 30px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 4px 24px rgba(0,0,0,0.10);
|
|
min-width: 350px;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
min-height: 950px; /* Ensure container is tall enough */
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
overflow: auto;
|
|
}
|
|
|
|
.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 actual size) */
|
|
.walk-sheet-page {
|
|
/* Actual paper size in pixels at 96 DPI (standard screen resolution) */
|
|
width: 816px; /* 8.5 inches * 96 DPI */
|
|
height: 1056px; /* 11 inches * 96 DPI */
|
|
background: white;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
|
|
padding: 48px; /* 0.5 inch margins at 96 DPI */
|
|
margin: 0 auto;
|
|
overflow: hidden;
|
|
font-size: 12pt; /* Standard document font size */
|
|
line-height: 1.6;
|
|
position: relative;
|
|
transform: none; /* No scaling by default */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Walk Sheet Print Styles */
|
|
@media print {
|
|
body * {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.walk-sheet-page, .walk-sheet-page * {
|
|
visibility: visible;
|
|
}
|
|
|
|
.walk-sheet-page {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
max-width: none;
|
|
padding: 0.5in; /* 0.5 inch margins */
|
|
margin: 0;
|
|
box-shadow: none;
|
|
font-size: 12pt;
|
|
page-break-after: always;
|
|
}
|
|
|
|
/* Ensure QR codes print properly */
|
|
.ws-qr-code img {
|
|
width: 100px !important;
|
|
height: 100px !important;
|
|
-webkit-print-color-adjust: exact;
|
|
print-color-adjust: exact;
|
|
}
|
|
}
|
|
|
|
/* Remove the preview scaling - show at actual size */
|
|
.walk-sheet-preview .walk-sheet-page {
|
|
transform: none;
|
|
transform-origin: top center;
|
|
margin-bottom: 0;
|
|
border-radius: 0; /* Remove rounded corners to look more like paper */
|
|
}
|
|
|
|
/* Walk Sheet Content Styles - adjusted for actual size */
|
|
.ws-header {
|
|
text-align: center;
|
|
margin-bottom: 30px; /* Reduced from 40px */
|
|
border-bottom: 3px solid #333;
|
|
padding-bottom: 15px; /* Reduced from 20px */
|
|
}
|
|
|
|
.ws-title {
|
|
font-size: 24pt; /* Reduced from 28pt */
|
|
font-weight: bold;
|
|
margin: 0;
|
|
color: #000;
|
|
}
|
|
|
|
.ws-subtitle {
|
|
font-size: 12pt; /* Reduced from 14pt */
|
|
color: #444;
|
|
margin: 8px 0 0 0; /* Reduced from 10px */
|
|
}
|
|
|
|
.ws-qr-section {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
margin: 30px 0; /* Reduced from 40px */
|
|
padding: 20px; /* Reduced from 30px */
|
|
background-color: #f5f5f5;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.ws-qr-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.ws-qr-code {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.ws-qr-code img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
width: 120px; /* Reduced from 140px */
|
|
height: 120px;
|
|
image-rendering: crisp-edges;
|
|
image-rendering: -webkit-crisp-edges;
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
}
|
|
|
|
.ws-qr-code canvas {
|
|
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: 11pt;
|
|
font-weight: bold;
|
|
margin-top: 10px;
|
|
color: #333;
|
|
}
|
|
|
|
.ws-form-section {
|
|
margin-top: 30px; /* Reduced from 40px */
|
|
}
|
|
|
|
.ws-form-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 20px;
|
|
margin-bottom: 18px; /* Reduced from 20px */
|
|
}
|
|
|
|
.ws-form-group {
|
|
border-bottom: 2px solid #ccc;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.ws-form-label {
|
|
font-size: 10pt;
|
|
color: #555;
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.ws-form-field {
|
|
height: 30px;
|
|
background-color: #fafafa;
|
|
border: 1px solid #eee;
|
|
}
|
|
|
|
/* Special field styles for circles */
|
|
.ws-form-field.circles {
|
|
height: auto;
|
|
background: none;
|
|
border: none;
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.ws-circle-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11pt;
|
|
}
|
|
|
|
.ws-circle {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 2px solid #333;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10pt;
|
|
font-weight: 500;
|
|
background-color: white;
|
|
}
|
|
|
|
.ws-notes-section {
|
|
margin-top: 30px; /* Reduced from 40px */
|
|
}
|
|
|
|
.ws-notes-label {
|
|
font-size: 11pt;
|
|
font-weight: bold;
|
|
margin-bottom: 10px;
|
|
color: #333;
|
|
}
|
|
|
|
.ws-notes-area {
|
|
width: 100%;
|
|
height: 80px; /* Reduced from 100px */
|
|
border: 2px solid #ccc;
|
|
background-color: #fafafa;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.ws-footer {
|
|
position: absolute;
|
|
bottom: 48px; /* Match padding */
|
|
left: 48px;
|
|
right: 48px;
|
|
text-align: center;
|
|
font-size: 10pt;
|
|
color: #666;
|
|
padding-top: 15px; /* Reduced from 20px */
|
|
border-top: 1px solid #ccc;
|
|
max-height: 80px; /* Ensure footer has enough space */
|
|
overflow: hidden;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* 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);
|
|
}
|
|
|
|
/* User Management Styles */
|
|
.users-admin-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr;
|
|
gap: 30px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.user-form,
|
|
.users-list {
|
|
background: white;
|
|
border-radius: var(--border-radius);
|
|
padding: 25px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.user-form h3,
|
|
.users-list h3 {
|
|
margin-bottom: 20px;
|
|
color: var(--dark-color);
|
|
border-bottom: 2px solid var(--primary-color);
|
|
padding-bottom: 10px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.users-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 15px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.users-table th,
|
|
.users-table td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.users-table th {
|
|
background-color: #f8f9fa;
|
|
font-weight: 600;
|
|
color: var(--dark-color);
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.users-table tbody tr {
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.users-table tbody tr:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.user-role {
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.user-role.admin {
|
|
background-color: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.user-role.user {
|
|
background-color: #28a745;
|
|
color: white;
|
|
}
|
|
|
|
.user-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.user-actions .btn {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
border-radius: var(--border-radius);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #dc3545;
|
|
color: white;
|
|
border: 1px solid #dc3545;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #c82333;
|
|
border-color: #c82333;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.loading-message,
|
|
.empty-message {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: #666;
|
|
font-style: italic;
|
|
background-color: #f8f9fa;
|
|
border-radius: var(--border-radius);
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.loading-message {
|
|
background-color: #e3f2fd;
|
|
color: #1976d2;
|
|
}
|
|
|
|
/* User form specific styles */
|
|
.user-form .form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.user-form .form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: var(--dark-color);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-form .form-group label input[type="checkbox"] {
|
|
margin-right: 8px;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.user-form input[type="email"],
|
|
.user-form input[type="password"],
|
|
.user-form input[type="text"] {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 2px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
font-size: 14px;
|
|
transition: var(--transition);
|
|
background-color: #fafafa;
|
|
}
|
|
|
|
.user-form input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
background-color: white;
|
|
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
|
|
}
|
|
|
|
.user-form .form-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.user-form .form-actions .btn {
|
|
flex: 1;
|
|
padding: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Responsive design for user management */
|
|
@media (max-width: 768px) {
|
|
.users-admin-container {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.users-table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.users-table th,
|
|
.users-table td {
|
|
padding: 8px;
|
|
}
|
|
|
|
.user-actions {
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.user-actions .btn {
|
|
font-size: 11px;
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
.user-form .form-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Admin container mobile layout */
|
|
.admin-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
width: 100%;
|
|
border-right: none;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
padding: 15px;
|
|
}
|
|
|
|
.admin-nav {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
gap: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.admin-nav a {
|
|
white-space: nowrap;
|
|
min-width: auto;
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.header .header-actions {
|
|
display: flex !important;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.header .header-actions .btn {
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-info {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.admin-map-container {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.admin-map {
|
|
height: 250px;
|
|
}
|
|
|
|
.admin-content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.admin-section {
|
|
padding: 15px;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* Shifts admin mobile */
|
|
.shifts-admin-container {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.shift-admin-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.shift-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* Walk sheet container mobile */
|
|
.walk-sheet-container {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
gap: 20px;
|
|
}
|
|
|
|
.walk-sheet-config {
|
|
order: 1 !important;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* Walk sheet mobile */
|
|
.walk-sheet-preview {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
width: 100%;
|
|
min-height: 500px;
|
|
padding: 10px;
|
|
overflow: hidden; /* Change from overflow-x: hidden to overflow: hidden */
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Container for the scaled page */
|
|
.walk-sheet-preview #walk-sheet-preview-content {
|
|
transform: scale(0.35);
|
|
transform-origin: top center;
|
|
margin: 0 auto;
|
|
width: 816px;
|
|
max-width: none;
|
|
margin-bottom: -600px;
|
|
position: relative;
|
|
left: 50%;
|
|
margin-left: -408px; /* Half of 816px to center it */
|
|
}
|
|
|
|
/* Status container mobile */
|
|
.status-container {
|
|
top: 10px;
|
|
right: 10px;
|
|
left: 10px;
|
|
max-width: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.status-message {
|
|
font-size: 13px;
|
|
padding: 10px 12px;
|
|
max-width: 90%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.users-table {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.user-role {
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
}
|
|
|
|
.user-form input[type="email"],
|
|
.user-form input[type="password"],
|
|
.user-form input[type="text"] {
|
|
padding: 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Very small screen adjustments */
|
|
.admin-content {
|
|
padding: 10px;
|
|
}
|
|
|
|
.admin-section {
|
|
padding: 10px;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
padding: 10px;
|
|
}
|
|
|
|
.admin-nav a {
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.header .header-actions .btn {
|
|
padding: 5px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.admin-info {
|
|
display: none; /* Hide on very small screens */
|
|
}
|
|
|
|
.admin-map {
|
|
height: 200px;
|
|
}
|
|
|
|
/* Walk sheet very small screens */
|
|
.walk-sheet-preview {
|
|
padding: 10px;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.walk-sheet-preview .walk-sheet-page {
|
|
transform: scale(0.25);
|
|
transform-origin: center top;
|
|
margin-bottom: -750px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Form adjustments */
|
|
.form-group input,
|
|
.form-group select {
|
|
font-size: 16px; /* Prevent zoom on iOS */
|
|
}
|
|
|
|
.btn {
|
|
min-height: 44px; /* Touch-friendly button size */
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.btn-sm {
|
|
min-height: 36px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
/* User management specific mobile adjustments */
|
|
.user-container {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.user-profile {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.users-table th {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.user-actions .btn {
|
|
font-size: 10px;
|
|
padding: 3px 6px;
|
|
min-height: 32px;
|
|
}
|
|
}
|
|
|
|
/* For very large screens, show at full size without scaling */
|
|
@media (min-width: 1600px) {
|
|
.walk-sheet-container {
|
|
gap: 40px;
|
|
grid-template-columns: 1fr 2fr; /* Give more space to preview */
|
|
}
|
|
|
|
.walk-sheet-preview {
|
|
max-width: 100%;
|
|
min-height: 1100px;
|
|
padding: 40px;
|
|
}
|
|
|
|
.walk-sheet-preview .walk-sheet-page {
|
|
transform: none; /* Show at actual size */
|
|
}
|
|
}
|
|
|
|
/* Container adjustments for actual-size preview */
|
|
.walk-sheet-container {
|
|
display: grid;
|
|
grid-template-columns: minmax(300px, 400px) 1fr; /* Adjust proportions */
|
|
gap: 30px;
|
|
margin-top: 20px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
/* CSS Variables (define these in style.css if not already defined) */
|
|
:root {
|
|
--primary-color: #4CAF50;
|
|
--dark-color: #333;
|
|
--light-color: #f5f5f5;
|
|
--border-radius: 6px;
|
|
--transition: all 0.2s ease;
|
|
--header-height: 60px;
|
|
}
|
|
|
|
/* Crosshair styling */
|
|
.crosshair {
|
|
pointer-events: none;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.crosshair div {
|
|
border-radius: 1px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Admin map styling */
|
|
.admin-map {
|
|
position: relative;
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.admin-map .leaflet-container {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
/* Shifts Admin Styles */
|
|
.shifts-admin-container {
|
|
display: grid;
|
|
grid-template-columns: 400px 1fr;
|
|
gap: 30px;
|
|
}
|
|
|
|
.shift-form {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.shifts-list {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.shift-admin-item {
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: var(--border-radius);
|
|
padding: 15px;
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.shift-admin-item h4 {
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
.shift-admin-item p {
|
|
margin: 5px 0;
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
.status-open {
|
|
color: var(--success-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-full {
|
|
color: var(--warning-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-cancelled {
|
|
color: var(--danger-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.shift-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.shifts-admin-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Additional mobile styles for better responsiveness */
|
|
@media (max-width: 1200px) {
|
|
.walk-sheet-container {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
gap: 20px;
|
|
}
|
|
|
|
.walk-sheet-config {
|
|
order: 1 !important;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.walk-sheet-preview {
|
|
order: 2 !important;
|
|
padding: 20px;
|
|
min-height: auto;
|
|
max-width: 100vw;
|
|
overflow-x: auto;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.walk-sheet-preview .walk-sheet-page {
|
|
transform: scale(0.75);
|
|
transform-origin: center top;
|
|
margin-bottom: -200px;
|
|
max-width: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.walk-sheet-preview .walk-sheet-page {
|
|
transform: scale(0.5);
|
|
transform-origin: center top;
|
|
margin-bottom: -400px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
/* Tablet and mobile header adjustments */
|
|
@media (max-width: 1024px) {
|
|
.header {
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.header .header-actions {
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
/* Responsive Table Styles for Mobile */
|
|
@media (max-width: 640px) {
|
|
.users-table {
|
|
border: 0;
|
|
}
|
|
|
|
.users-table thead {
|
|
border: none;
|
|
clip: rect(0 0 0 0);
|
|
height: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
width: 1px;
|
|
}
|
|
|
|
.users-table tr {
|
|
border-bottom: 3px solid #ddd;
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
background: #f8f9fa;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.users-table td {
|
|
border: none;
|
|
border-bottom: 1px solid #eee;
|
|
display: block;
|
|
font-size: 13px;
|
|
text-align: right;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.users-table td::before {
|
|
content: attr(data-label);
|
|
float: left;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
font-size: 11px;
|
|
color: #666;
|
|
}
|
|
|
|
.users-table td:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.user-actions {
|
|
justify-content: flex-end;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.user-actions .btn {
|
|
width: auto !important;
|
|
min-width: 80px;
|
|
flex: none;
|
|
}
|
|
}
|
|
|
|
/* Enhanced mobile form styling */
|
|
@media (max-width: 480px) {
|
|
.user-form input[type="email"],
|
|
.user-form input[type="password"],
|
|
.user-form input[type="text"] {
|
|
font-size: 16px; /* Prevent zoom on iOS */
|
|
padding: 12px;
|
|
}
|
|
|
|
.user-form .form-group label {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-form .form-actions .btn {
|
|
width: 100%;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.users-table td {
|
|
font-size: 12px;
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.users-table td::before {
|
|
font-size: 10px;
|
|
}
|
|
}
|