body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    border-top: 1px solid #444;
}
canvas#taskStatusChart {
    max-width: 100%;
    height: 300px;
}


    #qrCodeContainer {
        text-align: center;
        margin: 20px auto;
    }
    @media print {
        body * {
            display: none;
        }
        #qrCodeContainer, #qrCodeContainer * {
            display: block;
        }
        #qrCodeContainer {
            margin: 0 auto;
            text-align: center;
        }
    }
@media (max-width: 700px) {
    .d-flex.gap-2 {
        gap: 0.3rem;
        justify-content: center;
    }

    .table td.text-end {
        text-align: center !important;
    }

    .btn {
        font-size: 0.8rem; /* Mindre knapper */
    }
	
}
@media (max-width: 768px) {
    .row.mt-4 {
        flex-direction: column; /* Stacker elementerne vertikalt */
    }
    .col-lg-6.custom-width,
    .col-lg-6.dependencies {
        flex: 0 0 100%; /* Fylder hele bredden */
        max-width: 100%;
		
    }
}







.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}

.card-text {
    font-size: 1rem;
    color: #6c757d;
}

.badge {
    font-size: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}
.timeline {
    position: relative;
    padding: 10px 0;
    margin: 10px 0;
    border-left: 2px solid #d9d9d9;
}

.timeline-item {
    position: relative;
    padding: 10px 0 10px 20px;
    margin: 10px 0;
}

.timeline-icon {
    position: absolute;
    left: -15px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timeline-content {
    margin-left: 10px;
}

.timeline-icon.bg-primary {
    background-color: #0d6efd;
}

.timeline-icon.bg-danger {
    background-color: #dc3545;
}
.card {
    margin-bottom: 20px; /* Ensartet afstand under hvert kort */
}

.canvas-container {
    max-width: 100%;
    height: 200px; /* Ens højde for alle grafer */
}
/* Hover Menu Container */
.action-menu-wrapper {
    position: relative;
}

/* Vis menu ved hover på knappen eller menuen */
.action-menu-wrapper:hover .action-menu {
    display: block;
}

.action-menu {
    display: none; /* Skjult som standard */
    position: absolute;
    top: 100%; /* Placer under knappen */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    width: 200px;
}

/* Styling for menuindholdet */
.action-menu button {
    margin-bottom: 5px;
}

.action-menu button:last-child {
    margin-bottom: 0;
}

.action-menu p {
    margin: 0;
    text-align: center;
    color: #6c757d; /* Grå tekst til meddelelser */
}

/* Knappen til tre prikker */
.action-menu-toggle {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
}

.action-menu-toggle:hover {
    background: #e9ecef;
    border-color: #ccc;
    cursor: pointer;
}



.btn-link {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.text-muted {
    font-size: 0.95rem;
    color: #6c757d !important;
}

/* Gør skrivefeltet hvidt og juster kant og padding */
    #quill-editor {
        background-color: #ffffff; /* Hvid baggrund */
        border: 1px solid #ced4da; /* Grå kant for at matche Bootstrap */
        border-radius: 5px; /* Rundede hjørner */
        padding: 10px; /* Lidt indvendig afstand */
        min-height: 300px; /* Sikrer en minimumshøjde */
    }

    /* Fjerner Quill's default kant (hvis nødvendig) */
    .ql-container {
        border: none;
    }

    /* Sørger for, at indholdet også har en hvid baggrund */
    .ql-editor {
        background-color: #ffffff; /* Hvid baggrund */
    }
	 #teamTable th, #teamTable td {
        width: 33%; /* Fordeler kolonnerne ligeligt */
    }
	
#week-selection {
    height: auto;
    min-height: 150px; /* Gør det lettere at vælge flere uger */
    max-height: 200px; /* Undgå at listen bliver for høj */
    overflow-y: auto; /* Tilføj scrollbar, hvis der er mange uger */
}
#weeks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.week-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
}

.week-btn.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.week-btn.disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}
.btn-check + .btn {
    border-radius: 0;
}

.btn-group .btn:first-of-type {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group .btn:last-of-type {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.select2-container {
    width: 100% !important; /* Sikrer, at Select2 matcher input-gruppens bredde */
}

.select2-container--bootstrap-5 .select2-selection {
    height: auto; /* Juster Select2's højde */
    padding: 0.375rem 0.75rem; /* Match Bootstrap input padding */
}

.input-group .select2-container .select2-selection--multiple {
    border: none; /* Fjern dobbelte grænser */
    padding-left: 0; /* Fjern overlap med ikon */
}

.input-group .select2-container .select2-selection--multiple .select2-search {
    margin-left: 0; /* Justér indryk i flervalg */
}
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 300px; /* Højde på diagrammet */
}

canvas {
    max-width: 100%;
    max-height: 100%;
}
.text-body {
        word-wrap: break-word;
        white-space: pre-wrap; /* Bevarer linjeskift */
    }
	
.row.mt-4 {
    display: flex; /* Aktiver flexbox for at placere elementerne ved siden af hinanden */
    justify-content: space-between; /* Sørg for afstand mellem elementerne */
    align-items: flex-start; /* Juster toppen af elementerne */
}

.col-lg-6.custom-width {
    flex: 0 0 65%; /* Formularen fylder 65% af bredden */
    max-width: 65%; /* Begræns formularens maksimale bredde */
}

.col-lg-6.dependencies {
    flex: 0 0 30%; /* Dependencies fylder kun 30% af bredden */
    max-width: 30%; /* Begræns dependencies' maksimale bredde */
	margin-right: 15px;
}

.card.shadow-sm {
    width: 100%; /* Sørg for, at kortet fylder hele sin container */
}

/*Kalender*/

.grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.grid-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    border: 1px solid #ddd;
    padding: 5px;
    height: 150px; /* Fast højde */
    overflow: hidden;
    background-color: #f9f9f9;
}

.grid-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.grid-item.scrollable {
    overflow-y: auto; /* Aktiver vertikal scrolling */
}

.grid-item.outside-month {
    color: #aaa;
    background-color: #f8f9fa; /* Lys grå baggrund */
}

.grid-item .bi-folder-fill {
    color: #ffc107; /* Farve for projekter */
}

.grid-item .bi-check-circle-fill {
    color: #28a745; /* Farve for opgaver */
}


.task-item {
    display: inline-block;
    width: 100%; /* Fyld cellen */
    margin-top: 5px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.task-item:hover {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#calendar-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}
.outside-month {
    background-color: #f1f1f1;
    color: #aaa;
}
.project-event {
    background-color: #17a2b8; /* Bootstrap Info-farve */
    color: white;
    border: 1px solid #138496;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    margin: 2px 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.project-item {
    display: block;
    width: 100%; /* Fyld hele bredden */
    margin: 2px 0;
    padding: 2px;
    color: white;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: center; /* Centrer teksten */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #17a2b8; /* Standardfarve */
}

.project-item:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}


.project-band {
    height: 20px;
    border-radius: 3px;
    margin: 5px 0;
    font-size: 0.8rem;
    text-align: center;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.project-item.long {
    position: absolute; /* Tillad overlapping mellem celler */
    left: 0;
    width: 100%; /* Fyld hele bredden af en dag */
    height: 20px; /* Standard højde */
}

.project-band:hover {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

.project-item.show-more {
    background-color: #6c757d; /* Grå baggrund */
    color: white;
    cursor: pointer;
    text-align: center;
    font-size: 0.8rem;
    margin: 5px 0;
}

.project-item.show-more:hover {
    background-color: #5a6268;
}


.task-icon {
    font-size: 1.2rem; /* Størrelse på ikoner */
    color: #007bff; /* Standard farve for opgaver */
    cursor: pointer;
}

.task-icon:hover {
    color: #0056b3; /* Mørkere farve ved hover */
}
.grid-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.grid-weekdays .weekday {
    padding: 5px 0;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}


/*Modal flere opg. kalender visning*/
.modal-body .task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body .task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-body .task-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    cursor: pointer;
}

.modal-body .task-title {
    font-weight: bold;
    color: #333;
}

.modal-body .task-badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.modal-body .task-badge.project {
    background-color: #17a2b8; /* Info blå */
}

.modal-body .task-badge.task {
    background-color: #ffc107; /* Advarsel gul */
}

#modal-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    display: block;
    margin-top: 5px;
}

.highlight {
    background-color: #d4edda;
    transition: background-color 2s ease;
}
.list-group {
    list-style-type: none;
    padding-left: 0;
}

.list-group-item {
    border: none;
    padding: 5px 0;
}

.list-group-item a.text-primary {
    margin-right: 5px;
    cursor: pointer;
    text-decoration: none;
}

.d-none {
    display: none; /* Skjul som standard */
}


#dateRange {
        margin-bottom: 20px;
        padding: 10px;
        font-size: 16px;
    }

#department-suggestions {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    cursor: pointer;
}
#department-suggestions li:hover {
    background-color: #f8f9fa;
}


/*modal edit user*/

#editUserModal .modal-body {
    background-color: #f9fafe;
    padding: 1.5rem;
    border-radius: 0.3rem;
}

#editUserModal .form-label {
    font-weight: 600;
    color: #374151;
}

#editUserModal .form-control,
#editUserModal .form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .4rem;
    padding: 0.45rem 0.75rem;
    box-shadow: none;
}

#editUserModal .form-control:focus,
#editUserModal .form-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(0,123,255,.25);
}

#editUserModal .mb-3 {
    margin-bottom: 1.25rem !important;
}

#editUserModal #edit_role {
    margin-top: 1rem;
    border-left: 4px solid #d1d5db;
    background-color: #f3f4f6;
}

#editUserModal #editUserError {
    padding: 0.5rem;
    background-color: #fff0f0;
    border: 1px solid #ffdddd;
    border-radius: 0.25rem;
    margin-top: 1rem;
}


/*modal create user*/
#createUserModal .modal-body {
    background-color: #f9fafe;
    padding: 1.5rem;
    border-radius: 0.3rem;
}

#createUserModal .form-label {
    font-weight: 600;
    color: #374151;
}

#createUserModal .form-control,
#createUserModal .form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .4rem;
    padding: 0.45rem 0.75rem;
    box-shadow: none;
}

#createUserModal .form-control:focus,
#createUserModal .form-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(0,123,255,.25);
}

#createUserModal .mb-3 {
    margin-bottom: 1.25rem !important;
}

#createUserModal #createUserMessage {
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}


#description-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


#equipmentList .list-group-item {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
	margin:5px;
	padding-left:5px;
}

#equipmentList .list-group-item:hover {
    background-color: #e9f5ff;
    transform: scale(1.01);
}

#equipmentList .list-group-item.active {
    background-color: #0d6efd;
    color: white;
    font-weight: 500;
}


.user-row {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.user-row:hover {
    background-color: #f8f9fa;
}