.bmctp-front {
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #1d2327;
}

.bmctp-title {
    text-align: center;
    color: #d35400;
    font-weight: 800;
    margin-bottom: 16px;
}

.bmctp-selector {
    margin: 12px 0 18px;
    padding: 12px;
    background: #f7f7f7;
    border-left: 4px solid #d35400;
}

.bmctp-selector select {
    min-width: 280px;
    padding: 6px;
}

.bmctp-btn {
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.bmctp-competition-header {
    background: #fff8e8;
    border: 1px solid #f0d8b8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.bmctp-competition-header h3 {
    margin: 0 0 5px;
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

.bmctp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.bmctp-tab {
    display: inline-block;
    padding: 10px 12px;
    background: #f0f0f1;
    color: #1d2327;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
}

.bmctp-tab:hover {
    background: #fff3cd;
    color: #d35400;
}

.bmctp-tab.active {
    background: #d35400;
    color: #fff;
}

.bmctp-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 10px 10px 10px;
    padding: 16px;
}

.bmctp-panel h3 {
    margin-top: 0;
    font-weight: 800;
    color: #111;
}

.bmctp-panel h4 {
    color: #d35400;
    font-weight: 800;
    margin: 18px 0 8px;
}

.bmctp-responsive {
    width: 100%;
    overflow-x: auto;
}

.bmctp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.bmctp-table th,
.bmctp-table td {
    border: 1px solid #dcdcde;
    padding: 8px;
    vertical-align: middle;
    text-align: center;
}

.bmctp-table th {
    background: #111;
    color: #fff;
    font-weight: 800;
}

.bmctp-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.bmctp-table tbody tr:hover {
    background: #fff8e8;
}

.bmctp-info-table th {
    width: 35%;
    text-align: left;
    background: #f0f0f1;
    color: #111;
}

.bmctp-info-table td {
    text-align: left;
}

.bmctp-description {
    margin-top: 15px;
    padding: 12px;
    background: #f7f7f7;
    border-left: 4px solid #2271b1;
}

.bmctp-alert {
    padding: 12px;
    background: #fff3cd;
    color: #664d03;
    border-left: 4px solid #d35400;
    font-weight: 700;
    margin: 12px 0;
}

.bmctp-alert-error {
    background: #f8d7da;
    color: #842029;
}

.bmctp-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e2e3e5;
    color: #41464b;
    font-weight: 800;
    font-size: 12px;
}

.bmctp-badge-green {
    background: #d1e7dd;
    color: #0f5132;
}

.bmctp-badge-yellow {
    background: #fff3cd;
    color: #664d03;
}

.bmctp-badge-red {
    background: #f8d7da;
    color: #842029;
}

.bmctp-badge-blue {
    background: #cfe2ff;
    color: #084298;
}

.bmctp-orange {
    color: #d35400;
    font-weight: 800;
}

.bmctp-red {
    color: #842029;
    font-weight: 800;
}

.bmctp-muted {
    color: #666;
    font-weight: 700;
}

.bmctp-details summary {
    cursor: pointer;
    color: #2271b1;
    font-weight: 800;
}

.bmctp-details[open] summary {
    margin-bottom: 8px;
}

.bmctp-mini-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 520px;
    margin-top: 8px;
    font-size: 12px;
    background: #fff;
}

.bmctp-mini-table th,
.bmctp-mini-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}

.bmctp-mini-table th {
    background: #f0f0f1;
    color: #111;
}

.bmctp-total-row {
    background: #fff3cd;
}

@media screen and (max-width: 700px) {
    .bmctp-front {
        margin: 10px;
    }

    .bmctp-selector select {
        width: 100%;
        min-width: 0;
        margin: 6px 0;
    }

    .bmctp-btn {
        width: 100%;
    }

    .bmctp-tab {
        width: 100%;
        border-radius: 6px;
    }

    .bmctp-panel {
        padding: 10px;
    }

    .bmctp-table {
        font-size: 12px;
    }
}

.bmctp-manage-bar {
    margin: 12px 0 16px;
    padding: 12px;
    background: #eef6ff;
    border-left: 4px solid #2271b1;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.bmctp-manage-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2e3e5;
    color: #41464b;
    font-weight: 800;
}

.bmctp-manage-status.active {
    background: #d1e7dd;
    color: #0f5132;
}

.bmctp-btn-secondary {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

.bmctp-btn-secondary:hover {
    background: #d35400;
    color: #fff !important;
}

.bmctp-alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left-color: #0f5132;
}

.bmctp-manage-form {
    margin: 15px 0 20px;
    padding: 14px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-left: 4px solid #d35400;
    border-radius: 10px;
}

.bmctp-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.bmctp-form-grid label {
    font-weight: 700;
}

.bmctp-form-grid input {
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
}

.bmctp-form-full {
    grid-column: 1 / -1;
}

.bmctp-actions {
    white-space: nowrap;
}

.bmctp-small-btn {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 6px;
    border: 0;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 12px;
}

.bmctp-small-btn:hover {
    background: #135e96;
}

.bmctp-small-btn.danger {
    background: #842029;
}

.bmctp-small-btn.danger:hover {
    background: #5c151c;
}

@media screen and (max-width: 800px) {
    .bmctp-form-grid {
        grid-template-columns: 1fr;
    }
}

.bmctp-score-select {
    width: 70px;
    padding: 6px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
}

.bmctp-score-table td,
.bmctp-score-table th {
    text-align: center;
}

.bmctp-score-table small {
    color: #666;
    font-size: 11px;
}

.bmctp-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.bmctp-summary-card {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.bmctp-summary-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.bmctp-summary-card span {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #d35400;
}

.bmctp-summary-card small {
    color: #666;
    font-weight: 700;
}

@media screen and (max-width: 800px) {
    .bmctp-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bmctp-form-grid textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    resize: vertical;
}

.bmctp-export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bmctp-export-buttons .bmctp-small-btn {
    margin-bottom: 6px;
}

.bmctp-locked-btn,
.bmctp-locked-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.bmctp-actions {
    white-space: nowrap;
}

.bmctp-actions .bmctp-locked-btn,
.bmctp-actions .bmctp-small-btn {
    display: inline-block;
    min-width: 95px;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    margin: 2px 0;
    border-radius: 4px;
    box-sizing: border-box;
}

.bmctp-actions .bmctp-locked-btn + .bmctp-locked-btn,
.bmctp-actions .bmctp-small-btn + .bmctp-small-btn,
.bmctp-actions form + .bmctp-locked-btn,
.bmctp-actions .bmctp-locked-btn + form,
.bmctp-actions a + form,
.bmctp-actions form + a {
    margin-top: 4px;
}

.bmctp-actions form {
    display: block;
    margin: 0;
}

.bmctp-actions .bmctp-locked-btn {
    background: #d9534f;
    border: 1px solid #c9302c;
    color: #fff;
    opacity: 0.85;
    cursor: not-allowed;
}

.bmctp-col-actions {
    width: 135px;
    min-width: 135px;
    max-width: 135px;
    text-align: center;
}

.bmctp-actions {
    vertical-align: middle;
    text-align: center;
}

.bmctp-actions-stack {
    width: 120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
}

.bmctp-actions-stack form {
    display: block;
    margin: 0;
    padding: 0;
}

.bmctp-actions-stack .bmctp-small-btn,
.bmctp-actions-stack .bmctp-locked-btn {
    display: block;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    border-radius: 6px;
    white-space: normal;
}

.bmctp-actions-stack .bmctp-locked-btn,
.bmctp-actions-stack .bmctp-locked-btn:disabled {
    background: #d00000;
    border: 1px solid #b50000;
    color: #fff;
    opacity: 0.9;
    cursor: not-allowed;
    pointer-events: none;
}