/*** HNB CAPITALS — Online Banking (dashboard) ***/
/*** Built on the site template palette: primary #015FC9, dark #16243D, light #F2F5F9 ***/

/*** Side Menu Start ***/
.dashboard-menu {
    position: sticky;
    top: 110px;
}

.dashboard-menu .db-user {
    border-bottom: 1px solid rgba(22, 36, 61, .08);
}

.dashboard-menu .db-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .05em;
}

.dashboard-menu .db-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8f9bab;
}

.dashboard-menu .db-link {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--bs-dark);
    transition: .5s;
}

.dashboard-menu .db-link i {
    width: 22px;
    text-align: center;
    margin-right: 12px;
    color: var(--bs-primary);
    transition: .5s;
}

.dashboard-menu .db-link:hover,
.dashboard-menu .db-link.active {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.dashboard-menu .db-link:hover i,
.dashboard-menu .db-link.active i {
    color: var(--bs-white);
}

.dashboard-menu .db-signout:hover,
.dashboard-menu .db-signout:hover i {
    background: var(--bs-danger);
    color: var(--bs-white);
}
/*** Side Menu End ***/


/*** Account Cards Start ***/
.acct-card {
    position: relative;
    overflow: hidden;
    transition: .5s;
}

.acct-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -60px;
    right: -55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.acct-card.acct-card-light::after {
    background: rgba(1, 95, 201, .07);
}

.acct-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 45px rgba(0, 0, 0, .12);
}

.acct-card .acct-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .7;
}

.acct-card .acct-balance {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

.acct-card .acct-meta {
    font-size: .82rem;
    opacity: .75;
}

.acct-card .acct-reveal {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    opacity: .8;
    cursor: pointer;
}
/*** Account Cards End ***/


/*** Quick Actions Start ***/
.quick-action {
    display: block;
    transition: .5s;
}

.quick-action .quick-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-white);
    color: var(--bs-primary);
    transition: .5s;
}

.quick-action h6 {
    transition: .5s;
}

.quick-action:hover {
    background: var(--bs-primary) !important;
}

.quick-action:hover h6 {
    color: var(--bs-white) !important;
}

.quick-action:hover .quick-icon {
    background: rgba(255, 255, 255, .18);
    color: var(--bs-white);
}
/*** Quick Actions End ***/


/*** Tables Start ***/
.db-table {
    margin-bottom: 0;
}

.db-table thead th {
    background: var(--bs-dark);
    color: var(--bs-white);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    padding: 14px 16px;
}

.db-table thead th:first-child {
    border-top-left-radius: 8px;
}

.db-table thead th:last-child {
    border-top-right-radius: 8px;
}

.db-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(22, 36, 61, .07);
}

.db-table tbody tr:last-child td {
    border-bottom: none;
}

.db-table .txn-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Tints are written out rather than using .bg-opacity-*, which this
   Bootstrap 5.0 build does not ship — it would render a solid fill
   and hide the icon completely. */
.db-table .txn-icon-credit {
    background: rgba(21, 115, 71, .12);
    color: #157347;
}

.db-table .txn-icon-bank {
    background: rgba(1, 95, 201, .12);
    color: var(--bs-primary);
}

.db-table .txn-icon-card {
    background: rgba(22, 36, 61, .1);
    color: var(--bs-dark);
}

.db-table .txn-desc {
    font-weight: 600;
    color: var(--bs-dark);
}

.db-table .txn-sub {
    font-size: .78rem;
    color: #8f9bab;
}

.db-table .txn-amount {
    font-weight: 700;
    white-space: nowrap;
}

.db-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .74rem;
    font-weight: 700;
}

.db-badge.status-pending {
    background: #FFF4DC;
    color: #B45309;
}

.db-badge.status-approved {
    background: #E4F7EC;
    color: #157347;
}

.db-badge.status-declined {
    background: #FDEBEC;
    color: #B02A37;
}
/*** Tables End ***/


/*** Detail Rows Start ***/
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(22, 36, 61, .08);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8f9bab;
}

.detail-row .detail-val {
    font-weight: 600;
    color: var(--bs-dark);
    text-align: right;
    word-break: break-word;
}

.detail-row .detail-reveal {
    background: none;
    border: none;
    padding: 0 0 0 6px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    color: var(--bs-primary);
    cursor: pointer;
}
/*** Detail Rows End ***/


/*** Transfer Tabs Start ***/
.transfer-tab {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(22, 36, 61, .15);
    background: var(--bs-white);
    color: var(--bs-dark);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    transition: .5s;
}

.transfer-tab i {
    margin-right: 8px;
    color: var(--bs-primary);
    transition: .5s;
}

.transfer-tab:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.transfer-tab.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-white);
}

.transfer-tab.active i {
    color: var(--bs-white);
}
/*** Transfer Tabs End ***/


/*** Bank Card Start ***/
.bank-card {
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #16243D 0%, #0a1628 100%);
    color: var(--bs-white);
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: .5s;
}

.bank-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    right: -70px;
    top: -70px;
}

.bank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 45px rgba(22, 36, 61, .3);
}

.bank-card .bc-brand {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.bank-card .bc-mark span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.bank-card .bc-mark span:first-child {
    background: #eb001b;
}

.bank-card .bc-mark span:last-child {
    background: #f79e1b;
    margin-left: -12px;
}

.bank-card .bc-number {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .18em;
}

.bank-card .bc-cap {
    font-size: .62rem;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
}

.bank-card .bc-val {
    font-size: .85rem;
    font-weight: 600;
}
/*** Bank Card End ***/




/*** Misc Start ***/
.dashboard .form-control,
.dashboard .form-select {
    border: 1px solid rgba(22, 36, 61, .15);
}

.dashboard .form-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-dark);
    margin-bottom: 8px;
}

.dashboard .form-control[readonly] {
    background: rgba(22, 36, 61, .04);
    color: #8f9bab;
}

.amount-wrap {
    position: relative;
}

.amount-wrap .amount-sign {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-weight: 700;
    color: #8f9bab;
}

.amount-wrap .form-control {
    padding-left: 36px;
}

.otp-input {
    letter-spacing: .35em;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .dashboard-menu {
        position: static;
    }
}
/*** Misc End ***/


/*** Check Deposit Start ***/
.step-badge {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-weight: 600;
    transition: .5s;
}

.step-badge.step-badge-idle {
    background: #b6c0cf;
}

.capture-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 190px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bs-white);
    border: 2px dashed rgba(1, 95, 201, .35);
    transition: .5s;
}

.capture-zone:hover {
    border-color: var(--bs-primary);
    background: rgba(1, 95, 201, .04);
}

.capture-zone.has-image {
    border-style: solid;
    border-color: var(--bs-dark);
    background: #000;
    min-height: 230px;
}

.capture-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.capture-zone.has-image input[type="file"] {
    pointer-events: none;
}

.capture-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 95, 201, .1);
    color: var(--bs-primary);
    font-size: 1.3rem;
}

.capture-label {
    font-weight: 600;
    color: var(--bs-dark);
}

.capture-hint {
    font-size: .8rem;
    color: #8f9bab;
}

.capture-preview {
    display: none;
    width: 100%;
    height: 230px;
    object-fit: contain;
}

.capture-preview.visible {
    display: block;
}

.capture-retake {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: none;
    border: none;
    background: rgba(0, 0, 0, .6);
    color: var(--bs-white);
    font-size: .75rem;
    font-weight: 600;
    padding: 7px 16px;
}

.capture-retake.visible {
    display: block;
}

.capture-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    color: #20c997;
    font-size: 1.5rem;
}

.capture-check.visible {
    display: block;
}

.check-guide {
    position: absolute;
    inset: 18px;
    display: none;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    pointer-events: none;
}

.check-guide.visible {
    display: block;
}

.check-guide-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--bs-white);
    border-style: solid;
    border-width: 0;
}

.check-guide-corner.tl { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; }
.check-guide-corner.tr { top: -1px; right: -1px; border-top-width: 3px; border-right-width: 3px; }
.check-guide-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 3px; border-left-width: 3px; }
.check-guide-corner.br { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }
/*** Check Deposit End ***/


/*** Sign On Start ***/
.login-panel {
    position: relative;
    overflow: hidden;
}

.login-panel::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    right: -110px;
    bottom: -130px;
}

.login-panel .login-point {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.login-panel .login-point i {
    color: var(--bs-primary);
    margin-top: 4px;
}
/*** Sign On End ***/


/*** Small Screens Start ***/
@media (max-width: 767px) {
    .dashboard .form-control,
    .dashboard .form-select {
        font-size: 16px;
    }

    .db-table tbody td {
        padding: 12px 10px;
    }
}
/*** Small Screens End ***/
