282 lines
5.3 KiB
CSS
282 lines
5.3 KiB
CSS
/* Cuts and Shifts Management Interface */
|
|
/* Map interaction, form states, and administrative controls */
|
|
|
|
/* Cuts Section Styles */
|
|
.cuts-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--padding-base);
|
|
}
|
|
|
|
.cuts-map-section {
|
|
position: relative;
|
|
height: 500px;
|
|
background: #f5f5f5;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
#cuts-map {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.cuts-form-section,
|
|
.cuts-list-section {
|
|
margin-top: var(--padding-base);
|
|
}
|
|
|
|
.cuts-filters {
|
|
display: grid;
|
|
grid-template-columns: 1fr 200px;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.cuts-filters input,
|
|
.cuts-filters select {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
/* Disabled Form State */
|
|
.cut-form.disabled {
|
|
opacity: 0.7;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cut-form.disabled input:not(#start-drawing-btn):not(#reset-form-btn):not(#cancel-edit-btn),
|
|
.cut-form.disabled textarea,
|
|
.cut-form.disabled select {
|
|
background-color: #f5f5f5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.cut-form.disabled input:not(#start-drawing-btn):not(#reset-form-btn):not(#cancel-edit-btn):focus,
|
|
.cut-form.disabled textarea:focus,
|
|
.cut-form.disabled select:focus {
|
|
outline: none;
|
|
border-color: #ddd;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Shifts Admin Styles */
|
|
.shifts-admin-container {
|
|
display: grid;
|
|
grid-template-columns: 400px 1fr;
|
|
gap: 30px;
|
|
}
|
|
|
|
.shift-form {
|
|
background: white;
|
|
padding: var(--padding-base);
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.shifts-list {
|
|
background: white;
|
|
padding: var(--padding-base);
|
|
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;
|
|
position: relative;
|
|
}
|
|
|
|
.shift-admin-item h4 {
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
/* Editing State for Shifts */
|
|
.shift-admin-item.editing {
|
|
border: 2px solid #a02c8d;
|
|
background-color: #f9f0f8;
|
|
}
|
|
|
|
.shift-admin-item.editing::before {
|
|
content: "EDITING";
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
background: #a02c8d;
|
|
color: white;
|
|
padding: 2px 8px;
|
|
font-size: 11px;
|
|
border-radius: 3px;
|
|
font-weight: bold;
|
|
z-index: 1;
|
|
}
|
|
|
|
.shift-admin-item p {
|
|
margin: 5px 0;
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
/* Shift Status Colors */
|
|
.status-open {
|
|
color: var(--success-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-full {
|
|
color: var(--warning-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-cancelled {
|
|
color: var(--error-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.shift-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.manage-volunteers-btn {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* Shift Information Display */
|
|
.shift-info {
|
|
background-color: #f8f9fa;
|
|
padding: 15px;
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: var(--padding-base);
|
|
}
|
|
|
|
.shift-info h4 {
|
|
margin: 0 0 8px 0;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.shift-info p {
|
|
margin: 0;
|
|
color: #666;
|
|
font-size: var(--font-size-base);
|
|
}
|
|
|
|
/* Add User Section */
|
|
.add-user-section {
|
|
margin-bottom: 30px;
|
|
padding-bottom: var(--padding-base);
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.add-user-section h4 {
|
|
margin: 0 0 15px 0;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.current-volunteers-section h4 {
|
|
margin: 0 0 15px 0;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.volunteer-actions-header {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
/* Large Screen Layout for Cuts */
|
|
@media (min-width: 1200px) {
|
|
.cuts-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: var(--padding-base);
|
|
}
|
|
|
|
.cuts-form-section,
|
|
.cuts-list-section {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--padding-base);
|
|
margin-top: 0;
|
|
}
|
|
|
|
.cuts-form-section > *,
|
|
.cuts-list-section > * {
|
|
grid-column: span 1;
|
|
}
|
|
}
|
|
|
|
/* Public Shift Functionality Styles */
|
|
.public-shift {
|
|
color: var(--success-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.private-shift {
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.public-link-section {
|
|
margin-top: 1rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--border-radius);
|
|
border-left: 4px solid var(--info-color);
|
|
}
|
|
|
|
.public-link-section label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.public-link-input {
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 0.85rem;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.public-link-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
/* Status badges for public/private */
|
|
.status-badge.status-public {
|
|
background: var(--success-light);
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.status-badge.status-private {
|
|
background: var(--text-light);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Input group for public links */
|
|
.input-group {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.input-group input {
|
|
flex: 1;
|
|
}
|
|
|
|
.input-group .btn {
|
|
white-space: nowrap;
|
|
}
|