/* public.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

h2 {
    text-align: center;
    margin-top: 20px;
}

table {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

th {
    background-color: #333;
    color: white;
    cursor: pointer;
}

th.sortable:hover {
    background-color: #555;
}

td.left {
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f0f0f0;
}

.footer-row td {
    font-weight: bold;
    background-color: #ddd;
}

.filters {
    text-align: center;
    margin-bottom: 20px;
}

.filters a {
    margin: 0 10px;
    text-decoration: none;
    color: #007BFF;
}

.filters a:hover {
    text-decoration: underline;
}

.details-link {
    color: #007BFF;
    text-decoration: none;
}

.details-link:hover {
    text-decoration: underline;
}

.back-button {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.back-button:hover {
    background-color: #0056b3;
}
/* Контейнер */
.rc-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок */
.rc-title {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Сообщение */
.message {
    padding: 12px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Формы */
.rc-form {
    border: 1px solid #ccc;
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.rc-form label {
    display: block;
    margin-top: 10px;
}

.rc-form input,
.rc-form select,
.rc-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

.rc-btn {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    background: #ddd;
    border: 1px solid #888;
    cursor: pointer;
}

/* Таблицы */
.rc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rc-table th,
.rc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.rc-table th {
    background: #f0f0f0;
}

.wide-table {
    width: 100%;
    table-layout: auto;
}

/* Кнопки действий */
.edit-btn {
    padding: 6px 10px;
    border: 1px solid #666;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
    margin-right: 6px;
    display: inline-block;
}

.edit-btn:hover {
    background: #ddd;
}

.back-btn {
    display:inline-block;
    padding:8px 14px;
    background:#004070;
    color:white!important;
    border-radius:6px;
    margin:10px 0;
    text-decoration:none;
}