admin_to_react

This commit is contained in:
2026-08-09 14:13:06 +03:00
commit 5d2fc5773c
163 changed files with 140326 additions and 0 deletions
+401
View File
@@ -0,0 +1,401 @@
/* Общие стили */
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f5f5f5;
}
/* Окно логина */
.login-window {
max-width: 400px;
margin: 12% auto;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-window h2 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
.input-group {
margin-bottom: 20px;
}
.input-group label {
display: block;
margin-bottom: 5px;
color: #666;
}
.input-group input {
width: 95%;
padding: 10px;
border: 1px solid #b9b9b9;
border-radius: 4px;
font-size: 16px;
}
.button-group {
display: flex;
gap: 10px;
}
button {
flex: 1;
padding: 10px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.2s;
}
button[type="submit"] {
background-color: #007bff;
color: white;
}
button[type="submit"]:hover {
background-color: #0056b3;
}
button[type="button"] {
background-color: #6c757d;
color: white;
}
button[type="button"]:hover {
background-color: #545b62;
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
/* Информация о сотруднике */
.employee-info {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.employee-header {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.employee-photo {
width: 200px;
height: 200px;
background: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}
.photo-placeholder {
color: #999;
font-size: 18px;
}
.employee-details {
flex: 1;
}
.employee-details h2 {
margin: 0 0 10px 0;
color: #333;
}
.employee-details p {
margin: 5px 0;
color: #666;
}
/* Секция расчётных листов */
.payslip-section {
margin-top: 30px;
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.payslip-section h3 {
margin: 0 0 20px 0;
color: #333;
font-size: 18px;
}
.period-selector {
margin-bottom: 20px;
}
.period-selector label {
display: block;
margin-bottom: 8px;
color: #555;
font-weight: 500;
}
.period-selector select {
width: 100%;
padding: 10px;
border: 1px solid #ced4da;
border-radius: 4px;
font-size: 16px;
background-color: white;
cursor: pointer;
}
.period-selector select:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.action-buttons {
display: flex;
gap: 10px;
margin-top: 20px;
}
.action-buttons button {
background-color: #28a745;
color: white;
flex: 1;
}
.action-buttons button:hover {
background-color: #218838;
}
.action-buttons button:first-child {
background-color: #007bff;
}
.action-buttons button:first-child:hover {
background-color: #0056b3;
}
/* Верхняя панель с кнопкой назад */
.top-bar {
margin-bottom: 20px;
}
.back-button {
background-color: #6c757d;
color: white;
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
gap: 5px;
transition: background-color 0.2s;
}
.back-button:hover {
background-color: #545b62;
}
/* Делаем кнопку назад компактнее */
.back-button {
flex: 0 0 auto;
width: auto;
}
/* Гостевой режим */
.guest-mode {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.guest-content h2 {
text-align: center;
color: #333;
margin-bottom: 30px;
}
/* Навигация по табам */
.tab-navigation {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 2px solid #f0f0f0;
}
.tab-button {
padding: 12px 24px;
border: none;
background: none;
cursor: pointer;
font-size: 16px;
color: #666;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
}
.tab-button:hover {
color: #007bff;
background-color: #f8f9fa;
}
.tab-button.active {
color: #007bff;
border-bottom-color: #007bff;
background-color: #f8f9fa;
}
/* Контент табов */
.tab-content {
min-height: 400px;
padding: 20px 0;
}
.handbook-content,
.union-content,
.info-content {
line-height: 1.6;
}
.content-text {
white-space: pre-line;
font-size: 14px;
line-height: 1.8;
}
.loading {
text-align: center;
color: #666;
font-style: italic;
padding: 40px;
}
/* Заголовки в контенте */
.tab-content h3 {
color: #333;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.tab-content p {
margin-bottom: 15px;
color: #555;
}
/* --- Handbook Content Styles --- */
.handbook-content {
max-width: 900px;
margin: 0 auto;
padding: 24px 12px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.handbook-content h1 {
text-align: center;
font-size: 2rem;
margin: 24px 0 16px 0;
color: #1a237e;
}
.handbook-content h2 {
text-align: center;
font-size: 1.5rem;
margin: 20px 0 12px 0;
color: #283593;
}
.handbook-content p {
margin: 10px 0;
font-size: 1.08rem;
line-height: 1.6;
}
.handbook-content ul {
margin: 12px 0 12px 32px;
padding-left: 18px;
}
.handbook-content li {
margin: 6px 0;
font-size: 1.05rem;
line-height: 1.5;
}
.handbook-content strong {
font-weight: bold;
color: #000000;
text-align: center;
}
.handbook-content h3 {
font-weight: bold;
color: #000000;
text-align: center;
}
.handbook-content em {
font-style: italic;
color: #555;
text-align: center;
}
.handbook-content h4 {
font-weight: bold;
color: #000000;
text-align: center;
font-size: 1.1rem;
}
.handbook-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 24px;
}
.handbook-table th,
.handbook-table td {
border: 1px solid #ccc;
padding: 8px 12px;
}
.handbook-table th {
background: #f5f5f5;
}
.handbook-content table,
.handbook-content th,
.handbook-content td,
.handbook-content tr {
border: 1px solid #bdbdbd;
border-collapse: collapse;
}
.handbook-content th,
.handbook-content td {
padding: 8px;
}
.handbook-content table {
width: 100%;
border-collapse: collapse;
}