@import url('variables.css');

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

body.dark-mode {
    background-color: #1e1e2f;
    color: #f0f0f0;
}

    body.dark-mode .card {
        background-color: #2c2c3e;
        color: #fff;
    }

    body.dark-mode .navbar,
    body.dark-mode .modal-content {
        background-color: #2a2a3b;
        color: #ffffff;
    }

/* Add any other components you want to style for dark mode */


/**KBO */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-color: var(--error-color, #dc3545);
    background-color: #fff5f5;
}

span.field-validation-error {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.input-group .btn i {
    min-width: 1.25em; /* Ensures enough space for both icons */
    text-align: center;
}

.form-switch {
    display: flex;
    align-items: center;
}

    .form-switch .form-check-input {
        margin-left: 0
    }

.app-header {
    height: 4.75rem;
    background-color: var(--primary-color);
}

    .app-header .brand .brand-logo {
        padding: 0.75rem 0;
    }

    .app-header .menu .menu-item .menu-link .menu-text {
        color: #fff !important;
    }


    .app-header .menu-toggler .bar {
        background: #fff !important
    }

.k-edit-form-container {
    width: 100% !important
}

label {
    font-weight: bold;
    margin: 0.5em 0;
}

.missing-supplier {
    border: 1px solid #dc3545 !important;
    background-color: #fff6f6;
}

.qty-input {
    padding: 0.25rem 0.5rem;
}

select.supplier-select {
    min-width: 150px;
}

.btn i {
    pointer-events: none;
}

.app-footer-fixed .app-footer {
    z-index: 100 !important;
}

.k-table-md {
    font-size: 0.8rem !important;
}

.k-button-md.k-icon-button {
    padding: 0.175rem !important;
}

.k-grid {
    line-height: 1 !important;
    font-size: 0.8rem !important;
}

/*.mb-4 {
    margin-bottom: 0rem !important;
}*/

.form-check-input {
    margin-top: 1.1em;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #880013;
    --bs-btn-border-color: #880013;
    --bs-btn-hover-bg: #6f0010;
    --bs-btn-hover-border-color: #6f0010;
    --bs-btn-active-bg: #5a000d;
    --bs-btn-active-border-color: #5a000d;
    --bs-btn-focus-shadow-rgb: 136, 0, 19;
}

.k-button-solid-primary {
    border-color: #880013;
    color: #ffffff;
    background-color: #880013;
}

    .k-button-solid-primary:hover,
    .k-button-solid-primary.k-hover {
        border-color: #6f0010;
        background-color: #6f0010;
        color: #ffffff;
    }

    .k-button-solid-primary:active,
    .k-button-solid-primary.k-active {
        border-color: #5a000d;
        background-color: #5a000d;
        color: #ffffff;
    }

    .k-button-solid-primary:focus,
    .k-button-solid-primary.k-focus {
        box-shadow: 0 0 0 0.25rem rgba(136, 0, 19, 0.25);
    }

.nav-item {
    padding-right: 35px;
    color: white;
}

.product-image-wrapper {
    overflow: hidden;
}

.product-main-image {
    transition: transform 0.3s ease;
}

.product-image-wrapper:hover .product-main-image {
    transform: scale(1.15);
}

.mini-cart-dropdown {
    width: 360px;
}

.mini-cart-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mini-cart-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-cart-info {
    flex: 1;
}

.mini-cart-name {
    font-size: 14px;
    font-weight: 500;
}

.mini-cart-meta {
    font-size: 12px;
    color: #6c757d;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.mini-cart-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.mini-cart-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-cart-info {
    flex: 1;
}

.mini-cart-name {
    font-size: 14px;
    font-weight: 500;
}

.mini-cart-meta {
    font-size: 12px;
    color: #6c757d;
}

.mini-cart-qty {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mini-cart-remove {
    cursor: pointer;
    color: #dc3545;
}

#cartOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1040;
}

#cartPanel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right .3s ease;
}

    #cartPanel.open {
        right: 0;
    }

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.cart-panel-body {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.cart-panel-footer {
    padding: 16px;
    border-top: 1px solid #eee;
}

.cart-panel-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
}

.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

    .cart-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
    }

.cart-item-info {
    flex: 1;
}

.cart-item-qty {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.cart-item-remove {
    cursor: pointer;
    color: #dc3545;
}

.cart-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-row {
    display: grid;
    grid-template-columns: 1fr 140px 120px 120px;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-name {
    font-weight: 600;
}

.cart-price {
    font-size: 14px;
    color: #6c757d;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-value {
    min-width: 25px;
    text-align: center;
}

.cart-subtotal {
    font-weight: 600;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
}


.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.timeline-icon {
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 50%;
    margin-top: 6px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
}

.timeline-desc {
    font-size: 14px;
}

.timeline-meta {
    font-size: 12px;
    color: #6c757d;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

    .timeline:before {
        content: '';
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #dee2e6;
    }

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
}

.timeline-title {
    font-weight: 600;
}

.timeline-desc {
    font-size: 14px;
}

.timeline-meta {
    font-size: 12px;
    color: #6c757d;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

    .timeline:before {
        content: "";
        position: absolute;
        left: 16px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #dee2e6;
    }

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-icon {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.timeline-created {
    background: #6c757d;
}

.timeline-approval {
    background: #ffc107;
}

.timeline-approved {
    background: #198754;
}

.timeline-rejected {
    background: #dc3545;
}

.timeline-ordered {
    background: #0d6efd;
}

.timeline-delivered {
    background: #20c997;
}

.timeline-content {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
}

.timeline-title {
    font-weight: 600;
}

.timeline-meta {
    font-size: 12px;
    color: #6c757d;
}

.order-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .order-progress-bar:before {
        content: "";
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 3px;
        background: #dee2e6;
    }

.order-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.order-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.order-step.active .order-step-icon {
    background: #198754;
    color: white;
}

.order-step-label {
    font-size: 12px;
    margin-top: 5px;
}

.order-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .order-progress-bar:before {
        content: "";
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 3px;
        background: #dee2e6;
        z-index: 0;
    }

.order-step {
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 90px;
}

.order-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.order-step.active .order-step-icon {
    background: #198754;
    color: white;
}

.order-step.rejected .order-step-icon {
    background: #dc3545;
    color: white;
}

.order-step-label {
    font-size: 12px;
    margin-top: 6px;
}

.order-step.rejected .order-step-icon {
    background: #dc3545;
    color: white;
}

 
 
.activity-icon {
    width: 28px;
    height: 28px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-meta {
    font-size: 12px;
    color: #6c757d;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    transition: all .15s ease;
}

    .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,.15);
    }

.kpi-icon {
    font-size: 28px;
    opacity: .9;
}

.kpi-title {
    font-size: 13px;
    opacity: .9;
}

.kpi-value {
    font-size: 28px;
}

.kpi-red {
    background: #b40016;
}

.kpi-orange {
    background: #ff9900;
}

.kpi-green {
    background: #198754;
}

.kpi-blue {
    background: #0d6efd;
}

.kpi-link {
    text-decoration: none;
}
.activity-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.activity-dot {
    width: 10px;
    height: 10px;
    background: #0d6efd;
    border-radius: 50%;
    margin-top: 6px;
}

.activity-meta {
    font-size: 12px;
    color: #6c757d;
}

/* compacte Kendo grid */
.k-grid td,
.k-grid th {
    padding: 6px 10px;
    font-size: 13px;
}

/* rijhoogte */
.k-grid tbody tr {
    height: 34px;
}

/* header */
.k-grid-header th {
    font-size: 12px;
    font-weight: 600;
}

/* status badges kleiner */
.k-grid .badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* hover subtiel */
.k-grid tbody tr:hover {
    background: #f7f7f7;
}

.dashboard-widget .k-grid td,
.dashboard-widget .k-grid th {
    padding: 5px 8px;
}

.dashboard-widget .k-grid tbody tr {
    height: 30px;
}
.activity-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.activity-title {
    font-weight: 500;
}

.activity-meta {
    font-size: 12px;
    color: #6c757d;
}
.top-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.top-product-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

.top-product-info {
    flex: 1;
}

.top-product-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.top-product-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

.top-product-bar-fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 3px;
}

.top-product-qty {
    font-weight: 600;
    font-size: 13px;
    min-width: 30px;
    text-align: right;
}

.order-meta {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
}

.approval-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.placeholder-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.placeholder-text {
    font-size: 13px;
}
.order-progress {
    display: flex;
    justify-content: space-between;
}

.order-step {
    text-align: center;
    flex: 1;
    opacity: 0.4;
}

    .order-step.active {
        opacity: 1;
        color: #0d6efd;
        font-weight: 600;
    }

.timeline-item {
    border-left: 2px solid #dee2e6;
    padding-left: 10px;
    margin-bottom: 12px;
}

.timeline-date {
    font-size: 12px;
    color: #888;
}

.menu-divider {
    border-top: 1px solid #000000;
    margin: 10px 0;
}



/* Dropdown container */
.k-dropdownlist.k-picker {
    height: 38px;
    border-radius: 6px !important;
    border-color: #ced4da !important;
}

/* Binnenkant (tekst) */
.k-dropdownlist .k-input-inner {
    padding: 6px 10px !important;
    font-size: 14px !important;
}

/* Waarde tekst */
.k-dropdownlist .k-input-value-text {
    font-size: 14px !important;
}

.k-dropdownlist .k-input-button {
    padding: 0 6px;
}
/* Uniforme inputs */
.text-box,
.k-input-inner,
.k-picker {
    border-radius: 6px !important;
    border-color: #ced4da !important;
    font-size: 14px;
}

    .k-picker.k-focus {
        box-shadow: 0 0 0 0.1rem rgba(13,110,253,.15) !important;
        border-color: #86b7fe !important;
    }

.k-list .k-item {
    font-size: 14px;
    padding: 6px 10px;
}

#productAttributeValueGrid .k-dropdownlist.k-picker {
    height: 38px;
}
/* COMPLETE reset voor Kendo dropdown in grid */
#productAttributeValueGrid .k-dropdownlist.k-picker {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
}

/* Binnenste input */
#productAttributeValueGrid .k-dropdownlist .k-input-inner {
    height: 34px !important;
    min-height: 34px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
}

/* Tekst zelf */
#productAttributeValueGrid .k-input-value-text {
    line-height: normal !important;
}

/* Dropdown knop (rechterkant) */
#productAttributeValueGrid .k-dropdownlist .k-input-button {
    height: 34px !important;
    padding: 0 6px !important;
}

/* FIX: Kendo voegt extra ruimte toe via flex */
#productAttributeValueGrid .k-picker {
    align-items: center !important;
}