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;
	text-decoration:none;
	background:#004070;
	color:white!important;
    padding: 4px 10px !important;   /* было примерно 8px 14px */
    font-size: 12px !important;     /* уменьшено */
    border-radius: 4px !important;  /* чуть компактнее */
	margin:10px 0;
}

.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;              /* позволяет перенос, если узкий экран */
    background: #004070;
    padding: 6px 10px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.menu-left, .menu-right {
    display: flex;
    gap: 6px;                     /* расстояние между кнопками */
}

.btn-menu {
    padding: 4px 10px;
    background: #ffffff22;        /* лёгкая прозрачность */
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.btn-menu:hover {
    background: #ffffff44;
}

.btn-menu.small {
    padding: 3px 8px;
    font-size: 12px;
}
.flag-btn img {
    height: 20px;
    width: auto;
}
.flag-btn {
    padding: 2px;
    border-radius: 4px;
}
.flag-btn:hover {
    background: #ffffff33;
}
.header-block {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}
.header-block p {
    margin: 4px 0;
}
/* Призовые места */
tr.place-1 { background:#e9ffe3 !important; }
tr.place-2 { background:#e3f2ff !important; }
tr.place-3 { background:#fff4c2 !important; }
/* Зебра */
table.proto tr:nth-child(even),
table.proto-table tr:nth-child(even),
table.result-table tr:nth-child(even) {
    background: #f7f7f7;
}
body {
    background:#fafafa;
    font-family: Arial, sans-serif;
}

table.team-daily th,
table.team-daily-summary th {
    background:#004070;
    color:white;
}

table.team-daily-summary td.data-cell {
    background:#e1f3b9;
}

tr.place-1 { background:#e9ffe3!important; }
tr.place-2 { background:#e3f2ff!important; }
tr.place-3 { background:#fff4c2!important; }
