/* POS form controls – works with or without Tailwind build */
.pos-input,
.pos-select,
.pos-textarea,
main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
main select,
main textarea,
.guest-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.guest-card select,
.guest-card textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.625rem 0.875rem;
    box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pos-input::placeholder,
.pos-textarea::placeholder,
main input::placeholder,
main textarea::placeholder,
.guest-card input::placeholder,
.guest-card textarea::placeholder {
    color: #94a3b8;
}

.pos-input:focus,
.pos-select:focus,
.pos-textarea:focus,
main input:not([type="checkbox"]):not([type="radio"]):focus,
main select:focus,
main textarea:focus,
.guest-card input:focus,
.guest-card select:focus,
.guest-card textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.2);
}

.pos-input:disabled,
.pos-select:disabled,
.pos-textarea:disabled,
main input:disabled,
main select:disabled,
main textarea:disabled {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.pos-select,
main select,
.guest-card select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.65rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.pos-input-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.pos-label,
.pos-field > label,
main .pos-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.pos-field {
    margin-bottom: 1rem;
}

.pos-field:last-child {
    margin-bottom: 0;
}

main input[type="file"],
.pos-file {
    padding: 0.5rem 0.75rem;
    background-color: #f8fafc;
    border-style: dashed;
    font-size: 0.8125rem;
    cursor: pointer;
}

main input[type="checkbox"],
.guest-card input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #4f46e5;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    cursor: pointer;
    vertical-align: middle;
}

.pos-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #4f46e5;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgb(79 70 229 / 0.3);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pos-btn-primary:hover {
    background-color: #4338ca;
}

.pos-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.35);
}

.pos-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pos-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* Inline filter bars – don't force full width on flex children */
.pos-filter-bar input,
.pos-filter-bar select {
    width: auto;
    min-width: 10rem;
}

.pos-filter-bar input[type="text"] {
    flex: 1 1 12rem;
    min-width: 12rem;
}
