html, body {
    background: #ffffff;
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* Outer main card — direct child of body */
body > .card {
    max-width: 720px;
    margin: 24px auto;
    padding: 30px;
    border-radius: 25px;
    border: none;
    background: #ffffff;
    -webkit-box-shadow: 0 11px 34px 0 rgba(120, 120, 128, 0.16);
    box-shadow: 0 11px 34px 0 rgba(120, 120, 128, 0.16);
}

/* Inner .card elements */
.card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
    padding: 12px;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 10px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-height: 55px;
    width: auto;
}

h4 {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    color: #333;
}

.form-control, .form-select {
    border-radius: 15px;
    padding: 10px 14px;
}

.btn {
    border-radius: 15px;
    padding: 10px 24px;
}

.required::after {
    content: " *";
    color: #d00;
}

/* Autocomplete — outer clip wrapper holds border-radius and clips the scrollbar */
.autocomplete-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: "Inter", sans-serif;
}

/* Inner scroll container — no radius so corners aren't double-clipped */
#itemautocomplete-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
}

/* Each option */
#itemautocomplete-list > div {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 15px;
    color: #374151;
    background: #ffffff;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

/* Highlight keyword */
#itemautocomplete-list strong {
    color: #F36F21;
    font-weight: 600;
}

/* Hover effect */
#itemautocomplete-list > div:hover {
    background: #fff6f2;
    transform: translateX(4px);
}

/* Hidden input inside each option */
#itemautocomplete-list input {
    display: none;
}

/* Scrollbar */
#itemautocomplete-list::-webkit-scrollbar {
    width: 6px;
}
#itemautocomplete-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}
#itemautocomplete-list::-webkit-scrollbar-thumb:hover {
    background: #F36F21;
}

#submitBtn {
    background-color: #F36F21 !important;
    border-color: #F36F21 !important;
    color: #fff !important;
}
#submitBtn:hover {
    background-color: #d95d18 !important;
    border-color: #d95d18 !important;
}

td, th {
    vertical-align: middle;
}
