@import url("fontawesome-all.min.css");

html {
    height: 100%;
}

body {
    background-color:rgb(237, 238, 240);
    
    min-height: 100%;
    height: 100%;
}

h1 {
    font-size: 1.4rem;
}

a {
    color: #2c3e50;
}

a:hover {
    color: #1e2b38;
}

.page-title {
    position: relative;
    margin-bottom: 1rem;
    background: #ffffff;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    box-shadow: 0px -2px 15px #b1b1b1;
}

.page-title #compLocation {
    color: #847f7f;
    font-weight: 400;
    margin-left: 1rem;
    font-size: 1rem;
    font-style: italic;
}

.page-title .page-title-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.page-title h1 {
    font-size: 1.25rem;
    font-weight: 400;
    display: flex;
    align-content: center;
    align-items: center;
}

.page-subtitle {
    font-size: 0.8rem;
}

.page-title .page-title-actions {
    margin-left: auto;
}

.tab-content {
    min-height: 85vh;
}

.nav-tabs {
    border-bottom: 0;
}

.nav-link.active {
    font-weight: 500;
}

.nav-tabs .nav-item {
    z-index: 1;
}

.btn-primary {
    background-color: #CA4445;
    border-color: #CA4445;
}

.btn-primary:hover {
    color: #fff;
    background-color: #d83c3d;
    border-color: #f34546;
}

.hidden {
    display: none !important;
}

.ad-content {
    padding: 20px;
    max-width: 100%;
}


.card-title span {
    position: absolute;
    right: 10px;
    top: 5px;
}

.card-title .poule-info {
    position: static;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 14px;
    color: #757575;
}

.card-title .poule-info-time, .card-title .poule-info-piste, .card-title .poule-info-ref {
    display: inline;
}



.card-title .poule-info-time::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free"; 
    font-weight: 600; 
    margin-left: 5px;
    display: inline-block;
    color: inherit; 

}

.card-title .poule-info-piste::before {
    content: "\f018";
    font-family: "Font Awesome 5 Free"; 
    font-weight: 600; 
    margin-left: 5px;
    display: inline-block;
    color: inherit; 

}

.card-title .poule-info-ref::before {
    content: "\f183";
    font-family: "Font Awesome 5 Free"; 
    font-weight: 600; 
    margin-left: 5px;
    display: inline-block;
    color: inherit; 

}


.card-title .poulename {
    display: inline;
}


.clear-time, .clear-input {
    min-width: 32px;
    margin-left: 10px; 
}


.poule-info-hour {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.poule-info-minute {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}



.card-title span .btn-link {
    margin-left: -10px;
}

.poule-table,
.poule-class-table,
.result-table,
.startlist-table {
    width: auto;
    border-top: 0;
    /*border-collapse: separate;
    border-spacing: 0;*/
    -webkit-box-shadow: 0px 0px 7px 0px rgba(217, 217, 217, 1);
    -moz-box-shadow: 0px 0px 7px 0px rgba(217, 217, 217, 1);
    box-shadow: 0px 0px 7px 0px rgba(217, 217, 217, 1);
}

.poule-card, .direl {
    box-shadow: 0px 0px 15px #d7d7d7;
}

.match {
    filter: drop-shadow(2px 2px 4px #d7d7d7);
}

.startlist-table {
    width: 100%;
}

.startlist-table th:first-child,
.startlist-table td:first-child {
    width: 30px;
    text-align: right;
}

.startlist-table .sl-button {
    width: 60px;
    text-align: right;
}

.sl-csv {
    margin-top: 20px;
}

.sl-csv textarea {
    margin: 10px 0px;
}

#ispresent {
    width: 20px;
    height: 20px;
    margin-top: 0;
    margin-left: 0px;
    position: initial;
    vertical-align: bottom;
    margin-right: 0;
}



.present {
    background: #d9d9d9;
}


#maxPouleSize {
    width: 40px;
    display: inline-block;
    margin-left: 3px;
}


.dash {
    height: 30px;
    background: repeating-linear-gradient(-45deg, #ccc 0, #ccc 3px, transparent 3px, transparent 8px) !important;
}


#compStartList th i {
    margin-left: 5px;
}


#compStartList th:first-child i {
    display: none;
}

.sl-num {
    cursor: pointer;
}


.tireur::after {
    content: attr(data-staus);
    /* content: '\00a0' attr(data-staus)'\00a0';*/
    background: none;
    position: absolute;
    line-height: 40px;
    margin-left: 7px;
}



.page-title-color {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.scolor {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin: 3px;
    margin-bottom: 0px;
}

#compColor {
    width: 85px;
    display: inline-block;
    margin-right: 10px;
}

.color-picker {
    display: inline-block;
}


.poule-table th,
.poule-class-table th,
.result-table th,
.startlist-table th {
    background: #4c4c4c;
    color: #fff;
    border-top: 0;
    border-bottom: 0 !important;
}

.poule-table tr td:nth-last-child(-n+6) {
    background: #f5f5f5;
}

.poule-table tr th:last-child {
    /* */
}

.poule-table td,
.poule-table th {
    padding: 0.5em;
    min-width: 3em;
}

.poule-table td:nth-child(2) {
    width: 10em;
}

th:first-child,
td:first-child {
    position: sticky;
    left: 0px;
}


.startlist-table>thead,
.startlist-table th:first-child,
.startlist-table td:first-child {
    position: relative;
    left: unset;
    top: unset;
}


.poule-table .prenomnom:after {
    content: attr(data-org);
    color: #ababab;
    display: block;
    font-size: 10px;
    line-height: 0;
    margin-top: 5px;
}



td:first-child {
    background: #4c4c4c;
    color: #fff;
}

.tireur td:first-child,
th {
    cursor: pointer;
}

thead {
    position: sticky;
    top: 0px;
}

.s,
.tn,
.direl .match {
    cursor: pointer;
}

.poule-table tr {
    height: 3em;
}

.poule-table .v {
    font-weight: bold;
    background-color: #cfcfcf;
}

.poule-table .prenomnom {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12em;
}

.poule-table tr td:nth-child(2),
.poule-table tr th:nth-child(2) {
    text-align: left;
}

.poule-table .Q {
    background: #4c4c4c !important;
    color: #9e9e9e;
    font-style: italic;
}

.poule-table .P {
    white-space: nowrap;
    overflow: hidden;
    max-width: 3em;
}

#changeResult .tirn1,
#changeResult .tirn2 {
    font-weight: bold;
    line-height: 2.2em;
    min-height: 3rem;
}

#tir2res,
#tir1res {
    min-width: 2.1em;
    vertical-align: top;
}

/*
.modal-footer .alert {
    display: none;
}
*/

#changeResult .row {
    padding: 0.2em 0;
    min-height: 3.2em;
}

#changeResult .modal-title {
    font-weight: bold;
    text-transform: uppercase;
}

#changeResult .row:first-child {
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5rem;
}

#tir1resbtn label,
#tir2resbtn label {
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
}

#mathes {
    margin-left: 0;
}

#mathes .match {
    margin-bottom: 1.2rem;
}

.tirres1,
.tirres2 {
    font-size: 1em;
    min-width: 2.1em;
}

.el-range {
    width: 10rem;
    display: inline;
}

.el-range span {
    width: 10rem;
    font-weight: bold;
}
/*
.direl .match::after  {
    content: attr(data-piste);
    display: block;
    font-size: 0.9em;
    color: gray;
    margin-bottom: 5px;
    position: relative;
    top: 50%;
    z-index: 1;
    right: 7px;
    width: 70px;
    border: 1px solid #000;
    height: 0;

}
    */

    .bout-info {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 10;
        height: auto;
        text-align: right;
    }
    
    .bout-info > span {
        background: #d3dcde;
    color: #000000;
    border: 1px solid #8d8d8d;
    padding: 1px 10px;
    border-radius: 4px;
    position: relative;
    top: -10px;
    right: 11px;
    font-size: 0.7rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    }
    
    /* Сбрасываем наследование для внутренних элементов */
    .bout-info .b-piste,
    .bout-info .b-start,
    .bout-info .b-duration,
    .bout-info .b-ref {
        background: none;  /* Убираем фон */
        border: none;      /* Убираем границы */
        padding: 0;        /* Убираем отступы */
        color: inherit;    /* Оставляем цвет текста таким же */
        font-size: inherit; /* Наследуем размер шрифта */
        display: inline;   /* Сохраняем строчный формат */
    }
    




.direl .col {
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 4rem 20px;
    border-bottom: 1px solid #dcdcdc;
}

.direl ul {
    margin-bottom: 1rem;
}

.direl ul li,
.match li {
    padding: 0.5rem 0.6rem;
    min-height: 2.5rem;
}

#addPoule {
    margin-bottom: 1rem;
}

.table-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #eee;
    padding: 0.5rem;
    font-weight: bold;
    border-left: #555 solid 1px;
}

.bg-secondary2 {
    background-color: #d3dcde !important;
}

.btn-black {
    background-color: #000;
}


.btn-info {
    color: #fff;
    background-color: #18BC9C;
    border-color: #18BC9C;
}

/* кочерга вниз */

.direl .match:nth-child(2n) li:nth-child(1)::after {
    width: 20px;
    height: calc(100% + 1rem);
    position: absolute;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    top: 100%;
    right: -20px;
    content: '';
    border-radius: 0 5px;
}

.direl .col:nth-child(3n+2) .match:nth-child(2n) li:nth-child(1)::after {
    height: 300%;

}

/*
.direl .col:nth-child(5) .match:nth-child(2n) li:nth-child(1)::after {
    height: 300%;
    background-color: rgb(0, 255, 89);
}
*/
/* кочерга вверх */

.direl .match:nth-child(2n-1) li:nth-child(1)::after {
    width: 20px;
    height: calc(100% + 1rem);
    position: absolute;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    bottom: 0;
    right: -20px;
    content: '';
    border-radius: 5px 0;
}

.direl .col:nth-child(3n+2) .match:nth-child(2n-1) li:nth-child(1)::after {
    height: 300%;

}

.direl .col:nth-child(3n+3) .match:nth-child(2n-1) li:nth-child(1)::after {
    height: 500%;

}

.direl .col:nth-child(3n+3) .match:nth-child(2n) li:nth-child(1)::after {
    height: 500%;
}

/*
.direl .match:nth-child(2n-1) li:nth-child(1)::before {
    width: 20px;
    height: 100%;
    position: absolute;
    border-right: 1px solid #0f0;
    border-top: 1px solid #f0f;
    top:25%;
    right: -25px;
    content: '1';
}
*/

.direl .col:nth-child(n+2) .match li:nth-child(2n)::before {
    width: 22px;
    height: 0;
    position: absolute;
    border-top: 1px solid #000;
    top: 0;
    left: -22px;
    content: '';

}


.direl .col:nth-child(3n+4) .match li:nth-child(2n)::before {
    width: 0;
    height: 0;

}

.direl .col:last-child .match:nth-child(2n) li:nth-child(1)::after {
    border: 0;
    content: unset;
}

#delResult {
    margin-left: auto;
}

#changeResult .close {
    margin-left: 0;
}

.match .badge {
    height: 1.4rem;
    margin-left: auto;
}

.match b {
    margin-right: 0.2rem;
}

.match .tirnom {}


.poule .match::after {
    content: "\2192";
    position: absolute;
    top: 35%;
    right: 1px;
}

.poule .match:last-child:after {
    content: " ";
}

.card-body h5,
.match-filter button {
    display: inline;
    margin-right: 0.4rem;
}

.match-filter {
    margin-bottom: 0.5rem;
}

/*
.direl .match:nth-child(1)::before {
    content: '';
    border: 1px solid rgb(0, 241, 93);
    position: absolute;
    height: 0;
    width: 20px;
    left:0;
    top: 50%;

}


.direl .match li:nth-child(1)::after {
    content: '';
    border: 1px solid rgb(0, 241, 93);
    position: absolute;
    height: 0;
    width: 20px;
    right:-20px;
    top: 100%; 
} 
*/





.startlist-class td {
    text-align: left;
    border-right: 1px solid #dee2e6;

}

.direl .tirres1,
.direl .tirres2 {
    font-size: 1em;
    min-width: 2.6em;
}

.tir-class td:nth-child(2),
.result-class td:nth-child(2),
.result-class td:nth-child(5),
.result-class td:nth-child(6),
.result-table th:nth-child(2),
.result-table th:nth-child(5),
.result-table th:nth-child(6) {
    text-align: left;
    min-width: 160px;
}

.poule-class .progress {
    margin-bottom: 1rem;
}

.online-list .row {
    background: #ccc;
    color: #000;
    text-align: left;
    padding: 0.5em 0;
    text-shadow: none;
}

.online-list .list-head {
    background: #505050;
    font-weight: bold;
    color: #fff;
}

.main {
    min-height: calc(100vh - 90px);
}

.online-list {
    max-width: 700px;
    margin: 2em auto;

    text-align: center;
}

#newComp {
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    margin-top: 2em;
}

#logHolder {
    padding: 0;
}

#logHolder table {
    font-size: 0.7rem;
}

#logHolder table tr {
    border-bottom: 1px solid #dcdcdc;
}

#logHolder table td {
    padding: 3px;
}

#logHolder table td:first-child {
    background: #fff;
    color: #000;
}


#shareModal .form-check-input {
    width: 25px;
    height: 25px;
}

#shareModal .form-check-label {
    margin-bottom: 0;
    margin-left: 13px;
    margin-top: 5px;
}

#shareModal .form-check {
    height: 40px;
}


.navbar-brand {
    display: inline-block;

    margin-right: 0.2rem;
    font-size: 1.4rem;
    line-height: inherit;
    white-space: nowrap;
    font-weight: bold;
}


.beta-badge {
    color: #fff;

    font-size: 100%;

}


.datepicker-days td:first-child {
    background: unset;
    color: unset;
}

.datepicker td,
.datepicker th {

    width: 26px;
    height: 26px;

}




.text-page h1 {
    font-size: 3rem;
    font-weight: normal;
}

.text-page h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1.7rem;
}

.text-page h3 {
    font-size: 1.2rem;
    margin-top: 1.7rem;
}

#sp-top {
    padding: 70px 0px;
}

#sp-top h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 2.2rem;
    color: #18BC9C;

}

#sp-top p {
    font-size: 1rem;
    margin-top: 15px;
    color: #424242;
}

#sp-top .btn {
    padding: 8px 40px;
    font-weight: bold;
    font-size: 1.2rem;
}

.sp-features {
    padding: 70px 0px;
    background: #fff;
}

.single-features {
    display: flex;
    align-items: center !important;
}

.features-icon {
    margin-right: 20px;

}

.features-icon i {
    display: inline-block;
    border-radius: 60px;
    padding: 0.5em 0.6em;
    font-size: 33px;
    background: #18bc9c;
    color: #fff;
    width: 70px;
    height: 70px;
    text-align: center;

}

.main .navbar {
    box-shadow: 0px 1px 8px #b1b1b1;
}




.legal-text {
    text-align: right;
    font-size: 12px;
    line-height: 14px;
    color: #848484;
}

.legal-text a {
    font-weight: bold;
    color: #848484
}



#startform legend {

    margin-bottom: 0;
    font-size: 1.2rem;

    font-weight: 500;
}


.datepicker {
    padding: 0.375rem 0.75rem;
}


#sp-top {
    background-size: 400% auto;
    background-position: 100% 50%;
    background-image: linear-gradient(63deg, #f5f5f5 0%, #e0e0e0 25%, #f2f2f2 50%, #f5f5f5 75%, #e0e0e0 100%);
    animation: gradientMotion 60s infinite linear;

}


#pisteModal .modal-dialog {
    max-width: 90%;
    width: 90%
}

.piste-name {
    width: 85px;
}


.piste {
    width: 200px;
    height: 40px;
    background-color: #5c5c5c;
    color: #fff;
    display: flex;
    align-items: left;
    justify-content: center;
    position: absolute;
    margin-top: 0px;
    flex-direction: column;
    padding: 0 30px 0 10px;
    box-sizing: border-box;
    transform-origin: center;
}

.rotated-piste {
    height: 200px;
    width: 40px;
    padding: 10px 0 30px 0;

}


.rotated-piste .delete-piste,
.rotated-piste .rotate-piste,
.rotated-piste .edit-piste {

    top: auto;
    padding: 5px 2px;
    transform: none;

}

.delete-piste,
.rotate-piste,
.edit-piste {


    border: none;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 0.8em;
    position: absolute;
    top: 50%;
    height: 25px;
    width: 25px;

    transform: translateY(-50%);
}

.edit-piste {
    right: 70px;
}

.rotate-piste {
    right: 40px;
}

.delete-piste {
    right: 10px;
}

.rotated-piste .edit-piste {
    right: 8px;
    bottom: 70px;
}

.rotated-piste .rotate-piste {
    right: 8px;
    bottom: 40px;
}

.rotated-piste .delete-piste {
    right: 8px;
    bottom: 10px;
}


.rotated-piste .piste-name {
    transform: rotate(90deg);
    top: 40px;
    position: absolute;
    left: -23px;
}



#pistemap {
    position: relative;
    width: 100%;
    height: 350px;
    border: 1px solid #868686;
    margin-top: 0px;
    padding: 0px;
    overflow: auto;
    background: #eee;
    margin-bottom: 15px;
}


/* график боёв------------------------ */
#timeline {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow: visible; /* Контейнер адаптивен */
    padding: 0;
    margin: 0;
    width: 100%; /* Можно убрать, если не нужно ограничивать ширину */
}

.timeline-mark {
    width: 120px; /* Точная ширина каждого блока */
    text-align: left; /* Текст выравнивается по левому краю */
    padding-left: 5px; /* Небольшой отступ от границы */
    background-color: #f0f0f0; /* Светло-серый фон */
    border: 1px solid gray; /* Граница серого цвета */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}
/* Дорожки */
#bouttime {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-left: 0; /* Выровнять по левому краю */
    padding-left: 0; /* Убираем отступы */
}

/* Дорожка */
.piste-time {
    margin: 20px 0;
    padding: 5px;
    position: relative; /* Псевдоэлементы позиционируются относительно дорожки */
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    height: 60px;
    border-radius: 5px;
    
    /*z-index: 1;  Базовый слой дорожки */
}

/* Часовые линии */
.piste-time::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #a9a9a9 1px, transparent 1px); /* Тёмные линии каждый час */
    background-size: 120px 100%; /* 1 час = 120px */
    pointer-events: none; /* Линии не перекрывают взаимодействие */
    z-index: 3;  /*Часовые линии под дорожкой */
}

/* Линии каждые 15 минут */
.piste-time::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #d3d3d3 1px, transparent 1px); /* Светлые линии каждые 15 минут */
    background-size: 30px 100%; /* 15 минут = 30px */
    pointer-events: none; /* Линии не перекрывают взаимодействие */
    z-index: 2; /* Линии каждые 15 минут ниже часовых */
}

/* Название дорожки */
.piste-time .piste-name {
    position: absolute;
    top: -20px;
    left: 0; /* Совместим с левой стороной */
    font-size: 14px;
    font-weight: bold;
}

.piste-hover {
    background-color: #ffeb3b !important; /* Жёлтая подсветка */
}

/* Слоты */
.slot {
    position: absolute;
    height: 49px;
    top: 4px;
    background-color: #79bcfb;
    outline: 2px solid #4682b4;
    color: white;
    font-size: 12px;
    line-height: 40px;
    z-index: 10;
}

.slot-overlap {
    background-color: #ff4d4d !important; /* Красная подсветка */
}

.hour-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #999; /* Цвет для часовых линий */
}

.quarter-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ccc; /* Цвет для 15-минутных линий */
}




/* Блоки боёв */


.bout {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 40px;
    top: 4px;
    background-color: #4caf50;
    outline: 2px solid #388e3c;
    color: white;
    font-size: 12px;
    line-height: 1;
    text-align: center;
   
}

.bout-id,
.bout-time {
    height: 50%; /* Каждая строка занимает половину высоты блока */
    display: flex;
    align-items: center; /* Вертикальное выравнивание текста */
    text-align: left; /* Горизонтальное выравнивание текста */
    font-size: 10px;
    padding-left: 2px;
}

.bout-time {
    font-size: 8px;
}



#unsetbouts {
    position: relative;
    white-space: normal;
    background-color: #e7e7e7;
    border: 1px solid #707070;
}

#unsetbouts .slot {
    display: inline-block; /* Располагает элементы как текст */
    vertical-align: top; /* Выравнивание по верхнему краю строки */
    height: 50px; /* Фиксированная высота строки */
    margin: 2px; /* Расстояние между блоками */
    width: auto; /* Ширина определяется содержимым или стилями */
    position: relative;
}


#activepiste {
    background-color: #e7e7e7;
    border: 1px solid #707070;
}

.active-piste {
    background-color: #a9a9a9; /* Фон по умолчанию */
    color: #fff;
    margin: 3px;
    padding-left: 7px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease; /* Плавная смена цвета */
}


.active-piste label, .active-piste input{
   
    margin: 2px;
    padding: 2px;
}

.active-piste label {
    width: calc(100% - 30px);
    
}

.active-piste input {
    
}
.active-piste:has(input[type="checkbox"]:checked) {
    background-color: #606060; /* Новый цвет фона */
}
/* график боёв------------------------ */


.time-separator {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: bold;

}


@keyframes gradientMotion {
    0% {
        background-position-x: 100%;
    }

    100% {
        background-position-x: 0;
    }
}



@media (min-width: 576px) {
    .modal-dialog {
        max-width: 576px;
        margin: 1.75rem auto;
    }
}

@media (max-width: 768px) {
    .direl .col:nth-child(3n+2) .match:nth-child(2n-1) li:nth-child(1)::after {
        height: calc(100% + 1rem);

    }

    .direl .col:nth-child(3n+2) .match:nth-child(2n) li:nth-child(1)::after {
        height: calc(100% + 1rem);
    }



    .direl .col:nth-child(3) .match:nth-child(2n-1) li:nth-child(1)::after {
        height: calc(100% + 1rem);
    }

    .direl .col:nth-child(3) .match:nth-child(2n) li:nth-child(1)::after {
        height: calc(100% + 1rem);
    }

    /*
    .direl .col:nth-child(3) .match li:nth-child(2n)::before {
        border: 0;
    }
*/

    .direl .col:nth-child(3n+4) .match li:nth-child(2n)::before {
        width: 22px;
    }

    .direl .col:nth-child(2n+3) .match li:nth-child(2n)::before {
        width: 0;
    }


    .direl .col:nth-child(2n+2) .match:nth-child(2n) li:nth-child(1)::after {
        height: 300%;
    }


    .direl .col:nth-child(2n+2) .match:nth-child(2n-1) li:nth-child(1)::after {
        height: 300%;
    }


    .direl ul li,
    .match li {
        min-height: 2rem;
    }


}

@media (max-width: 576px) {
    .nav-link {
        padding: 0.5rem 0.6rem;
    }

    #changeResult #tir2resbtn,
    #changeResult #tir1resbtn {
        display: table;
    }

    .bout-info span {
        padding: 2px;
        }

        
    .direl .col {
        padding: 4rem 5px 0 5px;
        margin-bottom: 2rem;
    }

    .direl .match:nth-child(2n-1) li:nth-child(1)::after {
        right: -6px;
        width: 6px;
    }

    .direl .match:nth-child(2n) li:nth-child(1)::after {
        width: 6px;
        right: -6px;
    }

    .direl .col:nth-child(n+2) .match li:nth-child(2n)::before {
        width: 7px;
        left: -7px;
    }

    .direl ul li {
        padding: 0.3rem 0.3rem;
    }

    .table-success {
        background-color: #18BC9C !important;
    }

    .table-danger {
        background-color: #E74C3C !important;
    }

    .poule .match:after {
        content: " ";
    }

    .match {
        font-size: 13px;
    }

    .tab-directEl {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 400px) {
    .nav-link {
        padding: 0.5rem 0.1rem;
    }

    .page-title .page-title-actions {
        position: absolute;
        right: 6px;
        width: 60px;
    }

    .page-title-actions button {

        height: 30px;
        width: 28px;
        padding: 3px;
    }


    .page-title h1 {
        font-size: 1.25rem;

        display: inline-block;
        width: 80%;

    }


    .page-title #compLocation {

        margin-left: 0;

    }

}

@media (max-width: 340px) {
    .nav-link {
        padding: 0.5rem 0.25rem;
        font-size: 0.86rem;
    }

    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl {
        padding-left: 5px;
        padding-right: 5px;
    }

    .card-body {
        padding: 0.6rem;
    }

    .direl .card-body {
        padding: 1rem;
    }

    .tirnom {
        word-break: break-all;
    }

    .direl ul {
        font-size: 0.8rem;
    }

    .direl ul li,
    .match li {
        min-height: 1.5rem;
    }

    #mathes .match {
        margin-bottom: 0.8rem;
    }

}