* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* אופטימיזציה למובייל */
body.mobile {
    -webkit-overflow-scrolling: touch;
}

body.mobile * {
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.enter-code-btn {
    padding: 8px 16px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
}

.enter-code-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-indicator {
    font-size: 1.2rem;
    color: #f39c12;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    color: #27ae60;
    animation: none;
}

.status-indicator.error {
    color: #e74c3c;
    animation: none;
}

.status-text {
    color: #2c3e50;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tab-button {
    padding: 12px 30px;
    border: none;
    background: #ecf0f1;
    color: #2c3e50;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.players-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.house {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.house h3 {
    color: #495057;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.players-list {
    min-height: 200px;
    margin-bottom: 15px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.player-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

.delete-player {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.delete-player:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.add-player-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.add-player-form input {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-player-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.add-player-form select {
    min-width: 100px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.add-player-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.add-player-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-player-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* בחירת סיבוב */
.round-selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.selector-group {
    text-align: center;
}

.selector-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.2rem;
}

.selector-group select {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    background: white;
    min-width: 200px;
    transition: all 0.3s ease;
}

.selector-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* הזנת סיבוב */
.round-input {
    max-width: 800px;
    margin: 0 auto;
}

.round-input h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.round-games {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.game-players {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

.player-selection {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.player-selection label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.player-selection select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.player-selection select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.selected-player-name {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    display: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* בחירת צבע בניהול שחקנים */
.player-color-select {
    font-size: 0.9rem;
    padding: 4px 6px;
}

.player-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

.vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.game-sets {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.set-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.set-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.set-scores {
    display: flex;
    align-items: center;
    gap: 8px;
}

.set-scores input {
    width: 60px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.set-scores input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.set-scores span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.round-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.save-round-btn,
.load-round-btn,
.clear-round-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.save-round-btn {
    background: #27ae60;
    color: white;
}

.save-round-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.load-round-btn {
    background: #3498db;
    color: white;
}

.load-round-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.clear-round-btn {
    background: #e74c3c;
    color: white;
}

.clear-round-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* סיכום סיבובים */
.rounds-summary {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.rounds-summary h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

.rounds-tables {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.round-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.round-table h4 {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: center;
    margin: 0;
    font-size: 1.1rem;
}

.round-table table {
    width: 100%;
    border-collapse: collapse;
}

.round-table th,
.round-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.round-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.round-table tr:nth-child(even) {
    background: #f8f9fa;
}

.round-table tr:hover {
    background: #e3f2fd;
}

/* טבלה מפורטת של סיבובים */
.detailed-rounds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
}

.detailed-rounds-table th {
    background: #34495e;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #2c3e50;
    font-size: 0.7rem;
}

.detailed-rounds-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ecf0f1;
    font-size: 0.7rem;
    vertical-align: middle;
}

.detailed-rounds-table tr:nth-child(even) {
    background: #f8f9fa;
}

.detailed-rounds-table tr:hover {
    background: #e3f2fd;
}

.overall-header {
    background: #2c3e50 !important;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-width: 60px;
}

.player-header {
    background: #2c3e50 !important;
    font-weight: 700;
    min-width: 100px;
}

.overall-cell {
    background: #ecf0f1 !important;
    font-weight: 600;
}

.overall-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overall-stats .stat {
    padding: 2px;
    background: white;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}


.player-cell {
    background: #f8f9fa !important;
    font-weight: 600;
    text-align: center !important;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.player-letter {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.player-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* צבעי רקע לשמות שחקנים */
.player-letter.color-red,
.player-name.color-red {
    background-color: #e74c3c;
    color: white;
}

.player-letter.color-blue,
.player-name.color-blue {
    background-color: #2980b9; /* כחול כהה יותר */
    color: white;
}

.player-letter.color-green,
.player-name.color-green {
    background-color: #27ae60;
    color: white;
}

.player-letter.color-yellow,
.player-name.color-yellow {
    background-color: #f1c40f;
    color: #2c3e50;
}

.player-letter.color-purple,
.player-name.color-purple {
    background-color: #9b59b6;
    color: white;
}

.player-letter.color-cyan,
.player-name.color-cyan {
    background-color: #5dade2; /* תכלת בהיר יותר */
    color: white;
}

.player-letter.color-pink,
.player-name.color-pink {
    background-color: #e91e63;
    color: white;
}

.player-letter.color-brown,
.player-name.color-brown {
    background-color: #8d6e63;
    color: white;
}

.player-letter.color-gray,
.player-name.color-gray {
    background-color: #95a5a6;
    color: white;
}

.player-letter.color-black,
.player-name.color-black {
    background-color: #2c3e50;
    color: white;
}

.player-letter.color-white,
.player-name.color-white {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

/* עיצוב מיוחד לשמות שחקנים */
.player-name.color-red,
.player-name.color-blue,
.player-name.color-green,
.player-name.color-yellow,
.player-name.color-purple,
.player-name.color-cyan,
.player-name.color-pink,
.player-name.color-brown,
.player-name.color-gray,
.player-name.color-black,
.player-name.color-white {
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    width: auto;
    box-sizing: border-box;
}

/* צבעי הקוביות הקטנות עבור הטבלה המקיפה */
.comprehensive-summary-table .player-color-box.color-red {
    background-color: #e74c3c;
}

.comprehensive-summary-table .player-color-box.color-blue {
    background-color: #2980b9; /* כחול כהה יותר */
}

.comprehensive-summary-table .player-color-box.color-green {
    background-color: #27ae60;
}

.comprehensive-summary-table .player-color-box.color-yellow {
    background-color: #f1c40f;
}

.comprehensive-summary-table .player-color-box.color-purple {
    background-color: #9b59b6;
}

.comprehensive-summary-table .player-color-box.color-cyan {
    background-color: #5dade2; /* תכלת בהיר יותר */
}

.comprehensive-summary-table .player-color-box.color-pink {
    background-color: #e91e63;
}

.comprehensive-summary-table .player-color-box.color-brown {
    background-color: #8d6e63;
}

.comprehensive-summary-table .player-color-box.color-gray {
    background-color: #95a5a6;
}

.comprehensive-summary-table .player-color-box.color-black {
    background-color: #2c3e50;
}

.comprehensive-summary-table .player-color-box.color-white {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
}

/* עבור הטבלה המלאה */
.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-red {
    background-color: #e74c3c;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-blue {
    background-color: #2980b9; /* כחול כהה יותר */
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-green {
    background-color: #27ae60;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-yellow {
    background-color: #f1c40f;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-purple {
    background-color: #9b59b6;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-cyan {
    background-color: #5dade2; /* תכלת בהיר יותר */
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-pink {
    background-color: #e91e63;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-brown {
    background-color: #8d6e63;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-gray {
    background-color: #95a5a6;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-black {
    background-color: #2c3e50;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box.color-white {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
}

.game-input {
    max-width: 600px;
    margin: 0 auto;
}

.game-selectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-selectors select {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
    transition: all 0.3s ease;
}

.game-selectors select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.sets-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.set {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.set h4 {
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.set-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.set-scores input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    width: 100px;
    transition: all 0.3s ease;
}

.set-scores input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.set-scores span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.save-game-btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.save-game-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.standings-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.house-standings h3 {
    color: #495057;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.standings-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #34495e;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.standings-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.standings-table tr:nth-child(even) {
    background: #f8f9fa;
}

.standings-table tr:hover {
    background: #e3f2fd;
}

.rank {
    font-weight: 700;
    color: #2c3e50;
}

.player-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.export-section {
    text-align: center;
}

.export-btn {
    padding: 15px 40px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.export-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.export-excel-btn {
    padding: 15px 40px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.export-excel-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.import-excel-btn {
    padding: 15px 40px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 15px;
    display: inline-block;
}

.import-excel-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.fullscreen-btn {
    padding: 15px 40px;
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.fullscreen-btn:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

.reset-btn {
    padding: 15px 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.reset-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.detailed-summary-btn {
    padding: 15px 40px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.detailed-summary-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
}

.comprehensive-report-btn {
    padding: 15px 40px;
    background: #16a085;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.comprehensive-report-btn:hover {
    background: #138d75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

/* מודל */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group button,
.modal-content button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-group button:hover,
.modal-content button[type="submit"]:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.code-menu {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.code-menu-btn {
    width: 100%;
    padding: 10px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
}

.code-menu-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* צבעי שחקנים */
.color-red { background-color: #e74c3c; }
.color-blue { background-color: #2980b9; } /* כחול כהה יותר */
.color-green { background-color: #27ae60; }
.color-yellow { background-color: #f1c40f; }
.color-purple { background-color: #9b59b6; }
.color-cyan { background-color: #5dade2; } /* תכלת בהיר יותר */
.color-pink { background-color: #e91e63; }
.color-brown { background-color: #8d6e63; }
.color-gray { background-color: #95a5a6; }
.color-black { background-color: #2c3e50; }
.color-white { background-color: #ecf0f1; border: 2px solid #bdc3c7; }

/* רספונסיביות - טאבלט */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .players-container,
    .standings-container {
        gap: 20px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
}

/* רספונסיביות - טלפון */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .tabs {
        gap: 5px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .players-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .house {
        padding: 15px;
    }
    
    .house h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .add-player-form {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
    
    .add-player-form input,
    .add-player-form select {
        width: 100%;
        min-width: auto;
        padding: 12px;
        font-size: 1rem;
    }
    
    .add-player-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    .player-item {
        padding: 8px 12px;
        margin-bottom: 6px;
    }
    
    .player-name {
        font-size: 0.9rem;
    }
    
    .delete-player {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .game-input {
        max-width: 100%;
    }
    
    .game-selectors {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-selectors select {
        width: 100%;
        min-width: auto;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .vs {
        font-size: 1.1rem;
    }
    
    .set {
        padding: 15px;
    }
    
    .set h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .set-scores {
        flex-direction: column;
        gap: 10px;
    }
    
    .set-scores input {
        width: 100%;
        padding: 15px;
        font-size: 1.2rem;
    }
    
    .set-scores span {
        font-size: 1.3rem;
    }
    
    .save-game-btn {
        padding: 18px;
        font-size: 1.3rem;
    }
    
    .standings-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 600px; /* רוחב מינימלי לגלילה אופקית */
    }
    
    .standings-table table {
        min-width: 600px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .standings-table th:first-child,
    .standings-table td:first-child {
        position: sticky;
        right: 0;
        background: inherit;
        z-index: 1;
    }
    
    .export-section {
        margin-top: 20px;
    }
    
    .export-btn,
    .fullscreen-btn,
    .reset-btn {
        width: 100%;
        margin: 5px 0;
        padding: 18px;
        font-size: 1.2rem;
    }
    
    .fullscreen-btn,
    .reset-btn {
        margin-right: 0;
    }
}

/* רספונסיביות - טלפון קטן */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 10px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .house {
        padding: 10px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 6px 2px;
        font-size: 0.7rem;
    }
    
    .player-color {
        width: 16px;
        height: 16px;
    }
    
    .set-scores input {
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .save-game-btn {
        padding: 15px;
        font-size: 1.2rem;
    }
}

/* תמיכה במסכים עם רזולוציה גבוהה */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .player-color {
        border-width: 1px;
    }
    
    .standings-table {
        border-width: 0.5px;
    }
}

/* תמיכה במצב landscape בטלפון */
@media (max-width: 768px) and (orientation: landscape) {
    .players-container,
    .standings-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .fullscreen-standings {
        grid-template-columns: 1fr 1fr;
    }
}

/* מסך מלא */
.fullscreen-display {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
}

.fullscreen-content {
    padding: 0;
    max-width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fullscreen-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-bottom: 2px solid #2c3e50;
    z-index: 2001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fullscreen-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fullscreen-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.fullscreen-header h1 {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.fullscreen-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    background: #3498db;
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    line-height: 1;
    padding: 0;
}

.nav-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn.prev-btn {
    background: #95a5a6;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.nav-btn.prev-btn:hover {
    background: #7f8c8d;
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.nav-btn.next-btn {
    background: #95a5a6;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.nav-btn.next-btn:hover {
    background: #7f8c8d;
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.rotation-btn {
    background: #e74c3c;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.rotation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.rotation-btn:active {
    transform: translateY(0);
}

.close-fullscreen {
    background: #e74c3c;
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.close-fullscreen:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.fullscreen-comprehensive-summary {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    overflow-x: hidden; /* ללא גלילה אופקית */
    -webkit-overflow-scrolling: touch;
    padding-left: 0 !important; /* ביטול padding משמאל */
    margin-left: 0 !important; /* ביטול margin משמאל */
}

.fullscreen-comprehensive-summary .house-comprehensive-summary {
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    padding: 20px;
    padding-left: 10px !important; /* הקטנת ריווח משמאל - הטבלה תזוז שמאלה */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-left: 0 !important; /* ביטול margin משמאל */
}

.fullscreen-comprehensive-summary .house-comprehensive-summary h3 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* במסך מלא - משתמש באותה טבלה מהדף של סיכום כולל - בלי הגדלות */
.fullscreen-comprehensive-summary .comprehensive-summary-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* במסך מלא - player-cell כמו בדף הסיכום הכולל */

/* במסך מלא - player-info כמו בדף הסיכום הכולל */

/* במסך מלא - player-color-box כמו בדף הסיכום הכולל */

/* במסך מלא - player-name כמו בדף הסיכום הכולל */

/* במסך מלא - רקע צבעוני חצי שקוף למלבנים עם שמות שחקנים */
/* במסך מלא - צבע טקסט לשמות שחקנים - בלי מלבנים צבעוניים */
.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-red {
    background: transparent !important; /* בלי מלבן */
    color: #c0392b !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-blue {
    background: transparent !important; /* בלי מלבן */
    color: #1e6091 !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-green {
    background: transparent !important; /* בלי מלבן */
    color: #229954 !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-yellow {
    background: transparent !important; /* בלי מלבן */
    color: #b7950b !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-purple {
    background: transparent !important; /* בלי מלבן */
    color: #7d3c98 !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-cyan {
    background: transparent !important; /* בלי מלבן */
    color: #2874a6 !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-pink {
    background: transparent !important; /* בלי מלבן */
    color: #c2185b !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-brown {
    background: transparent !important; /* בלי מלבן */
    color: #6d4c41 !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-gray {
    background: transparent !important; /* בלי מלבן */
    color: #616161 !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-black {
    background: transparent !important; /* בלי מלבן */
    color: #1a252f !important;
    font-size: 1.1rem !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name.color-white {
    background: transparent !important; /* בלי מלבן */
    color: #34495e !important;
    font-size: 1.1rem !important;
}

.fullscreen-standings .house-standings {
    background: white;
    padding: 20px;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fullscreen-standings .house-standings h3 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.fullscreen-standings .standings-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 800px; /* רוחב מינימלי לגלילה אופקית */
}

.fullscreen-standings .standings-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* רוחב מינימלי לגלילה אופקית */
}

.fullscreen-standings .standings-table th {
    background: #34495e;
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.fullscreen-standings .standings-table td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    font-size: 1.1rem;
    font-weight: 600;
}

/* צמצום עמודת "שחקן" במסך מלא (עמודה 2) בכ~20% */
.fullscreen-standings .standings-table th:nth-child(2),
.fullscreen-standings .standings-table td:nth-child(2) {
    width: 144px; /* צמצום נוסף ~10% */
    min-width: 126px;
    max-width: 200px;
}

.fullscreen-standings .standings-table tr:nth-child(even) {
    background: #f8f9fa;
}

.fullscreen-standings .standings-table tr:hover {
    background: #e3f2fd;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.fullscreen-standings .rank {
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.3rem;
}

.fullscreen-standings .player-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fullscreen-standings .player-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.fullscreen-standings .player-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* רספונסיביות למסך מלא - טאבלט */
@media (max-width: 1024px) {
    .fullscreen-standings {
        gap: 30px;
    }
    
    .fullscreen-header h1 {
        font-size: 2.5rem;
    }
    
    .fullscreen-logo {
        height: 50px;
    }
    
    .fullscreen-standings .standings-table th,
    .fullscreen-standings .standings-table td {
        padding: 15px 10px;
        font-size: 1rem;
    }
}

/* רספונסיביות למסך מלא - טלפון */
@media (max-width: 768px) {
    .fullscreen-display {
        /* שימוש במימד הרחב של הטלפון */
        transform: rotate(90deg);
        transform-origin: center;
        width: 100vh;
        height: 100vw;
        position: fixed;
        top: 50%;
        left: 50%;
        margin-top: -50vw;
        margin-left: -50vh;
    }
    
    .fullscreen-content {
        padding: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fullscreen-header {
        padding: 15px;
        margin-bottom: 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .fullscreen-header h1 {
        font-size: 1.8rem;
        margin: 0;
    }
    
    .fullscreen-title-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .fullscreen-logo {
        height: 40px;
    }
    
    .close-fullscreen {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        align-self: flex-end;
    }
    
    .fullscreen-standings {
        gap: 20px;
    }
    
    .fullscreen-standings .house-standings {
        padding: 15px;
    }
    
    .fullscreen-standings .house-standings h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .fullscreen-standings .standings-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 600px; /* רוחב מינימלי לגלילה אופקית */
    }
    
    .fullscreen-standings .standings-table table {
        min-width: 600px;
    }
    
    .fullscreen-standings .standings-table th,
    .fullscreen-standings .standings-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .fullscreen-standings .player-color {
        width: 20px;
        height: 20px;
    }
    
    .fullscreen-standings .player-name {
        font-size: 0.9rem;
    }
}

/* רספונסיביות למסך מלא - טלפון קטן */
@media (max-width: 480px) {
    .fullscreen-content {
        padding: 10px;
    }
    
    .fullscreen-header {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .fullscreen-header h1 {
        font-size: 1.5rem;
    }
    
    .close-fullscreen {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .fullscreen-standings .house-standings {
        padding: 10px;
    }
    
    .fullscreen-standings .house-standings h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .fullscreen-standings .standings-table th,
    .fullscreen-standings .standings-table td {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
    
    .fullscreen-standings .player-color {
        width: 16px;
        height: 16px;
    }
    
    .fullscreen-standings .player-name {
        font-size: 0.8rem;
    }
    
    .rounds-tables {
        gap: 20px;
    }
    
    .round-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 500px; /* רוחב מינימלי לגלילה אופקית */
    }
    
    .round-table table {
        min-width: 500px;
    }
    
    .round-table table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .round-table th,
    .round-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* תמיכה במצב landscape במסך מלא */
@media (max-width: 768px) and (orientation: landscape) {
    .fullscreen-standings {
        flex-direction: row;
    }
    
    .fullscreen-header {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .fullscreen-header h1 {
        font-size: 1.5rem;
    }
}

/* סיכום מפורט */
.detailed-summary-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.round-summary-section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.round-summary-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.house-summary {
    margin-bottom: 40px;
}

.house-summary h4 {
    color: #34495e;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.game-detail {
    background: #f8f9fa;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.game-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.player-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.player-name-detail {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}

.sets-detail {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.set-detail {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    min-width: 120px;
}

.set-detail h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.set-scores-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.score-label {
    font-weight: 600;
    color: #495057;
}

.score-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tiebreak-detail {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.tiebreak-detail h5 {
    color: #856404;
}

/* רספונסיביות לסיכום מפורט */
@media (max-width: 768px) {
    .detailed-summary-content {
        padding: 10px;
    }
    
    .round-summary-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .round-summary-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .house-summary h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .game-header-detail {
        flex-direction: column;
        gap: 10px;
    }
    
    .player-detail {
        justify-content: center;
        min-width: auto;
    }
    
    .player-name-detail {
        font-size: 1rem;
        padding: 6px 12px;
        min-width: 100px;
    }
    
    .sets-detail {
        gap: 15px;
    }
    
    .set-detail {
        min-width: 100px;
        padding: 12px;
    }
}

/* דוח מקיף */
.comprehensive-report {
    max-width: 100%;
    overflow-x: auto;
}

.report-section {
    margin-bottom: 50px;
}

.report-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    background: #34495e;
    color: white;
    padding: 15px;
    border-radius: 10px;
}

.comprehensive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
    margin-bottom: 30px;
}

.comprehensive-table th {
    background: #34495e;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #2c3e50;
    font-size: 0.7rem;
}

.comprehensive-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ecf0f1;
    font-size: 0.7rem;
    vertical-align: middle;
}

.comprehensive-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comprehensive-table tr:hover {
    background: #e3f2fd;
}

/* רספונסיביות לדוח מקיף */
@media (max-width: 768px) {
    .comprehensive-table {
        font-size: 0.6rem;
    }
    
    .comprehensive-table th,
    .comprehensive-table td {
        padding: 4px 2px;
        font-size: 0.6rem;
    }
    
    .report-section h2 {
        font-size: 1.4rem;
        padding: 12px;
    }
}

/* סיכום כולל חדש */
.comprehensive-summary-container {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
}

.summary-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-controls .selector-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-controls label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.summary-controls select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 120px;
}

.comprehensive-summary-header {
    text-align: center;
    margin-bottom: 30px;
}

.comprehensive-summary-header h3 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    background: #34495e;
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 0;
}

.house-comprehensive-summary {
    margin-bottom: 40px;
}

.house-comprehensive-summary h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    background: #ecf0f1;
    padding: 15px;
    border-radius: 10px;
}

.comprehensive-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    table-layout: fixed; /* ברירת מחדל: מסך מלא נשאר כפי שהיה */
    direction: rtl;
}

/* בדף סיכום כולל - נשתמש ב-table-layout: fixed כדי לכפות רוחבי עמודות */
.house-comprehensive-summary .comprehensive-summary-table {
    table-layout: fixed;
}

.comprehensive-summary-table th {
    background: #34495e;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #2c3e50;
    font-size: 0.7rem;
}

/* רוחב עמודת שחקן - חזרה למיקום הקודם */
.comprehensive-summary-table th:first-child,
.comprehensive-summary-table td:first-child {
    width: 95px !important; /* רוחב מקורי */
    min-width: 95px !important;
    max-width: 95px !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    overflow: visible !important; /* לאפשר למלבנים לחרוג שמאלה */
}

/* רוחב אחיד לכל עמודות הסיבובים והסיכום הכללי - הרחבה של אות אחת לכל כיוון */
.comprehensive-summary-table th:nth-child(n+2),
.comprehensive-summary-table td:nth-child(n+2) {
    width: 68px !important; /* 54px + 2 אותיות (7px לכל כיוון = 14px) = 68px */
    min-width: 68px !important;
    max-width: 68px !important;
}

/* בדף סיכום כולל - וידוא שהרוחבים מוחלים */
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(n+2),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(n+2) {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
}

/* במסך מלא - רוחב עמודת שחקן כמו בדף הסיכום הכולל */

/* במסך מלא - רוחב עמודות הסיבובים כמו בדף הסיכום הכולל */

/* ריווח נוסף בעמודות עם קו מפריד עבה כדי שלא יכסה את המספרים */
.comprehensive-summary-table th:nth-child(2),
.comprehensive-summary-table td:nth-child(2),
.comprehensive-summary-table th:nth-child(6),
.comprehensive-summary-table td:nth-child(6),
.comprehensive-summary-table th:nth-child(10),
.comprehensive-summary-table td:nth-child(10),
.comprehensive-summary-table th:nth-child(14),
.comprehensive-summary-table td:nth-child(14),
.comprehensive-summary-table th:nth-child(18),
.comprehensive-summary-table td:nth-child(18),
.comprehensive-summary-table th:nth-child(22),
.comprehensive-summary-table td:nth-child(22) {
    padding-right: 8px !important;
    padding-left: 0 !important; /* וידוא ש-padding משמאל הוא 0 כמו בשאר העמודות */
    box-sizing: border-box !important;
}

/* וידוא שכל העמודות של F/A משחק 1 מוגדרות באותו אופן */
.comprehensive-summary-table th:nth-child(2),
.comprehensive-summary-table th:nth-child(6),
.comprehensive-summary-table th:nth-child(10),
.comprehensive-summary-table th:nth-child(14),
.comprehensive-summary-table th:nth-child(18) {
    text-align: center !important; /* יישור למרכז כמו שאר העמודות */
    padding-left: 0 !important; /* וידוא שאין padding משמאל */
}

/* במסך מלא - padding לעמודות עם קו מפריד כמו בדף הסיכום הכולל */

/* עמודות F/A - וידוא שהן באותו רוחב כמו כל העמודות האחרות (68px) */
/* וידוא שכל העמודות של F/A משחק 1 בכל הסיבובים מוגדרות באותו אופן */
.comprehensive-summary-table th:nth-child(2),
.comprehensive-summary-table td:nth-child(2),
.comprehensive-summary-table th:nth-child(6),
.comprehensive-summary-table td:nth-child(6),
.comprehensive-summary-table th:nth-child(10),
.comprehensive-summary-table td:nth-child(10),
.comprehensive-summary-table th:nth-child(14),
.comprehensive-summary-table td:nth-child(14),
.comprehensive-summary-table th:nth-child(18),
.comprehensive-summary-table td:nth-child(18) {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    padding-left: 0 !important; /* ללא padding משמאל */
    padding-right: 8px !important; /* padding מימין לקו ההפרדה */
    box-sizing: border-box !important;
    text-align: center !important;
}

/* עמודות F/A משחק 2, Shot Diff, ניקוד */
.comprehensive-summary-table th:nth-child(3),
.comprehensive-summary-table td:nth-child(3),
.comprehensive-summary-table th:nth-child(4),
.comprehensive-summary-table td:nth-child(4),
.comprehensive-summary-table th:nth-child(7),
.comprehensive-summary-table td:nth-child(7),
.comprehensive-summary-table th:nth-child(8),
.comprehensive-summary-table td:nth-child(8),
.comprehensive-summary-table th:nth-child(11),
.comprehensive-summary-table td:nth-child(11),
.comprehensive-summary-table th:nth-child(12),
.comprehensive-summary-table td:nth-child(12),
.comprehensive-summary-table th:nth-child(15),
.comprehensive-summary-table td:nth-child(15),
.comprehensive-summary-table th:nth-child(16),
.comprehensive-summary-table td:nth-child(16),
.comprehensive-summary-table th:nth-child(19),
.comprehensive-summary-table td:nth-child(19),
.comprehensive-summary-table th:nth-child(20),
.comprehensive-summary-table td:nth-child(20) {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* בדף סיכום כולל - וידוא שעמודות F/A באותו רוחב */
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(3),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(3),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(4),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(4),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(7),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(7),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(8),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(8),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(11),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(11),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(12),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(12),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(15),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(15),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(16),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(16),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(19),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(19),
.house-comprehensive-summary .comprehensive-summary-table th:nth-child(20),
.house-comprehensive-summary .comprehensive-summary-table td:nth-child(20) {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
}

/* במסך מלא - F/A columns כמו בדף הסיכום הכולל */

/* קווים מפרידים עבים בין סיבובים - RTL: שחקן -> סיבוב 1-5 -> סיכום כללי */
/* בין שחקן לסיבוב 1 - עמודה 2 (תחילת סיבוב 1) - RTL משתמש ב-border-right */
.comprehensive-summary-table th:nth-child(2),
.comprehensive-summary-table td:nth-child(2) {
    border-right: 3px solid #2c3e50 !important;
}

/* בין סיבוב 1 לסיבוב 2 - עמודה 6 (תחילת סיבוב 2) */
.comprehensive-summary-table th:nth-child(6),
.comprehensive-summary-table td:nth-child(6) {
    border-right: 3px solid #2c3e50 !important;
}

/* בין סיבוב 2 לסיבוב 3 - עמודה 10 (תחילת סיבוב 3) */
.comprehensive-summary-table th:nth-child(10),
.comprehensive-summary-table td:nth-child(10) {
    border-right: 3px solid #2c3e50 !important;
}

/* בין סיבוב 3 לסיבוב 4 - עמודה 14 (תחילת סיבוב 4) */
.comprehensive-summary-table th:nth-child(14),
.comprehensive-summary-table td:nth-child(14) {
    border-right: 3px solid #2c3e50 !important;
}

/* בין סיבוב 4 לסיבוב 5 - עמודה 18 (תחילת סיבוב 5) */
.comprehensive-summary-table th:nth-child(18),
.comprehensive-summary-table td:nth-child(18) {
    border-right: 3px solid #2c3e50 !important;
}

/* בין סיבוב 5 לסיכום כללי - עמודה 22 (תחילת סיכום כללי) */
.comprehensive-summary-table th:nth-child(22),
.comprehensive-summary-table td:nth-child(22) {
    border-right: 3px solid #2c3e50 !important;
}

/* במסך מלא - קווים מפרידים עבים כמו בדף הסיכום הכולל */

/* קווי הפרדה בולטים יותר בין שחקנים */
.comprehensive-summary-table tr {
    border-bottom: 1px solid #bdc3c7 !important;
}

/* במסך מלא - קווי הפרדה כמו בדף הסיכום הכולל */

.comprehensive-summary-table tr:nth-child(even) {
    border-bottom: 2px solid #95a5a6 !important;
}

/* במסך מלא - קווי הפרדה בשורות זוגיות כמו בדף הסיכום הכולל */

.comprehensive-summary-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ecf0f1;
    font-size: 0.7rem;
    vertical-align: middle;
    word-wrap: break-word;
}

/* במסך מלא - border של td כמו בדף הסיכום הכולל */

.comprehensive-summary-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comprehensive-summary-table tr:hover {
    background: #e3f2fd;
}

.comprehensive-summary-table .overall-cell {
    background: #e8f5e8 !important;
    font-weight: 600;
}

/* הדגשת מקומות 1 ו-2 */
.comprehensive-summary-table .position-1 {
    background: #fff3cd !important;
    color: #856404 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-align: center;
}

.comprehensive-summary-table .position-2 {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-align: center;
}

/* במסך מלא - הדגשה נוספת למקומות 1 ו-2 */
/* במסך מלא - position-1 ו-position-2 כמו בדף הסיכום הכולל */

/* הגדרות מסודרות וחד-משמעיות לעמודת השחקן בטבלה המקיפה */
.comprehensive-summary-table .player-cell {
    background: transparent !important; /* הסרת רקע player-cell לפי בקשה */
    font-weight: 600 !important;
    padding-left: 0 !important; /* ללא padding משמאל - צמוד לקו ההפרדה */
    padding-top: 6px !important; /* הרחבה של 50%: 0 -> 6px */
    padding-bottom: 6px !important; /* הרחבה של 50%: 0 -> 6px */
    padding-right: 0 !important; /* ללא padding מימין */
    margin: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important; /* יישור לשמאל - צמוד לקו ההפרדה */
    gap: 0 !important; /* ללא gap - הריווח יתבצע ב-player-name */
    width: auto !important; /* רוחב לפי התוכן, לא 100% */
    min-width: 100% !important; /* לפחות רוחב העמודה */
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important; /* לאפשר למלבנים לחרוג שמאלה */
}

.comprehensive-summary-table .player-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important; /* יישור לשמאל - צמוד לקו ההפרדה */
    gap: 6px !important;
    margin: 0 !important;
    padding-left: 0 !important; /* ללא padding משמאל - צמוד לקו ההפרדה */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important; /* ללא padding מימין */
    width: auto !important; /* רוחב לפי התוכן */
    min-width: 100% !important; /* לפחות רוחב המלבן */
    box-sizing: border-box !important;
    direction: rtl !important;
    position: relative !important;
}

.comprehensive-summary-table .player-color-box {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important; /* מיקום מוחלט */
    right: 0 !important; /* צמוד לדופן הימנית של המלבן */
    top: 50% !important;
    transform: translateY(-50%) !important; /* יישור אנכי */
}

.comprehensive-summary-table .player-name {
    flex: 0 0 70% !important; /* רוחב קבוע של 70% מעמודת "שחקן" */
    min-width: 0 !important;
    max-width: 70% !important; /* הגבלה מקסימלית */
    text-align: right !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important;
    margin-right: 29px !important; /* רווח מימין כדי לא לחפוף את הריבוע הצבעוני (20px + 9px gap) */
    margin-left: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    font-weight: 600 !important;
    /* font-size יורש מהטבלה - לא מוגדר מפורשות */
    direction: rtl !important;
    background: transparent !important;
    color: #2c3e50; /* צבע ברירת מחדל - יוחלף על ידי צבעי השחקנים */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    overflow: hidden !important; /* מונע חריגה מהמלבן */
    text-overflow: ellipsis !important; /* נקודות אם השם ארוך מדי */
    min-height: 100% !important; /* גובה כגובה השורה */
    height: 100% !important;
}

/* צביעת רקע וטקסט לשמות שחקנים בטבלה המקיפה בהתאם לצבע */
/* רקע צבעוני ל-player-cell - מוסר לפי בקשה */

/* רקע צבעוני וצבע טקסט לשמות שחקנים - המלבן הצבעוני */
.comprehensive-summary-table .player-name.color-red {
    background: rgba(231, 76, 60, 0.3) !important;
    color: #c0392b !important;
    font-weight: 700 !important;
    padding: 0 8px !important; /* padding בתוך המלבן */
}

.comprehensive-summary-table .player-name.color-blue {
    background: rgba(41, 128, 185, 0.3) !important;
    color: #1e6091 !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-green {
    background: rgba(39, 174, 96, 0.3) !important;
    color: #229954 !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-yellow {
    background: rgba(241, 196, 15, 0.4) !important;
    color: #b7950b !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-purple {
    background: rgba(155, 89, 182, 0.3) !important;
    color: #7d3c98 !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-cyan {
    background: rgba(93, 173, 226, 0.3) !important;
    color: #2874a6 !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-pink {
    background: rgba(233, 30, 99, 0.3) !important;
    color: #c2185b !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-brown {
    background: rgba(141, 110, 99, 0.3) !important;
    color: #6d4c41 !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-gray {
    background: rgba(149, 165, 166, 0.3) !important;
    color: #616161 !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-black {
    background: rgba(44, 62, 80, 0.3) !important;
    color: #1a252f !important;
    font-weight: 800 !important;
    padding: 0 8px !important;
}

.comprehensive-summary-table .player-name.color-white {
    background: rgba(236, 240, 241, 0.5) !important;
    color: #34495e !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}

.overall-stats {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.overall-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 3px;
    font-size: 0.65rem;
}

.stat-label {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    text-align: left;
}

.stat-value {
    font-weight: 700;
    color: #34495e;
    flex: 0 0 auto;
    text-align: right;
    min-width: 20px;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    justify-content: center;
    width: 100%;
}

.player-name {
    font-weight: 600;
    font-size: 0.7rem;
}

.player-letter {
    font-weight: 700;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}

/* רספונסיביות לסיכום כולל */
@media (max-width: 768px) {
    .comprehensive-summary-container {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comprehensive-summary-header h3 {
        font-size: 1.5rem;
        padding: 15px;
    }
    
    .house-comprehensive-summary h4 {
        font-size: 1.2rem;
        padding: 12px;
    }
    
    .comprehensive-summary-table {
        font-size: 0.7rem;
        min-width: 1200px; /* רוחב מינימלי לגלילה אופקית */
    }
    
    .comprehensive-summary-table th,
    .comprehensive-summary-table td {
        padding: 6px 3px;
        font-size: 0.7rem;
        white-space: nowrap; /* מונע שבירת טקסט */
    }
    
    .player-info {
        flex-direction: column;
        gap: 4px;
    }
}

/* CSS מיוחד להדפסה */
@media print {
    @page {
        size: A4 landscape;
        margin: 0.5cm;
    }
    
    body {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .comprehensive-summary-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .comprehensive-summary-header h3 {
        font-size: 14px;
        padding: 8px;
        margin: 0 0 10px 0;
    }
    
    .house-comprehensive-summary h4 {
        font-size: 12px;
        padding: 6px;
        margin: 0 0 8px 0;
    }
    
    .comprehensive-summary-table {
        width: 100%;
        font-size: 8px;
        border-collapse: collapse;
        page-break-inside: avoid;
    }
    
    .comprehensive-summary-table th {
        padding: 4px 2px;
        font-size: 7px;
        background: #34495e !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .comprehensive-summary-table td {
        padding: 3px 2px;
        font-size: 7px;
        border: 1px solid #000 !important;
    }
    
    .comprehensive-summary-table tr:nth-child(even) {
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .comprehensive-summary-table .overall-cell {
        background: #e8f5e8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .comprehensive-summary-table .player-cell {
        background: #f0f8ff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        text-align: center !important;
    }
    
    .overall-stats .stat {
        font-size: 6px;
        padding: 1px 2px;
        line-height: 1.1;
    }
    
    .player-info {
        flex-direction: row;
        gap: 4px;
    }
    
    .player-letter,
    .player-name {
        font-size: 7px;
    }
    
    /* הסתרת אלמנטים לא נצרכים להדפסה */
    .export-section,
    .nav-tabs,
    .section-header,
    .add-player-section,
    .game-input-section {
        display: none !important;
    }
    
    /* וידוא שכל הטבלה תישאר על דף אחד */
    .house-comprehensive-summary {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
/* אפשר גלילה אופקית סביב הטבלה בסיכום */
.house-comprehensive-summary {
    overflow-x: auto;
}
.house-comprehensive-summary .comprehensive-summary-table {
    min-width: 1800px; /* מאפשר מקום לכל הסיבובים, גלילה אם צריך */
}
}
/* הגדרות משותפות לבתים וטבלאות אחרות (לא לטבלה המקיפה שיש לה הגדרות נפרדות למעלה) */
/* במסך המלא - יישור למרכז */
.fullscreen-comprehensive-summary .comprehensive-summary-table .player-cell {
  background: transparent !important; /* הסרת רקע המלבן */
  border: none !important; /* הסרת border המלבן */
  font-weight: 600 !important;
  padding: 0 !important;
  direction: rtl !important;
  text-align: right !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important; /* יישור מימין (RTL) */
  gap: 0 !important;
  overflow: visible !important; /* מאפשר לשם להתרחב אם צריך */
  position: relative !important; /* container ל-absolute positioning של הריבוע */
}

/* הסרת border מתאי עמודת השחקנים במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table td:first-child {
  border: none !important; /* הסרת border המלבן */
}

.fullscreen-standings .player-cell,
.whatsapp-table .player-cell {
  background: #f0f8ff !important;
  font-weight: 600 !important;
  padding: 0 !important;
  direction: rtl !important;
  text-align: right !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-info {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  padding-right: 8px !important; /* רווח של אות אחת מהגבול הימני (קו ההפרדה המודגש) */
  margin: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important; /* יישור מימין לשמאל (RTL) */
  gap: 0 !important; /* אין gap כי הריבוע absolute */
  width: 100% !important;
  position: relative !important; /* container ל-absolute positioning של הריבוע */
}

.fullscreen-standings .player-info,
.whatsapp-table .player-info {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-name {
  font-weight: 600 !important;
  display: block !important;
  border: none !important;
  margin: 0 !important;
  margin-right: 28px !important; /* רווח מימין כדי לא לחפוף את הריבוע (20px ריבוע + 8px gap) */
  padding: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  flex: 1 1 auto !important; /* מאפשר התרחבות של השם */
  white-space: nowrap !important;
  overflow: visible !important; /* מציג את כל השם ללא חיתוך */
  text-overflow: clip !important; /* מציג את כל השם */
  text-align: right !important;
  border-radius: 0 !important;
  background: transparent !important; /* בלי מלבן צבעוני */
  font-size: 1.1rem !important; /* גודל כמו position-1 ו-position-2 */
  transform: none !important; /* הסרת scale */
}

.fullscreen-standings .player-name,
.whatsapp-table .player-name {
  background: transparent !important;
  color: #2c3e50 !important;
  font-weight: 600 !important;
  display: block !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fullscreen-comprehensive-summary .comprehensive-summary-table .player-color-box {
  width: 20px !important;
  height: 20px !important;
  position: absolute !important; /* מיקום מוחלט - לא תלוי בשם */
  right: 8px !important; /* רווח של אות אחת מהגבול הימני (קו ההפרדה המודגש) */
  top: 50% !important;
  transform: translateY(-50%) !important; /* יישור אנכי במרכז */
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  flex: none !important; /* לא משתתף ב-flex */
}

.fullscreen-standings .player-color,
.whatsapp-table .player-color-box {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 4px !important;
  margin-left: 2px !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* מרכז את כותרת העמודה "שחקן" בלבד, בלי לשנות את יישור התאים */
.comprehensive-summary-table th.player-header,
.fullscreen-comprehensive-summary .comprehensive-summary-table th.player-header {
  text-align: center !important;
}

/* הגדלת פונט הכותרות במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table th {
  font-size: 1.1rem !important; /* כותרות ראשיות */
  padding: 12px 4px !important; /* הגדלת המרווח ב-50% (מ-8px ל-12px למעלה/למטה) */
}

/* כותרות משנה בסיבובים במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table th:not(.player-header) {
  font-size: 0.9rem !important; /* כותרות המשנה (F/A משחק 1, F/A משחק 2, Shot diff, ניקוד) */
  padding: 12px 4px !important; /* הגדלת המרווח ב-50% (מ-8px ל-12px למעלה/למטה) */
}

/* הגדרת פונט לכותרות הראשיות (שחקן, סיבוב 1-5, סיכום כללי) */
.fullscreen-comprehensive-summary .comprehensive-summary-table th.player-header,
.fullscreen-comprehensive-summary .comprehensive-summary-table th[colspan="4"],
.fullscreen-comprehensive-summary .comprehensive-summary-table th[colspan="3"] {
  font-size: 1.1rem !important; /* כותרות ראשיות */
  padding: 12px 4px !important; /* הגדלת המרווח ב-50% (מ-8px ל-12px למעלה/למטה) */
}

/* רקע שונה לכותרת "סיכום כללי" במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table th.overall-main-header {
  background: #2c3e50 !important; /* גוון כהה יותר מהכותרות הרגילות (#34495e) */
  color: white !important;
}

/* רקע שונה לכותרות המשנה של "סיכום כללי" במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table th.overall-sub-header {
  background: #2c3e50 !important; /* אותו גוון כהה כמו הכותרת הראשית */
  color: white !important;
}

/* הגדלת פונט התוצאות במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table td {
  font-size: 0.9rem !important; /* נתונים בסיבובים ובסיכום הכללי */
  padding: 9px 4px !important; /* הגדלת המרווח בין השורות ב-50% (מ-6px ל-9px) */
}

/* גודל פונט גדול יותר ומודגש למיקום 1 ו-2 במסך המלא */
.fullscreen-comprehensive-summary .comprehensive-summary-table td.position-1,
.fullscreen-comprehensive-summary .comprehensive-summary-table td.position-2 {
  font-size: 1rem !important; /* מיקום 1 ו-2 בגודל 1rem */
  font-weight: 700 !important; /* מודגש */
  padding: 9px 4px !important; /* הגדלת המרווח בין השורות ב-50% (מ-6px ל-9px) */
}