/**
 * Techkorm Production Request - Public Styles
 *
 * @version 1.0.0
 *
 * ---
 * Brand Colors:
 * Light Green: #b8d717
 * Green:       #6da600
 * Blue:        #011c75
 * ---
 */
.techkorm-production-request-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.techkorm-production-request-wrapper .techkorm-form {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.techkorm-production-request-wrapper .techkorm-form .form-section {
    margin: 0 auto 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
}

.techkorm-production-request-wrapper .techkorm-form .form-section.products-section {
    max-width: 1600px;
}

.techkorm-production-request-wrapper .techkorm-form .form-section:last-child {
    border-bottom: none;
}

.techkorm-production-request-wrapper .techkorm-form .form-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #011c75; /* Corporate Blue */
    border-left: 4px solid #b8d717; /* Corporate Light Green */
    padding-left: 10px;
}

.techkorm-production-request-wrapper .techkorm-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.techkorm-production-request-wrapper .techkorm-form .form-group {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
    margin-bottom: 10px;
}

.techkorm-production-request-wrapper .techkorm-form .form-group.full-width {
    flex: 100%;
}

.techkorm-production-request-wrapper .techkorm-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.techkorm-production-request-wrapper .techkorm-form .form-group input[type="text"],
.techkorm-production-request-wrapper .techkorm-form .form-group input[type="date"],
.techkorm-production-request-wrapper .techkorm-form .form-group input[type="number"],
.techkorm-production-request-wrapper .techkorm-form .form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.techkorm-form .form-group input[type="date"] {
    max-width: 140px;
}

.techkorm-production-request-wrapper .techkorm-form .form-group input:focus,
.techkorm-production-request-wrapper .techkorm-form .form-group select:focus {
    border-color: #6da600 !important; /* Corporate Green */
    outline: none;
}

.techkorm-production-request-wrapper .techkorm-form .form-group input.error-field,
.techkorm-production-request-wrapper .techkorm-form .form-group select.error-field {
    border-color: red !important;
}

.techkorm-production-request-wrapper .techkorm-form .products-table input.error-field {
    border-bottom: 1px solid red !important;
}

.techkorm-production-request-wrapper .techkorm-form .required {
    color: red;
}

/* Table Styles */
.techkorm-production-request-wrapper .techkorm-form .table-responsive {
    overflow: visible; /* Changed from overflow-x: auto to fix dropdown clipping */
}

.techkorm-production-request-wrapper .techkorm-form .products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}

.techkorm-production-request-wrapper .techkorm-form .products-table th,
.techkorm-production-request-wrapper .techkorm-form .products-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

.techkorm-production-request-wrapper .techkorm-form .products-table th {
    background-color: #f9f9f9;
    text-align: left;
    font-weight: 600;
    line-height: 1.2;
}

.techkorm-production-request-wrapper .techkorm-form .products-table input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.techkorm-production-request-wrapper .techkorm-form .products-table input:focus {
    border: none;
    border-bottom: 1px solid #6da600 !important; /* Corporate Green */
    background: #fff;
}

.techkorm-production-request-wrapper .techkorm-form .col-num {
    width: 40px;
    text-align: center;
}

.techkorm-production-request-wrapper .techkorm-form .col-sku {
    width: 120px;
}

.techkorm-production-request-wrapper .techkorm-form .col-name {
    min-width: 200px;
}

.techkorm-production-request-wrapper .techkorm-form .col-qty {
    width: 100px;
}

.techkorm-production-request-wrapper .techkorm-form .col-date {
    width: 140px;
}

.techkorm-production-request-wrapper .techkorm-form .col-actions {
    width: 40px;
    text-align: center;
}

.techkorm-production-request-wrapper .techkorm-form .remove-row {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.techkorm-production-request-wrapper .techkorm-form .remove-row::after {
    content: '';
}

.techkorm-production-request-wrapper .techkorm-form .products-table .total-label {
    text-align: right;
    font-weight: bold;
    color: #333;
}

.techkorm-production-request-wrapper .techkorm-form .products-table .total-value {
    font-weight: bold;
    color: #000;
}

.techkorm-production-request-wrapper .techkorm-form .btn.btn-primary {
    background-color: #6da600; /* Corporate Green */
    background-image: none;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.techkorm-production-request-wrapper .techkorm-form .btn.btn-primary:after {
    content: '';
}

.techkorm-production-request-wrapper .techkorm-form .btn.btn-primary:hover {
    background-color: #5d8e00; /* Darker Corporate Green */
}

.techkorm-production-request-wrapper .techkorm-form .btn.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Preloader */
.techkorm-production-request-wrapper .techkorm-form .loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #6da600;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.techkorm-production-request-wrapper .techkorm-form .form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.techkorm-production-request-wrapper .techkorm-form .form-actions-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.techkorm-production-request-wrapper .techkorm-form .form-message {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.techkorm-production-request-wrapper .techkorm-form .form-message.success {
    display: block;
    background-color: #f0f9eb;
    color: #6da600;
    border-left: 5px solid #6da600;
}

.techkorm-production-request-wrapper .techkorm-form .form-message.error {
    display: block;
    background-color: #fef0f0;
    color: #f56c6c;
    border-left: 5px solid #f56c6c;
}

.techkorm-production-request-wrapper .techkorm-form .privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.techkorm-production-request-wrapper .techkorm-form .privacy-check input {
    margin: 0;
}

.techkorm-production-request-wrapper .techkorm-form .privacy-check a {
    color: #6da600;
    text-decoration: underline;
}

.techkorm-production-request-wrapper .techkorm-form .privacy-check input[type="checkbox"].error-field {
    outline: 2px solid red !important;
    outline-offset: 1px;
}

/* Autocomplete */
.techkorm-production-request-wrapper .techkorm-form .input-wrapper {
    position: relative;
}

.techkorm-production-request-wrapper .techkorm-form .autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.techkorm-production-request-wrapper .techkorm-form .autocomplete-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.techkorm-production-request-wrapper .techkorm-form .autocomplete-suggestion:last-child {
    border-bottom: none;
}

.techkorm-production-request-wrapper .techkorm-form .autocomplete-suggestion:hover {
    background-color: #f5f5f5;
}

.techkorm-production-request-wrapper .techkorm-form .autocomplete-suggestion strong {
    color: #333;
}
