@charset "utf-8";

:root {
    --page-bg: #e8eef5;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --link: #1d4ed8;
    --border: #d7e0ea;
    --header-a: #1f2937;
    --header-b: #334155;
    --menu-bg: rgba(226, 232, 240, 0.92);
    --menu-active-bg: #0f172a;
    --menu-active-fg: #f8fafc;
    --booking-status-0-bg: #2563eb;
    --booking-status-0-text: #ffffff;
    --booking-status-1-bg: #7c3aed;
    --booking-status-1-text: #ffffff;
    --booking-status-2-bg: #16a34a;
    --booking-status-2-text: #ffffff;
    --booking-status-3-bg: #f8fafc;
    --booking-status-3-text: #0f172a;
    --booking-status-4-bg: #f59e0b;
    --booking-status-4-text: #111827;
    --booking-status-5-bg: #f8fafc;
    --booking-status-5-text: #0f172a;
    --booking-status-6-bg: #f8fafc;
    --booking-status-6-text: #0f172a;
    --booking-open-bg: #ff0040;
    --booking-open-text: #ffffff;
    --radius: 14px;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: linear-gradient(180deg, #f3f6fb 0%, var(--page-bg) 100%);
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol,
dl {
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0 0 0.8rem;
    padding: 0;
}

h1 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

h2 {
    font-size: clamp(1.1rem, 1.9vw, 1.45rem);
}

a:link,
a:visited {
    color: var(--link);
}

a:hover,
a:active,
a:focus {
    text-decoration: none;
}

.container {
    width: min(1920px, calc(100% - 0.5rem));
    margin: 0.5rem auto 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: visible;
    box-shadow: var(--shadow);
}

.header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--header-a), var(--header-b));
    color: #fff;
    overflow-x: auto;
    overflow-y: hidden;
}

#Insert_logo {
    width: 120px;
    max-width: 100%;
    height: auto;
    float: none !important;
    border-radius: 8px;
}

.header > a:first-child {
    display: flex;
    align-items: center;
}

.header > i {
    display: none;
    flex: 1 1 340px;
    margin: 0 !important;
    color: #fff !important;
    font-style: normal;
    font-size: clamp(1.1rem, 2.3vw, 1.8rem) !important;
    line-height: 1.2;
}

.header > div {
    display: block;
    flex: 0 0 auto;
}

.menu,
.menua,
.menu2,
.menusub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 64px;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.76rem;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.menu,
.menu2,
.menusub {
    color: #0f172a !important;
    background: var(--menu-bg);
}

.menua {
    color: var(--menu-active-fg) !important;
    background: var(--menu-active-bg);
    border-color: rgba(255, 255, 255, 0.35);
}

a.menu,
a.menua,
a.menu2,
a.menusub {
    text-decoration: none;
}

a.menu:hover,
a.menu2:hover,
a.menusub:hover {
    color: #fff !important;
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.35);
}

a.menua:hover {
    color: #fff !important;
    background: #111827;
}

.content {
    padding: 1rem;
}

.content > br:first-child {
    display: none;
}

.content-wrapper {
    text-align: center;
}

.content-wrapper--full {
    text-align: left;
}

.content-wrapper--month {
    width: 100%;
    overflow-x: auto;
}

.content ul,
.content ol {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

table {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0.6rem 0 1rem;
    background: #fff;
}

table td,
table th {
    border: 1px solid #cfd8e3;
    border-collapse: collapse;
    border-spacing: 0;
    padding: 0.45rem 0.55rem;
    vertical-align: top;
}

table th {
    background: #f3f6fa;
    font-weight: 600;
}

.table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0.6rem 0 1rem;
    padding-bottom: 0.35rem;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
    width: max-content !important;
    min-width: 100%;
    margin: 0;
}

.monat-nav td {
    text-align: center;
    white-space: nowrap;
}

.monat-table th,
.monat-table td {
    text-align: center;
    white-space: nowrap;
    min-width: 30px;
    padding: 0.22rem 0.16rem;
}

.monat-table .vertical {
    display: inline-block;
    min-height: 84px;
    line-height: 1;
}

.monat-table {
    --monat-col1: 180px;
    --monat-col2: 100px;
    --monat-col3: 3ch;
    width: max-content !important;
    table-layout: auto;
    font-size: 0.92rem;
}

.monat-table th:nth-child(n+4),
.monat-table td:nth-child(n+4) {
    min-width: 24px;
    width: 24px;
    padding: 0.16rem 0.08rem;
    font-size: 0.82rem;
}

.monat-table th:nth-child(3),
.monat-table td:nth-child(3) {
    min-width: var(--monat-col3);
    width: var(--monat-col3);
    max-width: var(--monat-col3);
    padding: 0.16rem 0.08rem;
    text-align: center;
    overflow: hidden;
}

.monat-table th:first-child,
.monat-table td:first-child {
    position: sticky;
    left: 0;
    min-width: var(--monat-col1);
    width: var(--monat-col1);
    z-index: 6;
}

.monat-table th:nth-child(2),
.monat-table td:nth-child(2) {
    position: sticky;
    left: var(--monat-col1);
    min-width: var(--monat-col2);
    width: var(--monat-col2);
    z-index: 6;
}

.monat-table thead th {
    position: sticky;
    top: 0;
    z-index: 7;
}

.monat-table thead th:first-child,
.monat-table thead th:nth-child(2) {
    z-index: 8;
}

.monat-table tbody td:first-child,
.monat-table tbody td:nth-child(2) {
    background: #fff;
}

.monat-table thead th:first-child,
.monat-table thead th:nth-child(2) {
    background: #f3f6fa;
}

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

.cell-alert {
    display: inline-block;
    min-width: 2.2rem;
    padding: 0.08rem 0.28rem;
    background-color: #dc2626;
    color: #fff;
    border-radius: 4px;
}

table h2 {
    margin: 0;
}

tr:hover {
    background-color: #fff8cc;
}

tr.nohoover:hover {
    background-color: transparent;
}

input,
select,
textarea,
button {
    font: inherit;
    color: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.42rem 0.55rem;
    background: #fff;
}

textarea {
    width: 100%;
    max-width: 100%;
    min-height: 90px;
}

input[type="submit"],
button {
    cursor: pointer;
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

input[type="submit"]:hover,
button:hover {
    background: #1e293b;
}

.footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.93rem;
}

.footer p {
    margin: 0;
}

.fltrt {
    float: right;
    margin-left: 8px;
}

.fltlft {
    float: left;
    margin-right: 8px;
}

.clearfloat {
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0;
}

.vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.status0 {
    background-color: var(--booking-status-0-bg, #2563eb);
    color: var(--booking-status-0-text, #ffffff);
}

.status1 {
    background-color: var(--booking-status-1-bg, #7c3aed);
    color: var(--booking-status-1-text, #ffffff);
}

.status2 {
    background-color: var(--booking-status-2-bg, #16a34a);
    color: var(--booking-status-2-text, #ffffff);
}

.status3 {
    background-color: var(--booking-status-3-bg, #f8fafc);
    color: var(--booking-status-3-text, #0f172a);
}

.status4 {
    background-color: var(--booking-status-4-bg, #f59e0b);
    color: var(--booking-status-4-text, #111827);
}

.status5 {
    background-color: var(--booking-status-5-bg, #f8fafc);
    color: var(--booking-status-5-text, #0f172a);
}

.status6 {
    background-color: var(--booking-status-6-bg, #f8fafc);
    color: var(--booking-status-6-text, #0f172a);
}

.booking-open-cell {
    background-color: var(--booking-open-bg, #ff0040) !important;
    color: var(--booking-open-text, #ffffff) !important;
}

.booking-status-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.booking-status-select {
    min-width: 180px;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
}

.booking-status-select option {
    background: #ffffff;
    color: #111827;
}

.booking-status-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    font-weight: 500;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 1rem);
        margin: 0.5rem auto 1rem;
    }

    .header {
        padding: 0.85rem;
        gap: 0.35rem;
    }

    .header > i {
        flex-basis: 100%;
        order: 2;
    }

    .header > a:first-child {
        order: 1;
    }

    .header > div {
        order: 3;
    }

    .menu,
    .menua,
    .menu2,
    .menusub {
        min-width: 0;
        font-size: 0.72rem;
        padding: 0.16rem 0.34rem;
    }

    .content {
        padding: 0.75rem;
    }

    .content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .content-wrapper--month .monat-table {
        display: table;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .container {
        width: 100%;
        margin: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .header > div {
        flex: 1 1 auto;
    }

    .header > div > a {
        width: auto;
    }
}

@page {
    size: A4 portrait;
    margin: 12mm;
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .header,
    .footer {
        background: #fff !important;
        color: #000 !important;
        border: 0;
        box-shadow: none;
    }

    .header > div {
        display: none;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .content {
        padding: 0;
    }

    table,
    tr,
    td,
    th {
        page-break-inside: avoid;
    }
}
