/* Custom overrides — non-conflicting with soybean_dashboard.css */

/* Custom select arrow + height fix */
select.form-control,
select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1.1rem;
    padding-left: 2rem;
    /* Match input.form-control height */
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    line-height: 1.5;
    box-sizing: border-box;
}

[dir="rtl"] select.form-control,
[dir="rtl"] select.form-select {
    background-position: right 0.75rem center;
    padding-left: 0.75rem;
    padding-right: 2rem;
}

/* DataTable responsive expand control */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    margin-inline-end: 0.5em;
    display: inline-block;
    box-sizing: border-box;
    content: "";
    border-top: 5px solid transparent;
    border-left: 9px solid rgba(88, 101, 242, 0.6);
    border-bottom: 5px solid transparent;
    border-right: 0 solid transparent;
}

/* Summernote invalid state */
.note-editor.is-invalid-summernote-editor {
    border: 1px solid #dc3545 !important;
}

/* Checkbox sizing */
input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    accent-color: var(--soy-primary, #5865f2);
    cursor: pointer;
}

/* Inputs fieldset */
.inputs_div {
    border: 1px solid var(--soy-border, #e8ecf0);
    padding: 20px;
    margin: 16px 0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Table image */
.table-image {
    width: 64px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #c8cdd4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9da5b1; }

/* Line Awesome icon base size */
html body .la { font-size: 1rem; }

/* Datepicker cells */
.datepicker td,
.datepicker th {
    text-align: center;
    padding: 7px 11px;
    font-size: 13.5px;
}

/* Strong-weight utility */
.strong-weight {
    font-size: 12px;
    font-weight: 700;
}

/* Status label */
#statusLabel {
    margin-top: 28px;
    font-size: 13px;
}
#statusLabel span {
    padding: 0 8px;
}

/* DataTable font size */
table.dataTable td,
table.dataTable th {
    font-size: 0.875rem;
}

/* Validation error */
.text-danger {
    font-size: 11.5px;
}

/* Badge small variant */
.badge-sm {
    font-size: 0.75rem;
    padding: 3px 8px;
}
