﻿/* select2 override */

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #DCDCE9 !important;
}
    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: #007bff !important;
        outline: none;
        box-shadow: none;
    }
.select2-dropdown {
    width: 300px !important;
}

.select2-results__option--highlighted {
    border-radius: 8px !important;
}

.select2-results__group {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    padding: 8px 12px !important;
}

.select2-container .select2-selection--single {
    height: 40px !important;
    border: 1px solid #d1d5db !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding-left: 12px !important;
    /* font-family: Inter, system-ui, sans-serif; */
    font-size: 14px;
    font-weight: 400;
    color: #0c1f33;
    line-height: 1.5 !important;
    text-align: center !important;
}


.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #27173E !important;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    display: block;
    text-align: center;
    width: 100%;
}

.select2-selection__arrow {
    height: 40px !important;
}

.select2-selection {
    text-align: left;
}

.select2-container .select2-dropdown {
    z-index: 200010;
}

.modal.action-sheet.center .modal-dialog {
    bottom: 50%;
}

.hidden {
    display: none !important;
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 24px 0;
}

.toast-box{
    z-index: 1056;
}

.verification-input {
    font-size: 24px !important;
}

#fileUploadAvatar {
    width: 100px;
    height: 100px;
}
    #fileUploadAvatar img {
        width: 100px;
        height: 100px !important;
    }

.image-listview > li .item form:after {
    content: "\f3d1";
    font-family: "Ionicons";
    font-size: 18px;
    position: absolute;
    right: 16px;
    color: #A9ABAD;
    opacity: 0.6;
    line-height: 1em;
    height: 18px;
    top: 50%;
    margin-top: -9px;
}

.image-listview > li .item form button {
    border: none;
    background: none;
    padding: 0;
}

.select2-container .select2-selection--single {
    border: none !important;
    border-bottom: 1px solid #DCDCE9 !important;
}



.imaged.h32 {
    height: 32px !important;
}

.imaged.h36 {
    height: 36px !important;
}

.payid-instructions{
    text-align: left;
}
.bank-transfer-instructions {
    text-align: left;
}

/* Lớp phủ mờ nền */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3); /* chỉnh độ mờ tại đây */
    z-index: 9998;
    padding: 106px 0 56px 0;
    height: calc(100% - 56px);
}

/* Loader nằm giữa */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.search-form .input-icon-option {
    font-size: 26px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A9ABAD;
    top: 0;
}

.btn-clear-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 10px;
    top: 3px;
    color: #A9ABAD;
}

.text-xsmall{
    font-size: 11px;
}

.text-small{
    font-size: 13px;
}


.form-group .password-toggle {
    position: absolute;
    right: 0px;
    bottom: 0px;
}

.form-group .clear-input {
    right: 0px;
}



.password-toggle {
    height: 38px;
    width: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a0a0b0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    font-size: 22px;

    align-items: center;
    justify-content: center;
}

    .password-toggle:hover {
        color: #00ff88;
        background: rgba(0, 255, 136, 0.1);
    }



.toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0a0b0' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .toggle-icon.show-password {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0a0b0' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 11-4.243-4.243m4.242 4.242L9.88 9.88'/%3e%3c/svg%3e");
    }

.password-toggle .toggle-icon:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300ff88' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
}


/* container option */
.currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-option:after {
    content: "\f3d1";
    font-family: "Ionicons";
    font-size: 18px;
    position: absolute;
    right: 16px;
    color: #A9ABAD;
    opacity: 0.6;
    line-height: 1em;
    height: 18px;
    margin-top: -5px;
}

/* flag */
.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.currency-flag-big {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

/* text block */
.currency-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* currency code */
.currency-code {
    font-size: 14px;
    font-weight: 600;
    color: #0c1f33;
}

/* currency name */
.currency-name {
    font-size: 13px;
    color: #6b7280;
}

/* selected icon */
.currency-check {
    margin-left: auto;
    color: #1f7aed;
    font-size: 16px;
}

.form-group.basic .form-control:focus,
.form-group.basic .custom-select:focus {
    border-bottom-color: #5897fb;
    box-shadow: inset 0 -1px 0 0 #5897fb;
}

.form-group.basic .custom-select {
    padding: 6px;
}

    .form-group.basic .custom-select option:checked,
    .form-group.basic .custom-select option:hover,
    .form-group.basic .custom-select option:focus {
        background-color: #5897fb !important; /* Thường sẽ bị trình duyệt ghi đè */
        color: #fff !important;
    }


ion-icon {
    width: 30px;
    height: 30px;
}

.modal-icon ion-icon {
    width: 60px !important;
    height: 60px !important;
}

.exchange-currency-flag .currency-flag.flag {
    margin-right: -7px !important;
}

.item .alias-name {
    height: 48px;
    width: 48px;
    background-color: #f0f4f8 !important;
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
}

#search-form #search {
    padding: 0 16px 0 36px !important;
}

/* bank code */
.bank-code {
    font-size: 14px;
    font-weight: 600;
    color: #0c1f33;
}

/* bank name */
.bank-name {
    font-size: 13px;
    color: #6b7280;
}

.bank-icon {
    width: 24px;
    height: 24px;
    border: none;
}

.bank-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #DCDCE9;
}

/* select2 bank option */
.bank-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
}

.bank-option-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8eaf0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}

.bank-option-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bank-option-name {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-option-code {
    font-size: 14px;
    font-weight: 600;
    color: #0c1f33;
}

/* form validation error state */
.input-wrapper.is-error .form-control,
.input-wrapper.is-error .select2-selection {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.15) !important;
}

.input-wrapper.is-error .select2-selection--single {
    border-color: #ff3b30 !important;
}

.field-error-msg {
    font-size: 12px;
    color: #ff3b30;
    margin-top: 4px;
}


/* container option */
.modal-body .currency-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #DCDCE9;
}

/* flag */
.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.currency-flag-big {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

/* text block */
.currency-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* currency code */
.currency-code {
    font-size: 14px;
    font-weight: 600;
    color: #0c1f33;
}

/* currency name */
.currency-name {
    font-size: 13px;
    color: #6b7280;
}

/* selected icon */
.currency-check {
    margin-left: auto;
    color: #1f7aed;
    font-size: 16px;
}


#ModalExchangeRate .target-account {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #958d9e;
    height: 38px;
    font-size: 14px;
    position: absolute;
    right: 22px;
    bottom: 0;
    width: 32px;
}

    #ModalExchangeRate .target-account .currency-flag {
        height: 20px;
        width: 20px;
    }

#ModalExchangeRate #exchange-rate {
    padding: 0 70px 0 0 !important;
}

.panel-exchange-rate {
    border-radius: 999px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #DCDCE9;
    font-size: 14px !important;
}

.Rate_verticalLine {
    width: 1px;
    height: 20px;
    background-color: rgba(14,15,12,0.12157);
}

.modal-dialog .productlogo {
    background-image: url(/assets/img/icon/logo192x192.png);
    background-size: cover;
    background-position: center;
    margin: 0px auto;
    width: 60px;
    height: 60px;
    margin-top: -24px;
    margin-bottom: 20px;
}

.appHeader .delete-button ion-icon{
    height: 25px;
    width: 25px;
}

.edit-button ion-icon {
    height: 25px;
    width: 25px;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
    background: #002563 !important;
    border-color: #002563 !important;
}

.ez-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    margin-bottom: 18px;
    color: #fff;
}

.ez-card__bg {
    display: block;
    width: 100%;
    height: 220px;
}

.ez-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Bottom gradient only — keeps top of card image clean */
.ez-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 50%, transparent 100%);
}

.ez-card__body {
    padding: 16px 20px;
    box-sizing: border-box;
}

.ez-card__number {
    font-size: clamp(14px, 3.5vw, 20px);
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.95);
    text-align: center;
    margin-bottom: 43px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.ez-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ez-card__product {
    font-size: clamp(12px, 3vw, 15px);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2px;
}

.ez-card__holder {
    font-size: clamp(11px, 2.6vw, 13px);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ez-card__meta {
    display: flex;
    gap: 20px;
}

.ez-card__meta-item {
    display: flex;
    flex-direction: column;
}

.ez-card__meta-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.ez-card__meta-value {
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
}

.ez-card__detail-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.2s, background 0.2s;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
}

.ez-card:hover .ez-card__detail-btn,
.ez-card:focus-within .ez-card__detail-btn {
    opacity: 1;
    pointer-events: auto;
}

.ez-card__detail-btn ion-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.ez-card__detail-btn:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
}