html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    overflow-x: hidden;
}
.remove-artikel-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #dc3545;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

    .remove-artikel-btn:hover {
        transform: scale(1.1);
        background-color: #c82333;
    }

#addArtikelBtn {
    width: 40px;
    margin-left: 5px;
    margin-top: -10px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

    #addArtikelBtn:hover {
        transform: scale(1.1);
        background-color: #0056b3;
    }

@media (max-width: 576px) {
    #addArtikelBtn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem;
    }

    #artikelInput {
        min-width: 120px;
    }
}

#artikelenLijst {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

    #artikelenLijst .list-group-item {
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
    }

 
            #artikelenLijst .list-group-item:last-child {
            border-bottom: none;
        }

    #artikelenLijst .btn-danger {
        font-size: 0.9rem;
        padding: 5px 10px;
        border-radius: 5px;
    }

.container {
    flex: 1;
    margin-top: 20px;
    padding-bottom: 60px;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
}

h1 {
    color: #007bff;
    font-size: 2.5rem;
    text-align: center;
}

hr {
    border: 2px solid orange;
    width: 50%;
    margin: 20px auto;
}

#werkbonForm {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    #werkbonForm .form-label {
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
    }
      
.form-control {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

textarea.form-control {
    resize: vertical;
    height: 100px;
}

.table {
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin-top: 20px;
    width: 100%;
}

    .table thead th {
        background-color: #343a40;
        color: white;
        text-align: center;
    }

    .table td, .table th {
        text-align: center;
        vertical-align: middle;
    }

.action-btn-group .btn,
.action-btn-group button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    box-shadow: none;
    border-radius: 5px;
    height: 38px;
    text-align: center;
    min-width: 100px;
}

footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    line-height: 60px;
    height: 60px;
    font-size: 0.9rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

        .table thead {
            display: none;
        }

        .table tbody tr {
            display: block;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            padding: 10px;
        }

        .table tbody td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 5px;
            font-size: 14px;
        }

            .table tbody td:before {
                content: attr(data-label);
                font-weight: bold;
                color: #6c757d;
            }

    .action-btn-group {
        flex-direction: column;
        gap: 8px;
    }

        .action-btn-group .btn,
        .action-btn-group button {
            width: 100%;
            font-size: 16px;
        }

        .desktop-search {
            display: none;
        }
    
}


.form-check-input:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0d6efd;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: #f8f9fa;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid orange;
}

    .navbar .nav-link {
        color: #007bff;
    }

        .navbar .nav-link.active {
            color: #ffb74d;
            font-weight: bold;
        }



.truncate-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card {
    border-radius: 15px;  
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3) !important;  
    transition: box-shadow 0.3s ease;  
}


.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: 1px solid #ddd;
    }

        .table-responsive td:before {
            content: attr(data-label);
            font-weight: bold;
            color: #495057;
            flex: 1;
        }

    .action-btn-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

#dashboard-banner, .blue-banner {
    background-color: #007bff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    #dashboard-banner h2, .blue-banner h2 {
        color: #ffffff;
        margin: 0;
        font-size: 1.5rem;
    }

.Mobile-search {
    position: fixed;
    bottom: 10px;
    right: 95px;
    background-color: #fff;
    border: 2px solid orange;
    border-radius: 25px;
    width: 225px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 1000;
   }


    .Mobile-search input {
        border: none;
        outline: none;
        width: 100%;
        height: 80%;
        font-size: 14px;
        padding: 0 10px;
        color: #333;
        background-color: transparent;
        box-sizing: border-box;
        text-indent: 5px;
        font-family: Arial, sans-serif;
        border-radius: 15px;
    }

        .Mobile-search input::placeholder {
            color: #999;
            font-size: 14px;
            font-style: italic;
            opacity: 0.8;
        }

.floating-btn {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 10px;
    right: 50px;
    z-index: 1000;
}

.desktop-search {
    position: fixed;
    top: 60px;
    left: 10px;
    z-index: 1000;
    padding: 2px 5px;
    background-color: transparent;
    border: none;
    opacity: 1;
    transition: opacity 0.3s ease;
     }

    .desktop-search:hover {
        opacity: 1;
    }

    .desktop-search form {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .desktop-search .form-control {
        width: 120px;
        height: 30px;
        border-radius: 10px;
        border: 1px solid #007bff;
        padding: 4px 8px;
        font-size: 12px;
    }

    .desktop-search .btn {
        border-radius: 10px;
        background-color: #28a745;
        color: white;
        border: 1px solid #28a745;
        padding: 4px 10px;
        font-size: 12px;
       margin-top: -10px;
       width: 70px;
    }

.Mobile-search {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-search {
        display: none;
    }

    .Mobile-search {
        display: flex !important;
    }
}

.manual-werkbon {
    border: 3px solid green;
    border-radius: 8px;
}
.custom-editor {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px;
    min-height: 400px !important;
    font-size: 1rem;
    background-color: #ffffff;
    overflow-y: auto;
    line-height: 1.6;
    color: #212529;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .custom-editor:focus {
        border-color: #007bff;
        box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
        outline: none;
    }

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

    .editor-toolbar button {
        background-color: #ffffff;
        border: 1px solid #ced4da;
        border-radius: 6px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 0.9rem;
        color: #212529;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

        .editor-toolbar button:hover {
            background-color: #e9ecef;
            border-color: #adb5bd;
        }

        .editor-toolbar button.active {
            background-color: #007bff;
            color: #ffffff;
            border-color: #007bff;
        }

        .editor-toolbar button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

@media (max-width: 768px) {
    .editor-toolbar {
        flex-wrap: wrap;
        gap: 5px;
        padding: 5px;
    }

    .custom-editor {
        min-height: 120px;
        font-size: 0.9rem;
        padding: 8px;
    }

    .editor-toolbar button {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}
.slider-container {
    position: relative;
    width: 100%;
}

.time-labels span {
    font-size: 0.85rem;
    color: #6c757d;
    width: 20%;
    text-align: center;
}
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: #007bff;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
    }

    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: #007bff;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
    }

    input[type="range"]:hover::-webkit-slider-thumb {
        background: #0056b3;
    }

    input[type="range"]:hover::-moz-range-thumb {
        background: #0056b3;
    }
.d-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
}

    .d-grid button {
        flex: 0 0 auto;
    }

@media (max-width: 576px) {
    .row .btn-secondary {
        display: block;
        margin-left: auto;
        margin-right: 0;
        width: auto;
    }
}
@media (max-width: 768px) {
    input[readonly] {
        pointer-events: none;
        background-color: #f8f9fa;
    }
}
#VerstuurNaarKlant {
    margin-bottom: 0; 
}

#EmailKlant {
    margin-top: 0.5rem;
    background-color: #f8f9fa; 
    border-color: #ced4da; 
    color: #495057; 
}

.disabled {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}
.textarea-save-icon {
    padding-right: 40px;  
    resize: vertical;
}

.position-relative {
    position: relative;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-group .form-control {
        padding-right: 35px;
        height: 38px;
        border-radius: 5px;
    }

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: unset !important;
    width: auto !important;
}

.save-icon {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6c757d;
    pointer-events: none;
    cursor: default;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.save-icon-textarea {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 14px;
    color: #6c757d;
    pointer-events: none;
    cursor: default;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
input[type="time"],
input[type="number"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#artikelInput {
    width: calc(100% - 60px); 
    max-width: 400px;
    min-width: 150px;
}


    #artikelInput + .save-icon {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
.badge.bg-info {
    background-color: green !important;  
    color: white !important;  
}

@media (max-width: 576px) {
    .save-icon {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: #6c757d;
        display: block !important;
    }
}

@media (max-width: 768px) {
    #aantalInput {
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }

        #aantalInput::-webkit-outer-spin-button,
        #aantalInput::-webkit-inner-spin-button {
            display: none;
        }

    .mobile-only {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 50%;
        border: 1px solid #ccc;
        background-color: #f8f9fa;
        color: #000;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    #aantalInput {
        -webkit-appearance: auto;
    }
}
.btn-ai {
    background-color: orange;
    color: white;
    border: none;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    transition: all 0.3s ease-in-out;
}

    .btn-ai:hover {
        background-color: orange;
        box-shadow: 0 0 15px rgba(74, 144, 226, 0.8);
    }

    .btn-ai:active {
        background-color: #2B6BA5;
        box-shadow: 0 0 5px rgba(74, 144, 226, 1);
    }
.btn-container {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px; 
}

.btn-delete {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s;
    font-size: 12px;
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    line-height: 1; 
    text-align: center;
    min-width: 25px;
    min-height: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}
    .btn-delete:hover {
        background-color: #c82333;
        box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
    }
    .btn-delete:active {
        transform: scale(0.95);
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    }
    @media (max-width: 480px) {
    .btn-delete {
        width: 25px;
        height: 25px;
        font-size: 12px;
        box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
    }
}

.werkbon-btn {
    margin-left: 0 !important; 
}

