.sr-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sr-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.sr-field {
    flex: 1;
    margin-bottom: 0;
}

.sr-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

.sr-field input[type="text"],
.sr-field input[type="email"],
.sr-field input[type="number"],
.sr-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.sr-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sr-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.sr-model-row {
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 10px;
}

.sr-cat-name {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.sr-model-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.sr-model-fields {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.sr-model-fields input[type="text"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.sr-model-fields input[name*="model_name"] {
    flex: 1;
    min-width: 120px;
}

.sr-model-fields input[name*="model_constructor"] {
    width: 200px;
    min-width: 160px;
}

.sr-model-fields input[name*="model_year"] {
    width: 45px;
    text-align: center;
}

#sr-add-second-model {
    font-size: 9px !important;
    line-height: 1.15 !important;
    padding: 2px 3px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
}

.sr-submit {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.sr-submit:hover {
    background: #005a87;
}

.sr-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
    display: none;
}

.sr-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.sr-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.sr-registration-form h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.sr-comp-date {
    color: #666;
    font-size: 13px;
    margin: 0 0 15px 0;
}

.sr-no-categories {
    color: #666;
    font-style: italic;
}

/* === Seznam soutěžících [registrovani_soutezici] === */

.sr-competitors-list {
    max-width: 900px;
    margin: 0 auto;
}

.sr-competitors-list h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.sr-competitors-list .sr-comp-date {
    color: #666;
    font-size: 13px;
    margin: 0 0 15px 0;
}

.sr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 15px;
}

.sr-table thead {
    background: #f0f0f1;
}

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

.sr-table th {
    font-weight: bold;
    font-size: 13px;
}

.sr-table tbody tr:nth-child(4n+1),
.sr-table tbody tr:nth-child(4n+2) {
    background: #fafafa;
}

.sr-table tbody tr.sr-models-row {
    background: #f5f5f5;
}

.sr-table tbody tr.sr-models-row td {
    padding: 0;
    border-top: none;
}

.sr-center {
    text-align: center;
}

.sr-toggle-models {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.sr-toggle-models:hover {
    color: #005a87;
}

.sr-caret {
    font-size: 10px;
}

.sr-models-detail {
    padding: 12px 15px;
}

.sr-model-item {
    padding: 4px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sr-model-cat {
    font-weight: bold;
    min-width: 140px;
    color: #333;
}

.sr-model-info {
    color: #555;
}

.sr-total {
    text-align: right;
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* === Uzavřená registrace === */

.sr-closed {
    background: #fff3cd;
    border-color: #ffc107;
    text-align: center;
}

.sr-closed-notice {
    padding: 30px 20px;
}

.sr-closed-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.sr-closed-notice p {
    margin: 8px 0;
    font-size: 16px;
    color: #856404;
}

.sr-closed-notice p strong {
    font-size: 20px;
    color: #856404;
}

@media (max-width: 600px) {
    .sr-table {
        font-size: 12px;
    }
    .sr-table th,
    .sr-table td {
        padding: 6px 8px;
    }
    .sr-model-cat {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .sr-row {
        flex-direction: column;
        gap: 10px;
    }
}
