label {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.product-picker,
.brand-autocomplete,
.customer-picker {
    position: relative;
    display: block;
    min-width: 0;
}

.product-picker-results,
.brand-autocomplete-results,
.customer-picker-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 80;
    display: grid;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.product-picker.opens-up .product-picker-results,
.brand-autocomplete.opens-up .brand-autocomplete-results,
.customer-picker.opens-up .customer-picker-results {
    top: auto;
    bottom: calc(100% + 5px);
}

.product-picker-results[hidden],
.brand-autocomplete-results[hidden],
.customer-picker-results[hidden] {
    display: none;
}

.product-picker-option,
.brand-autocomplete-option,
.customer-picker-option {
    width: 100%;
    min-height: 0;
    display: grid;
    justify-content: stretch;
    gap: 2px;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    white-space: normal;
}

.product-picker-option:hover,
.product-picker-option:focus,
.brand-autocomplete-option:hover,
.brand-autocomplete-option:focus,
.customer-picker-option:hover,
.customer-picker-option:focus {
    background: #eef7f5;
    outline: 0;
}

.product-picker-option strong,
.brand-autocomplete-option strong,
.customer-picker-option strong {
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.product-picker-option small,
.product-picker-empty,
.brand-autocomplete-option small,
.brand-autocomplete-empty,
.customer-picker-option small,
.customer-picker-empty {
    color: var(--muted);
    font-size: 12px;
}

.product-picker-empty,
.brand-autocomplete-empty,
.customer-picker-empty {
    padding: 10px;
}

.check-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: end;
    gap: 8px;
}

.check-label input {
    width: auto;
}

.check-label.locked {
    color: var(--muted);
}

.check-label.locked input {
    accent-color: var(--primary);
    opacity: 1;
}

.date-control {
    position: relative;
    min-width: 0;
}

.date-trigger {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
    padding: 8px 10px;
    background: #ffffff;
    font-weight: 500;
    text-align: left;
}

.date-trigger:hover {
    background: #f8fbfc;
}

.date-trigger:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(21, 94, 117, .14);
}

.date-control.is-empty .date-trigger {
    color: var(--muted);
}

.date-control.is-invalid .date-trigger {
    border-color: var(--danger);
    outline: 3px solid rgba(180, 35, 24, .12);
}

.date-trigger-icon {
    position: relative;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-left: 8px;
    border: 1.8px solid currentColor;
    border-radius: 4px;
    color: var(--primary);
    opacity: .82;
}

.date-trigger-icon::before {
    content: "";
    position: absolute;
    top: 3px;
    left: -1.8px;
    right: -1.8px;
    border-top: 1.8px solid currentColor;
}

.date-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 120;
    width: min(304px, calc(100vw - 32px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.date-popover.align-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.date-popover.align-right {
    right: 0;
    left: auto;
}

.date-picker-header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.date-picker-header strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
}

.date-picker-nav {
    width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.date-calendar-grid,
.date-month-grid,
.date-year-grid {
    display: grid;
    gap: 4px;
}

.date-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-month-grid,
.date-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.date-weekday {
    padding: 3px 0 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.date-option {
    min-height: 32px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.date-option:hover {
    background: #eef7f5;
}

.date-option.outside {
    color: #98a2b3;
}

.date-option.today:not(.selected) {
    border-color: #9bc5cc;
    background: #eef4f6;
    color: var(--primary-strong);
}

.date-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.date-option:disabled {
    color: #b8c0cc;
    cursor: not-allowed;
    background: transparent;
}

.date-month-option,
.date-year-option {
    min-height: 38px;
}

.date-picker-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    margin-top: 9px;
    border-top: 1px solid var(--line-soft);
}

