﻿* {
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.action-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--color-text-secondary);
    border: 1px solid var(--neutral-400);
}
.required-marker {
    color: var(--color-red, #dc3545);
}
.btn-success {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-success:hover {
    background-color: var(--color-primary-hover);
}
.btn-primary {
    background-color: var(--color-azure);
    color: #ffffff;
}

.btn-primary {
    background-color: var(--color-azure-07a);
    color: #ffffff;
}
.btn-danger {
    background-color: var(--color-error-alt);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: var(--color-error-alt2);
}

.btn-outline {
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--neutral-50);
}

.btn-outline:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--shadow-gray-200b);
}

.btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

textarea.form-control {
    height: 80px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--neutral-325);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border 0.2s ease;
    background-color: var(--color-bg-surface);
    color: var(--color-text-primary);
    resize: none;
}

.field-error,
.validation-message {
    color: var(--color-red, #dc3545);
    font-size: 0.8em;
    margin-top: 2px;
}

textarea.form-control:focus {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-20a);
}

textarea.textarea-resizable {
    resize: vertical;
    max-height: 370px;
    min-height: 100px;
    overflow-y: scroll;
    overflow-x: auto;
}

.validation-error {
    display: flex;
    color: var(--color-error-strong);
    font-size: 0.9rem;
    overflow: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

input.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--neutral-325);
    border-radius: 0.375rem;
    margin-top: 5px;
    transition: border 0.2s ease;
    background-color: var(--color-bg-surface);
    color: var(--color-text-primary);
}

input.form-control:focus {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-20a);
}

input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text-primary) !important;
    caret-color: var(--color-text-primary);
    box-shadow: 0 0 0 1000px var(--color-bg-surface) inset !important;
    background-color: var(--color-bg-surface) !important;
    border: 1px solid var(--neutral-325) !important;
}

.modal-container {
    background: var(--color-bg-surface);
    border-radius: 12px;
    height: auto;
    max-height: 90vh;
    min-height: unset;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-gray-250);
    width: 80vw;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--neutral-400);
    flex: 0 0 auto;
}

.modal-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--neutral-400);
}

.modal-content {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-button img {
    filter: invert(0);
}

.dark .close-button img {
    filter: invert(1);
}

.dark .bch-select-container > .bch-button > .search-icon {
    filter: invert(1);
}

.custom-form-container {
    padding: 1px 20px 20px;
    background-color: var(--color-bg-surface);
    border-radius: 8px;
}

.section-header {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--neutral-400);
    padding-bottom: 5px;
}

.bch-table-wrapper .bch-tbody tr td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 0;
    padding: 8px 12px !important;
}

.bch-table-wrapper .bch-tbody tr td[style*="width"] {
    max-width: unset !important;
}

.bch-table-wrapper .bch-tbody tr td > * {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.bch-table-wrapper .bch-tbody tr td .cell-with-eye {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.bch-table-wrapper .bch-tbody tr td .cell-with-eye .cell-content {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 32px);
    display: block !important;
}

.cell-with-eye {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.cell-with-eye .cell-content {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 32px);
}

.cell-with-eye .eye-button {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    width: 24px;
    height: 24px;
    opacity: 0;
}

.cell-with-eye:hover .eye-button {
    opacity: 1;
}

.cell-with-eye .eye-button:hover {
    background-color: var(--neutral-100);
}

.cell-with-eye .eye-button img {
    width: 16px;
    height: 16px;
    filter: invert(0);
}

.dark .cell-with-eye .eye-button img {
    filter: invert(1);
}

.dark .cell-with-eye .eye-button:hover {
    background-color: var(--neutral-200);
}

.cell-with-eye .eye-overlay {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.15s ease;
    padding: 4px;
    border-radius: 6px;
    background: var(--color-bg-surface);
    border: 1px solid var(--neutral-300);
    box-shadow: 0 2px 6px var(--shadow-gray-200b);
    cursor: pointer;
}

.cell-with-eye:hover .eye-overlay {
    opacity: 1;
}

.cell-with-eye .eye-overlay .icon-eye {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
}

.cell-with-eye .eye-overlay .icon-eye svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.bch-table-wrapper .bch-thead tr {
    background-color: var(--color-bg-muted);
    color: var(--color-text-primary);
    font-weight: 600;
}

.dark .bch-table-wrapper .bch-thead tr {
    background-color: var(--neutral-300);
    color: var(--color-text-secondary);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-subtle);
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: var(--color-text-subtle);
}

.bch-theme-dark.bch-content,
.bch-theme-dark.bch-select-container,
.bch-theme-dark.bch-inputfile-container {
    background: var(--color-bg-page) !important;
    filter: drop-shadow(0px 4px 8px rgba(183, 183, 183, 0.2)) !important;
}

.modal-form-wrapper {
    display: flex;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.actions-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 1rem;
    background-color: var(--color-bg-surface);
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    min-width: 250px;
    min-height: 250px;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 4px 6px var(--shadow-soft-100);
}

.actions {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.full-width {
    width: 100% !important;
}

.custom-col {
    display: flex;
    flex-direction: column;
    width: 48%;
    gap: 10px;
}

.select-relation .custom-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-btn {
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.edit-icon {
    transition: min-width 0.1s ease;
    min-width: 14px;
    min-height: 14px;
    background: url(../bch-img/edit.svg) left no-repeat;
}


.form h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
}

.form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form .form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form .btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 50%;
}

.form .action-buttons {
    width: 100%;
    display: flex;
    gap: 10px;
}

.form-wrapper {
    display: flex;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.form {
    width: 100%;
    background: var(--color-bg-surface);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-gray-250);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    height: 100%;
    max-height: 95vh;
    overflow-y: auto;
}

@media (max-width: 800px) {
    .custom-col {
        width: 100%;
    }
}

.dark {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-page);
}

.dark ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dark ::-webkit-scrollbar-track {
    background: var(--color-bg-page);
}

.dark ::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-hover);
}

:not(.dark) .bch-table-container[b-4zrr7cjc4t]::-webkit-scrollbar-thumb,
:not(.dark) .bch-table-container tbody[b-4zrr7cjc4t]::-webkit-scrollbar-thumb {
    background-color: var(--neutral-500) !important;
}

.dark .bch-table-container[b-4zrr7cjc4t]::-webkit-scrollbar-thumb,
.dark .bch-table-container tbody[b-4zrr7cjc4t]::-webkit-scrollbar-thumb {
    background-color: var(--color-primary) !important;
}

.dark .bch-table-container[b-4zrr7cjc4t]::-webkit-scrollbar-thumb:hover,
.dark .bch-table-container tbody[b-4zrr7cjc4t]::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-hover) !important;
}

.bch-modal-content-container.bch-calendar-days-modal-wrapper,
.bch-modal-content-container.bch-calendar-months-modal-wrapper {
    background-color: var(--color-bg-page);
    filter: drop-shadow(0px 4px 8px rgba(183, 183, 183, 0.2));
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}


.pill-pending {
    background: var(--pill-pending-bg);
    border-color: var(--pill-pending-border);
    color: var(--pill-pending-text);
}

.pill-inprogress {
    background: var(--pill-inprogress-bg);
    border-color: var(--pill-inprogress-border);
    color: var(--pill-inprogress-text);
}

.pill-ready {
    background: var(--pill-ready-bg);
    border-color: var(--pill-ready-border);
    color: var(--pill-ready-text);
}

.pill-completed {
    background: var(--pill-completed-bg);
    border-color: var(--pill-completed-border);
    color: var(--pill-completed-text);
}

.pill-cancelled {
    background: var(--pill-cancelled-bg);
    border-color: var(--pill-cancelled-border);
    color: var(--pill-cancelled-text);
}

.pill-default {
    background: var(--pill-default-bg);
    border-color: var(--pill-default-border);
    color: var(--pill-default-text);
}

/* ── Fulfillment type pills ── */
.pill--fulfillment-curbside {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.pill--fulfillment-delivery {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.btn-info {
    background-color: var(--color-blue);
    color: #ffffff;
}

    .btn-info:hover {
        background-color: var(--color-blue-strong);
    }

.dark .btn-outline-info {
    background-color: transparent;
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.dark .btn-outline-info:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: #ffffff;
}

.btn-secondary {
    color: #333333;
}