- lib/db.js: listUsers query now includes has_password computed column (password_hash IS NOT NULL) — prevents hasPassword always being false - lib/routes/admin.js: userPublic uses has_password instead of password_hash - styles.css: add .forgot-password-link style used in login.html Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1084 lines
18 KiB
CSS
1084 lines
18 KiB
CSS
/* Reset and Base Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
}
|
|
|
|
/* Login Page Styles */
|
|
.login-page {
|
|
background-image: url('Images/3M_Splash.jpg');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.login-page::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(139, 0, 40, 0.1);
|
|
}
|
|
|
|
.login-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.login-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
padding: 50px 60px;
|
|
width: 100%;
|
|
max-width: 580px;
|
|
text-align: center;
|
|
}
|
|
|
|
.logo-container {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.logo {
|
|
height: 50px;
|
|
width: auto;
|
|
}
|
|
|
|
.welcome-text {
|
|
color: #333;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.subtitle {
|
|
color: #666;
|
|
font-size: 14px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.login-form {
|
|
text-align: left;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 14px 18px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 15px;
|
|
transition: border-color 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: #CC0000;
|
|
box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
|
|
}
|
|
|
|
.button-container {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.login-button {
|
|
flex: 1;
|
|
padding: 14px 24px;
|
|
background: #CC0000;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tmm-button {
|
|
background: #CC0000;
|
|
}
|
|
|
|
.tmm-button:hover:not(:disabled) {
|
|
background: #AA0000;
|
|
box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
|
|
}
|
|
|
|
.login-button:disabled {
|
|
background: #999;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.footer-links {
|
|
margin-top: 25px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.footer-link {
|
|
color: #666;
|
|
font-size: 12px;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.footer-link:hover {
|
|
color: #333;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Terms Modal */
|
|
.terms-modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.terms-modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.terms-modal-content {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 40px;
|
|
width: 90%;
|
|
max-width: 700px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
}
|
|
|
|
.terms-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.terms-modal-header h2 {
|
|
color: #333;
|
|
font-size: 24px;
|
|
margin: 0;
|
|
}
|
|
|
|
.terms-close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 32px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.terms-close-btn:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.terms-modal-body {
|
|
color: #555;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.terms-modal-body h3 {
|
|
color: #333;
|
|
font-size: 18px;
|
|
margin-top: 25px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.terms-modal-body p {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* PDF Popup Styles */
|
|
.pdf-popup-overlay {
|
|
display: flex;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.pdf-popup-overlay.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
.pdf-popup {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 30px 40px;
|
|
text-align: center;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.pdf-popup-message {
|
|
font-size: 18px;
|
|
color: #333;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
.pdf-popup-ok-btn {
|
|
background-color: #333;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 40px;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.pdf-popup-ok-btn:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
/* Spinner Styles */
|
|
.spinner {
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top: 2px solid white;
|
|
width: 16px;
|
|
height: 16px;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Error Message */
|
|
.error-message {
|
|
background-color: #fee;
|
|
color: #c33;
|
|
padding: 12px 15px;
|
|
border-radius: 6px;
|
|
margin-top: 15px;
|
|
font-size: 14px;
|
|
border-left: 4px solid #c33;
|
|
}
|
|
|
|
/* Dashboard Page Styles */
|
|
.dashboard-page {
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.dashboard-header-bar {
|
|
background: white;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
padding: 15px 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.dashboard-title-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.dashboard-logo {
|
|
height: 40px;
|
|
width: auto;
|
|
}
|
|
|
|
.dashboard-title-section h1 {
|
|
font-size: 22px;
|
|
font-weight: 400;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
.dashboard-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.view-icons {
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
|
|
.view-icon {
|
|
background: none;
|
|
border: 1px solid #ddd;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
color: #666;
|
|
font-size: 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.view-icon:hover {
|
|
background: #f5f5f5;
|
|
border-color: #999;
|
|
}
|
|
|
|
.view-icon.active {
|
|
background: #e0e0e0;
|
|
border-color: #999;
|
|
color: #333;
|
|
}
|
|
|
|
.refresh-button {
|
|
background: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 24px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.refresh-button:hover {
|
|
background: #45a049;
|
|
}
|
|
|
|
.sign-out-button {
|
|
background: #CC0000;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 24px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.sign-out-button:hover {
|
|
background: #AA0000;
|
|
}
|
|
|
|
.dashboard-content {
|
|
padding: 30px;
|
|
}
|
|
|
|
.project-header {
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
padding: 20px 25px;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.project-info {
|
|
width: 100%;
|
|
}
|
|
|
|
.project-info h2 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0 0 5px 0;
|
|
}
|
|
|
|
.project-status {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
background: #e3f2fd;
|
|
color: #1976d2;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.category-filter {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.category-filter label {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #666;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.category-filter select {
|
|
padding: 8px 30px 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background: white;
|
|
cursor: pointer;
|
|
min-width: 200px;
|
|
}
|
|
|
|
/* Dashboard Filters */
|
|
.dashboard-filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
margin: 0 0 20px;
|
|
padding: 14px 18px;
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1 1 260px;
|
|
min-width: 220px;
|
|
padding: 9px 14px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: #CC0000;
|
|
box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
|
|
}
|
|
|
|
.workflow-filter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #555;
|
|
}
|
|
|
|
.workflow-select {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background: white;
|
|
cursor: pointer;
|
|
min-width: 220px;
|
|
}
|
|
|
|
.result-count {
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Workflow Badge */
|
|
.workflow-badge {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.3px;
|
|
text-transform: uppercase;
|
|
margin-left: 8px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.workflow-badge-review {
|
|
background: #f57c00;
|
|
color: white;
|
|
box-shadow: 0 1px 3px rgba(245, 124, 0, 0.4);
|
|
}
|
|
|
|
.job-card-title {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Jobs Grid */
|
|
.jobs-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Job Card */
|
|
.job-card {
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.job-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
border-color: #ccc;
|
|
}
|
|
|
|
.job-card-header {
|
|
background: #f8f8f8;
|
|
padding: 12px 15px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
position: relative;
|
|
}
|
|
|
|
.lock-icon {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 15px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.job-preview {
|
|
width: 100%;
|
|
height: 280px;
|
|
background: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
padding: 20px;
|
|
}
|
|
|
|
.job-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.job-details {
|
|
padding: 15px;
|
|
background: white;
|
|
}
|
|
|
|
.job-document-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.job-info-line {
|
|
font-size: 13px;
|
|
color: #555;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.job-info-line strong {
|
|
color: #333;
|
|
}
|
|
|
|
/* Progress Bar */
|
|
.progress-bar-container {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.progress-bar {
|
|
display: flex;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.progress-segment {
|
|
height: 100%;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-finish {
|
|
background: #2e7d32; /* Dark green */
|
|
}
|
|
|
|
.progress-done {
|
|
background: #81c784; /* Light green */
|
|
}
|
|
|
|
.progress-remaining {
|
|
background: #ffd54f; /* Yellow */
|
|
}
|
|
|
|
.progress-legend {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.legend-color {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 2px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.legend-finish {
|
|
background: #2e7d32;
|
|
}
|
|
|
|
.legend-done {
|
|
background: #81c784;
|
|
}
|
|
|
|
.legend-remaining {
|
|
background: #ffd54f;
|
|
}
|
|
|
|
.job-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.btn-edit, .btn-pdf {
|
|
flex: 1;
|
|
padding: 10px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-edit {
|
|
background: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.btn-edit:hover:not(:disabled) {
|
|
background: #45a049;
|
|
}
|
|
|
|
.btn-pdf {
|
|
background: #CC0000;
|
|
color: white;
|
|
}
|
|
|
|
.btn-pdf:hover:not(:disabled) {
|
|
background: #AA0000;
|
|
}
|
|
|
|
.btn-edit.job-locked, .btn-pdf.job-locked {
|
|
background: #ccc;
|
|
color: #888;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-edit:disabled, .btn-pdf:disabled {
|
|
background: #ccc;
|
|
color: #888;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-ready {
|
|
background: #e8f5e9;
|
|
color: #388e3c;
|
|
}
|
|
|
|
.status-progress {
|
|
background: #fff3e0;
|
|
color: #f57c00;
|
|
}
|
|
|
|
.date-highlight {
|
|
color: #CC0000 !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Loading and Empty States */
|
|
.loading-message {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #999;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.login-card {
|
|
padding: 40px 30px;
|
|
}
|
|
|
|
.dashboard-header-bar {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.dashboard-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.project-header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.jobs-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.login-card {
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.welcome-text {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
/* Forgot password link below login button */
|
|
.forgot-password-link {
|
|
margin-top: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.forgot-password-link a {
|
|
color: #666;
|
|
font-size: 13px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.forgot-password-link a:hover {
|
|
color: #CC0000;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Auth subtitle + error state (accept-invite, reset-password) */
|
|
.auth-subtitle {
|
|
color: #666;
|
|
font-size: 14px;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.error-state {
|
|
color: #c33 !important;
|
|
}
|
|
|
|
.success-message {
|
|
background-color: #e8f5e9;
|
|
color: #2e7d32;
|
|
padding: 12px 15px;
|
|
border-radius: 6px;
|
|
margin-top: 15px;
|
|
font-size: 14px;
|
|
border-left: 4px solid #2e7d32;
|
|
}
|
|
|
|
/* Dashboard admin button */
|
|
.admin-button {
|
|
background: #1976d2;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 24px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.admin-button:hover {
|
|
background: #1565c0;
|
|
}
|
|
|
|
/* Form label */
|
|
.form-label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #555;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* Admin console */
|
|
.admin-card {
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
padding: 24px;
|
|
}
|
|
|
|
.admin-section-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.admin-table th {
|
|
text-align: left;
|
|
padding: 10px 14px;
|
|
background: #f5f5f5;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #555;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
.admin-table td {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.admin-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.admin-table tr.row-inactive td {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.action-cell {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Role badges */
|
|
.role-badge {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.3px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.role-admin {
|
|
background: #CC0000;
|
|
color: white;
|
|
}
|
|
|
|
.role-user {
|
|
background: #e0e0e0;
|
|
color: #555;
|
|
}
|
|
|
|
/* Action buttons */
|
|
.btn-action {
|
|
padding: 5px 10px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-action:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #e0e0e0;
|
|
color: #333;
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: #ccc;
|
|
}
|
|
|
|
.btn-promote {
|
|
background: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.btn-promote:hover:not(:disabled) {
|
|
background: #388e3c;
|
|
}
|
|
|
|
.btn-demote {
|
|
background: #ff9800;
|
|
color: white;
|
|
}
|
|
|
|
.btn-demote:hover:not(:disabled) {
|
|
background: #f57c00;
|
|
}
|
|
|
|
.btn-deactivate {
|
|
background: #CC0000;
|
|
color: white;
|
|
}
|
|
|
|
.btn-deactivate:hover:not(:disabled) {
|
|
background: #AA0000;
|
|
}
|
|
|
|
.btn-activate {
|
|
background: #1976d2;
|
|
color: white;
|
|
}
|
|
|
|
.btn-activate:hover:not(:disabled) {
|
|
background: #1565c0;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-box {
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
width: 100%;
|
|
max-width: 480px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px 0;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 4px;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px 24px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 0 24px 20px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-secondary.modal-cancel {
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.action-cell {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.admin-table th:nth-child(2),
|
|
.admin-table td:nth-child(2) {
|
|
display: none;
|
|
}
|
|
}
|