

        #all-schedules[domare-samtliga]{
            display: flex;
            width: fit-content;

            flex-direction: column;
        }
        #all-schedules[domare-enkel] {
            display: flex;
            width: fit-content;
        }

        #all-schedules[domare-enkel] section {
            margin-right: 30px;
        }

        #all-schedules[domare-samtliga] .plan-header-first {
            flex: 0 0 80px;
            min-width: 80px;
            max-width: 80px;
        }

        #all-schedules[domare-enkel] .plan-header-first {
            flex: 0 0 60px;
            min-width: 60px;
            max-width: 60px;
        }











        #all-schedules .fixed-plan-header {
            position: sticky;
            z-index: 4;
            background: #ddd;
            border-bottom: 1px solid #aaa;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            display: flex;
            width: max-content;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            max-width: 100vw;
        }

        #all-schedules .schedule-content,
        #all-schedules .fixed-plan-header {
            min-width: max-content;
        }

        #all-schedules[domare-samtliga] .fixed-plan-header {
            top: 130px;
        }

        #all-schedules[domare-enkel] .fixed-plan-header {
            top: 0;
        }

        #all-schedules h3 {
            margin: 20px 0;
        }

        #all-schedules .plan-header,
        #all-schedules .plan-header-first {
            text-align: center;
            padding: 6px 4px;
            font-weight: bold;
            font-size: 12px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            white-space: nowrap;
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
        }

        #all-schedules .plan-header {
            flex: 0 0 150px;
            min-width: 150px;
            max-width: 150px;
        }



        #all-schedules .plan-header:hover,
        #all-schedules .plan-header-first:hover {
            cursor: help;
        }

        #all-schedules .plan-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: inline-block;
            max-width: 100px;
        }

        #all-schedules .plan-suffix {
            flex-shrink: 0;
            margin-left: 4px;
        }

        #all-schedules .schedule-day {
            margin-bottom: 60px;
        }

        #all-schedules .schedule-outer {
            display: flex;
            border: none;
            position: relative;
            height: auto;
        }

        #all-schedules .timeline {
            width: 80px;
            background: #f0f0f0;
            border-right: 1px solid #ccc;
            position: sticky;
            left: 0;
            z-index: 2;
        }

        #all-schedules .time-label {
            height: 60px;
            padding: 4px;
            font-size: 12px;
            text-align: center;
            box-sizing: border-box;
            border-bottom: 1px solid #e0e0e0;
        }

        #all-schedules .schedule-scroll-area {
            overflow-x: auto;
            overflow-y: visible;
            -webkit-overflow-scrolling: touch;
            position: relative;
            width: 100%;
            border-bottom: 1px solid #e0e0e0;
        }

        #all-schedules .schedule-content {
            display: flex !important;
            width: max-content;
            background: #fff;
            position: relative;
            border: none;
            min-width: 100%;
        }

        #all-schedules .plan-col {
            flex: 0 0 150px;
            min-width: 150px;
            max-width: 150px;
            position: relative;
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
            background: #fff;
            box-sizing: border-box;
        }

        #all-schedules .match {
            position: absolute;
            left: 2px;
            right: 2px;
            background-color: #ffefb3;
            border: 1px solid #999;
            padding: 4px;
            font-size: 11px;
            box-sizing: border-box;
            overflow: hidden;
            border-radius: 3px;
        }

        #all-schedules .match.untillsatt {
            background-color: #ffb3b3;
            border-color: #cc0000;
        }

        #all-schedules .match:hover {
            cursor: help;
            filter: brightness(1.05);
        }

        #all-schedules .domare {
            font-size: 11px;
            text-align: center;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #all-schedules .hour-line {
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
            pointer-events: none;
            z-index: 0;
        }

        #all-schedules .tooltip {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 6px 8px;
            font-size: 11px;
            border-radius: 4px;
            white-space: nowrap;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }

        #all-schedules .plan-header:hover .tooltip,
        #all-schedules .tooltip-visible {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }

        #all-schedules .schedule-scroll-area::after {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 12px;
            background: rgba(255,255,255,0.8);
            padding: 2px 5px;
            border-radius: 4px;
        }

        @media (max-width: 600px) {
            #all-schedules .plan-header,
            #all-schedules .plan-header-first,
            #all-schedules .match {
                font-size: 10px;
            }

            #all-schedules .match {
                padding: 2px;
            }
        }


#matchModal {
  position: fixed;
  inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0 */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(1px);
  pointer-events: auto;
}