.details-table-wrapper {
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for touch devices */
    max-height: 75vh; /* Максимальная высота, чтобы создать прокрутку */
    overflow-y: auto; /* Вертикальная прокрутка */
    overflow-x: auto; /* Горизонтальная прокрутка */
}

.details-table {
    width: 100%;
    min-width: 640px; /* Ensure the table has a minimum width */
}

.details-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.85rem;
}

.details-table .form-control {
    min-width: 200px;
    width: 200px;
}

.details-table th, .details-table td {
    padding: 8px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    min-width: 10px; /* Ensure a minimum width for each column */
}

.details-table th {
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    /*border-bottom: 3px solid #e0e0e0;*/
    background-color: #f8f9fa;
}

.details-table tbody tr:hover {
    background-color: #f8f9fa;
}

.details-table tbody td {
    color: #34495e;
}

.details-table tfoot {
    font-weight: 600;
    background-color: #f8f9fa;
}

.details-table tfoot td {
    border-top: 3px solid #e0e0e0;
}

.action-icon {
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.action-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


/*.nested-table {*/
/*    width: 100%;*/
/*    border-collapse: collapse;*/
/*    margin-top: 10px;*/
/*}*/

/*.nested-table th, .nested-table td {*/
/*    padding: 8px;*/
/*    border: 1px solid #ddd;*/
/*    text-align: left;*/
/*}*/

/*.nested-table th {*/
/*    background-color: #f8f9fa;*/
/*    font-weight: bold;*/
/*    font-size: 0.85rem;*/
/*}*/

/*.nested-table td {*/
/*    font-size: 0.85rem;*/
/*}*/

/*.form-control.item-type-select {*/
/*    display: inline-block;  !* Ensure it aligns well with other form elements *!*/
/*    width: auto;*/
/*    min-width: 120px;*/
/*}*/

/*!* Optionally, adjust the width of input elements to match *!*/
/*.form-control {*/
/*    display: inline-block;*/
/*    width: auto;*/
/*}*/

/*!* Style the position input field *!*/
/*.form-control.position-input {*/
/*    width: auto;  !* Automatically adjusts based on content *!*/
/*    min-width: 10px;  !* Ensure a reasonable minimum width *!*/
/*    display: inline-block;  !* Align it inline with other form controls *!*/
/*    padding: 6px 12px;  !* Ensure consistent padding *!*/
/*}*/

/*!* Style the item name input field *!*/
/*.form-control.item-name-input {*/
/*    width: auto;  !* Automatically adjusts based on content *!*/
/*    min-width: 250px;  !* Set a reasonable minimum width *!*/
/*    display: inline-block;  !* Align it inline with other form controls *!*/
/*    padding: 6px 12px;  !* Ensure consistent padding *!*/
/*}*/

.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    display: none;
    z-index: 10;
    background-color: white;
    border: 2px solid #ddd;
    max-width: 900px;
    max-height: 450px;
    overflow-y: auto;
}
