@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');
@import "node_modules/bootstrap-icons/font/bootstrap-icons.css";

/* Базові стилі */
body {
    background: #e5e5e5;
    font-family: 'Nunito', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-block {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.01);
  z-index: 9999;
  display: none;
}
.modal-block.active {
  display: block;
}


/* Кнопки навігації */
.button-container {
    /* background: #e5e5e5; */
    border-radius: 20px;
    padding: 2px;
    margin-bottom: 10px;
    /* box-shadow: 
        -10px -10px 20px rgba(255, 255, 255, 0.8),
        10px 10px 20px rgba(0, 0, 0, 0.15); */
}
.button-container nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.button-container .button-pult {
    margin: 0;
    flex: 0 1 auto;
}

.button-pult {
    margin: 7px 10px 27px 10px;
}

.button-pult button,
.button-pult a button {
    background: #e5e5e5;
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        6px 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.button-pult button:hover {
    box-shadow: 
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.15);
}

.button-pult button:active {
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

/* Статус кнопки */
.status-1 { color: #f59e0b !important; }
.status-2 { color: #3b82f6 !important; }
.status-3 { color: #10b981 !important; }
.status-4 { color: #ef4444 !important; }

/* Заголовки */
h3, h4 {
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* Всі картки */
.card {
    background: #e5e5e5;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        -10px -10px 20px rgba(255, 255, 255, 0.8),
        10px 10px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.card h4 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Поля форм - неоморфічні вдавлені */
.card .mb-3 {
    background: #e5e5e5;
    border-radius: 40px;
    padding: 12px 24px;
    margin-bottom: 14px !important;
    margin: 5px;
    /* display: flex; gap: 20px; align-items: center; */
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

/* Grid для покупця */
.customer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.customer-grid .mb-3 {
    background: #e5e5e5;
    border-radius: 40px;
    padding: 12px 24px;
    margin-bottom: 0 !important;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.customer-grid .full-width {
    grid-column: 1 / -1;
    box-shadow: 
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        6px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Лейбли */
footer small {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    margin-top: 6px;
    display: block;
}

/* Editable поля */
.editable {
    font-size: 17px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    min-height: 1.5rem;
}

.customer-grid .full-width .editable {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.editable:hover {
    color: #1f2937;
}

/* Посилання */
a {
    font-size: 16px;
    font-weight: 600;
    color: #a9782b;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #714a0d;
    text-decoration: underline;
}

/* Інпути форм */
.form-control {
    background: #e5e5e5;
    border: none !important;
    border-radius: 40px !important ;
    padding: 10px 14px !important;
    color: #4b5563 !important;
    font-size: 1rem !important;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9) !important;
}

.form-control:focus {
    outline: none;
    background-color: #dfdfdf;
    box-shadow: 
        inset 6px 6px 12px rgba(0, 0, 0, 0.15),
        inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* Textarea */
textarea.form-control {
    min-height: 300px;
    resize: vertical;
}

/* Радіо та чекбокси */
.form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e5e5;
    border: none;
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.1),
        inset -3px -3px 6px rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.form-check-input:checked {
    background: #a9782b;
    box-shadow: 
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Картка товарів */
.product-card {
    background: #e5e5e5;
}

.product-card .row {
    background: #e5e5e5;
    border-radius: 40px;
    padding: 12px;
    margin-bottom: 12px;
    /* box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9); */
}

.product-card .full-width {
    grid-column: 1 / -1;
    box-shadow: 
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        6px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Головна кнопка */
.button--primary {
    background: #e5e5e5;
    border: none;
    border-radius: 40px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #a9782b;
    box-shadow: 
        -8px -8px 16px rgba(255, 255, 255, 0.8),
        8px 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.button--primary:hover {
    box-shadow: 
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        6px 6px 12px rgba(0, 0, 0, 0.15);
}

.button--primary:active {
    box-shadow: 
        inset 6px 6px 12px rgba(0, 0, 0, 0.1),
        inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* Select2 стилі */


/* Ajax Select */
.ajax-select-wrapper {
    background: #e5e5e5;
}

.ajax-select-trigger {
    background: #e5e5e5;
    border: none;
    border-radius: 40px;
    padding: 12px 15px;
    box-shadow: 
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        6px 6px 12px rgba(0, 0, 0, 0.15);
}

.ajax-select-dropdown {
    background: #e5e5e5;
    border: none;
    border-radius: 40px;
    box-shadow: 
        -10px -10px 20px rgba(255, 255, 255, 0.8),
        10px 10px 20px rgba(0, 0, 0, 0.15);
}

.ajax-select-search {
    background: #e5e5e5;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.ajax-select-options li {
    background: #e5e5e5;
    border-radius: 12px;
    margin: 4px 8px;
    padding: 10px 12px;
}

.ajax-select-options li:hover {
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.1),
        inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

/* HR */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(0, 0, 0, 0.1), 
        transparent
    );
    margin: 20px 0;
}

/* Копіювання тексту */
.textToCopy {
    cursor: pointer;
    color: #a9782b;
    font-weight: 600;
}

.textToCopy:hover {
    color: #87541f;
}

/* Спеціальні дисплеї */
#totalAllDisplay {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

#paymentDisplay, #statusDisplay, #deliveryDisplay {
    cursor: pointer;
}

#notesDisplay {
    min-height: 100px;
    padding: 12px;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .button-container {
        padding: 2px;
    }
    
    .button-pult button {
        padding: 12px 20px;
    }
    
    .card {
        padding: 16px;
    }
    
    .card h4 {
        font-size: 16px;
    }
}

/* Центрування */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* D-none helper */
.d-none {
    display: none !important;
}


/* Загальне для всіх карток - текст не виїжджає */
.card .mb-3 > div,
.customer-grid .mb-3 > div {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}



.editable {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/* Товари - горизонтально на десктопі */
.product-card .col-md {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Планшет */
@media (max-width: 1024px) and (min-width: 768px) {
    .customer-grid {
        grid-template-columns: 1fr;
    
    }
    /* .product-card .col-md {

        gap: 12px;
        flex-wrap: wrap; */
    }
}

/* Мобільний */
@media (max-width: 768px) {
    .product-card .col-md {
        display: block;
    }
    
    .product-card .col-md > div {
        margin-bottom: 12px;
    }
    
    .product-card .col-md-auto {
        margin-top: 12px;
    }
}


/* меньше 400 */
@media (max-width: 420px) {
    .product-card .col-md {
        display: flow-root;
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* меньше 300 */
@media (max-width: 300px) {
    .customer-grid {
        grid-template-columns: 1fr;
    }
}

/* Історія замовлення */
.history-content {
    padding: 0 23px 0 23px;
    white-space: pre-line;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
}