* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f3f6;
    color: #222;
}

.site-header {
    height: 350px !important;
    min-height: 350px !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
        url('../assets/header.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    padding: 30px;
}

.site-header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.site-title {
    font-size: 42px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.site-subtitle {
    margin-top: 8px;
    font-size: 18px;
    opacity: 0.9;
}

.layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 250px);
}

.sidebar {
    width: 230px;
    background: #1d2733;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-menu a:hover {
    background: #2d3b4a;
}

.sidebar-menu a.active {
    background: #1677d2;
}

.sidebar-separator {
    height: 20px;
}

.content {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.content-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content h2 {
    margin-top: 0;
}

.site-footer {
    background: #1d2733;
    color: #bfc7cf;
    padding: 18px 30px;
    text-align: center;
    font-size: 14px;
}

.site-footer strong {
    color: white;
}

.button {
    display: inline-block;
    padding: 10px 16px;
    background: #1677d2;
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background: #1264b0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f5f6f8;
    font-weight: bold;
}

input,
select {
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.user-info {
    float: right;
    margin-top: 8px;
    font-size: 15px;
}

.user-info a {
    color: white;
    margin-left: 15px;
}

@media (max-width: 700px) {

    .site-header {
        height: 140px;
        padding: 20px;
    }

    .site-title {
        font-size: 32px;
    }

    .site-subtitle {
        font-size: 15px;
    }

    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }

    .sidebar-menu a {
        white-space: nowrap;
        padding: 13px 15px;
    }

    .content {
        padding: 15px;
    }

    .content-card {
        padding: 15px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 9px 6px;
    }

    .user-info {
        float: none;
        margin-top: 12px;
    }
}
/* ===== ГОЛОВНА ===== */

.welcome-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 25px;
    margin-bottom: 30px;
    background: #f5f8fb;
    border-left: 5px solid #1677d2;
    border-radius: 6px;
}

.welcome-box h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
}

.welcome-box p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.main-button {
    display: inline-block;
    padding: 13px 22px;
    background: #1677d2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    white-space: nowrap;
}

.main-button:hover {
    background: #1264b0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0 0 5px 0;
}

.tour-info {
    color: #777;
    font-size: 14px;
}

.outline-button {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #1677d2;
    color: #1677d2;
    text-decoration: none;
    border-radius: 5px;
}

.outline-button:hover {
    background: #1677d2;
    color: white;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 35px;
}

.match-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
    padding: 18px;
    transition: 0.15s;
}

.match-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.match-date {
    color: #777;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.match-date span {
    float: right;
    font-weight: bold;
    color: #222;
}

.teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 60px;
}

.team {
    font-size: 17px;
    font-weight: bold;
    overflow-wrap: break-word;
}

.team:last-child {
    text-align: right;
}

.vs {
    text-align: center;
    color: #999;
    font-size: 12px;
    font-weight: bold;
}

.prediction-link {
    display: block;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #1677d2;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.prediction-link:hover {
    color: #1264b0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.info-card {
    padding: 22px;
    background: #f8f9fa;
    border: 1px solid #e2e5e8;
    border-radius: 7px;
}

.info-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.info-card h3 {
    margin: 0 0 8px 0;
}

.info-card p {
    color: #666;
    line-height: 1.5;
}

.info-card a {
    color: #1677d2;
    text-decoration: none;
    font-weight: bold;
}

.empty-box {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 7px;
    margin-bottom: 30px;
}

.empty-box h2 {
    margin-top: 0;
}

.empty-box p {
    color: #777;
}


@media (max-width: 800px) {

    .welcome-box {
        display: block;
    }

    .main-button {
        margin-top: 20px;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .outline-button {
        margin-top: 15px;
    }
}


@media (max-width: 500px) {

    .teams {
        grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr);
    }

    .team {
        font-size: 15px;
    }
}
.results-table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: #1d2733;
    color: white;
    padding: 14px 12px;
    text-align: left;
}

.results-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.results-table tbody tr:hover {
    background: #f5f7fa;
}

.result-place {
    width: 80px;
    font-weight: bold;
    text-align: center;
}

.result-name {
    font-weight: 600;
}

.result-points {
    font-size: 18px;
    font-weight: bold;
}

.you-label {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #1677d2;
    color: white;
    font-size: 12px;
    font-weight: normal;
}

.result-name a {
    color: #1677d2;
    text-decoration: none;
}

.result-name a:hover {
    text-decoration: underline;
}

/* ===== PREDICTIONS PAGE ===== */

.prediction-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prediction-card {
    display: grid;
    grid-template-columns: 100px 1fr 150px 120px 150px;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
}

.prediction-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #606b75;
    font-size: 14px;
}

.prediction-date strong {
    color: #222;
    font-size: 15px;
}

.prediction-date span {
    font-size: 14px;
}

.prediction-match {
    display: grid;
    grid-template-columns: 1fr 35px 1fr;
    align-items: center;
    gap: 10px;
}

.prediction-team {
    font-size: 16px;
    font-weight: bold;
}

.home-team {
    text-align: right;
}

.away-team {
    text-align: left;
}

.prediction-vs {
    text-align: center;
    color: #999;
    font-size: 12px;
    font-weight: bold;
}

.prediction-input {
    text-align: center;
}

.prediction-input label,
.prediction-result label {
    display: block;
    margin-bottom: 7px;
    color: #68727c;
    font-size: 12px;
    font-weight: bold;
}

.score-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.score-inputs input {
    width: 45px;
    height: 40px;
    padding: 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.score-inputs span {
    font-size: 18px;
    font-weight: bold;
}

.prediction-result {
    text-align: center;
}

.prediction-result strong {
    font-size: 20px;
}

.no-result {
    color: #999;
    font-size: 20px;
}

.prediction-status {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.status-finished,
.status-cancelled,
.status-open,
.status-postponed {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-finished {
    background: #e7f6ec;
    color: #247a42;
}

.status-cancelled {
    background: #fbe8e8;
    color: #a52c2c;
}

.status-open {
    background: #eef5fc;
    color: #1677d2;
}

.status-postponed {
    background: #fff3cd;
    color: #856404;
}

.prediction-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.message-box {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.error-message {
    background: #fdeaea;
    border: 1px solid #f2b8b8;
    color: #b42318;
}

.success-message {
    background: #eaf7ee;
    border: 1px solid #b7dfc3;
    color: #16733a;
}

.prediction-toolbar {
    margin-bottom: 25px;
}

.tour-selector {
    max-width: 420px;
}

.tour-selector label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
    color: #59636e;
}

.tour-selector select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d5dbe1;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
}


/* ===== MOBILE ===== */

@media (max-width: 800px) {

    .prediction-card {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .prediction-date {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 10px;
    }

    .prediction-match {
        grid-column: 1 / -1;
    }

    .prediction-status {
        grid-column: 1 / -1;
    }

    .prediction-input {
        text-align: center;
    }

    .prediction-result {
        text-align: center;
    }
}


@media (max-width: 600px) {

    .prediction-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .prediction-date,
    .prediction-match,
    .prediction-input,
    .prediction-result,
    .prediction-status {
        grid-column: auto;
    }

    .prediction-date {
        justify-content: center;
    }

    .prediction-match {
        grid-template-columns: 1fr 30px 1fr;
    }

    .prediction-team {
        font-size: 15px;
    }

    .home-team,
    .away-team {
        text-align: center;
    }

    .prediction-actions .main-button {
        width: 100%;
    }
}
.user-info {
    position: absolute;
    top: 25px;
    right: 30px;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 12px 20px;

    border-radius: 7px;

    background: #b52b32;
    color: #fff;

    font-size: 15px;
    font-weight: bold;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.logout-button:hover {
    background: #992329;
    color: #fff;
    transform: translateY(-1px);
}

.logout-icon {
    font-size: 23px;
    line-height: 1;
    font-weight: normal;
}

.admin-welcome {
    background: #f5f7fa;
    border-left: 4px solid #1677d2;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    color: #444;
}

.admin-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.admin-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    border-color: #1677d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-card-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 14px;
}

.admin-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 7px;
}

.admin-card-text {
    color: #777;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 7px;
    background: #1677d2;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button:hover {
    background: #1265b5;
    color: #fff;
    transform: translateY(-1px);
}
.admin-form-card {
    background: #f8f9fb;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 30px;
}

.admin-form-card h3,
.admin-list-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

.admin-form-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.admin-form-field {
    flex: 1;
}

.admin-form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.admin-form-field input,
.admin-form-field select {
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 14px;
    outline: none;
}

.admin-form-field input:focus,
.admin-form-field select:focus {
    border-color: #1677d2;
    box-shadow: 0 0 0 2px rgba(22, 119, 210, 0.1);
}

.admin-form-button {
    flex-shrink: 0;
}

.admin-form-button .primary-button {
    border: none;
    height: 42px;
    cursor: pointer;
}

.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th {
    padding: 14px 12px;
    background: #1d2733;
    color: #fff;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    white-space: nowrap;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #f5f7fa;
}

.admin-login {
    font-weight: 600;
}

.round-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #eef5fc;
    color: #1677d2;
    font-size: 12px;
    font-weight: bold;
}

.message-error {
    background: #fbe8e8;
    border-left: 4px solid #b52b32;
    color: #9b272d;
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.admin-list-section {
    margin-top: 10px;
}

@media (max-width: 700px) {
    .admin-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-form-button {
        width: 100%;
    }

    .admin-form-button .primary-button {
        width: 100%;
    }
}
.table-action {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 5px;
    background: #eef5fc;
    color: #1677d2;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.table-action:hover {
    background: #dcecfb;
    color: #1265b5;
}

.status-badge {
    display: inline-block;
    min-width: 38px;
    padding: 4px 9px;
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.status-admin {
    background: #e8eefb;
    color: #3156a3;
}

.status-active {
    background: #e7f6ec;
    color: #247a42;
}

.status-inactive {
    background: #fbe8e8;
    color: #a52c2c;
}

.status-no {
    background: #f1f3f5;
    color: #777;
}
.user-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-result-card {
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    padding: 20px;
}

.user-result-header {
    margin-bottom: 14px;
    color: #66717c;
    font-size: 14px;
    font-weight: 600;
}

.user-result-match {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.user-result-team {
    font-size: 17px;
    font-weight: 600;
}

.user-result-team.home {
    text-align: right;
}

.user-result-team.away {
    text-align: left;
}

.user-result-score {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.user-result-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
}

.user-result-prediction {
    color: #59636e;
    font-size: 14px;
}

.user-result-points {
    font-size: 18px;
    font-weight: bold;
}

.user-result-status {
    font-size: 14px;
    color: #247a42;
}

.user-result-status.pending {
    color: #1677d2;
}

.user-result-status.cancelled {
    color: #b52b32;
}

@media (max-width: 600px) {

    .user-result-card {
        padding: 16px;
    }

    .user-result-match {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .user-result-team.home,
    .user-result-team.away {
        text-align: center;
    }

    .user-result-score {
        order: 3;
    }

    .user-result-bottom {
        flex-direction: column;
        align-items: stretch;
    }
}
.user-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-result-card {
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    padding: 20px;
}

.user-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.user-result-tour {
    color: #59636e;
    font-size: 14px;
    font-weight: 600;
}

.user-result-date {
    color: #777;
    font-size: 14px;
    white-space: nowrap;
}

.user-result-match {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.user-result-team {
    font-size: 18px;
    font-weight: 600;
}

.user-result-team.home {
    text-align: right;
}

.user-result-team.away {
    text-align: left;
}

.user-result-score {
    text-align: center;
}

.prediction-score {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

.user-result-score span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.user-result-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
}

.actual-result,
.earned-points {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.actual-result span,
.earned-points span {
    color: #777;
    font-size: 13px;
}

.actual-result strong {
    font-size: 18px;
}

.earned-points strong {
    font-size: 20px;
}

.match-status {
    text-align: right;
}

.status-finished,
.status-cancelled,
.status-open {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-finished {
    background: #e7f6ec;
    color: #247a42;
}

.status-cancelled {
    background: #fbe8e8;
    color: #a52c2c;
}

.status-open {
    background: #eef5fc;
    color: #1677d2;
}

.empty-box {
    background: #f8f9fb;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    padding: 35px;
    text-align: center;
}

.empty-box h2 {
    margin: 0 0 10px;
}

.empty-box p {
    margin: 0;
    color: #777;
}

@media (max-width: 700px) {

    .user-result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-result-match {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .user-result-team.home,
    .user-result-team.away {
        text-align: center;
    }

    .user-result-score {
        order: 3;
    }

    .user-result-bottom {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .match-status {
        text-align: left;
    }
}
.score-edit {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.score-edit input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 18px;
    text-align: center;
    outline: none;
}

.score-edit input:focus {
    border-color: #1677d2;
    box-shadow: 0 0 0 2px rgba(22, 119, 210, 0.1);
}

.score-edit span {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #555;
}
.admin-match-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-match-edit-grid .admin-form-field {
    min-width: 0;
}

/* Тур на всю ширину */
.admin-match-edit-grid .admin-form-field:first-child {
    grid-column: 1 / -1;
}

/* Господарі + гості */
.admin-match-edit-grid .admin-form-field:nth-child(2),
.admin-match-edit-grid .admin-form-field:nth-child(3) {
    grid-column: auto;
}

/* Дата + час */
.admin-match-edit-grid .admin-form-field:nth-child(4),
.admin-match-edit-grid .admin-form-field:nth-child(5) {
    grid-column: auto;
}

/* Фактичний рахунок на всю ширину */
.admin-match-edit-grid .admin-form-field:nth-child(6) {
    grid-column: 1 / -1;
}

/* Статус на всю ширину */
.admin-match-edit-grid .admin-form-field:nth-child(7) {
    grid-column: 1 / -1;
}

.score-edit {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.score-edit input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 18px;
    text-align: center;
    outline: none;
}

.score-edit input:focus {
    border-color: #1677d2;
    box-shadow: 0 0 0 2px rgba(22, 119, 210, 0.1);
}

.score-edit span {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #555;
}

@media (max-width: 600px) {

    .admin-match-edit-grid {
        grid-template-columns: 1fr;
    }

    .admin-match-edit-grid .admin-form-field:first-child,
    .admin-match-edit-grid .admin-form-field:nth-child(6),
    .admin-match-edit-grid .admin-form-field:nth-child(7) {
        grid-column: auto;
    }

    .admin-match-edit-grid .admin-form-field:nth-child(2),
    .admin-match-edit-grid .admin-form-field:nth-child(3),
    .admin-match-edit-grid .admin-form-field:nth-child(4),
    .admin-match-edit-grid .admin-form-field:nth-child(5) {
        grid-column: auto;
    }
}
/* =========================
   ШАХМАТКА
   ========================= */

.matrix-toolbar {
    margin-bottom: 20px;
}

.matrix-tour-selector {
    max-width: 420px;
}

.matrix-tour-selector label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
    color: #59636e;
}

.matrix-tour-selector select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d5dbe1;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #222;
}

.matrix-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
}

.matrix-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
    width: max-content;
}

.matrix-table th {
    background: #1d2733;
    color: #fff;
}

.matrix-user-header {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 190px;
    width: 190px;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

.matrix-match-header {
    width: 105px;
    min-width: 105px;
    height: 220px;
    padding: 0;
    vertical-align: bottom;
    position: relative;
}

.matrix-match-header-inner {
    height: 210px;
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
}

.matrix-match-teams {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    line-height: 1.25;
    font-weight: bold;
    text-align: left;
    max-height: 155px;
}

.matrix-match-date {
    margin-top: 8px;
    font-size: 11px;
    font-weight: normal;
    color: #cbd2da;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.matrix-table tbody td {
    border-bottom: 1px solid #e1e5ea;
}

.matrix-table tbody tr:last-child td {
    border-bottom: none;
}

.matrix-user {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 190px;
    width: 190px;
    padding: 13px 15px;
    background: #fff;
    border-right: 1px solid #dfe3e8;
    white-space: nowrap;
    font-weight: 600;
}

.matrix-user a {
    color: #1677d2;
    text-decoration: none;
}

.matrix-user a:hover {
    text-decoration: underline;
}

.matrix-cell {
    width: 105px;
    min-width: 105px;
    height: 85px;
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    border-right: 1px solid #e1e5ea;
}

.matrix-table tbody tr:hover .matrix-cell,
.matrix-table tbody tr:hover .matrix-user {
    background: #f7f9fb;
}

.matrix-prediction {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.1;
    color: #222;
}

.matrix-own-label {
    margin-top: 4px;
    font-size: 10px;
    color: #777;
}

.matrix-locked {
    font-size: 20px;
    color: #888;
}

.matrix-no-prediction {
    font-size: 20px;
    color: #aaa;
}

.matrix-actual {
    margin-top: 5px;
    font-size: 11px;
    color: #777;
}

.matrix-points {
    margin-top: 3px;
    font-size: 15px;
    font-weight: bold;
    color: #1677d2;
}

.matrix-cancelled {
    margin-top: 5px;
    font-size: 10px;
    color: #b52b32;
    font-weight: bold;
}

@media (max-width: 700px) {

    .matrix-user-header,
    .matrix-user {
        min-width: 145px;
        width: 145px;
    }

    .matrix-match-header,
    .matrix-cell {
        min-width: 90px;
        width: 90px;
    }

    .matrix-match-header {
        height: 200px;
    }

    .matrix-match-header-inner {
        width: 90px;
        height: 190px;
    }

    .matrix-match-teams {
        font-size: 11px;
    }

    .matrix-cell {
        height: 75px;
    }

    .matrix-prediction {
        font-size: 18px;
    }
}
.status-postponed {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    background: #fff3cd;
    color: #856404;
}
.admin-table .status-badge.status-postponed {
    display: inline-block !important;
    padding: 5px 11px !important;
    border-radius: 12px !important;
    background: #fff3cd !important;
    color: #856404 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}
.matrix-postponed {
    font-size: 11px;
    font-weight: bold;
    color: #856404;
    line-height: 1.2;
}