body {
    background-color: #FFFFFF !important;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.form-control::placeholder {
    color: #999 !important;
}

.validation-summary-errors a {
    color: #f00e0e;
}

.info-desk-login.wrapper-body {
    min-height: calc(100vh - 150px);
}

.navbar.navbar-inverse.navbar-static-top {
    background-color: #F1F1F1;
}

.navbar-right {
    margin-top: 7px;
}

.nav.navbar-nav.weblinks>li>a {
    color: #f00e0e !important;
    background-color: transparent;
    border-bottom: 0px solid transparent;
}

.nav.navbar-nav.weblinks>li>a:hover,
.nav.navbar-nav.weblinks>li>a:active,
.nav.navbar-nav.weblinks>li>a:focus {
    color: #b10711 !important;
    text-decoration: underline;
    background-color: transparent;
    border-bottom: 0px solid transparent;
    outline: none;
}

#mainContent {
    margin-top: 0;
}

#mainContent .row,
.nav-tabs,
#local-login-heading,
#mainContent h3 {
    opacity: 0;
    display: none;
}

.info-desk-login #mainContent .row,
.info-desk-login #mainContent h3 {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.info-desk-login #mainContent h3 {
    font-weight: bold;
    margin: 0 0 24px 0;
}

.info-desk-login {
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-desk-login #content {
    background: #f4f4f4;
    padding: 24px;
    border-radius: 4px;
    min-width: 400px;
    margin: 32px auto 80px;
}

.info-desk-login .section-login {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 460px;
    width: 100%;
}

.info-desk-login .form-group {
    margin-bottom: 4px;
}

.info-desk-login .nav-tabs,
.info-desk-login #local-login-heading,
.info-desk-login .control-label,
.info-desk-login .vertical-divider,
.info-desk-login .checkbox {
    display: none !important;
}

.info-desk-login .form-control {
    background-color: #fdfdfd !important;
    border: 0px solid #eeeeee !important;
    height: 40px !important;
    border-radius: 4px;
    margin-bottom: 2px;
}

.info-desk-login #submit-signin-local {
    background-color: #f00e0e !important;
    border-color: #f00e0e !important;
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
    padding: 4px 22px;
    float: right;
    margin-top: 10px;
    height: 40px;
}

.info-desk-login .btn-default[href*="ForgotPassword"],
.info-desk-login .btn-link[href*="ForgotPassword"] {
    color: #f00e0e;
    background: none;
    border: none;
    font-size: 14px;
    text-decoration: none;
    padding: 0;
    float: left;
    margin-top: 15px;
    box-shadow: none;
}

.info-desk-login .btn-default[href*="ForgotPassword"]:hover {
    color: #b10711;
    text-decoration: underline;
}

.info-desk-login .col-sm-offset-4 {
    margin-left: 0;
}

.info-desk-login .col-sm-8 {
    width: 100%;
}

/* FOOTER */
footer.info-desk-footer {
    height: 85px;
    background: #F1F1F1;
}


/* --- HOME PAGE STYLE --- */

#customer-service-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
    padding-bottom: 50px;
    margin-top: 32px;
}

.action-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.btn-search-customer,
.btn-submit {
    background-color: #f00e0e;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 22px;
    border: none;
    margin-right: 18px;
    font-size: 15px;
    height: 40px;
}

.btn-search-customer:hover,
.btn-search-customer:focus,
.btn-submit:hover,
.btn-submit:focus {
    background-color: #b10711;
    color: #FFF;
}

.btn-reset {
    background-color: #3e3e3e;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 22px;
    border: none;
    font-size: 14px;
    height: 40px;
}

.btn-reset:hover,
.btn-reset:focus {
    background-color: #222;
    color: #FFF;
}

.search-customer-icon {
    margin-right: auto;
    align-items: center;
    background-image: url(user-icon.png);
    background-size: 28px;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center center;
}

.status-msg {
    height: 40px;
    background-color: #f4f4f4;
    padding: 10px 20px;
    border-radius: 8px;
}

.form-card {
    background-color: #f4f4f4;
    border-radius: 12px;
    padding: 24px;
}

.form-section {
    margin-bottom: 35px;
}

select.custom-select:invalid,
select.custom-select option[disabled] {
    color: #999 !important;
}

select.custom-select option {
    color: #333 !important;
    background-color: #fff;
}

.section-title {
    color: #777;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.detail-item {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    min-height: 22px;
}

.detail-item .label {
    color: #999;
    width: 120px;
    display: inline-block;
    font-weight: normal;
    font-size: inherit;
    text-align: inherit;
    padding: inherit;
}

.detail-item .value {
    color: #333;
}

.form-card .form-group label {
    display: block;
    color: #999;
    margin-bottom: 8px;
    font-weight: normal;
}

.form-card .form-control {
    background-color: #ffffff !important;
    border: 1px solid #fff !important;
    border-radius: 8px !important;
    height: 40px !important;
    box-shadow: none !important;
    color: #333;
    font-size: 15px;
    padding-left: 15px;
}

.form-card textarea.form-control {
    height: auto !important;
    padding-top: 15px;
    resize: none;
}

.custom-select {
    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' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

/* customerTable */
#customerTable #customerTableBody tr td .btn-select-customer {
    padding: 4px;
    color: #FFFFFF;
    font-size: 13px;
    white-space: nowrap;
}

#customerTable .btn-select-customer {
    background-color: #f00e0e;
    border: none;
    padding: 2px 4px;
}

.search-panel {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.search-within-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-within-container label {
    font-weight: normal;
    cursor: pointer;
}

#customerSearchModal .modal-lg {
    width: 95%;
    max-width: 1450px;
}

.search-panel .first {
    margin-bottom: 15px;
}

.search-panel .second {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-panel .second .form-group {
    margin-bottom: 0;
}

.search-panel .first .form-group label,
.search-panel .second .form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.search-panel .form-control {
    border-radius: 4px !important;
}

span.required {
    color: #f00e0e;
}

#searchValidationError {
    color: #f00e0e;
    margin-top: 5px;
    min-height: 20px;
}

.results-container .table-responsive {
    overflow-x: auto;
    border: 1px solid #ddd;
}

#customerTable {
    width: 100%;
    min-width: 1400px;
    margin-bottom: 0;
}

#customerTableBody .text-center {
    padding: 40px;
    color: #666;
    font-style: italic;
}

#customerTable th,
#customerTable td {
    white-space: nowrap !important;
    vertical-align: middle !important;
}

#btnExecuteSearch {
    margin-right: 5px;
}

#customerTable th.action {
    width: 70px; text-align:center;
}

/* --- INFODESK HOME: Field validation errors --- */
.field-error {
    display: none;
    color: #d9534f;
    margin-top: 4px;
    font-size: 13px;
}

#error-contact {
    margin-bottom: 10px;
}

/* --- INFODESK HOME: Store autocomplete --- */
.store-form-group {
    position: relative;
}

.store-input-wrapper {
    position: relative;
}

.store-spinner {
    display: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    z-index: 2;
}

.store-input-wrapper.store-loading .store-spinner {
    display: block;
}

.store-input-wrapper.store-loading #store-input {
    padding-left: 28px;
}

#store-suggestions {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
}

.store-suggestion-item {
    padding: 6px 10px;
    cursor: pointer;
}

.store-suggestion-item:hover,
.store-suggestion-item.active {
    background: #f0f0f0;
}

/* --- INFODESK HOME: Lost card inline field --- */
#lostCard-inline {
    display: none;
}

/* --- INFODESK HOME: Search result message --- */
#searchResultMsg {
    margin-top: 6px;
}

.result-count {
    color: #555;
}

.result-warning {
    color: #8a6d3b;
}

/* --- INFODESK HOME: Status messages --- */
.status-success {
    color: #2d6a2d;
}

.status-error {
    color: #d9534f;
}

/* --- INFODESK HOME: Submit result modal --- */
#submitResult-status {
    margin-top: 4px;
}

/* --- INFODESK HOME: Form actions alignment --- */
.form-actions {
    align-items: center;
}

/* --- INFODESK HOME: Submit success/error banners --- */
.submit-success-banner,
.submit-error-banner {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.submit-success-banner {
    background-color: #dff0d8;
    border: 1px solid #3c763d;
    color: #3c763d;
}
.submit-error-banner {
    background-color: #f2dede;
    border: 1px solid #a94442;
    color: #a94442;
}
.submit-success-banner i,
.submit-error-banner i {
    margin-right: 6px;
}

/* --- INFODESK HOME: Loading overlay --- */
#submit-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
}
.submit-loading-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 32px 40px;
    text-align: center;
    min-width: 220px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.submit-loading-text {
    color: #555;
    font-size: 15px;
    margin-top: 4px;
}