.idom-rendeles-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.idom-selector-wrap {
    margin-bottom: 20px;
}

.idom-selector-wrap label {
    display: block;
    margin-bottom: 5px;
}

.idom-selector {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.idom-details-block {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.idom-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.idom-header>div {
    flex: 1;
    padding: 0 10px;
}

.idom-header-col p {
    margin: 5px 0;
}

.idom-header-image {
    text-align: center;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.idom-header-image img {
    max-width: 100%;
    max-height: 150px;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

.idom-entry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.idom-entry-table th,
.idom-entry-table td {
    border: 1px solid #ddd;
    padding: 8px 4px;
    text-align: center;
    vertical-align: top;
}

.idom-entry-table th {
    background: #f1f1f1;
    font-weight: bold;
}

.idom-entry-table input[type="text"],
.idom-entry-table input[type="number"],
.idom-entry-table select,
.idom-entry-table textarea {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    margin-bottom: 0;
    height: 30px;
    min-height: 30px;
}

.idom-entry-table th.col-pos,
.idom-entry-table td.col-pos,
.idom-entry-table th.col-db,
.idom-entry-table td.col-db {
    width: 60px;
    min-width: 60px;
}

.idom-entry-table th.col-legt,
.idom-entry-table td.col-legt {
    width: 60px;
    min-width: 60px;
}

.idom-entry-table th.col-tipus,
.idom-entry-table td.col-tipus {
    width: 67px;
    min-width: 67px;
}

.idom-entry-table th.col-dynamic,
.idom-entry-table td.col-dynamic,
.idom-entry-table th.col-m2db,
.idom-entry-table td.col-m2db,
.idom-entry-table th.col-m207,
.idom-entry-table td.col-m207,
.idom-entry-table th.col-m209,
.idom-entry-table td.col-m209,
.idom-entry-table th.col-m211,
.idom-entry-table td.col-m211,
.idom-entry-table th.col-keret1,
.idom-entry-table td.col-keret1,
.idom-entry-table th.col-keret2,
.idom-entry-table td.col-keret2,
.idom-entry-table th.col-keret3,
.idom-entry-table td.col-keret3 {
    width: 53px;
    min-width: 53px;
}

.idom-entry-table th.col-megj,
.idom-entry-table td.col-megj {
    width: 150px;
}

.idom-entry-table .input-pos,
.idom-entry-table .input-db,
.idom-entry-table .input-dynamic,
.idom-entry-table .input-m2db,
.idom-entry-table .input-m207,
.idom-entry-table .input-m209,
.idom-entry-table .input-m211,
.idom-entry-table .input-kihajtas1,
.idom-entry-table .input-kihajtas2,
.idom-entry-table .input-kihajtas3 {
    width: 100%;
}

/* Hide number input spinners to save space */
.idom-entry-table input[type="number"]::-webkit-outer-spin-button,
.idom-entry-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.idom-entry-table input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-megj-wrapper {
    text-align: left;
}

/* Custom Checkbox Dropdown for Keret */
.custom-keret-dropdown {
    position: relative;
    width: 100%;
}

.custom-keret-dropdown .dropdown-toggle {
    border: 1px solid #ccc;
    padding: 0 8px;
    height: 30px;
    line-height: 28px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: #333;
    position: relative;
    text-align: left;
    margin-bottom: 0;
}

.custom-keret-dropdown .dropdown-toggle::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
}

.custom-keret-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -177%;
    width: max-content;
    min-width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    text-align: left;
    box-sizing: border-box;
}

.custom-keret-dropdown .dropdown-menu label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.custom-keret-dropdown .dropdown-menu label input {
    margin-right: 5px;
}

.keret-selects {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.kihajtas-inputs {
    display: flex;
    gap: 5px;
    font-size: 11px;
}

.kihajtas-inputs>div {
    flex: 1;
}

.btn-listara,
.btn-uj-sor {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding: 6px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 11px;
}

.btn-listara:hover,
.btn-uj-sor:hover {
    background: #e1e1e1;
}

/* Added items */
.added-items-section {
    margin-bottom: 30px;
}

.added-item-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.added-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
    margin-bottom: 15px;
    color: #888;
}

.btn-torles {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-torles:hover {
    background: #c9302c;
}

.added-item-body {
    display: flex;
    flex-wrap: wrap;
}

.added-item-col {
    flex: 0 0 50%;
    padding-right: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.added-item-col p {
    margin: 5px 0;
}

/* Order Form */
.order-form-section h3 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

.form-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 13px;
}

.form-col input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.submit-action {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: #fff;
    border: 2px solid #333;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.btn-submit:hover {
    background: #f1f1f1;
}

#form-messages {
    margin-top: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .idom-header {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        border-bottom: 1px solid #ddd;
        flex-direction: column;
    }

    .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
        flex-direction: column;
    }
}