body {
    margin:0;
    font-family: Arial;
    background:#f4f1e8;
}

.container {
    max-width: var(--page-max-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    padding:var(--page-padding, 20px);
    box-sizing: border-box;
}

h1 {
    margin:0;
}

/* STATS */

.stats {
    display:flex;
    gap:15px;
    margin-bottom:20px;
}

.card {
    flex:1;
    padding:20px;
    border-radius:10px;
    color:white;
    text-align:center;
}

.green { background:#2e7d32; }
.red   { background:#b71c1c; }
.gray  { background:#757575; }

.big {
    font-size:30px;
    font-weight:bold;
}

/* LOGIN */

.login {
    background:white;
    padding:20px;
    border-radius:10px;
}

.login form {
    display:flex;
    flex-direction:column;
    gap:10px;
}

.login input {
    padding:10px;
    font-size:14px;
}

.login button {
    padding:10px;
    background:#c62828;
    color:white;
    border:none;
}

.remember {
    font-size:13px;
}

/* MOBILE */

@media (max-width:800px) {
    .stats {
        flex-direction:column;
    }
}
.error-message {
    color: #b00020;
    font-weight: bold;
    margin-bottom: 12px;
}

.standalone-login {
    max-width: 420px;
    margin: 40px auto;
}

.fp-site-closed-modal {
    position: fixed;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: min(420px, calc(100vw - 28px));
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    text-align: center;
    box-sizing: border-box;
}

.fp-site-closed-modal h2 {
    margin: 0 0 10px;
    color: #c62828;
    font-size: 20px;
}

.fp-site-closed-modal p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.user-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
}

.user-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

.user-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
}

.highlight-card {
    border: 2px solid #c62828;
}

.profile-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.profile-image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.profile-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.profile-info {
    display: grid;
    gap: 8px;
}

.next-game-main {
    margin-bottom: 16px;
}

.next-game-date {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.next-game-meta {
    margin-bottom: 6px;
}

.cancel-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: #b71c1c;
    color: #fff;
    border-radius: 8px;
    display: inline-block;
}

.my-status-box {
    margin: 16px 0;
    padding: 12px;
    background: #f4f1e8;
    border-radius: 8px;
}

.answer-form {
    display: grid;
    gap: 12px;
}

.answer-btn {
    border: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.yes-btn {
    background: #2e7d32;
    color: #fff;
}

.no-btn {
    background: #b71c1c;
    color: #fff;
}

.reset-btn {
    background: #757575;
    color: #fff;
}

.success-message {
    color: #1b5e20;
    font-weight: bold;
    margin-bottom: 12px;
}

@media (max-width: 800px) {
    .user-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-page-grid {
        grid-template-columns: 1fr;
    }

    .profile-block {
        flex-direction: column;
    }
}
.overview-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
}

.overview-hero h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.overview-legend {
    min-width: 260px;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.legend-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.status-ja {
    background: #2e7d32;
}

.status-nej {
    background: #b71c1c;
}

.status-ej {
    background: #757575;
}

.matrix-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
}

.matrix-table {
    border-collapse: collapse;
    min-width: 900px;
    width: max-content;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid #d8d8d8;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}

.player-col {
    min-width: 80px;
    text-align: left !important;
}

.date-col {
    min-width: 105px;
    background: #fafafa;
}

.cancelled-col {
    background: #fff0f0;
}

.date-nr {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 6px;
}
.compact-page {
    max-width: 100%;
    padding: 10px 12px;
}

.compact-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.compact-toplinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compact-toplinks a {
    text-decoration: none;
    color: #7f1208;
    font-weight: bold;
}

.status-header-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.status-panel {
    background: #ffffff;
    border: 1px solid #d7d2c4;
    border-radius: 6px;
    padding: 8px 10px;
}

.status-panel-main {
    border-left: 4px solid #7f1208;
}

.status-panel-next {
    border-left: 4px solid #2e7d32;
}

.status-headline {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.status-mainline {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 4px;
}

.status-subline {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.status-warning {
    margin-top: 6px;
    font-size: 12px;
    font-weight: bold;
    color: #b71c1c;
}

.compact-matrix-wrap {
    padding: 4px;
    border-radius: 6px;
}

.compact-matrix-table {
    min-width: 760px;
}

.compact-matrix-table th,
.compact-matrix-table td {
    padding: 2px 3px;
    font-size: 12px;
}

.summary-top-row th,
.summary-top-row td {
    background: #f6f6f6;
    font-size: 11px;
    padding: 2px 3px;
}

.summary-left {
    font-weight: bold;
    background: #f6f6f6 !important;
}

.summary-top-cell {
    text-align: center;
}

.summary-link {
    color: #7f1208;
    font-weight: bold;
    text-decoration: underline;
}

.player-col {
    min-width: 150px !important;
}

.date-col {
    min-width: 66px !important;
}

.date-nr {
    font-size: 10px;
    margin-bottom: 2px;
}

.date-main {
    font-size: 11px;
    line-height: 1.1;
}

.cancel-note {
    font-size: 10px;
    margin-top: 2px;
}

.compact-player-cell {
    gap: 6px;
}

.compact-player-thumb img,
.compact-player-thumb .player-placeholder {
    width: 26px;
    height: 26px;
    border-radius: 4px;
}

.compact-player-name {
    font-size: 12px;
    line-height: 1.1;
}

.player-tag {
    font-size: 10px;
    margin-top: 1px;
}

.compact-cell-button {
    min-height: 24px;
    font-size: 11px;
    padding: 0;
}

.summary-cell {
    font-size: 11px;
    padding: 2px 3px !important;
}

.compact-list-panel {
    background: #fff;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #d7d2c4;
}

.compact-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.compact-list-table th,
.compact-list-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
}

@media (max-width: 900px) {
    .status-header-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .compact-page {
        padding: 6px 6px;
    }

    .compact-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-col {
        min-width: 120px !important;
    }

    .date-col {
        min-width: 58px !important;
    }

    .compact-cell-button {
        min-height: 22px;
        font-size: 10px;
    }

    .compact-player-thumb img,
    .compact-player-thumb .player-placeholder {
        width: 22px;
        height: 22px;
    }

    .compact-player-name {
        font-size: 11px;
    }
}

.date-main {
    font-size: 13px;
    line-height: 1.3;
}

.cancel-note {
    margin-top: 6px;
    font-size: 12px;
    color: #b71c1c;
    font-weight: bold;
}

.player-cell {
    display: flex;
    gap: 10px;
    align-items: center;
}

.player-thumb img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.player-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #ddd;
}

.player-name {
    font-weight: bold;
}

.player-tag {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.extra-tag {
    color: #b26a00;
}

.current-user-row .sticky-col {
    background: #f6f0d8;
}

.status-cell {
    padding: 0 !important;
}

.cell-form {
    margin: 0;
}

.cell-button {
    width: 100%;
    min-height: 34px;
    font-size: 13px;
    border: 0;
    background: transparent;
    font-weight: bold;
    cursor: pointer;
}

.cell-ja .cell-button {
    background: #2e7d32;
    color: #fff;
}

.cell-nej .cell-button {
    background: #b71c1c;
    color: #fff;
}

.cell-ej_svar .cell-button {
    background: #f0f0f0;
    color: #555;
}

.summary-label {
    background: #f9f9f9 !important;
    font-weight: bold;
}

.summary-cell {
    background: #fafafa;
    font-weight: bold;
}

@media (max-width: 800px) {
    .overview-hero {
        flex-direction: column;
    }

    .overview-legend {
        min-width: 0;
    }

    .player-col {
        min-width: 190px;
    }

    .date-col {
        min-width: 92px;
    }
}
.compact-shell {
    max-width: 100%;
    padding: 6px 8px;
}

.compact-topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.compact-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compact-nav-links a {
    text-decoration: none;
    color: #0d47a1;
    font-weight: bold;
}

.overview-matrix-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    padding: 2px;
}

.overview-matrix {
    border-collapse: collapse;
    width: max-content;
    min-width: 820px;
}

.overview-matrix th,
.overview-matrix td {
    border: 1px solid #dcdcdc;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    font-size: 11px;
}

.sticky-player {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}

.player-head-cell {
    min-width: 145px;
    padding: 4px 6px !important;
    text-align: left !important;
    background: #f5f7fa !important;
}

.player-name-cell {
    min-width: 145px;
    padding: 2px 4px !important;
    text-align: left !important;
    background: #fff !important;
}

.date-head-cell {
    min-width: 58px;
    max-width: 58px;
    background: #f8fafc;
    padding: 2px !important;
}

.date-head-cancelled {
    background: #eef4fb;
}

.date-head-nr {
    font-size: 10px;
    font-weight: bold;
    color: #666;
    line-height: 1;
    margin-bottom: 2px;
}

.date-head-main {
    font-size: 10px;
    line-height: 1.05;
}

.date-head-note {
    margin-top: 2px;
    font-size: 9px;
    color: #0d47a1;
    font-weight: bold;
}

.compact-muted {
    color: #888;
    font-size: 10px;
}

.ja-summary-row th,
.ja-summary-row td {
    background: #f0f5fb;
    height: 20px;
}

.summary-left-cell {
    font-weight: bold;
    font-size: 10px !important;
    text-align: left !important;
    padding: 2px 6px !important;
    background: #f0f5fb !important;
}

.ja-summary-cell {
    min-width: 58px;
    max-width: 58px;
    font-size: 10px !important;
}

.ja-summary-link {
    color: #0d47a1;
    font-weight: bold;
    text-decoration: underline;
}

.focus-date-col {
    box-shadow: inset 0 0 0 1px #90caf9;
}

.overview-player-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.overview-player-thumb img,
.overview-player-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: block;
    object-fit: cover;
    background: #ddd;
}

.overview-player-text {
    min-width: 0;
}

.overview-player-name {
    font-size: 11px;
    line-height: 1.05;
    font-weight: bold;
}

.overview-player-tag {
    font-size: 9px;
    line-height: 1;
    margin-top: 1px;
    color: #666;
}

.extra-tag {
    color: #0d47a1;
}

.overview-current-row .player-name-cell {
    background: #eef5ff !important;
}

.overview-status-cell {
    min-width: 58px;
    max-width: 58px;
    padding: 0 !important;
}

.overview-cell-form {
    margin: 0;
}

.overview-cell-button {
    width: 100%;
    min-height: 20px;
    border: 0;
    background: transparent;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.overview-cell-ja .overview-cell-button {
    background: #2e7d32;
    color: #fff;
}

.overview-cell-nej .overview-cell-button {
    background: #b71c1c;
    color: #fff;
}

.overview-cell-ej_svar .overview-cell-button {
    background: #f3f3f3;
    color: #666;
}

.single-next-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
}

.single-next-box,
.single-profile-box {
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 10px 12px;
}

.single-next-title,
.single-profile-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.single-next-date {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.single-next-meta {
    font-size: 13px;
    margin-bottom: 4px;
}

.single-answer-state {
    margin: 12px 0;
    padding: 8px 10px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 13px;
}

.single-answer-form {
    display: grid;
    gap: 8px;
}

.single-btn {
    border: 0;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
}

.single-btn-yes {
    background: #2e7d32;
    color: #fff;
}

.single-btn-no {
    background: #b71c1c;
    color: #fff;
}

.single-btn-reset {
    background: #757575;
    color: #fff;
}

.single-profile-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
}

.single-profile-thumb img,
.single-profile-thumb .overview-player-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .single-next-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .compact-shell {
        padding: 4px;
    }

    .compact-topnav {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .player-head-cell,
    .player-name-cell {
        min-width: 112px;
    }

    .date-head-cell,
    .ja-summary-cell,
    .overview-status-cell {
        min-width: 50px;
        max-width: 50px;
    }

    .overview-cell-button {
        min-height: 18px;
        font-size: 9px;
    }

    .overview-player-thumb img,
    .overview-player-placeholder {
        width: 18px;
        height: 18px;
    }

    .overview-player-name {
        font-size: 10px;
    }
}
.fp-shell {
    max-width: 100%;
    padding: 4px 6px;
}

.fp-topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}

.fp-toplinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-toplinks a {
    text-decoration: none;
    color: #0d47a1;
    font-weight: bold;
}

.fp-matrix-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d4dbe1;
    border-radius: 3px;
    padding: 1px;
}

.fp-matrix {
    border-collapse: collapse;
    width: max-content;
    min-width: 900px;
}

.fp-matrix th,
.fp-matrix td {
    border: 1px solid #dddddd;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    font-size: var(--table-font-size, 10px);
}

.fp-sticky-player {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}

.fp-player-head {
    min-width: var(--player-column-width, 128px);
    text-align: left !important;
    padding: 3px 5px !important;
    background: #f3f6f9 !important;
    font-size: var(--table-font-size, 10px) !important;
}

.fp-player-cell {
    min-width: var(--player-column-width, 128px);
    text-align: left !important;
    padding: 1px 3px !important;
    background: #fff !important;
}

.fp-date-head {
    min-width: var(--date-column-width, 36px);
    max-width: var(--date-column-width, 36px);
    background: #f8fafc;
    padding: 2px 1px !important;
}

.fp-focus-col {
    box-shadow: inset 0 0 0 1px #90caf9;
}

.fp-date-head.fp-focus-col {
    background: #f4f8ff !important;
}

.fp-date-nr {
    font-size: 9px;
    font-weight: bold;
    color: #666;
    line-height: 1;
    margin-bottom: 1px;
}

.fp-date-main {
    font-size: 10px;
    line-height: 1.0;
}

.fp-date-note {
    margin-top: 1px;
    font-size: 8px;
    color: #0d47a1;
    font-weight: bold;
}

.fp-date-focus-label {
    margin-top: 1px;
    font-size: 8px;
    line-height: 1.15;
    color: #1565c0;
    font-weight: bold;
}

.fp-summary-row th,
.fp-summary-row td {
    background: #eef4fb;
    height: var(--cell-height, 18px);
}

.fp-summary-cell {
    min-width: var(--date-column-width, 36px);
    max-width: var(--date-column-width, 36px);
    font-size: 9px !important;
}

.fp-summary-link {
    color: #0d47a1;
    font-weight: bold;
    text-decoration: underline;
}

.fp-player-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-player-thumb img,
.fp-player-placeholder {
    width: var(--player-photo-size, 32px);
    height: var(--player-photo-size, 32px);
    border-radius: 2px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.fp-player-text {
    min-width: 0;
}

.fp-player-name {
    font-size: 10px;
    line-height: 1.0;
    font-weight: bold;
}

.fp-player-tag {
    font-size: 8px;
    line-height: 1;
    margin-top: 1px;
    color: #666;
}

.fp-current-row .fp-player-cell {
    background: #eef5ff !important;
}

.fp-status-cell {
    min-width: var(--date-column-width, 36px);
    max-width: var(--date-column-width, 36px);
    padding: 0 !important;
}

.fp-cell-form {
    margin: 0;
}

.fp-cell-button {
    width: 100%;
    min-height: var(--cell-height, 18px);
    border: 0;
    background: transparent;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.fp-cell-ja .fp-cell-button {
    background: #2e7d32;
    color: #fff;
}

.fp-cell-nej .fp-cell-button {
    background: #b71c1c;
    color: #fff;
}

.fp-cell-ej_svar .fp-cell-button {
    background: #f3f3f3;
    color: #666;
}

.fp-status-cell.fp-focus-col .fp-cell-button {
    box-shadow: inset 0 0 0 1px #90caf9;
}

.fp-status-cell.fp-my-next-missing .fp-cell-button {
    background: #fff3cd !important;
    color: #7a4b00 !important;
    box-shadow: inset 0 0 0 2px #ff9800;
}

.fp-my-next-missing .fp-ej-svar {
    color: #7a4b00;
    font-weight: bold;
}

.fp-home-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 8px;
}

.fp-profile-box,
.fp-answer-box {
    background: #fff;
    border: 1px solid #d4dbe1;
    border-radius: 4px;
    padding: 8px 10px;
}

.fp-box-title {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.fp-profile-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
}

.fp-profile-thumb img,
.fp-profile-thumb .fp-player-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

.fp-answer-date {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}

.fp-answer-meta {
    font-size: 12px;
    margin-bottom: 3px;
}

.fp-answer-state {
    margin: 10px 0;
    padding: 7px 8px;
    background: #f5f7fa;
    border-radius: 3px;
    font-size: 12px;
}

.fp-answer-form {
    display: grid;
    gap: 6px;
}

.fp-btn {
    border: 0;
    border-radius: 3px;
    padding: 9px 10px;
    font-size: 13px;
    cursor: pointer;
}

.fp-btn-yes {
    background: #2e7d32;
    color: #fff;
}

.fp-btn-no {
    background: #b71c1c;
    color: #fff;
}

.fp-btn-reset {
    background: #757575;
    color: #fff;
}

@media (max-width: 900px) {
    .fp-home-grid {
        grid-template-columns: 1fr;
    }

    .fp-answer-box {
        order: 1;
    }

    .fp-profile-box {
        order: 2;
    }
}

@media (max-width: 700px) {
    .fp-shell {
        padding: 3px;
    }

    .fp-topnav {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .fp-player-head,
    .fp-player-cell {
        min-width: 104px;
    }

    .fp-date-head,
    .fp-summary-cell,
    .fp-status-cell {
        min-width: var(--date-column-width, 36px);
        max-width: var(--date-column-width, 36px);
    }

    .fp-cell-button {
        min-height: 16px;
        font-size: 8px;
    }

    .fp-player-thumb img,
    .fp-player-placeholder {
        width: var(--player-photo-size, 32px);
        height: var(--player-photo-size, 32px);
    }

    .fp-player-name {
        font-size: 9px;
    }

    .fp-answer-date {
        font-size: 17px;
    }
}   
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.site-brand {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.site-logo {
    height: var(--header-logo-height);
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 34px;
}

.site-meta {
    font-size: 14px;
    margin-top: 4px;
}

.site-next-box {
    background: var(--header-info-box-color);
    color: white;
    padding: var(--header-box-padding);
    border-radius: 10px;
    width: var(--header-info-box-width);
}

.site-next-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.site-next-date {
    font-size: var(--header-date-font-size, 24px);
    font-weight: bold;
}

.site-next-sub {
    font-size: var(--header-text-font-size, 14px);
    margin-top: 8px;
}

.site-next-small {
    font-size: var(--header-small-font-size, 14px);
    margin-top: 8px;
}

.site-cancel {
    margin-top: 10px;
    background: transparent;
    padding: 6px;
}

@media (max-width:800px) {
    .site-header {
        flex-direction: column;
    }

    .site-next-box {
        width: 100%;
    }
}
.site-header {
    max-width: var(--page-max-width);
    margin: 0 auto 20px auto;
}

.site-header {
    max-width: var(--page-max-width);
}

.site-logo {
    height: var(--header-logo-height);
}

.site-next-box {
    width: var(--header-info-box-width);
    background: var(--header-info-box-color);
    padding: var(--header-box-padding);
}
/* Topprad med inloggad info och navigationslänkar */
.fp-topnav {
    max-width: var(--page-max-width);
    margin: 0 auto 6px auto;
    padding: 0 var(--page-padding);
    box-sizing: border-box;
}

/* Gemensam header ska ha samma bredd som sidan */
.site-header {
    max-width: var(--page-max-width);
    margin: 0 auto 8px auto;
    padding: 0 var(--page-padding) 8px var(--page-padding);
    box-sizing: border-box;
    border-bottom: 2px solid var(--header-info-box-color);
}

/* Gör att vänster och höger info inte flyter ut över hela skärmen */
.fp-toplinks {
    justify-content: flex-end;
}

/* Mobil: behåll toppraden kompakt */
@media (max-width: 800px) {
    .fp-topnav {
        padding: 0 6px;
        align-items: flex-start;
    }

    .site-header {
        padding: 0 6px 6px 6px;
    }
}
/* Justera innehåll under gemensam header så det linjerar med headern */

.site-header,
.fp-topnav,
.fp-home-grid,
.fp-matrix-wrap,
.container {
    max-width: var(--page-max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.fp-matrix-wrap,
.fp-home-grid {
    max-width: var(--page-max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Home: hindra rutorna från att dras ut över hela skärmen */
.fp-home-grid {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

/* Overview: tabellen ska börja i samma visuella vänsterkant som headern */
.fp-matrix-wrap {
    margin-top: 6px;
}

/* Mobil: behåll full bredd */
@media (max-width: 800px) {
    .site-header,
    .fp-topnav,
    .fp-matrix-wrap,
    .fp-home-grid,
    .container {
        max-width: 100%;
    }

    .fp-matrix-wrap,
    .fp-home-grid {
        padding-left: 0;
        padding-right: 0;
    }
}

.fp-ej-svar {
    font-size: 9px;
    color: #666;
    display: inline-block;
    line-height: 1;
}

.fp-edit-link {
    font-size: 11px;
    color: #1565c0;
    text-decoration: none;
    margin-left: 6px;
}

.fp-edit-link:hover {
    text-decoration: underline;
}

.fp-profile-text {
    display: grid;
    gap: 5px;
    line-height: 1.35;
}

.fp-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
}

.fp-photo-actions .fp-edit-link,
.fp-answer-links .fp-edit-link {
    margin-left: 0;
}

.fp-inline-form {
    display: inline;
    margin: 0;
}

.fp-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.fp-startvy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.fp-startvy-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0;
}

.fp-startvy-form label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.fp-startvy-form input {
    margin: 0;
}

.fp-small-button {
    border: 1px solid #cfd8dc;
    border-radius: 3px;
    background: #f5f7fa;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
}

.fp-answer-links {
    margin-top: 7px;
    font-size: 11px;
}

.fp-profile-row {
    align-items: flex-start;
}

.fp-profile-thumb {
    flex: 0 0 auto;
}

.fp-profile-img,
.fp-profile-placeholder {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    border-radius: 6px !important;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.fp-profile-placeholder {
    background: #ddd;
}

.fp-photo-actions {
    margin-top: 0;
    margin-bottom: 2px;
}

.fp-profile-image-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.fp-profile-image-block .fp-photo-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin: 0;
}

.fp-profile-image-block .fp-edit-link {
    font-size: 11px;
    line-height: 1.1;
}

.fp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
    z-index: 1000;
}

.fp-modal.is-open {
    display: flex;
}

.fp-modal-content {
    background: white;
    padding: 10px;
    border-radius: 4px;
    min-width: 200px;
    max-width: min(520px, 96vw);
    max-height: 88vh;
    overflow: auto;
    box-sizing: border-box;
}

.fp-modal-header {
    font-weight: bold;
    margin-bottom: 8px;
}

.fp-modal-body .compact-list-panel {
    border: 0;
    padding: 0;
}

.fp-modal-close {
    margin-top: 8px;
    border: 0;
    border-radius: 3px;
    background: #757575;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
}

.fp-player-link {
    color: #1565c0;
    text-decoration: none;
    font: inherit;
}

.fp-player-link:hover {
    text-decoration: underline;
}

.fp-player-info-modal {
    width: min(360px, 94vw);
}

.fp-player-info-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fp-player-info-photo,
.fp-player-info-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.fp-player-info-photo {
    object-fit: cover;
}

.fp-player-info-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #666;
    font-size: 11px;
    text-align: center;
}

.fp-player-info-text {
    display: grid;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
}

.fp-player-info-name {
    font-weight: bold;
    font-size: 14px;
}

.fp-reminder-backdrop-content {
    min-height: 220px;
}

.fp-mail-modal {
    align-items: flex-start;
    padding-top: 28px;
}

.fp-mail-modal-content {
    display: flex;
    flex-direction: column;
    width: min(560px, calc(100vw - 24px));
    max-width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 56px);
    padding: 0;
    overflow: hidden;
    font-size: 12px;
    background: #fff9db;
}

.fp-mail-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #eadf9f;
    background: #fff4bf;
}

.fp-mail-modal-top h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.fp-mail-modal-close {
    flex: 0 0 auto;
    margin-top: 0;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.fp-mail-modal-body {
    overflow: auto;
    padding: 10px 12px 12px;
}

.fp-mail-modal-body .success-message {
    font-size: 16px;
    line-height: 1.25;
    padding: 8px 10px;
    border: 1px solid #9ccc65;
    border-radius: 4px;
    background: #f1f8e9;
}

.fp-mail-modal-body p {
    margin: 0 0 8px;
}

.fp-mail-modal-meta {
    font-size: 12px;
}

.fp-mail-modal-form {
    display: grid;
    gap: 8px;
}

.fp-mail-modal-form label {
    display: grid;
    gap: 3px;
    font-size: 12px;
    font-weight: bold;
}

.fp-mail-modal-form input,
.fp-mail-modal-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 12px;
}

.fp-mail-modal-form textarea {
    min-height: 300px;
    line-height: 1.35;
    resize: vertical;
}

.fp-mail-modal-form button {
    justify-self: start;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .fp-player-info-box {
        flex-direction: column;
    }

    .fp-modal {
        align-items: flex-start;
        padding-top: 24px;
    }

    .fp-modal-content {
        width: 100%;
    }

    .fp-mail-modal {
        padding-top: 12px;
    }

    .fp-mail-modal-content {
        max-height: calc(100vh - 24px);
    }

    .fp-mail-modal-top {
        align-items: flex-start;
    }
}

.fp-status-cell {
    padding: 0 !important;
    vertical-align: stretch;
}

.fp-status-cell.fp-cell-ja {
    background: #3f7f35 !important;
}

.fp-status-cell.fp-cell-nej {
    background: #a92b25 !important;
}

.fp-status-cell.fp-cell-ej_svar {
    background: #f3f3f3 !important;
}

.fp-status-cell.fp-my-next-missing {
    background: #fff3cd !important;
}

.fp-cell-form {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.fp-cell-button {
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: var(--cell-height, 18px);
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fp-matrix td {
    border-spacing: 0;
}

.fp-matrix tbody tr {
    height: calc(var(--player-photo-size, 32px) + 6px);
}

.fp-date-head.fp-focus-col {
    box-shadow: inset 0 0 0 1px #90caf9;
    background: #f4f8ff !important;
}

.fp-status-cell.fp-focus-col {
    box-shadow: none !important;
}

.fp-cancelled {
    color: #c62828 !important;
}

.fp-current-row .fp-player-tag {
    font-weight: bold;
}

.fp-status-cell.fp-focus-col .fp-cell-button {
    box-shadow: none !important;
}

.fp-status-cell.fp-my-next-missing .fp-cell-button {
    box-shadow: inset 0 0 0 2px #ff9800 !important;
}
