* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    padding: 10px;
}

/* Стили для таблицы пользователей */
.users-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 800px; /* Для горизонтальной прокрутки на мобильных */
}

.users-table th,
.users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.users-table th:last-child,
.users-table td:last-child {
    border-right: none;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.users-table tr:hover {
    background-color: #f5f5f5;
}

/* Стили для зарплаты в таблице пользователей */
.users-table .salary-positive {
    color: #28a745;
    font-weight: 600;
}

.users-table .salary-negative {
    color: #dc3545;
    font-weight: 600;
}

/* Ссылки в таблице пользователей */
.users-table a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.users-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Контейнер для кнопок на странице пользователей */
.users-buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 0;
}

/* Кнопки для страницы пользователей */
.users-page-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.users-page-btn:hover {
    background-color: #0056b3;
}

#add-user-btn {
    background-color: #28a745;
}

#add-user-btn:hover {
    background-color: #218838;
}

#main-btn {
    background-color: #6c757d;
}

#main-btn:hover {
    background-color: #545b62;
}

/* Мобильная версия для таблицы пользователей */
@media screen and (max-width: 768px) {
    .users-table {
        font-size: 12px;
        min-width: 900px; /* Увеличим для всех колонок */
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 10px;
    }
    
    /* Уменьшаем отступы для процентных колонок на мобильных */
    .users-table th:nth-child(n+7),
    .users-table td:nth-child(n+7) {
        padding: 6px 8px;
    }
    
    /* Адаптивные кнопки для страницы пользователей */
    .users-buttons-container {
        flex-direction: column;
        justify-content: stretch;
    }
    
    .users-page-btn {
        width: 100%;
        margin: 2px 0;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .users-table {
        min-width: 850px;
        font-size: 11px;
    }
    
    .users-table th,
    .users-table td {
        padding: 6px 8px;
    }
    
    .users-table .salary-positive, 
    .users-table .salary-negative {
        font-size: 10px;
    }
    
    .users-table-container {
        border: 1px solid #e0e0e0;
        margin: 10px 0;
    }
}

/* Стили для скроллбара в таблице пользователей */
.users-table-container::-webkit-scrollbar {
    height: 8px;
}

.users-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для формы добавления пользователя */
.add-user-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.add-user-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.add-user-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Контейнер для точек */
.points-container {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    background-color: #f8f9fa;
}

.points-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.points-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.points-checkboxes label:hover {
    background-color: #e9ecef;
}

.points-checkboxes input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Поля зарплаты */
.salary-fields {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin: 10px 0;
}

.salary-field-group {
    display: none;
    margin-bottom: 15px;
}

.salary-field-group:last-child {
    margin-bottom: 0;
}

/* Кнопка сохранения */
.submit-btn {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #218838;
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .add-user-container {
        margin: 10px;
        padding: 20px;
    }
    
    .add-user-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .points-checkboxes {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px; /* Увеличиваем для удобства на мобильных */
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .salary-fields {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .add-user-container {
        margin: 5px;
        padding: 15px;
    }
    
    .add-user-container h2 {
        font-size: 18px;
    }
    
    .points-container {
        padding: 10px;
    }
    
    .salary-fields {
        padding: 10px;
    }
}

/* Стили для формы редактирования пользователя */
.edit-user-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.edit-user-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.edit-user-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Контейнер для точек */
.points-container {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    background-color: #f8f9fa;
}

.points-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.points-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.points-checkboxes label:hover {
    background-color: #e9ecef;
}

.points-checkboxes input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Поля зарплаты */
.salary-fields {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin: 10px 0;
}

.salary-field-group {
    display: none;
    margin-bottom: 15px;
}

.salary-field-group:last-child {
    margin-bottom: 0;
}

/* Кнопка сохранения */
.submit-btn-edit {
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn-edit:hover {
    background-color: #0056b3;
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .edit-user-container {
        margin: 10px;
        padding: 20px;
    }
    
    .edit-user-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .points-checkboxes {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .submit-btn-edit {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .salary-fields {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .edit-user-container {
        margin: 5px;
        padding: 15px;
    }
    
    .edit-user-container h2 {
        font-size: 18px;
    }
    
    .points-container {
        padding: 10px;
    }
    
    .salary-fields {
        padding: 10px;
    }
}


/* Стили для таблицы точек */
.dots-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.dots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 600px; /* Для горизонтальной прокрутки на мобильных */
}

.dots-table th,
.dots-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.dots-table th:last-child,
.dots-table td:last-child {
    border-right: none;
}

.dots-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.dots-table tr:hover {
    background-color: #f5f5f5;
}

/* Ссылки в таблице точек */
.dots-table a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dots-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Контейнер для кнопок на странице точек */
.dots-buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 0;
}

/* Кнопки для страницы точек */
.dots-page-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.dots-page-btn:hover {
    background-color: #0056b3;
}

#add-dots {
    background-color: #28a745;
}

#add-dots:hover {
    background-color: #218838;
}

#main-btn {
    background-color: #6c757d;
}

#main-btn:hover {
    background-color: #545b62;
}

/* Мобильная версия для таблицы точек */
@media screen and (max-width: 768px) {
    .dots-table {
        font-size: 12px;
        min-width: 700px;
    }
    
    .dots-table th,
    .dots-table td {
        padding: 8px 10px;
    }
    
    /* Адаптивные кнопки для страницы точек */
    .dots-buttons-container {
        flex-direction: column;
        justify-content: stretch;
    }
    
    .dots-page-btn {
        width: 100%;
        margin: 2px 0;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .dots-table {
        min-width: 650px;
        font-size: 11px;
    }
    
    .dots-table th,
    .dots-table td {
        padding: 6px 8px;
    }
    
    .dots-table-container {
        border: 1px solid #e0e0e0;
        margin: 10px 0;
    }
}

/* Стили для скроллбара в таблице точек */
.dots-table-container::-webkit-scrollbar {
    height: 8px;
}

.dots-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dots-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dots-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для формы добавления точки */
.add-dots-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.add-dots-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.add-dots-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Кнопка сохранения для точек */
.submit-btn-dots {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn-dots:hover {
    background-color: #218838;
}

/* Мобильная версия для формы точек */
@media screen and (max-width: 768px) {
    .add-dots-container {
        margin: 10px;
        padding: 20px;
    }
    
    .add-dots-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .submit-btn-dots {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .add-dots-container {
        margin: 5px;
        padding: 15px;
    }
    
    .add-dots-container h2 {
        font-size: 18px;
    }
}

/* Стили для формы редактирования точки */
.edit-dots-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.edit-dots-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.edit-dots-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Кнопка сохранения для редактирования точек */
.submit-btn-edit-dots {
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn-edit-dots:hover {
    background-color: #0056b3;
}

/* Мобильная версия для формы редактирования точек */
@media screen and (max-width: 768px) {
    .edit-dots-container {
        margin: 10px;
        padding: 20px;
    }
    
    .edit-dots-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .submit-btn-edit-dots {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .edit-dots-container {
        margin: 5px;
        padding: 15px;
    }
    
    .edit-dots-container h2 {
        font-size: 18px;
    }
}


/* Стили для таблицы складов */
.storage-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.storage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 500px; /* Для горизонтальной прокрутки на мобильных */
}

.storage-table th,
.storage-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.storage-table th:last-child,
.storage-table td:last-child {
    border-right: none;
}

.storage-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.storage-table tr:hover {
    background-color: #f5f5f5;
}

/* Ссылки в таблице складов */
.storage-table a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.storage-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Контейнер для кнопок на странице складов */
.storage-buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 0;
}

/* Кнопки для страницы складов */
.storage-page-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.storage-page-btn:hover {
    background-color: #0056b3;
}

#main-btn {
    background-color: #6c757d;
}

#main-btn:hover {
    background-color: #545b62;
}

/* Мобильная версия для таблицы складов */
@media screen and (max-width: 768px) {
    .storage-table {
        font-size: 12px;
        min-width: 550px;
    }
    
    .storage-table th,
    .storage-table td {
        padding: 8px 10px;
    }
    
    /* Адаптивные кнопки для страницы складов */
    .storage-buttons-container {
        flex-direction: column;
        justify-content: stretch;
    }
    
    .storage-page-btn {
        width: 100%;
        margin: 2px 0;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .storage-table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .storage-table th,
    .storage-table td {
        padding: 6px 8px;
    }
    
    .storage-table-container {
        border: 1px solid #e0e0e0;
        margin: 10px 0;
    }
}

/* Стили для скроллбара в таблице складов */
.storage-table-container::-webkit-scrollbar {
    height: 8px;
}

.storage-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.storage-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.storage-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Стили для страницы просмотра склада */
.storage-view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.storage-section-title {
    margin: 30px 0 15px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.storage-section-title:first-child {
    margin-top: 0;
}

/* Таблицы для просмотра склада */
.storage-view-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 400px;
}

.storage-view-table th,
.storage-view-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.storage-view-table th:last-child,
.storage-view-table td:last-child {
    border-right: none;
}

.storage-view-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.storage-view-table tr:hover {
    background-color: #f5f5f5;
}

/* Ссылки в таблицах склада */
.storage-view-table a {
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.storage-view-table a:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Контейнер для кнопок на странице просмотра склада */
.storage-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: flex-end;
}

/* Кнопки для страницы просмотра склада */
.storage-view-btn {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.storage-view-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Специфические стили для кнопок */
#ph-add-consumable,
#ph-create-coming,
#ph-add-package,
#fp-add-product,
#fp-create-coming,
#fp-add-package {
    background-color: #28a745;
}

#ph-history-coming,
#fp-history-coming,
#ph-consumables-report,
#fp-consumables-report {
    background-color: #007bff;
}

.main-btn {
    background-color: #6c757d;
    margin-left: auto;
}

.main-btn:hover {
    background-color: #545b62;
}

/* Мобильная версия для страницы просмотра склада */
@media screen and (max-width: 768px) {
    .storage-view-container {
        padding: 10px;
    }
    
    .storage-section-title {
        font-size: 18px;
        margin: 25px 0 12px 0;
    }
    
    .storage-view-table {
        font-size: 12px;
        min-width: 450px;
    }
    
    .storage-view-table th,
    .storage-view-table td {
        padding: 8px 10px;
    }
    
    /* Адаптивные кнопки для мобильных */
    .storage-buttons-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .storage-view-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .main-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .storage-view-container {
        padding: 5px;
    }
    
    .storage-section-title {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }
    
    .storage-view-table {
        min-width: 400px;
        font-size: 11px;
    }
    
    .storage-view-table th,
    .storage-view-table td {
        padding: 6px 8px;
    }
    
    .storage-buttons-container {
        margin: 15px 0;
    }
}

/* Стили для скроллбара в таблицах склада */
.storage-table-container::-webkit-scrollbar {
    height: 8px;
}

.storage-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.storage-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.storage-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Общие стили для форм склада */
.storage-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.storage-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.storage-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.storage-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storage-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.storage-form-group input,
.storage-form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.storage-form-group input:focus,
.storage-form-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Кнопки для форм склада */
.storage-submit-btn {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.storage-submit-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Стили для таблиц приходов */
.storage-coming-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.storage-coming-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.storage-coming-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.storage-date-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.storage-date-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.storage-date-group input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.storage-date-group input:focus {
    outline: none;
    border-color: #007bff;
}

/* Таблицы для приходов */
.storage-coming-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.storage-coming-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 400px;
}

.storage-coming-table th,
.storage-coming-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.storage-coming-table th:last-child,
.storage-coming-table td:last-child {
    border-right: none;
}

.storage-coming-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.storage-coming-table tr:hover {
    background-color: #f5f5f5;
}

.storage-coming-table input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 80px;
    text-align: center;
    font-size: 14px;
}

.storage-coming-table input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Кнопка для создания прихода */
.storage-coming-submit-btn {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.storage-coming-submit-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Мобильная версия для форм склада */
@media screen and (max-width: 768px) {
    .storage-form-container,
    .storage-coming-container {
        margin: 10px;
        padding: 20px;
    }
    
    .storage-form-title,
    .storage-coming-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .storage-form-group input,
    .storage-form-group select {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .storage-submit-btn,
    .storage-coming-submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .storage-date-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .storage-date-group label {
        text-align: center;
    }
    
    .storage-coming-table {
        font-size: 12px;
        min-width: 450px;
    }
    
    .storage-coming-table th,
    .storage-coming-table td {
        padding: 8px 10px;
    }
    
    .storage-coming-table input[type="text"] {
        width: 60px;
        padding: 6px 8px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .storage-form-container,
    .storage-coming-container {
        margin: 5px;
        padding: 15px;
    }
    
    .storage-form-title,
    .storage-coming-title {
        font-size: 18px;
    }
    
    .storage-coming-table {
        min-width: 400px;
        font-size: 11px;
    }
    
    .storage-coming-table th,
    .storage-coming-table td {
        padding: 6px 8px;
    }
}

/* Стили для скроллбара в таблицах приходов */
.storage-coming-table-container::-webkit-scrollbar {
    height: 8px;
}

.storage-coming-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.storage-coming-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.storage-coming-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для истории приходов */
.storage-history-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.storage-history-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.storage-history-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.storage-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 600px;
}

.storage-history-table th,
.storage-history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.storage-history-table th:last-child,
.storage-history-table td:last-child {
    border-right: none;
}

.storage-history-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.storage-history-table tr:hover {
    background-color: #f8f9fa;
}

.storage-history-table tr:nth-child(even) {
    background-color: #fafafa;
}

.storage-history-table tr:nth-child(even):hover {
    background-color: #f1f3f4;
}

/* Сообщение об отсутствии данных */
.storage-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #dee2e6;
}

/* Кнопки для истории */
.storage-history-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.storage-history-btn {
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 160px;
}

.storage-history-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

#back-btn {
    background-color: #007bff;
}

#back-btn:hover {
    background-color: #0056b3;
}

/* Мобильная версия для истории приходов */
@media screen and (max-width: 768px) {
    .storage-history-container {
        margin: 10px;
        padding: 20px;
    }
    
    .storage-history-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .storage-history-table {
        font-size: 12px;
        min-width: 650px;
    }
    
    .storage-history-table th,
    .storage-history-table td {
        padding: 8px 10px;
    }
    
    .storage-history-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .storage-history-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .storage-history-container {
        margin: 5px;
        padding: 15px;
    }
    
    .storage-history-title {
        font-size: 18px;
    }
    
    .storage-history-table {
        min-width: 600px;
        font-size: 11px;
    }
    
    .storage-history-table th,
    .storage-history-table td {
        padding: 6px 8px;
    }
    
    .storage-history-empty {
        padding: 30px 15px;
        font-size: 14px;
    }
}

/* Стили для скроллбара в таблицах истории */
.storage-history-table-container::-webkit-scrollbar {
    height: 8px;
}

.storage-history-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.storage-history-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.storage-history-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для формы приходного отчёта */
.income-report-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.income-report-title {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.income-report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.income-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.income-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.income-form-group input,
.income-form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.income-form-group input:focus,
.income-form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.income-form-group input:hover,
.income-form-group select:hover {
    border-color: #007bff;
}

/* Кнопки для приходного отчёта */
.income-buttons-container {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.income-submit-btn {
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.income-submit-btn:hover {
    background-color: #218838;
}

.income-main-btn {
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.income-main-btn:hover {
    background-color: #545b62;
}

/* Стили для поля счётчика страниц */
#printed_pages_counter_start {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

/* Мобильная версия для приходного отчёта */
@media screen and (max-width: 768px) {
    .income-report-container {
        margin: 20px;
        padding: 25px;
        max-width: none;
    }
    
    .income-report-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .income-form-group input,
    .income-form-group select {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .income-buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .income-submit-btn,
    .income-main-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .income-report-container {
        margin: 10px;
        padding: 20px;
    }
    
    .income-report-title {
        font-size: 18px;
    }
    
    .income-form-group input,
    .income-form-group select {
        padding: 12px 10px;
    }
    
    .income-buttons-container {
        margin-top: 20px;
    }
}

/* Стили для страницы создания отчёта */
.create-report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.create-report-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.create-report-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Группы формы */
.form-section {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #007bff;
}

/* Стили для таблиц */
.report-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 400px;
}

.report-table th,
.report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.report-table th:last-child,
.report-table td:last-child {
    border-right: none;
}

.report-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.report-table tr:hover {
    background-color: #f5f5f5;
}

.report-table input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80px;
    text-align: center;
    font-size: 14px;
}

.report-table input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Стили для вывода данных */
.data-output {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 600;
    color: #495057;
    min-height: 20px;
}

.output-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.output-group strong {
    min-width: 180px;
    color: #333;
}

/* Стили для зарплаты */
.salary-section {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.salary-section p {
    margin: 8px 0;
    font-size: 14px;
}

#shift_info_output1 {
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic;
    margin-top: -5px !important;
}

/* Кнопки */
.report-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.report-submit-btn {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.report-submit-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.report-main-btn {
    padding: 15px 30px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.report-main-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* Мобильная версия для создания отчёта */
@media screen and (max-width: 768px) {
    .create-report-container {
        margin: 10px;
        padding: 20px;
    }
    
    .create-report-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
        min-width: auto;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .report-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .report-table th,
    .report-table td {
        padding: 8px 10px;
    }
    
    .report-table input[type="number"] {
        width: 60px;
        padding: 6px 8px;
    }
    
    .output-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .output-group strong {
        min-width: auto;
    }
    
    .report-buttons-container {
        flex-direction: column;
    }
    
    .report-submit-btn,
    .report-main-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .create-report-container {
        margin: 5px;
        padding: 15px;
    }
    
    .create-report-title {
        font-size: 18px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .form-section h3 {
        font-size: 16px;
    }
    
    .report-table {
        min-width: 450px;
        font-size: 11px;
    }
    
    .report-table th,
    .report-table td {
        padding: 6px 8px;
    }
    
    .salary-section {
        padding: 15px;
    }
    
    .salary-section p {
        font-size: 13px;
    }
}

/* Стили для скроллбара в таблицах отчёта */
.report-table-container::-webkit-scrollbar {
    height: 8px;
}

.report-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.report-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.report-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для страницы создания отчёта аквагримёра (как у фотографа) */
.create-report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.create-report-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.create-report-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Группы формы */
.form-section {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #007bff;
}

/* Стили для таблиц */
.report-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 400px;
}

.report-table th,
.report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.report-table th:last-child,
.report-table td:last-child {
    border-right: none;
}

.report-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.report-table tr:hover {
    background-color: #f5f5f5;
}

.report-table input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80px;
    text-align: center;
    font-size: 14px;
}

.report-table input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Стили для вывода данных */
.data-output {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 600;
    color: #495057;
    min-height: 20px;
}

.output-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.output-group strong {
    min-width: 180px;
    color: #333;
}

/* Стили для зарплаты */
.salary-section {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.salary-section p {
    margin: 8px 0;
    font-size: 14px;
}

/* Кнопки */
.report-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.report-submit-btn {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.report-submit-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.report-main-btn {
    padding: 15px 30px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.report-main-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* Мобильная версия для создания отчёта */
@media screen and (max-width: 768px) {
    .create-report-container {
        margin: 10px;
        padding: 20px;
    }
    
    .create-report-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
        min-width: auto;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .report-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .report-table th,
    .report-table td {
        padding: 8px 10px;
    }
    
    .report-table input[type="number"] {
        width: 60px;
        padding: 6px 8px;
    }
    
    .output-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .output-group strong {
        min-width: auto;
    }
    
    .report-buttons-container {
        flex-direction: column;
    }
    
    .report-submit-btn,
    .report-main-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .create-report-container {
        margin: 5px;
        padding: 15px;
    }
    
    .create-report-title {
        font-size: 18px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .form-section h3 {
        font-size: 16px;
    }
    
    .report-table {
        min-width: 450px;
        font-size: 11px;
    }
    
    .report-table th,
    .report-table td {
        padding: 6px 8px;
    }
    
    .salary-section {
        padding: 15px;
    }
    
    .salary-section p {
        font-size: 13px;
    }
}

/* Стили для скроллбара в таблицах отчёта */
.report-table-container::-webkit-scrollbar {
    height: 8px;
}

.report-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.report-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.report-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для страницы истории отчётов */
.history-report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.history-report-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Фильтры */
.history-filters {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.history-filters h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: #007bff;
}

/* Контейнер для отчётов */
.reports-container {
    margin-top: 25px;
}

/* Блоки отчётов */
.report-block {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.report-block:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #007bff;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.report-type {
    background-color: #007bff;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.report-type.photographer {
    background-color: #ffffff;
}

.report-type.aquagrim {
    background-color: #ffffff;
}

.report-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.report-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.report-info-item strong {
    color: #333;
}

/* Таблицы в отчётах */
.reports-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 500px;
}

.reports-table th,
.reports-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.reports-table th:last-child,
.reports-table td:last-child {
    border-right: none;
}

.reports-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.reports-table tr:hover {
    background-color: #f5f5f5;
}

/* Сводки */
.summary {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 10px 0;
    font-size: 14px;
}

.summary b {
    color: #333;
}

/* Информация о зарплате */
.salary-info {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.salary-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #007bff;
    padding-bottom: 5px;
}

.salary-info p {
    margin: 5px 0;
    font-size: 14px;
}

.salary-info.aquagrim {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
}

.salary-info.aquagrim h4 {
    color: #333;
    border-bottom-color: #007bff;
}

/* Действия с отчётом */
.report-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.edit-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.edit-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.delete-btn {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #c82333;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.report-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Сообщение об отсутствии данных */
.no-reports {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-reports p {
    margin: 0;
}

/* Кнопки */
.history-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.history-main-btn {
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 200px;
}

.history-main-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* Индикатор загрузки */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 16px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #6c757d; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #6c757d, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #6c757d, .5em 0 0 #6c757d; }
}

/* Мобильная версия для истории отчётов */
@media screen and (max-width: 768px) {
    .history-report-container {
        margin: 10px;
        padding: 20px;
    }
    
    .history-report-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .history-filters {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .report-block {
        padding: 15px;
    }
    
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .report-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .reports-table {
        font-size: 12px;
        min-width: 550px;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 8px 10px;
    }
    
    .summary {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .salary-info {
        padding: 12px;
    }
    
    .salary-info p {
        font-size: 13px;
    }
    
    .report-actions {
        justify-content: center;
    }
    
    .edit-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .delete-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .history-buttons-container {
        flex-direction: column;
    }
    
    .history-main-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .history-report-container {
        margin: 5px;
        padding: 15px;
    }
    
    .history-report-title {
        font-size: 18px;
    }
    
    .history-filters {
        padding: 12px;
    }
    
    .history-filters h3 {
        font-size: 16px;
    }
    
    .report-block {
        padding: 12px;
    }
    
    .report-title {
        font-size: 16px;
    }
    
    .reports-table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 6px 8px;
    }
    
    .no-reports {
        padding: 30px 15px;
        font-size: 14px;
    }
    
    .loading {
        padding: 15px;
        font-size: 14px;
    }
}

/* Стили для скроллбара в таблицах истории */
.reports-table-container::-webkit-scrollbar {
    height: 8px;
}

.reports-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.reports-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.reports-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для страницы редактирования отчётов */
.edit-report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.edit-report-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.edit-report-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Группы формы для редактирования */
.edit-form-section {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.edit-form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.edit-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.edit-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.edit-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.edit-form-group input,
.edit-form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.edit-form-group input:focus,
.edit-form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.edit-form-group input:hover,
.edit-form-group select:hover {
    border-color: #007bff;
}

/* Таблицы для редактирования */
.edit-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.edit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 400px;
}

.edit-table th,
.edit-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.edit-table th:last-child,
.edit-table td:last-child {
    border-right: none;
}

.edit-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.edit-table tr:hover {
    background-color: #f5f5f5;
}

.edit-table input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80px;
    text-align: center;
    font-size: 14px;
}

.edit-table input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Вывод данных в редактировании */
.edit-data-output {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 600;
    color: #495057;
    min-height: 20px;
}

.edit-output-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.edit-output-group strong {
    min-width: 180px;
    color: #333;
}

/* Зарплата в редактировании */
.edit-salary-section {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.edit-salary-section p {
    margin: 8px 0;
    font-size: 14px;
}

#shift_info_output1 {
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic;
    margin-top: -5px !important;
}

/* Кнопки для редактирования */
.edit-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.edit-submit-btn {
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.edit-submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.edit-main-btn {
    padding: 15px 30px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.edit-main-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.edit-back-btn {
    padding: 15px 30px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.edit-back-btn:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

/* Мобильная версия для редактирования отчётов */
@media screen and (max-width: 768px) {
    .edit-report-container {
        margin: 10px;
        padding: 20px;
    }
    
    .edit-report-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .edit-form-section {
        padding: 15px;
    }
    
    .edit-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .edit-form-group {
        width: 100%;
        min-width: auto;
    }
    
    .edit-form-group input,
    .edit-form-group select {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .edit-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .edit-table th,
    .edit-table td {
        padding: 8px 10px;
    }
    
    .edit-table input[type="number"] {
        width: 60px;
        padding: 6px 8px;
    }
    
    .edit-output-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .edit-output-group strong {
        min-width: auto;
    }
    
    .edit-buttons-container {
        flex-direction: column;
    }
    
    .edit-submit-btn,
    .edit-main-btn,
    .edit-back-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .edit-report-container {
        margin: 5px;
        padding: 15px;
    }
    
    .edit-report-title {
        font-size: 18px;
    }
    
    .edit-form-section {
        padding: 12px;
    }
    
    .edit-form-section h3 {
        font-size: 16px;
    }
    
    .edit-table {
        min-width: 450px;
        font-size: 11px;
    }
    
    .edit-table th,
    .edit-table td {
        padding: 6px 8px;
    }
    
    .edit-salary-section {
        padding: 15px;
    }
    
    .edit-salary-section p {
        font-size: 13px;
    }
}

/* Стили для скроллбара в таблицах редактирования */
.edit-table-container::-webkit-scrollbar {
    height: 8px;
}

.edit-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.edit-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.edit-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для страницы зарплаты */
.salary-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.salary-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.salary-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.profession {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.salary-section {
    margin-bottom: 30px;
}

.salary-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Таблицы зарплаты */
.salary-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}
.salary-table-container a {
    text-decoration: none;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 800px;
}

.salary-table th,
.salary-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.salary-table th:last-child,
.salary-table td:last-child {
    border-right: none;
}

.salary-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.salary-table tr:hover {
    background-color: #f5f5f5;
}

/* Стили для зарплаты */
.salary-positive {
    color: #28a745;
    font-weight: 600;
}

.salary-negative {
    color: #dc3545;
    font-weight: 600;
}

.salary-details {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

/* Форма списания */
.deduction-form {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.deduction-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.salary-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.salary-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.salary-form input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.salary-form input:focus {
    outline: none;
    border-color: #007bff;
}

.input-with-currency {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-currency input {
    flex: 1;
}

.currency {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.salary-submit-btn {
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.salary-submit-btn:hover {
    background-color: #c82333;
}

/* Итоговая информация */
.salary-summary {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.salary-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item.final-balance {
    border-top: 2px solid #007bff;
    padding-top: 15px;
    margin-top: 5px;
    font-size: 16px;
    background-color: #ffffff;
    margin: 10px -15px -15px -15px;
    padding: 15px;
    border-radius: 0 0 6px 6px;
}

.summary-label {
    font-weight: 600;
    color: #333;
}

.summary-value {
    font-weight: 600;
}

/* Кнопки */
.salary-buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.salary-back-btn {
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.salary-back-btn:hover {
    background-color: #545b62;
}

/* Мобильная версия для зарплаты */
@media screen and (max-width: 768px) {
    .salary-container {
        margin: 10px;
        padding: 15px;
    }
    
    .salary-header h2 {
        font-size: 24px;
    }
    
    .salary-table {
        font-size: 12px;
        min-width: 900px;
    }
    
    .salary-table th,
    .salary-table td {
        padding: 8px 10px;
    }
    
    .deduction-form {
        padding: 20px;
    }
    
    .salary-form input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .salary-submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .salary-summary {
        padding: 20px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .summary-item.final-balance {
        flex-direction: row;
        align-items: center;
        margin: 10px -10px -10px -10px;
        padding: 15px 10px;
    }
    
    .salary-buttons-container {
        flex-direction: column;
    }
    
    .salary-back-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .salary-container {
        margin: 5px;
        padding: 10px;
    }
    
    .salary-header h2 {
        font-size: 20px;
    }
    
    .profession {
        font-size: 14px;
    }
    
    .salary-table {
        min-width: 850px;
        font-size: 11px;
    }
    
    .salary-table th,
    .salary-table td {
        padding: 6px 8px;
    }
    
    .salary-details {
        font-size: 0.8em;
    }
    
    .deduction-form {
        padding: 15px;
    }
    
    .salary-summary {
        padding: 15px;
    }
    
    .summary-item.final-balance {
        font-size: 15px;
        margin: 10px -5px -5px -5px;
        padding: 12px 5px;
    }
}

/* Стили для скроллбара в таблицах зарплаты */
.salary-table-container::-webkit-scrollbar {
    height: 8px;
}

.salary-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.salary-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.salary-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для главной страницы */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
}

.main-welcome {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
}

.main-welcome h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-welcome p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.main-welcome .username {
    color: #007bff;
    font-weight: 600;
}

.main-welcome .role {
    color: #28a745;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Контейнер для кнопок главной страницы */
.main-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Кнопки главной страницы */
.main-btn {
    padding: 16px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.main-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.main-btn:active {
    transform: translateY(0);
}

#logout {
    margin-top: 20px;
    background-color: #6c757d;
}

#logout:hover {
    background-color: #545b62;
}

/* Мобильная версия для главной страницы */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 15px;
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .main-welcome {
        margin-bottom: 30px;
    }
    
    .main-welcome h1 {
        font-size: 2rem;
    }
    
    .main-welcome p {
        font-size: 1rem;
    }
    
    .main-welcome .role {
        font-size: 1.1rem;
    }
    
    .main-buttons-container {
        max-width: 100%;
        gap: 10px;
    }
    
    .main-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .main-container {
        padding: 10px;
        padding-top: 30px;
    }
    
    .main-welcome {
        margin-bottom: 25px;
    }
    
    .main-welcome h1 {
        font-size: 1.75rem;
    }
    
    .main-welcome p {
        font-size: 0.95rem;
    }
    
    .main-welcome .role {
        font-size: 1rem;
    }
    
    .main-buttons-container {
        gap: 8px;
    }
    
    .main-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    #logout {
        margin-top: 15px;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-welcome,
.main-buttons-container .main-btn {
    animation: fadeInUp 0.5s ease-out;
}

.main-buttons-container .main-btn:nth-child(1) { animation-delay: 0.1s; }
.main-buttons-container .main-btn:nth-child(2) { animation-delay: 0.15s; }
.main-buttons-container .main-btn:nth-child(3) { animation-delay: 0.2s; }
.main-buttons-container .main-btn:nth-child(4) { animation-delay: 0.25s; }
.main-buttons-container .main-btn:nth-child(5) { animation-delay: 0.3s; }
.main-buttons-container .main-btn:nth-child(6) { animation-delay: 0.35s; }
.main-buttons-container .main-btn:nth-child(7) { animation-delay: 0.4s; }
.main-buttons-container .main-btn:nth-child(8) { animation-delay: 0.45s; }
.main-buttons-container .main-btn:nth-child(9) { animation-delay: 0.5s; }


/* Стили для страницы авторизации */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Сообщение об ошибке */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    text-align: center;
}

/* Форма логина */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.login-form input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

.login-form input:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.login-form input:hover {
    border-color: #007bff;
}

.login-form input::placeholder {
    color: #999;
}

/* Кнопка входа */
.login-submit-btn {
    padding: 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильная версия для страницы авторизации */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 15px;
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    }
    
    .login-form-container {
        padding: 30px 25px;
        margin: 10px;
        max-width: none;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    .login-form input {
        padding: 14px;
        font-size: 16px; /* Увеличиваем для удобства на мобильных */
    }
    
    .login-submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .error-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-form-container {
        padding: 25px 20px;
        margin: 5px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .login-form input {
        padding: 12px;
    }
    
    .login-submit-btn {
        padding: 12px;
    }
}

/* Эффект при загрузке */
.login-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.login-form .form-group {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.login-form .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.login-submit-btn {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}


/* Стили для финального отчёта */
.final-report-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
}

.final-report-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.final-report-header h1 {
    color: #333;
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Фильтры для финального отчёта */
.final-filters {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.final-filters h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.final-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    text-align: center;
}

.filter-group input,
.filter-group select {
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007bff;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 120px;
}

.filter-btn:hover {
    background-color: #0056b3;
}

.filter-btn.reset {
    background-color: #6c757d;
}

.filter-btn.reset:hover {
    background-color: #545b62;
}

/* Итоговая статистика */
.final-summary {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.final-summary h2 {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.summary-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
}

.summary-item h3 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* Таблица финального отчёта */
.final-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.final-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
    min-width: 1200px;
}

.final-table th,
.final-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    vertical-align: middle;
}

.final-table th:last-child,
.final-table td:last-child {
    border-right: none;
}

.final-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
    font-size: 11px;
}

.final-table .section-header {
    background-color: #e8f4f8;
    color: #333;
    font-size: 11px;
}

.final-table .date-row {
    background-color: #e8f4f8;
    font-weight: 600;
    font-size: 11px;
}

.final-table .total-row {
    background-color: #d4edda;
    font-weight: 600;
}

.final-table .data-row:hover {
    background-color: #f5f5f5;
}

.final-table .empty-row {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

/* Кнопки действий */
.final-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.final-action-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.final-action-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
}

.final-action-btn.main {
    background-color: #6c757d;
}

.final-action-btn.main:hover {
    background-color: #545b62;
}

/* Сообщение об отсутствии данных */
.final-no-data {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
    font-size: 14px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #dee2e6;
}

.final-no-data p {
    margin: 0;
}

/* Мобильная версия для финального отчёта */
@media screen and (max-width: 768px) {
    .final-report-container {
        margin: 10px;
        padding: 10px;
        max-width: 100%;
    }
    
    .final-report-header h1 {
        font-size: 18px;
    }
    
    .final-filters {
        padding: 12px;
    }
    
    .final-filters h2 {
        font-size: 14px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .final-summary {
        padding: 12px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .summary-item {
        padding: 10px;
    }
    
    .summary-value {
        font-size: 14px;
    }
    
    .final-table {
        font-size: 11px;
        min-width: 1100px;
    }
    
    .final-table th,
    .final-table td {
        padding: 6px 8px;
    }
    
    .final-actions {
        flex-direction: column;
    }
    
    .final-action-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

/* Компактная версия для очень маленьких устройств */
@media screen and (max-width: 480px) {
    .final-report-container {
        margin: 5px;
        padding: 8px;
    }
    
    .final-report-header h1 {
        font-size: 16px;
    }
    
    .final-filters {
        padding: 10px;
    }
    
    .final-summary {
        padding: 10px;
    }
    
    .final-table {
        min-width: 1000px;
        font-size: 10px;
    }
    
    .final-table th,
    .final-table td {
        padding: 5px 6px;
    }
    
    .final-no-data {
        padding: 20px 10px;
        font-size: 13px;
    }
}

/* Стили для скроллбара в таблице */
.final-table-container::-webkit-scrollbar {
    height: 6px;
}

.final-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.final-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.final-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для информации о браках и подсчёте фотографий */
.marriages-info {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.marriages-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #007bff;
    padding-bottom: 8px;
}

.marriages-details {
    margin: 5px 0;
    font-size: 14px;
}

.marriages-details p {
    margin: 5px 0;
    font-size: 14px;
}

.photos-calculation {
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.photos-calculation h5 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 15px;
}

.photos-calculation p {
    margin: 4px 0;
    font-size: 14px;
    padding: 2px 0;
}

/* Цвета для статусов расхождений */
.photos-calculation p[style*="color: green"] {
    background-color: #d4edda;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.photos-calculation p[style*="color: orange"] {
    background-color: #fff3cd;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}

.photos-calculation p[style*="color: red"] {
    background-color: #f8d7da;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Стили для скроллируемых таблиц в отчётах */
.scrollable-table-section {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
}

.scrollable-table-section .report-table-container {
    margin: 0;
    border: none;
    box-shadow: none;
}

.scrollable-table-section .report-table {
    min-width: 400px;
}

.scrollable-table-section .report-table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}



/* Мобильная версия для скроллируемых таблиц */
@media screen and (max-width: 768px) {
    .scrollable-table-section {
        max-height: 300px;
    }
    
    .scrollable-table-section .report-table {
        min-width: 500px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .scrollable-table-section {
        max-height: 250px;
    }
    
    .scrollable-table-section .report-table {
        min-width: 450px;
        font-size: 11px;
    }
}

/* Стили для выбора периода */
.period-selector {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.period-selector h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.period-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.period-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.period-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.period-form select,
.period-form input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.period-submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.period-submit-btn:hover {
    background-color: #0056b3;
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .period-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .period-form .form-group {
        width: 100%;
    }
}


/* Стили для заголовка склада */
.storage-header {
    text-align: center;
}

.storage-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

/* Мобильная версия для заголовка склада */
@media screen and (max-width: 768px) {
    .storage-header h1 {
        font-size: 24px;
    }
}

/* ph_consumables_report.css - Стили для отчета по расходникам фотографа */

.report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.report-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.report-note {
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Стили для таблицы в стиле storage.php */
.consumables-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.consumables-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 800px;
}

.consumables-table th,
.consumables-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.consumables-table th:last-child,
.consumables-table td:last-child {
    border-right: none;
}

.consumables-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
    text-align: center;
}

.consumables-table tr:hover {
    background-color: #f5f5f5;
}

.consumables-table td {
    text-align: center;
}

.consumables-table input[type="number"] {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.consumables-table input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
}

/* Стили для кнопок */
.report-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.report-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 160px;
}

.report-btn:hover {
    background-color: #0056b3;
}

.report-btn.save {
    background-color: #28a745;
}

.report-btn.save:hover {
    background-color: #218838;
}

.report-btn.cancel {
    background-color: #6c757d;
}

.report-btn.cancel:hover {
    background-color: #545b62;
}

/* Стили для сообщений */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

/* Стили для предупреждений */
.warning-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .report-container {
        margin: 10px;
        padding: 20px;
    }
    
    .report-title {
        font-size: 20px;
    }
    
    .consumables-table {
        font-size: 12px;
        min-width: 900px;
    }
    
    .consumables-table th,
    .consumables-table td {
        padding: 8px 10px;
    }
    
    .report-buttons-container {
        flex-direction: column;
    }
    
    .report-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .consumables-table input[type="number"] {
        width: 60px;
        padding: 6px;
    }
}

@media screen and (max-width: 480px) {
    .report-container {
        margin: 5px;
        padding: 15px;
    }
    
    .report-title {
        font-size: 18px;
    }
    
    .consumables-table {
        min-width: 850px;
        font-size: 11px;
    }
    
    .consumables-table th,
    .consumables-table td {
        padding: 6px 8px;
    }
    
    .empty-message {
        padding: 30px 15px;
        font-size: 14px;
    }
}

.expenses-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.expenses-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.expenses-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.user-info {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

/* Стили для директора (админ группы) */
.admin-group {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.admin-header {
    background-color: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.admin-header:hover {
    background-color: #e9ecef;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    font-weight: bold;
    font-size: 16px;
}

.admin-count {
    color: #6c757d;
    font-size: 14px;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.admin-expenses-container {
    display: none;
    padding: 20px;
    background-color: white;
}

.admin-expenses-container.expanded {
    display: block;
}

.no-expenses {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.expenses-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.expenses-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.expenses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    min-width: 600px;
}

.expenses-table th,
.expenses-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.expenses-table th:last-child,
.expenses-table td:last-child {
    border-right: none;
}

.expenses-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.expenses-table tr:hover {
    background-color: #f5f5f5;
}

/* ИЗМЕНЕНО: Цвет суммы теперь обычный */
.expenses-table .amount {
    text-align: right;
    font-weight: 600;
    color: #333; /* Было #dc3545 */
}

.expenses-table .actions {
    text-align: center;
    white-space: nowrap;
}

/* ИЗМЕНЕНО: Стиль ссылки удаления как в users.php */
.delete-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.delete-link:hover {
    text-decoration: underline;
}

/* Быстрая навигация по месяцам */
.month-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.month-nav-btn {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.month-nav-btn:hover {
    background-color: #545b62;
}

.month-nav-btn.current {
    background-color: #28a745;
    font-weight: bold;
}

/* ИЗМЕНЕНО: Стиль для компактного блока итогов */
.compact-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 16px;
}

.compact-summary-label {
    font-weight: 600;
    color: #333;
}

.compact-summary-value {
    font-weight: 600;
    color: #333; /* Обычный цвет текста */
}

/* ИЗМЕНЕНО: Кнопка добавления расхода справа */
.add-expense-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ИЗМЕНЕНО: Стиль кнопки добавления расхода как в users.php */
.add-expense-btn {
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.add-expense-btn:hover {
    background-color: #218838;
}

/* ИЗМЕНЕНО: Кнопка на главную как в users.php */
.main-page-btn {
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.main-page-btn:hover {
    background-color: #545b62;
}

@media screen and (max-width: 768px) {
    .expenses-container {
        margin: 10px;
        padding: 15px;
    }
    
    .expenses-header h2 {
        font-size: 24px;
    }
    
    .expenses-table {
        font-size: 12px;
        min-width: 700px;
    }
    
    .expenses-table th,
    .expenses-table td {
        padding: 8px 10px;
    }
    
    .month-nav {
        gap: 5px;
    }
    
    .month-nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .compact-summary {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .add-expense-btn-container {
        justify-content: center;
    }
    
    .add-expense-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .expenses-container {
        margin: 5px;
        padding: 10px;
    }
    
    .expenses-header h2 {
        font-size: 20px;
    }
    
    .user-info {
        font-size: 14px;
    }
    
    .expenses-table {
        min-width: 650px;
        font-size: 11px;
    }
    
    .expenses-table th,
    .expenses-table td {
        padding: 6px 8px;
    }
}
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #c62828;
    margin-bottom: 20px;
    font-weight: bold;
}

.role-display {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 5px;
}

.validation-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

.admin-self-container {
    padding: 15px;
    background-color: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 5px;
    margin: 10px 0;
}

.admin-self-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.admin-self-checkbox {
    transform: scale(1.2);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #c62828;
    margin-bottom: 20px;
    font-weight: bold;
}

.role-display {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-weight: bold;
}

.admin-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-bottom: 15px;
    font-size: 14px;
}

.validation-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

.locked-profession, .locked-role {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    font-weight: bold;
    color: #495057;
}

.admin-self-container {
    padding: 15px;
    background-color: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 5px;
    margin: 10px 0;
}

.admin-self-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.admin-self-checkbox {
    transform: scale(1.2);
}

.period-selector {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.period-selector h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #007bff;
    padding-bottom: 8px;
}

.period-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.period-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.period-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.period-form select,
.period-form input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.period-submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.period-submit-btn:hover {
    background-color: #0056b3;
}

.period-info {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.month-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.month-nav-btn {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.month-nav-btn:hover {
    background-color: #545b62;
}

.month-nav-btn.current {
    background-color: #28a745;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .period-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .period-form .form-group {
        width: 100%;
    }
    
    .month-nav {
        gap: 5px;
    }
    
    .month-nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.admin-group {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.admin-header {
    background-color: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.admin-header:hover {
    background-color: #e9ecef;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    font-weight: bold;
    font-size: 16px;
}

.admin-role {
    color: #6c757d;
    font-size: 14px;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
}

.users-container {
    display: none;
    padding: 0;
}

.users-container.expanded {
    display: block;
}

.no-users {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.admin-row {
    background-color: #e8f4f8 !important;
    font-weight: bold;
}

.admin-row:hover {
    background-color: #d4edda !important;
}

.director-group {
    border-color: #28a745;
}

.director-header {
    background-color: #d4edda !important;
}

.director-header:hover {
    background-color: #c3e6cb !important;
}

.director-name {
    color: #155724;
    font-weight: bold;
}

/* Дополнительные стили для блока проданных товаров */
.sold-goods-container {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sold-goods-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.sold-goods-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.sold-goods-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #e8f4f8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.goods-name {
    color: #333;
    font-weight: 600;
}

.goods-count {
    color: #28a745;
    font-weight: 700;
}

.sold-goods-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #007bff;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.total-label {
    color: #495057;
}

.total-value {
    color: #dc3545;
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .sold-goods-line {
        gap: 10px;
        padding: 8px;
    }
    
    .sold-goods-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .sold-goods-total {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .sold-goods-container {
        padding: 15px;
    }
    
    .sold-goods-title {
        font-size: 16px;
    }
    
    .sold-goods-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sold-goods-item {
        width: 100%;
        justify-content: space-between;
    }
}

.period-selector {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.period-selector h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #007bff;
    padding-bottom: 8px;
}

.period-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.period-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.period-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.period-form select,
.period-form input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.period-submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.period-submit-btn:hover {
    background-color: #0056b3;
}

.month-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.month-nav-btn {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.month-nav-btn:hover {
    background-color: #545b62;
}

.month-nav-btn.current {
    background-color: #28a745;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .period-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .period-form .form-group {
        width: 100%;
    }
    
    .month-nav {
        gap: 5px;
    }
    
    .month-nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.storage-history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.storage-history-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.storage-history-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.storage-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.storage-history-table th {
    color: #333;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.storage-history-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.storage-history-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.storage-history-table tr:hover {
    background-color: #f1f1f1;
}

.storage-history-empty {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.storage-history-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.storage-history-btn {
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.storage-history-btn:hover {
    background-color: #0056b3;
}

.storage-history-btn#main-btn {
    background-color: #6c757d;
}

.storage-history-btn#main-btn:hover {
    background-color: #545b62;
}