.hidden {
    display: none;
}

.accordion-item .accordion-button:not(.collapsed) {
    background-color: lightgray;
}

.taglie input[type="text"] {
    max-width: 100px;
}

.check-container {
    background-color: #dce7f5;
    border-radius: 10px;
    padding: 5px;
    padding-left: 35px;
    margin: 5px;
}

.input-group-text-textarea {
    height: 100%;
    align-items: center;
    display: flex;
}

.accordion-button {
    color: black !important;
}



.accordion-header button {
    color: black;
}

.accordion-header button:not(.collapsed) {
    border-color: black;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile+label {
    font-weight: 700;
    background-color: #eee;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.inputfile:focus+label,
.inputfile+label:hover {
    background-color: white;
}

body .accordion-button:not(.collapsed) {
    background-color: transparent !important;
}

.accordion-button {
    background-color: transparent !important;
}

.accordion-button {
    background-color: transparent;
    border-color: transparent;
}

.group-item {
    background-color: #DDDDDD;
    cursor: move;
}

.group-item:hover {
    background-color: #e4e4e4;
}

.dish-item {
    background-color: #EEEEEE;
    cursor: move;
}

.dish-item:hover {
    background-color: #f4f4f4;
}

/* Tags Input Styles */
.tags-input-container {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem;
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    cursor: text;
    background-color: white;
}

.tags-input-container:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #0d6efd;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    gap: 0.25rem;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 0.25rem;
    opacity: 0.8;
}

.tag-remove:hover {
    opacity: 1;
}

.tags-input-field {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 150px;
    padding: 0.25rem;
    font-size: 1rem;
}

.form-label {
    font-weight: bold;
}

.text-muted {
    font-size: 0.9em;
}

.product-code-input {
    max-width: 300px;
}

.form-check-input {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    margin-right: 0.6rem !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65% 65%;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease;
    float: none !important;
}

.form-check-input:checked {
    background-color: #001f3f;
    border-color: #001f3f;
    /* Check icon (inline SVG) */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M12.97 4.97a.75.75 0 010 1.06L7.477 11.53a.75.75 0 01-1.06 0L3.03 8.142a.75.75 0 111.06-1.06L6.948 9.94l4.963-4.97a.75.75 0 011.06 0z' fill='%23fff'/%3e%3c/svg%3e");
}

/* Hover feedback */
.form-check-input:hover {
    border-color: #888;
}

/* Keyboard focus ring */
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.25);
}

/* Disabled state */
.form-check-input:disabled {
    cursor: not-allowed;
    background-color: #f2f2f2;
    border-color: #e0e0e0;
}

/* Explicit large size helper if used alongside Bootstrap */
.form-check-input-lg {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
}

.dish-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dish-disable-checkbox {
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.dish-disable-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-right: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.dish-disable-text {
    font-size: 0;
}

.dish-disable-text::after {
    font-size: 0.9rem;
    content: "Disabilitato";
}

@media (max-width: 499px) {
    .dish-disable-text::after {
        content: "Dis.";
    }
}

.dish-disabled {
    opacity: 0.6;
    text-decoration: line-through;
}