* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* Colors */
    
    --body-color: #fff;
    --sidebar-color: #082a2f;
    --box-color: #FAFAFA;
    --search-box-color: #262626;
    --text-color: #000;
    --sidebar-text-color: #fff;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --success-color: #28a745;


    /* Accent Colors */

    --accent-color-01: #FF7600;


    /* Transitions */

    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Box: One style for all boxes */

.box {
    border-radius: 20px;
    background: var(--box-color);
    border: 1px solid black;
    padding-top: 2vh;
    padding-left: 3vw;
    overflow-y: auto;
}

.box-headline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    height: 8vh;
    margin-bottom: 5vh;
}

/* Buttons */

.login-btn {
    height: 50px;
    width: 100%;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color-01);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--tran-05);
    margin-top: 3vh;
}

.login-btn:hover {
    color: var(--accent-color-01);
    background: var(--sidebar-color);
    border: var(--accent-color-01) 1px solid;
}

.black-btn {
    height: 50px;
    width: 100%;
    font-size: 1.2rem;
    padding: 0px 10px;
    border: none;
    border-radius: 8px;
    background: var(--sidebar-color);
    color: var(--sidebar-text-color);
    cursor: pointer;
    transition: var(--tran-05);
}

.save-btn {
    height: 40px;
    width: 10%;
    font-size: 1.0rem;
    border: none;
    border-radius: 8px;
    background: var(--sidebar-color);
    color: var(--sidebar-text-color);
    cursor: pointer;
    transition: var(--tran-05);
}

.settings-btn {
    height: 30px;
    font-size: 1rem;
    padding: 0px 20px;
    border: gray 1px solid;
    border-radius: 8px;
    background: var(--sidebar-text-color);
    color: var(--sidebar-color);
    cursor: pointer;
    transition: var(--tran-05);
}

.settings-btn:hover {
    background: var(--sidebar-color);
    color: var(--sidebar-text-color);
    border: var(--sidebar-color) 1px solid;
}

.settings-btn.active {
    background: var(--accent-color-01);
    color: var(--sidebar-text-color);
    border: var(--accent-color-01) 1px solid;
}

.create-btn {
    height: 30px;
    font-size: 0.8rem;
    padding: 0px 20px;
    border: var(--sidebar-color) 1px solid;
    border-radius: 8px;
    background: var(--sidebar-color);
    color: var(--sidebar-text-color);
    cursor: pointer;
    transition: var(--tran-05);
}

.create-btn:hover {
    background: var(--accent-color-01);
    color: var(--sidebar-text-color);
    border: var(--accent-color-01) 1px solid;
}

.search-btn {
    height: 30px;
    width: 100%;
    font-size: 1.0rem;
    border: 1px solid black;
    border-radius: 4px;
    background: var(--box-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--tran-05);
}

.search-btn:hover {
    background: var(--accent-color-01);
    color: var(--sidebar-text-color);
    border: var(--accent-color-01) 1px solid;
}

.faded-orange {
    height: 30px;
    font-size: 0.8rem;
    padding: 0px 20px;
    background: var(--accent-color-01);
    color: var(--sidebar-text-color);
    opacity: 0.6;
    border: var(--accent-color-01) 1px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--tran-05);
}

/* Forms */

.create-company-form {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    padding-top: 4vh;
}

.create-company-form input {
    height: 50px;
    width: 100%;
    font-size: 1.2rem;
    padding: 0px 20px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.create-company-form button {
    height: 50px;
    width: 25%;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--sidebar-color);
    color: var(--sidebar-text-color);
    cursor: pointer;
    transition: var(--tran-05);
}

.stamdata-form {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    align-items: center;
    height: 20vh;
}

.label-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1vw;
    width: 50%;
}

.create-user-form {
    display: flex;
    gap: 1.5vh;
    padding-top: 2vh;
}

.cuf-left, .cuf-right {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 1.5vh;
    width: 45%;
}

#customer-search-form, #orders-search-form {
    display: flex;
    align-items: center;
}

/* Greys out disabled buttons */
button:disabled,
.black-btn:disabled {
    background-color: #e0e0e0 !important;
    color: #888 !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Form inputs */

.login-input {
    height: 50px;
    width: 100%;
    font-size: 1.2rem;
    padding: 0px 20px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.stamdata-input {
    height: 25px;
    width: 60%;
    font-size: 1rem;
    padding: 0px 20px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.create-user-form input {
    height: 24px;
    width: 100%;
    font-size: 1rem;
    padding: 0px 8px;
    border: none;
    border-radius: 4px;
    outline: none;
}

.vat-adjusted-price {
    color: var(--accent-color-01);
    font-weight: 600;
}

/* ScrollBars */

.users-box::-webkit-scrollbar {
    width: 10px;              /* Width of the scrollbar */
}

.users-box::-webkit-scrollbar-thumb {
    background: #ccc;         /* Color of the scroll thumb */
    border-radius: 20px;
}

.users-box::-webkit-scrollbar-track {
    background: #f1f1f1;      /* Color of the track */
    border-radius: 20px;
}


/***** View containers *****/

/* Main view containers */

.main-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.view-container-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3%;
    height: 90vh;
    width: 100%;
    position: relative;
}

.view-container-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3%;
    height: 90vh;
    width: 100%;
    position: relative;
}


/* 2 column setup: Dashboard */

.box-container-left {
    height: 90%;
    width: 45%;
}

.box-left {
    height: 100%;
    width: 100%;
}

.box-container-right {
    height: 90%;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.box-right-top {
    height: 46%;
    width: 100%;

}

.box-right-bottom {
    height: 46%;
    width: 100%;
}

/* Top and bottom stacked setup: Kalender, Bookinger, Kunder */

.box-container-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 15%;
    width: 93%;
    padding: 0px 50px;
}

.box-container-bottom {
    height: 75%;
    width: 93%;
    padding-top: 0;
    padding-left: 0;
    overflow-y: auto;
    position: relative;
}

/* Calendar styles */

#calendar {
    width: 100%;
    height: 100%;
}

.location-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.location-tab {
    padding: 8px 18px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

.location-tab.active {
    background: var(--accent-color-01, #1aaf5d);
    color: #fff;
}

.calendar-view-tabs {
    display: flex;
    gap: 8px;
}

.calendar-view-tab {
    padding: 8px 18px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

.calendar-view-tab.active {
    background: var(--accent-color-01, #1aaf5d);
    color: #fff;
}

.calendar-tabs-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 12px;
}

#create-calendar {
    width: 100%;
    height: 320px !important; /* Reduce height to fit modal */
    min-height: 320px;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
}

/* hide FullCalendar internal scrollbars (desktop) */
.fc .fc-scroller {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;    /* Firefox */
}

/* Den her skal kun v�re p� den specifikke sk�rmst�rrelse, ved springcenteret */
.fc .fc-timegrid-slot {
    height: 1.5rem; /* Adjust time slot height */
}

/* Dag - f.eks. "torsdag" */
fc-col-header-cell-cushion {
    font-size: 2rem;
}

.fc .fc-scroller::-webkit-scrollbar { /* Chrome/Safari */
    display: none;
}

/* Settings: Overall styling */

.setting-tabs-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2vw;
    width: 100%;
    height: 10vh;
    padding-left: 4vw;
    padding-right: 4vw;
}

.settings-row-left {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 2vw;
}

.settings-row-right {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 2vw;
}

.settings-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 65vh;
    padding-top: 5vh;
    padding-left: 4vw;
    padding-right: 4vw;
}

.settings-headline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin-bottom: 2vh;
}

.save-btn-row {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--box-color);
    padding: 12px 0 12px 0;
    display: flex;
    justify-content: end;
    align-items: start;
    width: 100%;
    padding-right: 1vw;
    border-top: 1px solid #eee;
}

/* Settings: Users styling */

.users-box {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: normal;
    width: 100%;
    height: 60vh;
    padding-left: 1vw;
    padding-right: 1vw;
}

/* Web booking tab: keep the public calendar box compact */
#booking {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

#booking .settings-headline {
    margin-bottom: 0;
}

.web-booking-box {
    width: min(420px, 100%);
    height: auto;
    max-height: none;
    padding: 14px 16px;
    overflow-x: hidden;
    overflow-y: visible;
}

.web-booking-box .save-btn-row {
    position: static;
    margin-top: 10px;
    border-top: none;
    width: 100%;
    background: transparent;
}

.web-booking-box .save-btn {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

#web-booking-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#web-booking-form > label,
#web-booking-form > .infoscreen-locations {
    margin: 0;
}

.web-booking-box .infoscreen-locations-col {
    width: 100%;
    box-sizing: border-box;
}

.users-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.users-list li {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 columns, equally spaced */
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.users-list li > span {
    display: inline-block;
    text-align: left;
    padding-right: 16px;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Set fixed widths for each column */
/* .users-list li span:nth-child(1) { width: 160px; } 
.users-list li span:nth-child(2) { width: 220px; } 
.users-list li span:nth-child(3) { width: 180px; }
.users-list li span:nth-child(4) { width: 100px; }
.users-list li span:nth-child(5) { width: 170px; }
.users-list li span:nth-child(6) { width: 210px; }
.users-list li span:nth-child(7) { width: 150px; }  */

.users-list-header {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 columns, equally spaced */
    align-items: center;
    gap: 12px;
    width: 100%;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #ccc;
    margin-bottom: 4px;
}
/* .users-list-header span:nth-child(1) { width: 160px; }
.users-list-header span:nth-child(2) { width: 220px; }
.users-list-header span:nth-child(3) { width: 100px; }
.users-list-header span:nth-child(4) { width: 170px; }
.users-list-header span:nth-child(5) { width: 210px; }
.users-list-header span:nth-child(6) { width: 150px; }
.users-list-header span:nth-child(7) { width: 180px; } */

/* Toggle switch: Start */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    vertical-align: middle;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    background-color: #c8c8c8;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #77d26a;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}
/* Toggle switch: End */

/* Settings: Locations styling */

.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.locations-list li {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columns, equally spaced */
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.locations-list-header,
.locations-list li {
    display: grid;
    grid-template-columns:
        160px   /* Navn */
        120px   /* Kontakt */
        180px   /* Adresse */
        100px   /* Postnr */
        120px   /* Telefon */
        80px    /* Momsfri */
        80px    /* Instrukt�r */
        120px   /* Vis p� infosk�rme */
        120px   /* Vis online */
        80px    /* Farve */
        100px   /* Pris Privat */
        110px   /* Pris Institution/Skole */
        110px   /* Pris Forening */
        60px;   /* Slet */
    align-items: center;
}

.users-list-header,
.users-list li,
.locations-list-header,
.locations-list li {
    gap: 12px;
}

.locations-list li span {
    display: inline-block;
    text-align: left;
    padding-right: 16px;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.locations-list li {
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.locations-list li span {
    display: inline-block;
    text-align: left;
    padding-right: 16px;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.locations-list-header {
    align-items: center;
    width: 100%;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #ccc;
    margin-bottom: 4px;
}
/* .locations-list-header span:nth-child(1) { width: 160px; }
.locations-list-header span:nth-child(2) { width: 220px; }
.locations-list-header span:nth-child(3) { width: 100px; }
.locations-list-header span:nth-child(4) { width: 170px; }
.locations-list-header span:nth-child(5) { width: 210px; }
.locations-list-header span:nth-child(6) { width: 150px; }
.locations-list-header span:nth-child(7) { width: 180px; } */



/* Settings: InfoScreens styling */

.infoscreens-scroll-x {
    overflow-x: auto;
    padding-bottom: 8px;
}

.infoscreens-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 16px;
    height: 53vh;
}

.infoscreen-box {
    min-width: 320px;
    max-width: 340px;
    flex: 0 0 auto;
}

.infoscreen-box {
    background: var(--box-color, #fff);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 18px 22px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.infoscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4vh;
}

.infoscreen-fields {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.infoscreen-fields label {
    font-size: 0.98em;
    color: #444;
}

.infoscreen-locations {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.infoscreen-locations-col {
    display: flex;
    flex-direction: column;
    max-height: 15vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 6px;
}

.infoscreen-url {
    font-size: 0.8rem;
    color: var(--accent-color-01);
    word-break: break-all;
}

/* Popup */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #f1f1f1;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    width: 60%;
    max-width: 95vw;
    max-height: 90vh; /* Increase max-height */
    height: auto;     /* Let content define height */
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

.modal-header {
    display: flex;
    justify-content: space-between;
}

.modal-headline {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin-bottom: 1rem;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: flex;
    flex-direction: column;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.close-modal {
    background: var(--text-color);
    color: var(--body-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.support-modal-content {
    width: min(760px, 92vw);
    max-height: 85vh;
}

.support-modal-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.support-modal-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid #e3e3e3;
}

.support-modal-section h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.support-modal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    color: #5f5f5f;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.support-modal-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.support-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-decoration: none;
}

.support-modal-secondary {
    background: #ffffff;
    color: var(--text-color);
    border: 1px solid #d3d3d3;
}

@media (max-width: 700px) {
    .support-modal-actions {
        flex-direction: column;
    }

    .support-modal-action {
        width: 100%;
    }
}

/* Login Screen */

.login-body {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: var(--accent-color-01);
    background-image: url(/assets/backgrounds/login_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.login-left h1 {
    font-size: 6rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    text-transform: uppercase;
}

.login-left span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    margin-top: 20px;
    opacity: 0.7;
}

.login-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--sidebar-color);
    width: 50%;
    height: 100vh;
    border-radius: 50px 0px 0px 50px;
}

.login-right-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 58%;
}

.login-right span, .login-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    opacity: 0.5;
}

.login-right h2 {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    margin-bottom: 5vh;
}

.login-right #login-form {
    display: flex;
    flex-direction: column;
    gap: 4vh;
    width: 40%;
}

.login-right-extra {
    display: flex;
    justify-content: start;
    width: 40%;
    margin-top: 2vh;
}

.login-right-extra a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    text-decoration: none;
    transition: var(--tran-05);
}

.login-right-extra a:hover {
    color: var(--accent-color-01);
}


/* Select Company */

.select-company {
    display: flex;    
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8vh;
    width: 100%;
    height: 100vh;
    background-color: var(--accent-color-01);
    background-image: url(/assets/backgrounds/login_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.select-company h1 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--sidebar-text-color);
    text-transform: uppercase;
}

.company-boxes {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2vh;
    width: 100%;
}

.company-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 2vh;
    background: var(--sidebar-color);
    width: 20vw;
    height: 25vh;
    cursor: pointer;
    border-radius: 40px;
    padding: 2vh 2vw;
    margin-bottom: 2vh;
}

.company-box img {
    width: 75px;
    height: 75px;
    margin-bottom: 1vh;
}

.company-box h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    margin-bottom: 5vh;
}

/* Create company button */

.create-company {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--sidebar-color);
    width: 15vw;
    height: 5vh;
    cursor: pointer;
    border-radius: 40px;
    padding: 2vh 2vw;
}

.create-company a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
    text-decoration: none;
}

/* Customers page */

.customers-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.customers-table th, .customers-table td {
    border: 1px solid #ddd;
    padding: 6px 4px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove scroll-cell block style, use inline style in table for scrollable cells */

.customers-table thead th {
    position: sticky;
    top: 0;
    background: var(--box-color);
    z-index: 2;
}

.customers-table th:nth-child(1),
.customers-table td:nth-child(1) { width: 40px; }
.customers-table th:nth-child(2),
.customers-table td:nth-child(2) { width: 120px; }
.customers-table th:nth-child(3),
.customers-table td:nth-child(3) { width: 90px; }
.customers-table th:nth-child(4),
.customers-table td:nth-child(4) { width: 90px; }
.customers-table th:nth-child(5),
.customers-table td:nth-child(5) { width: 120px; }
.customers-table th:nth-child(6),
.customers-table td:nth-child(6) { width: 30px; }
.customers-table th:nth-child(7),
.customers-table td:nth-child(7) { width: 50px; }
.customers-table th:nth-child(8),
.customers-table td:nth-child(8) { width: 50px; }
.customers-table th:nth-child(9),
.customers-table td:nth-child(9) { width: 120px; }
.customers-table th:nth-child(10),
.customers-table td:nth-child(10) { width: 70px; }
.customers-table th:nth-child(11),
.customers-table td:nth-child(11) { width: 90px; } /* CustomerType column */
.customers-table th:nth-child(12),
.customers-table td:nth-child(12) { width: 40px; } /* Edit column */
.customers-table th:nth-child(13),
.customers-table td:nth-child(13) { width: 40px; } /* Delete column */

.customers-table tbody tr:hover {
    background-color: var(--accent-color-01);
    color: var(--sidebar-text-color);
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.btn-row {
    display: flex;
    justify-content: space-between;
    gap: 1vw;
}

/* Bookings styling */

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bookings-table th, .bookings-table td {
    border: 1px solid #ddd;
    padding: 6px 4px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookings-table thead th {
    position: sticky;
    top: 0;
    background: var(--box-color);
    z-index: 2;
}

/* Adjust widths for each column (12 columns total) */
.bookings-table th:nth-child(1),
.bookings-table td:nth-child(1) { width: 34px; }   /* OrderID */
.bookings-table th:nth-child(2),
.bookings-table td:nth-child(2) { width: 70px; }   /* Rekv. nr. */
.bookings-table th:nth-child(3),
.bookings-table td:nth-child(3) { width: 34px; }   /* Serie nr. */
.bookings-table th:nth-child(4),
.bookings-table td:nth-child(4) { width: 150px; }  /* Kunde navn */
.bookings-table th:nth-child(5),
.bookings-table td:nth-child(5) { width: 100px; }  /* Afdeling */
.bookings-table th:nth-child(6),
.bookings-table td:nth-child(6) { width: 75px; }   /* Type */
.bookings-table th:nth-child(7),
.bookings-table td:nth-child(7) { width: 100px; }  /* Booking lokation */
.bookings-table th:nth-child(8),
.bookings-table td:nth-child(8) { width: 90px; }   /* Booking start */
.bookings-table th:nth-child(9),
.bookings-table td:nth-child(9) { width: 90px; }   /* Booking end */
.bookings-table th:nth-child(10),
.bookings-table td:nth-child(10) { width: 40px; }  /* Antal */
.bookings-table th:nth-child(11),
.bookings-table td:nth-child(11) { width: 25px; }  /* Ret */
.bookings-table th:nth-child(12),
.bookings-table td:nth-child(12) { width: 25px; }  /* Slet */

.bookings-table tbody tr:hover {
    background-color: var(--accent-color-01);
    color: var(--sidebar-text-color);
}

.booking-details-modal-content {
    width: 70%;
    max-width: 1100px;
}

.booking-details-content {
    max-height: 65vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.booking-details-grid {
    display: flex;
    flex-direction: column;
}

.booking-details-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-details-key {
    font-weight: 600;
    color: #1f1f1f;
}

.booking-details-value {
    color: #333;
    word-break: break-word;
}

.booking-details-empty {
    padding: 20px;
    color: #666;
}

/* Public calendar styles */


.public-calendar-page {
    min-height: 100vh;
    width: 100%;
    padding: 24px;
    background: transparent;
}

body.public-calendar-body {
    display: block;
    height: auto;
    min-height: 100vh;
}

.public-calendar-shell {
    width: 100%;
    background: transparent;
    border-radius: 25px;
    padding: 0;
}

.public-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.public-calendar-header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.public-calendar-header p {
    color: #5f5f5f;
}

.public-calendar-link {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #082a2f;
    word-break: break-all;
}

.public-calendar-logo {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.public-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.public-calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.public-location-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    cursor: pointer;
}

.public-location-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.public-view-tabs {
    margin-left: 0;
    flex-shrink: 0;
}

.public-calendar-frame {
    background: transparent;
}

#public-calendar {
    width: 100%;
    min-height: 760px;
}

@media (max-width: 900px) {
    .public-calendar-page {
        padding: 12px;
    }

    .public-calendar-shell {
        padding: 16px;
    }

    .public-calendar-header,
    .public-calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    #public-calendar {
        min-height: 620px;
    }
}

/* Booking search form */

#booking-search-form {
    display: flex;
    align-items: center;
}

/* Hide FullCalendar license badge text overlay */
.fc-license-message {
    display: none !important;
}

.search-results {
    position: absolute;
    color: #fff;
    background-color: black;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 10;
}

.search-result-item {
    padding: 6px 10px;
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--accent-color-01);
}

.label-block {
    position: relative;
}


/* Sidebar */

.sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 20px 15px;
    background-color: var(--sidebar-color);
    color: var(--sidebar-text-color);
    transition: var(--tran-03);
    transition: var(--tran-05);
}

.sidebar.close {
    width: 60px;
}

.sidebar.close .text {
    display: none;    
}

.sidebar-loggedin {
    background: #ffe;
    color: #333;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    text-align: center;
    transition: var(--tran-03);
}

.sidebar.close .sidebar-loggedin {
    display: none;
}

header .image-text .header-text {
    display: flex;
    flex-direction: column;
}

.logo {
    width: 35px;
    height: 35px;
    margin-bottom: 4px;
}

.header-text .company-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    border-radius: 0px 5px 5px 0px;
    padding: 5px 5px;
    background: var(--sidebar-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tran-03);
    z-index: 10;
}

.sidebar.close header .toggle {
    right: -20px;
    transform: translateY(-50%);
    justify-content: space-between;
}

.sidebar li .text {
    color: var(--sidebar-text-color);
    font-size: 18px;
    transition: var(--tran-03);
    align-items: center;
    flex-direction: column;
    gap: 10%;
    width: 100%;
    list-style: none;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10%;
    width: 100%;
    list-style: none;
}

.menu-links .nav-link.active,
.menu-links .nav-link.active a,
.menu-links .nav-link.active .text {
    color: var(--accent-color-01) !important;
}

.menu-links .nav-link.active .icon {
    filter: brightness(0) invert(1);
}

/* Sidebar: Logged in as info box */
.sidebar-loggedin {
    background: #ffe;
    color: #333;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    text-align: start;
    transition: var(--tran-03);
}

.sidebar.close .sidebar-loggedin {
    display: none;
}

/* Sidebar arrow toggle styles */
.toggle {
    position: absolute;
    top: 50%;
    right: -40px; /* Sits more visibly outside when sidebar is closed */
    transform: translateY(-50%) rotate(0deg);
    height: 32px;
    width: 32px;
    border-radius: 0px 8px 8px 0px;
    padding: 0;
    background: var(--sidebar-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, right 0.3s;
    z-index: 10;
}

.sidebar:not(.close) .toggle {
    right: -20px;
    transform: translateY(-50%) rotate(180deg);
}

.sidebar.close .toggle {
    right: -40px; /* Sits more visibly outside when sidebar is closed */
    transform: translateY(-50%) rotate(0deg);
}

/* Title header */

.title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    padding: 0px 70px;
}

/* Orders-specific table tweaks (updated widths per request) */
.orders-table {
    table-layout: fixed; /* ensure widths are respected */
}

/* 1: Vælg (checkbox) 50% større (20px -> 30px) */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 30px;
    max-width: 30px;
    padding: 6px 4px;
    text-align: center;
}

/* 2: OrderID � mindre */
.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 60px;
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3: BestillingsID � mindre */
.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 45px;
    max-width: 45px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4: Kundenr � halv st�rrelse (sat lavt) */
.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 45px;
    max-width: 45px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5: Kunde � behold normal st�rrelse */
.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 120px;
    max-width: 120px;
}

/* 6: Lokation � 60% mindre (240px -> ~96px) */
.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 96px;
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 7: Start */
.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 120px;
    max-width: 120px;
}

/* 8: Slut */
.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
    width: 120px;
    max-width: 120px;
}

/* 9: Pris � 30% st�rre (24px -> ~31px) */
.orders-table th:nth-child(9),
.orders-table td:nth-child(9) {
    width: 31px;
    max-width: 31px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 6px;
}

/* 10: Eksporteret � hold lille */
.orders-table th:nth-child(10),
.orders-table td:nth-child(10) {
    width: 70px;
    max-width: 70px;
    text-align: center;
}

/* 11: Tilf�jet af � meget st�rre */
.orders-table th:nth-child(11),
.orders-table td:nth-child(11) {
    width: 220px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Orders page layout fixes */
.orders-top {
    position: relative;
    z-index: 5;                /* keep top box above other content */
    padding: 14px 18px;        /* give breathing room like customers top box */
    background: var(--box-bg, #fff);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.view-container-column > .box-container-bottom.box {
    margin-top: 14px;         /* ensure bottom box starts below top box */
    clear: both;
}

/* Prevent table from overlapping top box and ensure normal flow */
.orders-table {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    table-layout: fixed;
    width: 100%;
}

/* Optional: keep same row hover/spacing as customers */
.orders-table tbody tr:hover {
    background-color: var(--accent-color-01);
}


/* InfoScreens Styles */

.infoScreen-container {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    height: 100vh;
    width: 100%;;
}

.infoScreen-content {
    display: flex;
    height: 80vh;
    width: 100%;
}

.infoScreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 13vh;
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vh;
    padding-right: 50px;
}

.qr-section p {
    font-size: 1.4rem;
    font-weight: 500;
}

.qrcode {
    height: 140px;
    width: 140px;
}

.welcome-msg {
    width: 70%;
    background-color: var(--sidebar-text-color);
    padding-left: 50px;
}

.welcome-msg h2 {
    font-size: 2rem;
    font-weight: 600;
}

.welcome-msg p {
    font-size: 1.6rem;
    font-weight: 400;
}

.infoScreen-right {
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color-01);
}

.infoScreen-msg {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sidebar-text-color);
}

.infoScreen-left {
    height: 100%;
    width: 50%;
    background-color: rgb(221, 221, 221);
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

#infoscreen-calendar-wrap {
    padding: 20px 50px; /* 20px top/bottom, 50px left/right */
    box-sizing: border-box;
    flex: 1 1 auto; /* allow calendar-wrap to grow and define height for child */
}

#infoscreen-calendar {
    width: 100%;
    height: 100% !important;
    box-sizing: border-box;
}

.infoScreen-footer {
    height: 7vh;
    width: 100%;
    background-color: var(--sidebar-text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    flex: 0 0 auto;
    padding: 0px 50px;
}

.infoScreen-clock {
    font-weight: 600;
    font-size: 2.2rem;
}

.infoscreen-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px 24px 0 0;
    font-size: 1.1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #ccc;
    margin-right: 4px;
}




