body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

nav a:hover {
    text-decoration: underline;
}

.catalog {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.catalog li {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.catalog li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.catalog a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    display: block;
    height: 100%;
}

.button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
}

.button:hover {
    background: #2980b9;
}

.error {
    color: #e74c3c;
    padding: 10px;
    background: #fadbd8;
    border-radius: 4px;
    margin-bottom: 20px;
}

form div {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .catalog {
        grid-template-columns: 1fr;
    }
}
/* Стили для таблиц управления */
.manage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.manage-table th, .manage-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.manage-table th {
    background-color: #f2f2f2;
}

.manage-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.manage-table tr:hover {
    background-color: #f1f1f1;
}

.button.small {
    padding: 5px 10px;
    font-size: 14px;
    margin-right: 5px;
}

/* Стили для страницы оборудования */
.equipment-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Стили для комментариев */
.comments {
    margin-top: 20px;
}

.comment {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.comment-text {
    line-height: 1.5;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
/* Стили для последних комментариев */
.recent-comments {
    margin-top: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comments-table {
    width: 100%;
    border-collapse: collapse;
}

.comments-table th {
    text-align: left;
    padding: 10px;
    background-color: #f2f2f2;
    border-bottom: 2px solid #ddd;
}

.comments-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.comments-table tr:last-child td {
    border-bottom: none;
}

.comments-table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.comments-table tr:hover {
    background-color: #f9f9f9;
}

.location {
    width: 25%;
}

.comment-text {
    width: 60%;
}

.comment-time {
    width: 15%;
    text-align: right;
    color: #666;
    font-size: 0.9em;
}

.location .city {
    font-weight: bold;
    margin-bottom: 3px;
}

.location .institution {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 3px;
}

.location .author {
    font-size: 0.85em;
    color: #777;
}

@media (max-width: 768px) {
    .comments-table {
        display: block;
        overflow-x: auto;
    }
    
    .location {
        width: 30%;
    }
    
    .comment-text {
        width: 50%;
    }
    
    .comment-time {
        width: 20%;
    }
}
.comments-table tr:hover {
    background-color: #f5f5f5;
}

/* Дополнительные стили для управления пользователями */
form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

form .password-note {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* Стили для таблицы пользователей */
.manage-table td:nth-child(5),
.manage-table th:nth-child(5) {
    text-align: center;
}

.role-admin {
    color: #e74c3c;
    font-weight: bold;
}

.role-user {
    color: #27ae60;
}

/* Стили для админ-панели */
.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #333;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-top: 0;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Стили для галереи */
.gallery {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    text-align: center;
}

.gallery-actions .button {
    padding: 5px 10px;
    font-size: 12px;
}

.upload-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.upload-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.upload-form input[type="file"] {
    margin-bottom: 15px;
}

/* Адаптивность галереи */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item img {
        height: 150px;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #fadbd8;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    display: block;
    margin: 60px auto 20px;
    max-width: 90%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #bbb;
}

.modal-caption {
    margin: 10px auto;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.modal-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto;
    padding: 10px 20px;
    width: 150px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.modal-download:hover {
    background-color: #2980b9;
}

.modal-download svg {
    width: 16px;
    height: 16px;
}

/* Анимация при переключении фото */
.fade-out {
    animation: fadeOut 0.3s;
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: 0.3s;
    opacity: 0.7;
}

.modal-nav:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-prev {
    left: 0;
}

.modal-next {
    right: 0;
}

/* Стили для страницы комментариев */
.filter-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select,
.filter-group input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.comments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comments-table th,
.comments-table td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.comments-table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.comments-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comments-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .comments-table {
        display: block;
        overflow-x: auto;
    }
}

.btn-pdf {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-excel {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-pdf:hover {
    background-color: #c0392b;
}

.btn-excel:hover {
    background-color: #219653;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Стили для заданий */
.tasks-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tasks-list {
    margin-top: 20px;
}

.task-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.task-item.completed {
    border-left: 4px solid #27ae60;
}

.task-item.pending {
    border-left: 4px solid #e74c3c;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-status {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.task-item.completed .task-status {
    background-color: #d4edda;
    color: #155724;
}

.task-item.pending .task-status {
    background-color: #f8d7da;
    color: #721c24;
}

.task-description {
    margin-bottom: 10px;
    color: #555;
}

.task-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.task-actions {
    margin-top: 10px;
}

.btn-complete {
    background-color: #28a745;
    color: white;
}

.task-completion {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* Стили для списка заданий на главной */
.recent-tasks {
    margin-top: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tasks-container {
    margin-top: 20px;
}

.tasks-scrollable {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.task-card {
    display: block;
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.task-card:hover {
    transform: translateY(-3px);
}

.task-card.completed {
    border-left: 4px solid #27ae60;
}

.task-card.pending {
    border-left: 4px solid #e74c3c;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.task-status-badge {
    font-size: 1.2em;
}

.task-card-body {
    margin-bottom: 10px;
}

.task-card-body p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #555;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #666;
}

/* Полоса прокрутки */
.tasks-scrollable::-webkit-scrollbar {
    width: 8px;
}

.tasks-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tasks-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tasks-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Компактный вид заданий */
.recent-tasks.compact {
    margin-top: 30px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.recent-tasks.compact h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.task-line {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.task-line:hover {
    background-color: #f5f5f5;
}

.task-line.completed {
    background-color: #e8f5e9;
}

.task-line.pending {
    background-color: #ffebee;
}

.task-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    margin-right: 10px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.task-line.completed .task-icon {
    background-color: #4caf50;
    color: white;
}

.task-line.pending .task-icon {
    background-color: #f44336;
    color: white;
}

.task-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    padding-right: 10px;
}

.task-location {
    flex: 2;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.task-date {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.tasks-scrollable {
    max-height: 300px;
    overflow-y: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .task-line {
        flex-wrap: wrap;
        padding: 6px 8px;
    }
    
    .task-title {
        flex-basis: 100%;
        margin-bottom: 3px;
    }
    
    .task-location {
        flex-basis: calc(100% - 100px);
    }
    
    .task-date {
        flex-basis: 80px;
        text-align: right;
    }
}

.task-filters {
    margin-bottom: 10px;
    display: flex;
    gap: 5px;
}

.filter-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.filter-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Стили для страницы учреждения */
.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.equipment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.equipment-list li {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.equipment-list li:hover {
    background-color: #f9f9f9;
}

.equipment-list a {
    color: #2c3e50;
    text-decoration: none;
}

.action-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
}

/* Стили для списка заданий */
.tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.task-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.task-status {
    font-size: 0.8em;
    background-color: #f8d7da;
    color: #721c24;
    padding: 3px 8px;
    border-radius: 4px;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
}

.task-description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.task-actions {
    margin-top: 10px;
}

.btn-complete {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-complete:hover {
    background-color: #218838;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tasks-container {
        grid-template-columns: 1fr;
    }
    
    .equipment-list {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы учреждения */
.institution-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Стили для списка оборудования */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.equipment-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    position: relative;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.equipment-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.equipment-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.btn-edit {
    color: #3498db;
    font-size: 0.9em;
}

/* Стили для заданий (компактный вид) */
.tasks-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.task-line {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.task-line:hover {
    background-color: #f5f5f5;
}

.task-line.completed {
    background-color: #e8f5e9;
}

.task-line.pending {
    background-color: #ffebee;
}

.task-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    margin-right: 10px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.task-line.completed .task-icon {
    background-color: #4caf50;
    color: white;
}

.task-line.pending .task-icon {
    background-color: #f44336;
    color: white;
}

.task-title {
    flex: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    padding-right: 10px;
}

.task-location {
    flex: 1;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.task-date {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* Стили для галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
}

#uploadModal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 30px auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin: 15px auto;
    text-align: center;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .task-line {
        flex-wrap: wrap;
    }
    
    .task-title {
        flex-basis: 100%;
        margin-bottom: 3px;
    }
    
    .task-location {
        flex-basis: calc(100% - 100px);
    }
    
    .task-date {
        flex-basis: 80px;
        text-align: right;
    }
}

/* Стили для управления оборудованием */
.manage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.manage-table th, .manage-table td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.manage-table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.manage-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.manage-table tr:hover {
    background-color: #f1f1f1;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-view {
    background-color: #17a2b8;
    color: white;
}

.admin-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .manage-table {
        display: block;
        overflow-x: auto;
    }
}