uchet-komandirovok/style.css

483 lines
7.0 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
color: #1f2937;
}
.container {
max-width: 1400px;
margin: 0 auto;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
padding: 30px;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
font-size: 2.5rem;
color: #1f2937;
margin-bottom: 8px;
}
.subtitle {
color: #6b7280;
font-size: 1.1rem;
}
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
margin-bottom: 30px;
}
.stat-card {
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
padding: 20px;
border-radius: 12px;
text-align: center;
transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.stat-card.pending {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}
.stat-card.approved {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.stat-card.rejected {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}
.stat-value {
display: block;
font-size: 2.5rem;
font-weight: 700;
color: #1f2937;
}
.stat-label {
display: block;
font-size: 0.9rem;
color: #4b5563;
margin-top: 4px;
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding: 20px;
background: #f9fafb;
border-radius: 12px;
}
.filters {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.chip {
padding: 8px 16px;
border: 2px solid #e5e7eb;
background: #ffffff;
border-radius: 20px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s;
color: #6b7280;
}
.chip:hover {
border-color: #667eea;
color: #667eea;
}
.chip.active {
background: #667eea;
border-color: #667eea;
color: #ffffff;
}
.actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.search {
padding: 10px 16px;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 0.95rem;
width: 280px;
transition: border-color 0.2s;
}
.search:focus {
outline: none;
border-color: #667eea;
}
.btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #f3f4f6;
color: #1f2937;
border: 2px solid #e5e7eb;
}
.btn-secondary:hover {
background: #e5e7eb;
}
.table-section {
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: collapse;
background: #ffffff;
border-radius: 12px;
overflow: hidden;
}
.table thead {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
}
.table th {
padding: 16px 12px;
text-align: left;
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.table td {
padding: 14px 12px;
border-bottom: 1px solid #e5e7eb;
font-size: 0.95rem;
}
.table tbody tr {
transition: background 0.2s;
cursor: pointer;
}
.table tbody tr:hover {
background: #f9fafb;
}
.table tbody tr:last-child td {
border-bottom: none;
}
.status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 0.85rem;
font-weight: 600;
}
.status-pending {
background: #fef3c7;
color: #92400e;
}
.status-approved {
background: #d1fae5;
color: #065f46;
}
.status-rejected {
background: #fee2e2;
color: #991b1b;
}
.action-buttons {
display: flex;
gap: 8px;
}
.btn-sm {
padding: 6px 12px;
font-size: 0.85rem;
}
.btn-edit {
background: #dbeafe;
color: #1e40af;
border: none;
border-radius: 6px;
cursor: pointer;
}
.btn-edit:hover {
background: #bfdbfe;
}
.btn-delete {
background: #fee2e2;
color: #991b1b;
border: none;
border-radius: 6px;
cursor: pointer;
}
.btn-delete:hover {
background: #fecaca;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
}
.modal.active {
display: flex;
}
.modal-content {
background: #ffffff;
border-radius: 16px;
max-width: 600px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
animation: slideIn 0.3s ease;
}
.modal-large {
max-width: 800px;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px;
border-bottom: 1px solid #e5e7eb;
}
.modal-header h2 {
font-size: 1.5rem;
color: #1f2937;
}
.close {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: #9ca3af;
line-height: 1;
}
.close:hover {
color: #1f2937;
}
#form {
padding: 24px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 16px;
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: #374151;
font-size: 0.9rem;
}
.form-group input,
.form-group select {
width: 100%;
padding: 10px 14px;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: #667eea;
}
.form-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 24px;
}
.log-container {
padding: 24px;
max-height: 60vh;
overflow-y: auto;
}
.log-table {
width: 100%;
border-collapse: collapse;
}
.log-table thead {
background: #f3f4f6;
position: sticky;
top: 0;
}
.log-table th,
.log-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
.log-table th {
font-weight: 600;
color: #374151;
}
.log-table td {
font-size: 0.9rem;
color: #4b5563;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #9ca3af;
}
.empty-state svg {
width: 80px;
height: 80px;
margin-bottom: 16px;
opacity: 0.5;
}
@media (max-width: 768px) {
.container {
padding: 16px;
}
.header h1 {
font-size: 1.8rem;
}
.stats {
grid-template-columns: repeat(2, 1fr);
}
.controls {
flex-direction: column;
align-items: stretch;
}
.actions {
flex-direction: column;
}
.search {
width: 100%;
}
.form-row {
grid-template-columns: 1fr;
}
.table {
font-size: 0.85rem;
}
.table th,
.table td {
padding: 10px 8px;
}
}