:root {
    --temp-bd-color-table: rgb(140, 140, 140);
    --temp-bg-color-table-foot: rgb(228, 240, 245);
    --temp-bg-color-table-caption: #FFDDD2;
    --temp-bd-color-table-th: rgb(160, 160, 160);
    --temp-bg-color-table-even: rgb(237, 238, 242);
    --temp-bg-color-table-label: rgb(149, 182, 196);
    --temp-fg-color-infos: #116d75;
    --temp-bd-color-infos: #1F8089;
    --temp-bd-color-blockquote: #76859a;
    --select-height: 132px;
    --margin-bottom: calc(var(--toolbar-height) + var(--select-height));
}

#holydaysTarget {
    height: 100%;
    /* width: 100%; */
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    padding: 1rem 4px;
}

.holydays-select-section {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem;
    height: auto;
    max-height: calc(var(--main-height) - 1.5rem);
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease-in-out;
    overflow-y: hidden;
}

.holydays-select-section h2 {
    text-align: center;
    margin-bottom: .5rem;
    font-size: 1.2rem;
}

.holydays-select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #aaa;
    background-color: #fff;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.holydays-template-target,
.side-panel {
    background-color: #fff;
    border-left: 4px solid #1F8089;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    transition: all 0.3s ease;
}
.holydays-template-target {
    padding: 1rem 4px;
    max-height: calc(var(--main-height) - var(--margin-bottom));
}
@media screen and (max-width: 1366px) {
    .holydays-template-target {
        --margin-bottom: calc(var(--select-height) + 24px);
    }
}
@media screen and (min-width: 1367px) {
    .holydays-template-target {
        --margin-bottom: calc(var(--select-height) + 24px);
    }
}
.holydays-template-target article,
.side-panel article {
    padding: 0.125em;
    margin: 0;
}

.holydays-template-target h1,
.holydays-template-target h2,
.holydays-template-target h3,
.holydays-template-target h4,
.holydays-template-target h5 {
    margin-top: 1.5em;
    margin-bottom: 0.25em;
    padding: 0.25em 0.75em;
    color: var(--temp-fg-color-title);
    text-align: left;
}
.holydays-template-target h1 {
    margin-top: 1.5em;
    margin-bottom: 1em;
    text-align: center;
    font-size: 2rem;
}
.holydays-template-target h2 {
    margin-top: 1.5em;
    margin-bottom: 0.25em;
}
.holydays-template-target h3 {
    margin-top: 1.5em;
    margin-bottom: 0.25em;
}
.holydays-template-target h4 {
    margin-top: 1.33em;
    margin-bottom: 0.25em;
}
.holydays-template-target h5 {
    margin-top: 1em;
    margin-bottom: 0.125em;
    margin-left: .65em;
}

.side-panel h1 {
    margin-top: .5em;
    margin-bottom: .33em;
    text-align: center;
    font-size: 1.5rem;
    color: var(--temp-fg-color-title);
}
.side-panel h2,
.side-panel h3,
.side-panel h4,
.side-panel h5 {
    padding: 0.25em;
    color: var(--temp-fg-color-title);
    text-align: left;
}

.side-panel h2 {
    margin-top: 1.25em;
    margin-bottom: .25em;
}
.side-panel h3 {
    margin-top: 1.25em;
    margin-bottom: .25em;
}
.side-panel h4 {
    margin-top: 1.125em;
    margin-bottom: .25em;
}
.side-panel h5 {
    margin-top: .75em;
    margin-left: .65em;
}

.holydays-template-target h2,
.side-panel h2 { font-size: 1.75em; }
.holydays-template-target h3,
.side-panel h3 { font-size: 1.5em; }
.holydays-template-target h4,
.side-panel h4 { font-size: 1.25em; }
.holydays-template-target h5,
.side-panel h5 { font-size: 1.15em; }

.holydays-template-target blockquote,
.holydays-template-target .infos,
.holydays-template-target .question,
.side-panel blockquote,
.side-panel .infos,
.side-panel .question {
    font-style: italic;
    padding-left: 1em;
    margin-left: .5em;
    transition: background-color 0.3s ease;
}

.side-panel p,
.side-panel ul,
.side-panel ol,
.side-panel dl {
    margin-top: 4px;
    margin-bottom: 1em;
}
.holydays-template-target p,
.side-panel p {
    text-align: justify;
    padding: .75em 1.25em;
}

.holydays-template-target blockquote,
.side-panel blockquote {
    border-left: 4px solid var(--temp-bd-color-blockquote);
    padding: 1.25em 1em;
    margin: 1em 0.75em 1em 1.75em;
    background-color: #f4f4f4;
    color: var(--temp-fg-color-blockquote);
}

.holydays-template-target .infos,
.side-panel .infos {
    color: var(--temp-fg-color-infos);
    border-left: 4px solid var(--temp-bd-color-infos);
}

.holydays-template-target .question,
.side-panel .question {
    color: var(--temp-fg-color-question);
    border-left: 4px solid var(--temp-fg-color-question);
}

.holydays-template-target table,
.side-panel table {
    border-collapse: collapse;
    border: 2px solid var(--temp-bd-color-table);
    font-family: sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin: 0.75rem auto 1.25rem auto;
}

.holydays-template-target table caption,
.side-panel table caption {
    border-top: 2px solid var(--temp-bd-color-table);
    border-right: 2px solid var(--temp-bd-color-table);
    border-left: 2px solid var(--temp-bd-color-table);
    border-bottom: 1px solid var(--temp-bd-color-table);
    caption-side: top;
    padding: 10px;
    font-weight: bold;
    background-color: var(--temp-bg-color-table-caption);
}

.holydays-template-target thead,
.holydays-template-target tfoot,
.side-panel thead,
.side-panel tfoot {
    background-color: var(--temp-bg-color-table-foot);
}

.holydays-template-target th,
.holydays-template-target td,
.side-panel th,
.side-panel td {
    border: 1px solid var(--temp-bd-color-table-th);
    padding: 8px 10px;
}

.holydays-template-target tr > td { text-align: center; }
.holydays-template-target tbody > tr > th[scope="row"] { text-align: right; }
.holydays-template-target td:last-of-type { text-align: center; }
.holydays-template-target tbody > tr:nth-of-type(even) { background-color: var(--temp-bg-color-table-even); }
.holydays-template-target tfoot th { text-align: center; }
.holydays-template-target tfoot td,
.holydays-template-target tfoot th { font-weight: bold; }
.holydays-template-target tfoot th[scope="row"] {
    font-style: italic;
    color: var(--temp-fg-color-table-foot);
}

.side-panel tr > td { text-align: center; }
.side-panel tbody > tr > th[scope="row"] { text-align: right; }
.side-panel td:last-of-type { text-align: center; }
.side-panel tbody > tr:nth-of-type(even) { background-color: var(--temp-bg-color-table-even); }
.side-panel tfoot th { text-align: center; }
.side-panel tfoot td,
.side-panel tfoot th { font-weight: bold; }
.side-panel tfoot th[scope="row"] {
    font-style: italic;
    color: var(--temp-fg-color-table-foot);
}

.holydays-template-target .sub-title,
.side-panel .sub-title {
    margin-left: 46px;
}

.holydays-template-target ul,
.holydays-template-target ol,
.side-panel ul,
.side-panel ol {
    margin-left: 1.75em;
    padding-left: 1em;
}

.holydays-template-target li > ul,
.holydays-template-target li > ol,
.side-panel li > ul,
.side-panel li > ol,
.side-panel dd > ul,
.side-panel dd > ol {
    margin-left: 1em;
    padding-left: 1em;
}

.holydays-template-target dl {
    margin-left: 1em;
    padding-left: .5em;
}
.side-panel dl {
    margin-left: 1em;
    padding-left: .5em;
}
.holydays-template-target dl dt {
    margin-top: 1.75em;
    margin-bottom: 0;
    font-size: large;
    font-weight: bold;
}
.side-panel dl dt {
    margin-top: 1.5em;
    margin-bottom: 0;
    font-size: large;
    font-weight: bold;
}
/* Responsive adjustments */
@media screen and (max-width: 240px) {
    .holydays-template-target h1,
    .side-panel h1 { font-size: 1.125em; }

    .holydays-template-target h2,
    .side-panel h2 { font-size: 1em; }

    .holydays-template-target h3,
    .side-panel h3 { font-size: .9em; }

    .holydays-template-target h4,
    .side-panel h4,
    .holydays-template-target dl dt,
    .side-panel dl dt { font-size: .8em; }

    .holydays-template-target h5,
    .side-panel h5 { font-size: .75em; }

    .holydays-template-target,
    .side-panel { font-size: 0.8em; }
    .holydays-select,
    .side-panel .holydays-select { font-size: 0.8em; }
}
@media screen and (min-width: 241px) and (max-width: 480px) {
    .holydays-template-target h1,
    .side-panel h1 { font-size: 1.25em; }

    .holydays-template-target h2,
    .side-panel h2 { font-size: 1.125em; }

    .holydays-template-target h3,
    .side-panel h3 { font-size: 1.075em; }

    .holydays-template-target h4,
    .side-panel h4,
    .holydays-template-target dl dt,
    .side-panel dl dt { font-size: 1.05em; }

    .holydays-template-target h5,
    .side-panel h5 { font-size: 1.025em; }

    .holydays-template-target,
    .side-panel { font-size: 0.85em; }
    .holydays-select,
    .side-panel .holydays-select { font-size: 0.9em; }
}
@media screen and (min-width: 481px) and (max-width: 768px) {
    .holydays-template-target h1,
    .side-panel h1 { font-size: 1.5em; }
    
    .holydays-template-target h2,
    .side-panel h2 { font-size: 1.25em; }

    .holydays-template-target h3,
    .side-panel h3 { font-size: 1.15em; }

    .holydays-template-target h4,
    .side-panel h4,
    .holydays-template-target dl dt,
    .side-panel dl dt { font-size: 1.075em; }

    .holydays-template-target h5,
    .side-panel h5 { font-size: 1.05em; }

    .holydays-template-target,
    .side-panel { font-size: 0.9em; padding: 0.75rem 4px; }

    .holydays-select-section h2,
    .side-panel .holydays-select-section h2 { font-size: 1em; }
}
@media screen and (min-width: 769px) and (max-width: 992px) {
    .holydays-template-target h1,
    .side-panel h1 { font-size: 1.75em; }

    .holydays-template-target h2,
    .side-panel h2 { font-size: 1.5em; }

    .holydays-template-target h3,
    .side-panel h3 { font-size: 1.25em; }

    .holydays-template-target h4,
    .side-panel h4,
    .holydays-template-target dl dt,
    .side-panel dl dt { font-size: 1.125em; }

    .holydays-template-target h5,
    .side-panel h5 { font-size: 1.075em; }

    .holydays-template-target,
    .side-panel { font-size: 0.95em; }
}
/* chronologie cene */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}
.timeline-block {
    padding: 1rem;
    border-left: 4px solid #888;
    background: #f9f9f9;
    border-radius: 8px;
}
.timeline-block h4 {
     margin: 0 0 0.5rem;
}
.timeline-block ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}
.indent-span {
    margin-left: 2.125em;
}

.mt-a {
    margin-top: auto!important;
}
.text-template-inexistant {
    font-size: 1em!important;
    text-align: center!important;
    padding: 1em .75em;
    width: 100%;
    height: 100%;
}
