:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #14213d;
    --text-secondary: #5c677d;
    --muted: #8c95a6;
    --accent: #0f4c81;
    --primary: #1a73e8;
    --primary-light: #e8f0fe;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;
    --header-bg: #5E5EF7;
    --header-text: #ffffff;
}

/* Flaticon Uicons spin animation */
@keyframes fi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.fi-spin {
    animation: fi-spin 1s linear infinite;
}

* {
    box-sizing: border-box;
}

.is-hidden {
    display: none !important;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.app-header {
    background: var(--header-bg);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4aa;
    letter-spacing: -0.02em;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.875rem;
}

.nav-link:hover {
    color: var(--header-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-link.is-active {
    background: var(--surface);
    color: var(--header-bg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 16px rgba(9, 30, 66, 0.2);
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--header-text);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-menu-btn i.fa-user-circle {
    font-size: 1.25rem;
}

.user-menu-btn i.fa-chevron-down {
    font-size: 0.75rem;
    opacity: 0.7;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.875rem;
    transition: background 0.2s;
}

.dropdown-action {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.dropdown-action i {
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

body.modal-open {
    overflow: hidden;
}

.logout-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 37, 64, 0.28);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.logout-modal.show {
    opacity: 1;
    visibility: visible;
}

.logout-modal-card {
    position: relative;
    width: min(100%, 500px);
    background: var(--surface);
    border-radius: 22px;
    padding: 36px 40px 32px;
    box-shadow: 0 18px 48px rgba(15, 37, 64, 0.24), 0 2px 8px rgba(15, 37, 64, 0.12);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.logout-modal.show .logout-modal-card {
    transform: translateY(0) scale(1);
}

.logout-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0;
    color: #5B7384;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.logout-modal-close:hover {
    filter: brightness(0.96);
    transform: scale(1.04);
}

.logout-modal-icon {
    width: 56px;
    height: 56px;
    margin: 10px auto 20px;
    border-radius: 50%;
    background: #0a2540;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.logout-modal-title {
    margin: 0;
    color: #123b8f;
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.logout-modal-title strong {
    font-weight: 800;
}

.logout-modal-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #5B7384;
    font-size: 2.5rem;
    line-height: 1;
}

.logout-modal-symbol-alert {
    color: #002546;
}

.logout-modal-close-icon {
    font-size: 1.55rem;
    line-height: 1;
}

.logout-modal-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
}

.logout-btn {
    min-width: 168px;
    min-height: 52px;
    border-radius: 12px;
    padding: 0 22px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.logout-btn:hover {
    transform: translateY(-1px);
}

.logout-btn-secondary {
    border: 1.5px solid #1e4a8b;
    background: #fff;
    color: #16386b;
    box-shadow: 0 2px 4px rgba(15, 37, 64, 0.06);
}

.logout-btn-primary {
    border: 1px solid #5E5EF7;
    background: #5E5EF7;
    color: #fff;
    box-shadow: 0 6px 18px rgba(94, 94, 247, 0.28);
}

.logout-btn-primary:hover,
.logout-btn-secondary:hover {
    filter: brightness(0.98);
}

@media (max-width: 640px) {
    .logout-modal {
        padding: 16px;
    }

    .logout-modal-card {
        padding: 28px 22px 24px;
        border-radius: 18px;
    }

    .logout-modal-title {
        font-size: 1.35rem;
    }

    .logout-modal-actions {
        flex-direction: column;
        gap: 12px;
    }

    .logout-btn {
        width: 100%;
        min-width: 0;
    }
}

.page-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2f7a;
    margin-top: 8px;
}

.page-title-muted {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.status-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.status-pill-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
}

.identity-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.identity-column {
    display: grid;
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 600;
    color: #0f2f7a;
    border-bottom: 1px solid var(--border-light);
}

.card-header .card-link {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--primary);
}

.card-body {
    padding: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field[hidden] {
    display: none;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-field input,
.form-field select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.875rem;
}

.input-error {
    border-color: #e53e3e !important;
    outline-color: #e53e3e;
}

.field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.radio-group {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
}

.radio-group input {
    margin-right: 6px;
}

.file-drop {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: var(--primary);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8125rem;
    cursor: pointer;
}

.tab.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
}

.id-preview {
    background: var(--bg);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--border-light);
}

.id-preview img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    margin-top: 8px;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link[hidden] {
    display: none;
}

.identity-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 0 0;
}

@media (max-width: 1100px) {
    .identity-grid {
        grid-template-columns: 1fr;
    }
}

.identity-page {
    gap: 24px;
    padding-bottom: 120px;
}

.identity-page-header .page-title {
    color: #173a88;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.identity-page-link {
    color: inherit;
    text-decoration: none;
}

.identity-page-link:hover {
    text-decoration: underline;
}

.identity-page-header .page-title-muted {
    color: #465563;
    font-size: 1.85rem;
    font-weight: 500;
}

.identity-status-pill {
    width: 100%;
    min-height: 76px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid #d8e3ee;
    background: #fff;
    gap: 28px;
    font-size: 1rem;
}

.identity-status-pill .status-pill-label {
    color: #173a88;
    font-size: 1rem;
    font-weight: 700;
}

.identity-status-pill .status-pill-value {
    color: #111827;
    font-weight: 600;
}

.identity-status-pill .status-pill-value i {
    color: #1265ff;
    font-size: 1.2rem;
}

.identity-status-pill .status-pill-value.is-verified {
    color: #111827;
}

.identity-status-pill .status-pill-value.is-verified i {
    color: #22c55e;
}

.identity-status-pill .status-pill-value.is-rejected {
    color: #111827;
}

.identity-status-pill .status-pill-value.is-rejected i {
    color: #ff5a5f;
}

.identity-status-pill .status-pill-value.is-pending {
    color: #111827;
}

.identity-status-pill .status-pill-value.is-pending i {
    color: #2563eb;
}

.identity-page .identity-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.86fr);
    gap: 28px;
    align-items: stretch;
}

.identity-page .identity-column {
    gap: 26px;
}

.identity-card {
    border: 1px solid #d8e3ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.identity-card .card-header {
    padding: 22px 26px 10px;
    border-bottom: 0;
    color: #173a88;
    font-size: 1.05rem;
    font-weight: 700;
    gap: 14px;
}

.identity-card .card-header i {
    color: #173a88;
    font-size: 1.05rem;
}

.identity-card .card-body {
    padding: 4px 26px 22px;
}

.identity-page .form-grid {
    gap: 18px 26px;
}

.identity-page .form-field {
    gap: 8px;
}

.identity-page .form-field label,
.identity-page .field-label {
    color: #173a88;
    font-size: 0.9rem;
    font-weight: 700;
}

.identity-page .form-field input,
.identity-page .form-field select {
    height: 46px;
    border: 1.5px solid #9cb0c5;
    border-radius: 8px;
    padding: 0 18px;
    color: #556476;
    font-size: 0.92rem;
    background: #fff;
}

.identity-page .form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23384656' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.identity-page .form-field input:focus,
.identity-page .form-field select:focus {
    outline: none;
    border-color: #3168d8;
    box-shadow: 0 0 0 3px rgba(49, 104, 216, 0.12);
}

.identity-page .radio-group {
    gap: 12px;
    color: #718195;
    font-size: 0.9rem;
}

.identity-page .radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.identity-page .radio-group input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2f72f6;
}

.document-card {
    min-height: 0;
    height: 100%;
}

.document-card .card-body {
    padding-top: 16px;
}

.document-card .tab-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 28px;
    margin: 0 0 18px;
    align-items: end;
}

.document-card .tab {
    padding: 0 0 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #6b7b8e;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

.document-card .tab.active {
    color: #173a88;
    background: transparent;
    border-color: #173a88;
}

.document-card .id-preview {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.document-mockup {
    width: 100%;
    min-height: 236px;
    padding: 0 18px 16px;
    overflow: hidden;
    border-radius: 2px;
    background: linear-gradient(180deg, #d9dde2 0 11%, #49d2ef 11% 100%);
    box-shadow: 0 0 0 1px rgba(15, 37, 64, 0.1);
    color: #243343;
}

.document-mockup [data-back-only],
.document-mockup [data-selfie-only],
.document-mockup-back [data-front-only],
.document-mockup-back > .document-code,
.document-mockup-selfie [data-front-only],
.document-mockup-selfie > .document-code {
    display: none;
}

.document-mockup-back [data-back-only],
.document-mockup-selfie [data-selfie-only] {
    display: block;
}

.document-mockup-back {
    background: linear-gradient(180deg, #d9dde2 0 12%, #55cce7 12% 100%);
}

.document-mockup-selfie {
    min-height: 276px;
    background: linear-gradient(160deg, #eaf4ff, #f7fbff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-back-content {
    padding-top: 22px;
}

.document-back-title {
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.document-back-lines {
    display: grid;
    gap: 14px;
}

.document-back-lines span {
    height: 22px;
    border-radius: 999px;
    background: rgba(184, 198, 222, 0.95);
}

.document-selfie-content {
    position: relative;
    width: 260px;
    height: 206px;
}

.selfie-avatar {
    position: absolute;
    inset: 0 auto auto 22px;
    width: 140px;
    height: 190px;
    border-radius: 80px 80px 24px 24px;
    background: #dce8f6;
    overflow: hidden;
}

.selfie-avatar .avatar-head {
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
}

.selfie-avatar .avatar-body {
    left: 50%;
    transform: translateX(-50%);
}

.selfie-card-mini {
    position: absolute;
    right: 8px;
    bottom: 22px;
    width: 124px;
    height: 78px;
    border-radius: 8px;
    background: linear-gradient(180deg, #d9dde2 0 24%, #55cce7 24% 100%);
    box-shadow: 0 8px 18px rgba(15, 37, 64, 0.16);
}

.document-topbar {
    height: 34px;
    margin: 0 -18px 14px;
    padding: 7px 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: rgba(209, 213, 219, 0.95);
    font-size: 0.52rem;
    font-weight: 800;
}

.document-body {
    display: grid;
    grid-template-columns: 104px 1fr 1fr 110px;
    gap: 12px;
    align-items: start;
}

.document-photo {
    height: 124px;
    border-radius: 8px;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-head {
    position: absolute;
    top: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5a47e;
    box-shadow: 0 -22px 0 -8px #19202b;
}

.avatar-body {
    position: absolute;
    bottom: -18px;
    width: 68px;
    height: 68px;
    border-radius: 38px 38px 0 0;
    background: linear-gradient(90deg, #13305f 0 45%, #0b8c78 45% 55%, #19386f 55%);
}

.document-lines {
    display: grid;
    gap: 11px;
    padding-top: 8px;
}

.document-lines span {
    height: 20px;
    border-radius: 999px;
    background: #b8c6de;
}

.document-data-box {
    display: grid;
    border: 3px solid #126f8e;
    font-size: 0.45rem;
    font-weight: 800;
}

.document-data-box span {
    min-height: 34px;
    padding: 6px;
    border-bottom: 3px solid #126f8e;
}

.document-data-box span:last-child {
    border-bottom: 0;
}

.document-code {
    margin-top: 18px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.document-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff4d57;
    font-size: 0.9rem;
}

.document-preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.document-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    width: 100%;
}

.document-upload-empty {
    width: 100%;
    min-height: 70px;
    border: 1px dashed #ccd6e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 18px;
    background: #fff;
}

.document-upload-empty-icon {
    color: #18378c;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.document-upload-empty-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.document-upload-empty-title {
    color: #173a88;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.document-upload-empty-subtitle {
    color: #7a8897;
    font-size: 0.92rem;
    line-height: 1.2;
}

.document-preview-panel.is-dragover {
    background: #f4f8ff;
    outline: 1px dashed #1768ff;
}


.document-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.datarisk-card {
    grid-column: 1 / -1;
}

/* Risk document preview modal */
.doc-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.doc-preview-modal.show {
    display: flex;
}

.doc-preview-modal-content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: min(760px, 72vw);
    min-height: 760px;
    max-height: 88vh;
    padding: 22px 22px 20px;
    overflow: hidden;
    box-shadow: none;
}

.doc-preview-modal-close {
    position: static;
    margin-left: auto;
    margin-bottom: 14px;
    border: 0;
    border-radius: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6f8197;
    background: transparent;
    font-size: 24px;
    box-shadow: none;
}

.doc-preview-modal-stage {
    width: 100%;
    height: min(74vh, 880px);
    margin-top: 0;
    border-radius: 14px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

#riskDocModalImage,
#riskDocModalFrame {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: transparent;
}

.identity-feedback-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.28);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.identity-feedback-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.identity-feedback-card {
    width: min(450px, calc(100vw - 32px));
    min-height: 300px;
    padding: 42px 36px 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.identity-feedback-card-success {
    min-height: 300px;
}

.identity-feedback-modal.show .identity-feedback-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.identity-feedback-icon {
    width: 50px;
    height: 50px;
    margin: 6px auto 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.identity-feedback-icon-danger {
    background: #ffe7ea;
    color: #ff5a5f;
}

.identity-feedback-icon-success {
    background: #fff;
    color: #2fcd7e;
    font-size: 3rem;
}

.identity-feedback-icon-info {
    background: #0f2e57;
    color: #fff;
}

.identity-feedback-icon-warning {
    background: #fff3cf;
    color: #b78103;
}

.identity-feedback-title {
    color: #163c8a;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0 auto 34px;
    max-width: 280px;
}

.identity-feedback-title strong {
    font-weight: 700;
}

.identity-feedback-title-success {
    font-size: 20px;
    font-weight: 700;
    max-width: none;
}

.identity-feedback-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.identity-feedback-actions-center {
    justify-content: center;
}

.identity-feedback-btn {
    min-width: 168px;
    height: 48px;
    border-radius: 10px;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.identity-feedback-btn-outline {
    background: #fff;
    color: #133564;
    border: 1.5px solid #173d6a;
}

.identity-feedback-btn-danger {
    background: #FE5D67;
    color: #fff;
}

.identity-feedback-btn-primary {
    background: #5E5EF7;
    color: #fff;
    min-width: 160px;
}

.identity-feedback-btn-warning {
    background: #5E5EF7;
    color: #fff;
}

.identity-feedback-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #6f8197;
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#statusConfirmModal,
#statusSuccessModal {
    z-index: 10040;
}

.status-confirm-card {
    width: min(430px, calc(100vw - 32px));
    min-height: 210px;
    padding: 38px 36px 32px;
    border-radius: 8px;
}

.status-confirm-icon {
    width: auto;
    height: auto;
    margin: 0 auto 18px;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
    color: #002546;
    font-size: 2.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-confirm-title {
    max-width: 300px;
    margin-bottom: 28px;
    color: #0d2f76;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
}

.status-confirm-title strong {
    display: block;
    font-weight: 800;
}

.status-confirm-card .identity-feedback-actions {
    gap: 22px;
}

.status-confirm-card .identity-feedback-btn {
    min-width: 150px;
    height: 42px;
    border-radius: 6px;
    font-size: 13px;
}

.status-confirm-card .identity-feedback-btn-primary {
    min-width: 184px;
}

.status-success-card {
    width: min(560px, calc(100vw - 32px));
    min-height: 330px;
    padding: 52px 48px 40px;
    border-radius: 8px;
}

.status-success-card .identity-feedback-icon-success {
    margin-bottom: 30px;
}

.status-success-card .identity-feedback-title-success {
    color: #0d2f76;
    font-size: 26px;
    line-height: 1.25;
    max-width: 430px;
    margin-bottom: 32px;
}

.status-success-card .identity-feedback-btn-primary {
    min-width: 180px;
}

@media (max-width: 640px) {
    .status-confirm-card .identity-feedback-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .status-confirm-card .identity-feedback-btn,
    .status-confirm-card .identity-feedback-btn-primary {
        width: 100%;
        min-width: 0;
    }

    .status-success-card {
        padding: 44px 28px 32px;
    }

    .status-success-card .identity-feedback-title-success {
        font-size: 22px;
    }
}


.datarisk-card .card-header {
    position: relative;
}

.datarisk-card .card-link {
    margin-left: auto;
    color: #1768ff;
    font-size: 1rem;
    font-weight: 600;
}

.datarisk-grid {
    display: grid;
    grid-template-columns: 460px max-content 460px minmax(0, 1fr);
    gap: 26px 44px;
    align-items: start;
    justify-content: start;
}

.datarisk-grid .form-field label span {
    color: #8c9aae;
    font-weight: 500;
}

.datarisk-id-field {
    width: 460px;
}

.datarisk-observation-toggle {
    justify-self: start;
    width: max-content;
}

.datarisk-observation-toggle .radio-group {
    height: 46px;
    align-items: center;
}

.datarisk-evidence-field {
    justify-self: start;
    width: 460px;
}

.datarisk-notes-field {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
}

.datarisk-notes-field input {
    width: 100%;
}

.identity-page .file-drop {
    height: 46px;
    border: 1px dashed #d7dfeb;
    border-radius: 8px;
    color: #1768ff;
    font-size: 0.92rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
}

#riskDocDrop {
    display: flex;
    align-items: center;
    justify-content: center;
}

#riskDocPreview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.risk-doc-link-text {
    color: #1d63ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.identity-page .file-drop.is-dragover {
    border-color: #1768ff;
    background: #f4f8ff;
}

.identity-page .file-drop.has-file {
    border-style: solid;
    border-color: #1768ff;
    background: #f4f8ff;
    color: var(--text);
}

.identity-page .file-drop.has-file .fi-rr-upload {
    display: none;
}

.identity-page .file-drop.has-file #riskDocPreview {
    color: #1768ff;
    text-decoration: underline;
    cursor: pointer;
}

.risk-doc-delete-inline {
    margin-left: 10px;
    margin-top: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
    vertical-align: middle;
    align-self: center;
    flex: 0 0 auto;
}

.risk-doc-delete-inline i {
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.identity-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    padding: 20px 44px;
    background: #fff;
    box-shadow: 0 -10px 22px rgba(15, 37, 64, 0.12);
}

.identity-actions-mode {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    width: 100%;
}

.identity-actions-mode[hidden] {
    display: none !important;
}

.identity-actions-mode-compact {
    justify-content: flex-end;
    gap: 34px;
}

.identity-save-link {
    border: 0;
    background: transparent;
    color: #2f72f6;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.identity-save-link:hover {
    text-decoration: underline;
}

.identity-actions .btn-outline,
.identity-actions .btn-primary {
    min-width: 210px;
    height: 46px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.identity-actions .btn-outline {
    border: 1.5px solid #0b2f57;
    color: #0b2f57;
    background: #fff;
    font-weight: 700;
}

.identity-actions .btn-primary {
    border: 1.5px solid #ffcc00;
    background: #ffcc00;
    color: #0b2f57;
    font-weight: 700;
}

.identity-actions .identity-suspend-btn {
    border: 1.5px solid #ef6b6b;
    background: #fff;
    color: #ef6b6b;
    font-size: 0.95rem;
    font-weight: 700;
}

.identity-actions .identity-suspend-btn:hover {
    background: #fff5f5;
    border-color: #e95d5d;
    color: #e95d5d;
}

.identity-update-link {
    border: 0;
    background: transparent;
    color: #4b68ff;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.identity-update-link:hover {
    text-decoration: underline;
}

.identity-actions .identity-compact-save-btn {
    min-width: 222px;
    height: 50px;
    border-radius: 14px;
    border: 1.5px solid #ffcc00;
    background: #ffcc00;
    color: #0b2f57;
    font-size: 0.98rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .identity-page .identity-grid,
    .datarisk-grid {
        grid-template-columns: 1fr;
    }

    .document-card {
        min-height: auto;
    }

    .identity-actions {
        flex-direction: column;
        gap: 12px;
        padding: 18px 24px;
    }

    .identity-actions-mode,
    .identity-actions-mode-compact {
        flex-direction: column;
        gap: 12px;
        justify-content: stretch;
    }

    .identity-actions .btn-outline,
    .identity-actions .btn-primary,
    .identity-actions .identity-compact-save-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
}

.exchange-rate-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.exchange-label {
    color: var(--text-secondary);
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.exchange-rate-info .arrow {
    color: var(--muted);
    margin: 0 4px;
}

.exchange-value {
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: 8px;
}

.exchange-value span {
    color: var(--text-secondary);
}

.exchange-value strong {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   FILTERS SECTION
   ======================================== */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.filter-checkboxes {
    display: flex;
    gap: 32px;
}

.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    user-select: none;
    transition: opacity 0.2s;
}

.checkbox-filter input {
    display: none;
}

.checkbox-filter input:not(:checked) ~ .filter-icon,
.checkbox-filter input:not(:checked) ~ .filter-label {
    opacity: 0.4;
}

.filter-icon {
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.filter-label {
    font-weight: 500;
    color: var(--text);
    transition: opacity 0.2s;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.875rem;
}

.search-input {
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    width: 200px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-wrapper label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c677d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-refresh i {
    display: inline-block;
    font-size: 0.875rem;
    transition: transform 0.2s ease, color 0.2s ease;
    transform-origin: center;
}

.btn-refresh i.fi-spin {
    animation: fi-spin 0.8s linear infinite;
}

.remittance-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.remittance-page .data-table thead {
    background: #00297B;
}

.remittance-page .data-table th {
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left !important;
    padding: 16px 14px 14px;
    white-space: normal;
    line-height: 1.15;
}

.remittance-page .table-scroll-wrapper {
    overflow-x: visible;
}

.remittance-page .data-table {
    min-width: 0;
}

.remittance-header {
    align-items: flex-start;
    gap: 0;
}

.remittance-exchange-rate {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin-left: 0;
    width: max-content;
    max-width: none;
}

.exchange-route {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.exchange-country {
    color: #111827;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1;
}

.remittance-exchange-rate .exchange-label {
    color: #111827;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1;
}

.remittance-exchange-rate .arrow {
    margin: 0 2px;
    color: #111827;
    font-size: 1.02rem;
    font-weight: 700;
}

.remittance-exchange-rate .flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
}

.remittance-exchange-rate .exchange-value {
    margin-left: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 1.12rem;
    line-height: 1.15;
    text-align: left;
    align-self: flex-start;
    width: 100%;
}

.remittance-exchange-rate .exchange-value span {
    color: #111827;
    font-weight: 500;
}

.remittance-exchange-rate .exchange-value strong {
    color: #111827;
    font-size: 1.14em;
    font-weight: 800;
}

.remittance-filters-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    background: transparent;
    border: 0;
}

.remittance-filters-section .filter-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.remittance-filters-section .search-box {
    width: 374px;
    min-width: 374px;
}

.remittance-filters-section .search-input {
    width: 100%;
    height: 44px;
    padding: 10px 42px 10px 16px;
    border: 1.5px solid #a8b5cb;
    border-radius: 9px;
    font-size: 0.98rem;
    font-weight: 500;
    color: #3f4857;
    background: #fff;
}

.remittance-filters-section .search-icon {
    left: auto;
    right: 16px;
    font-size: 1.05rem;
    color: #8a97ab;
}

.remittance-select-wrapper {
    position: relative;
    gap: 0;
    width: 164px;
    min-width: 164px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.status-filter-dropdown {
    position: relative;
    width: 100%;
}

.status-filter-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.status-filter-trigger {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 22px;
    border: 1.5px solid #8ea0c4;
    border-radius: 9px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.status-filter-trigger:hover,
.status-filter-dropdown.is-open .status-filter-trigger {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.status-filter-trigger:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #203a70;
}

.status-filter-trigger-label {
    color: #173a88;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
}

.status-filter-trigger-text {
    display: inline-flex;
    align-items: center;
    color: #203a70;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1;
}

.status-filter-trigger i {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: currentColor;
    transition: transform 0.2s ease;
}

.status-filter-dropdown.is-open .status-filter-trigger i {
    transform: rotate(180deg);
}

.status-filter-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: max-content;
    min-width: max(100%, 230px);
    max-width: min(280px, calc(100vw - 24px));
    padding: 10px 0;
    border: 1.5px solid #b8c4d7;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f6 100%);
    box-shadow: 0 18px 34px rgba(20, 33, 61, 0.16);
    display: none;
    z-index: 50;
    overflow: hidden;
}

.status-filter-dropdown.is-open .status-filter-menu {
    display: block;
}

.status-filter-option {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-top: 1px solid #ebeff5;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: background 0.18s ease;
}

.status-filter-option:first-child {
    border-top: 0;
}

.status-filter-option:hover,
.status-filter-option.is-active {
    background: rgba(219, 227, 241, 0.4);
}

.status-filter-option:focus-visible {
    outline: none;
    background: rgba(219, 227, 241, 0.55);
}

.status-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.status-neutral {
    background: #e9edf6;
    color: #5f6b7f;
}

.remittance-filters-section .btn-refresh {
    min-width: 164px;
    height: 44px;
    padding: 0 22px;
    border: 1.5px solid #8ea0c4;
    border-radius: 9px;
    color: #203a70;
    font-size: 0.98rem;
    font-weight: 700;
    background: #fff;
}

.remittance-filters-section .btn-refresh i {
    font-size: 1.05rem;
}

.remittance-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.remittance-results-summary {
    margin: 0;
    flex: 1 1 360px;
}

.remittance-pagination {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

.remittance-pagination .pagination-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
}

.clients-page {
    gap: 26px;
}

.clients-header {
    align-items: flex-start;
}

.clients-page .page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #173a88;
}

.clients-filters-section {
    align-items: flex-end;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: 0;
}

.clients-status-legend {
    gap: 18px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.05);
}

.clients-filters-section .filter-actions {
    margin-left: auto;
    gap: 18px;
}

.clients-filters-section .search-box {
    width: 372px;
    min-width: 372px;
}

.clients-filters-section .search-input {
    width: 100%;
    height: 48px;
    padding: 11px 44px 11px 16px;
    border: 1.5px solid #9db0cb;
    border-radius: 10px;
    font-size: 1rem;
    color: #3f4857;
    background: #fff;
}

.clients-filters-section .search-icon {
    left: auto;
    right: 16px;
    font-size: 1rem;
    color: #8a97ab;
}

.clients-filters-section .btn-refresh {
    min-width: 164px;
    height: 48px;
    padding: 0 24px;
    border: 1.5px solid #8ea0c4;
    border-radius: 10px;
    color: #173a88;
    font-size: 1rem;
    font-weight: 700;
    background: #fff;
}

.clients-filters-section .btn-refresh i {
    font-size: 1rem;
}

.clients-section-title {
    margin-top: 10px;
    font-size: 1.95rem;
    font-weight: 700;
    color: #173a88;
}

.clients-recipient-title {
    margin-top: 34px;
}

.clients-table-container {
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.clients-page .table-scroll-wrapper {
    overflow-x: auto;
}

.clients-page .clients-table {
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.clients-page .clients-table thead {
    background: #11388d;
    border-bottom: 0;
}

.clients-page .clients-table th {
    padding: 17px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    white-space: normal;
    line-height: 1.15;
}

.clients-page .clients-table th:first-child {
    border-top-left-radius: 0;
}

.clients-page .clients-table th:last-child {
    border-top-right-radius: 0;
}

.clients-page .clients-table td {
    padding: 18px 16px;
    font-size: 0.97rem;
    color: #415064;
    background: #fff;
    border-bottom: 1px solid #dbe5f1;
    vertical-align: middle;
}

.clients-page .clients-table tbody tr:hover td {
    background: #fbfcff;
}

.clients-page .customers-table th:nth-child(1),
.clients-page .customers-table td:nth-child(1) { width: 96px; }
.clients-page .customers-table th:nth-child(2),
.clients-page .customers-table td:nth-child(2) { width: 260px; }
.clients-page .customers-table th:nth-child(3),
.clients-page .customers-table td:nth-child(3) { width: 150px; }
.clients-page .customers-table th:nth-child(4),
.clients-page .customers-table td:nth-child(4) { width: 170px; }
.clients-page .customers-table th:nth-child(5),
.clients-page .customers-table td:nth-child(5) { width: 230px; }
.clients-page .customers-table th:nth-child(6),
.clients-page .customers-table td:nth-child(6) { width: 170px; }
.clients-page .customers-table th:nth-child(7),
.clients-page .customers-table td:nth-child(7) { width: 240px; }
.clients-page .customers-table th:nth-child(8),
.clients-page .customers-table td:nth-child(8) { width: 150px; text-align: center; }
.clients-page .customers-table th:nth-child(9),
.clients-page .customers-table td:nth-child(9) { width: 160px; text-align: center; }

.clients-page .recipients-table th:nth-child(1),
.clients-page .recipients-table td:nth-child(1) { width: 96px; }
.clients-page .recipients-table th:nth-child(2),
.clients-page .recipients-table td:nth-child(2) { width: 240px; }
.clients-page .recipients-table th:nth-child(3),
.clients-page .recipients-table td:nth-child(3) { width: 150px; }
.clients-page .recipients-table th:nth-child(4),
.clients-page .recipients-table td:nth-child(4) { width: 170px; }
.clients-page .recipients-table th:nth-child(5),
.clients-page .recipients-table td:nth-child(5) { width: 150px; }
.clients-page .recipients-table th:nth-child(6),
.clients-page .recipients-table td:nth-child(6) { width: 320px; }
.clients-page .recipients-table th:nth-child(7),
.clients-page .recipients-table td:nth-child(7) { width: 220px; }
.clients-page .recipients-table th:nth-child(8),
.clients-page .recipients-table td:nth-child(8) { width: 220px; }
.clients-page .recipients-table th:nth-child(9),
.clients-page .recipients-table td:nth-child(9) { width: 130px; text-align: center; }

.clients-page .cell-id-text,
.clients-page .cell-name-text,
.clients-page .cell-email-text {
    color: #2f3d52;
}

.clients-page .cell-name-text {
    font-weight: 500;
}

.clients-page .copyable-id-btn {
    width: 100%;
    max-width: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f3d52;
    font: inherit;
    text-align: left;
    cursor: copy;
}

.clients-page .copyable-id-btn:hover .copyable-id-text {
    color: #173a88;
}

.clients-page .copyable-id-btn.is-copied .copyable-id-text {
    color: #173a88;
}

.clients-page .copyable-id-text {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.date-inline {
    white-space: nowrap;
    color: #4a5b71;
}

.clients-page .cell-verified .verification-icon,
.clients-page .cell-verified .status-icon {
    font-size: 1.2rem;
}

.clients-page .cell-actions {
    display: table-cell;
    text-align: center;
    white-space: nowrap;
}

.clients-page .cell-actions .icon-btn + .icon-btn {
    margin-left: 14px;
}

.clients-page .icon-btn {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #2154ff;
    padding: 0;
}

.clients-page .icon-btn i {
    font-size: 1.12rem;
}

.clients-page .icon-btn:hover {
    background: transparent;
    transform: translateY(-1px);
}

.clients-page .icon-btn.text-danger {
    color: #ff5a5f;
}

.clients-page .icon-btn-bank {
    color: #2154ff;
}

.bank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bank-badge-logo,
.bank-badge-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.bank-badge-logo {
    display: block;
    object-fit: contain;
}

.bank-badge-icon {
    border-radius: 4px;
    background: #ef3340;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bank-badge-icon i {
    font-size: 0.56rem;
    line-height: 1;
}

.bank-badge-name {
    font-size: 0.82rem;
    color: #43536a;
}

.recipient-account-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
}

.account-type-label {
    font-size: 0.8rem;
    color: #9aa8bc;
}

.account-number-value {
    color: #2f3d52;
}

.table-feedback-cell {
    text-align: center;
    padding: 24px;
    color: #637389;
}

.clients-pagination {
    justify-content: flex-end;
    gap: 4px;
    padding: 1px 0 0;
}

.clients-page .pagination-btn {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: 1px solid #d9e1ef;
    background: #fff;
    color: #78879d;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15, 37, 64, 0.04);
}

.clients-page .pagination-btn.active {
    background: #173a88;
    border-color: #173a88;
    color: #fff;
    box-shadow: none;
}

.clients-page .pagination-btn:hover:not(:disabled) {
    border-color: #9fb1d3;
    color: #173a88;
}

.clients-page .pagination-btn:disabled {
    color: #b8c1d3;
    background: #fff;
    border-color: #d9e1ef;
    cursor: default;
}

.clients-page .pagination-btn i {
    font-size: 0.85rem;
}

.clients-page .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 40px;
    color: #9aa8bc;
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .clients-filters-section {
        align-items: stretch;
    }

    .clients-filters-section .filter-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .clients-filters-section .search-box {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 960px) {
    .remittance-header,
    .remittance-filters-section {
        align-items: stretch;
    }

    .remittance-exchange-rate {
        align-items: flex-start;
        margin-left: 0;
    }

    .exchange-route {
        justify-content: flex-start;
    }

    .remittance-filters-section .filter-actions {
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
    }

    .remittance-filters-section .search-box {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }

    .remittance-table-footer {
        align-items: flex-start;
    }

    .remittance-pagination {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ========================================
   DATA TABLE
   ======================================== */
.table-container {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: visible;
    position: relative;
}

.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.table-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    table-layout: fixed;
}

.data-table thead {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: visible;
}

.clients-table th {
    white-space: normal;
    line-height: 1.2;
}

/* Column widths */
.data-table th:nth-child(1),
.data-table td:nth-child(1) { width: 92px; text-align: left; } /* Id */
.data-table th:nth-child(2),
.data-table td:nth-child(2) { width: 185px; text-align: left; } /* Cliente */
.data-table th:nth-child(3),
.data-table td:nth-child(3) { width: 110px; text-align: center; } /* De → A */
.data-table th:nth-child(4),
.data-table td:nth-child(4) { width: 82px; text-align: left; } /* Tipo de cambio */
.data-table th:nth-child(5),
.data-table td:nth-child(5) { width: 100px; text-align: left; } /* Fecha y hora */
.data-table th:nth-child(6),
.data-table td:nth-child(6) { width: 110px; text-align: center; } /* Cliente verificado */
.data-table th:nth-child(7),
.data-table td:nth-child(7) { width: 165px; text-align: left; } /* Fondos recibidos */
.data-table th:nth-child(8),
.data-table td:nth-child(8) { width: 145px; text-align: left; } /* Pago enviado */
.data-table th:nth-child(9),
.data-table td:nth-child(9) { width: 155px; text-align: center; } /* Estado */
.data-table th:nth-child(10),
.data-table td:nth-child(10) { width: 110px; text-align: center; } /* Acción */
.data-table th:nth-child(11),
.data-table td:nth-child(11) { width: 90px; text-align: left; } /* Otras acciones */

.data-table th:nth-child(6),
.data-table th:nth-child(7),
.data-table th:nth-child(8),
.data-table th:nth-child(9),
.data-table th:nth-child(10),
.data-table th:nth-child(11) {
    white-space: normal;
    line-height: 1.2;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    color: var(--primary);
}

.data-table th.sortable i {
    margin-left: 4px;
    font-size: 0.625rem;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #fafbfc;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 14px 12px;
    font-size: 0.875rem;
    vertical-align: middle;
}

.cell-id {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: copy;
}

.cell-client {
    max-width: none;
    overflow: visible;
}

.client-name {
    font-weight: 500;
    color: var(--text);
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}

.client-name-primary,
.client-name-secondary {
    display: block;
}

.client-name-secondary {
    margin-top: 2px;
}

.client-name-link {
    color: #1d4ed8;
    cursor: pointer;
    text-decoration: none;
}

.client-name-link:hover,
.client-name-link:focus-visible {
    text-decoration: underline;
}

.beneficiary-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-currency {
    text-align: left;
}

.currency-flow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.amount-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    line-height: 1.4;
}

.flag-small {
    width: 24px;
    height: 16px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.flag-emoji {
    font-size: 1.25rem;
}

.arrow-small {
    color: var(--muted);
    font-weight: 600;
}

.amount-flow .arrow-small {
    font-size: 0.65rem;
    line-height: 1;
}

.cell-rate {
    font-weight: 500;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}

.cell-date {
    white-space: nowrap;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-info .date {
    font-weight: 500;
    color: var(--text);
}

.date-info .time {
    font-size: inherit;
    font-weight: 500;
    color: var(--text);
}

.cell-funds,
.cell-payment {
    text-align: left;
    padding-left: 18px;
}

.verification-icon,
.status-icon {
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
}

.status-icon-with-tooltip {
    position: relative;
    justify-content: center;
}

.status-icon-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 120px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #31363f;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 30;
}

.status-icon-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #31363f;
}

.status-icon-with-tooltip:hover .status-icon-tooltip {
    opacity: 1;
    visibility: visible;
}

.cell-funds,
.cell-payment {
    white-space: normal;
}

.status-inline-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.operation-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
}

.operation-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1 1 100%;
    text-align: left;
    line-height: 1.2;
    min-width: 0;
}

.operation-currency {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7b8798;
    letter-spacing: 0.02em;
}

.operation-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6f7f95;
}

.operation-amount.amount-neutral .operation-value {
    color: #7b8798;
}

.operation-amount.amount-pending .operation-value {
    color: #a47a00;
}

.operation-amount.amount-success .operation-value {
    color: #32b882;
}

.operation-amount.amount-danger .operation-value {
    color: #ff6f77;
}

.status-inline-group {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    gap: 8px;
}

.status-inline-group:empty {
    display: none;
}

.sync-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5865f2;
    cursor: pointer;
    box-shadow: none;
}

.sync-btn-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    transform-origin: 50% 50%;
    will-change: transform;
}

.sync-btn i {
    display: block;
    font-size: 0.98rem;
    line-height: 1;
}

.sync-btn.is-spinning .sync-btn-icon,
.sync-btn .sync-btn-icon.fi-spin {
    animation: sync-icon-spin 1.75s linear infinite;
}

@keyframes sync-icon-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sync-btn:hover {
    background: transparent;
    color: #4b57e8;
}

.sync-btn-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 168px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #31363f;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 30;
}

.sync-btn-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #31363f;
}

.sync-btn:hover .sync-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.status-badge i {
    font-size: 0.625rem;
    margin-left: 4px;
}

.status-registrada {
    background: #DCE1FF;
    color: #0051E1;
}

.status-esperandofondo {
    background: #FFB404;
    color: #2C363D;
}

.status-fondorecibido {
    background: #005E36;
    color: #FFFFFF;
}

.status-pagosolicitado {
    background: #00297B;
    color: #FFFFFF;
}

.status-revision {
    background: #FFECC0;
    color: #765B00;
}

.status-cobrofallido {
    background: #FEDBDD;
    color: #690005;
}

.status-porpagar {
    background: #CAE6FF;
    color: #002546;
}

.status-enviado {
    background: #00297B;
    color: #FFFFFF;
}

.status-cancelada {
    background: #FEDBDD;
    color: #690005;
}

.status-anulada {
    background: #FE5D67;
    color: #FFF;
}

.status-fondoreembolsado {
    background: #005E36;
    color: #FFF;
}

.status-pagofallido {
    background: #FEDBDD;
    color: #690005;
}

.status-completada {
    background: #B6F2D9;
    color: #005E36;
}

.status-reembolsosolicitado {
    background: #00297B;
    color: #FFFFFF;
}

.status-reembolsofallido {
    background: #FEDBDD;
    color: #690005;
}

.status-cancelada.status-filter-pill {
    background: #FEDBDD;
    color: #690005;
}

@media (max-width: 900px) {
    .remittance-filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .remittance-filters-section .filter-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .remittance-select-wrapper {
        width: 100%;
        min-width: 0;
    }
}

/* Status Dropdown Container */
.status-dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: left;
}

.status-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cell-status {
    text-align: left;
}

.status-trigger i {
    font-size: 0.625rem;
    margin-left: 4px;
}

.status-trigger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.status-dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 10030;
    min-width: 160px;
}

.status-dropdown-menu.show {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.status-option:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.cell-action {
    text-align: center;
}

.btn-action {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pay {
    background: #5E5EF7;
    color: white;
}

.btn-pay:hover {
    background: #4a4ae0;
    transform: translateY(-1px);
}

.btn-retry {
    background: #5E5EF7;
    color: white;
}

.btn-retry:hover {
    background: #4a4ae0;
    transform: translateY(-1px);
}

.btn-retry:disabled {
    background: #5E5EF7;
    cursor: not-allowed;
    transform: none;
}

.retry-label {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
}

.cell-more {
    position: static;
    text-align: left;
}

.btn-more {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #4f63ff;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 0;
}

.btn-more:hover {
    background: transparent;
    color: #4a4ae0;
    transform: translateY(-1px);
}

.btn-more i {
    font-size: 1rem;
    line-height: 1;
}

.more-dropdown {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    display: none;
    z-index: 9999;
}

.more-dropdown.show {
    display: block;
}

/* Actions Modal Styles */
.actions-modal {
    padding: 8px 0;
}

.modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
}

.modal-item:last-child {
    border-bottom: none;
}

.modal-item:hover {
    background: var(--bg);
}

.modal-item i {
    font-size: 1.125rem;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.modal-item.has-copy {
    justify-content: space-between;
    padding-right: 12px;
}

.modal-item .item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-item .item-content i {
    font-size: 1.125rem;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border: none;
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary);
    color: white;
}

.btn-copy i {
    font-size: 0.875rem;
    width: auto;
    color: inherit;
}

/* Copy Tooltip (shown on hover of .has-copy) */
.modal-item.has-copy {
    position: relative;
    cursor: default;
}

.copy-tooltip,
.copied-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -36px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 10001;
}

.copy-tooltip {
    background: #1e293b;
    color: #fff;
}

.copied-tooltip {
    background: #1e293b;
    color: #fff;
    right: 0;
    left: auto;
    transform: none;
}

/* Arrow on tooltip */
.copy-tooltip::before,
.copied-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #1e293b;
}

.copied-tooltip::before {
    left: auto;
    right: 14px;
    transform: none;
}

/* Show tooltip on hover */
.modal-item.has-copy:hover .copy-tooltip {
    opacity: 1;
}

/* Hide hover tooltip when copied is showing */
.modal-item.has-copy.just-copied .copy-tooltip {
    opacity: 0;
}

.modal-item.has-copy.just-copied .copied-tooltip {
    opacity: 1;
}

.modal-item.whatsapp-item i {
    color: #25D366;
    font-size: 1.25rem;
}

/* Status Change Modal */
.status-change-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.status-change-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.status-change-card {
    width: min(690px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    transform: translateY(8px) scale(0.99);
    transition: transform 0.18s ease;
}

.status-change-modal.show .status-change-card {
    transform: translateY(0) scale(1);
}

.status-change-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    border-bottom: 1px solid #d8dee8;
}

.status-change-header h2 {
    margin: 0;
    color: #0d2f76;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.status-change-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #202a38;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.status-change-body {
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-change-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #5a6a7e;
    font-size: 14px;
    line-height: 1.2;
}

.status-change-check input {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid #143678;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.status-change-check input:checked {
    background: #0d2f76;
}

.status-change-check input:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.status-change-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-change-field[hidden] {
    display: none;
}

.status-change-field label {
    color: #0d2f76;
    font-size: 18px;
    font-weight: 700;
}

.status-change-select,
.status-change-message {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid #9aaabd;
    border-radius: 8px;
    background: #fff;
    color: #4b596a;
    font-size: 16px;
    line-height: 1.35;
    padding: 13px 16px;
}

.status-change-select {
    appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, #1f2b3a 50%),
        linear-gradient(135deg, #1f2b3a 50%, transparent 50%);
    background-position:
        calc(100% - 24px) 22px,
        calc(100% - 18px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.status-change-message {
    resize: vertical;
    min-height: 72px;
}

.status-change-select:focus,
.status-change-message:focus {
    outline: none;
    border-color: #143678;
    box-shadow: 0 0 0 3px rgba(20, 54, 120, 0.12);
}

.status-change-error {
    color: #c93645;
    font-size: 14px;
    font-weight: 600;
}

.status-change-actions {
    border-top: 1px solid #e0e5ed;
    padding: 22px 26px;
    display: flex;
    justify-content: flex-end;
    gap: 32px;
}

.status-change-btn {
    min-width: 154px;
    height: 50px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.status-change-btn-outline {
    background: #fff;
    border: 1.5px solid #0f355f;
    color: #12345e;
}

.status-change-btn-primary {
    min-width: 218px;
    border: 1.5px solid #ffcb08;
    background: #ffcb08;
    color: #12345e;
}

.status-change-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 700px) {
    .status-change-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .status-change-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .status-change-header,
    .status-change-body,
    .status-change-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .status-change-actions {
        gap: 12px;
        flex-direction: column-reverse;
    }

    .status-change-btn,
    .status-change-btn-primary {
        width: 100%;
        min-width: 0;
    }
}

/* Notes Modal */
.notes-modal {
    position: fixed;
    inset: 0;
    display: block;
    padding: 0;
    background: rgba(10, 23, 52, 0.26);
    backdrop-filter: blur(4px);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.notes-modal.show {
    visibility: visible;
    opacity: 1;
}

.notes-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(500px, 86vw);
    height: 100vh;
    margin: 0;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(15, 37, 64, 0.18), 0 4px 14px rgba(15, 37, 64, 0.08);
    border-left: 1px solid rgba(168, 181, 203, 0.45);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notes-modal.show .notes-modal-content {
    transform: translateX(0);
}

.notes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #dde5f1;
    flex-shrink: 0;
}

.notes-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #243b8f;
}

.notes-modal-close {
    border: none;
    background: transparent;
    color: #313b49;
    cursor: pointer;
    font-size: 1.05rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.notes-modal-close:hover {
    background: #f2f5fb;
    color: #1d2f6f;
    transform: scale(1.02);
}

.notes-modal-body {
    padding: 20px 22px 10px;
}

.notes-form-section {
    margin: 0 18px 8px;
    border: 1px solid #e2e8f4;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfdff 0%, #f7f9fd 100%);
    box-shadow: 0 12px 30px rgba(15, 37, 64, 0.08);
    padding-bottom: 6px;
    flex-shrink: 0;
}

.notes-modal-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.notes-modal-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 16px 12px 0 18px;
    flex-shrink: 0;
}

.btn-new-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    background: #ffcb08;
    border: 1px solid #ffcb08;
    color: #173169;
    font-weight: 700;
    font-size: 12px;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 203, 8, 0.18);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn-new-note i {
    width: 24px;
    height: 24px;
    border: 1.75px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.btn-new-note:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 203, 8, 0.26);
}

.notes-timeline {
    padding: 28px 30px 34px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    flex: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #dfe4f1 0%, #eef2f9 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.timeline-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, #e3e5ff 0%, #d8ddff 100%);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 1px solid #d6dcf7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot i {
    color: #233977;
    font-size: 16px;
    line-height: 1;
}

.timeline-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding-top: 0;
}

.timeline-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-title {
    font-weight: 700;
    color: #26348f;
    font-size: 16px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.timeline-text {
    color: #2f3947;
    line-height: 1.28;
    font-size: 14px;
    max-width: 1120px;
}

.timeline-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    color: #697a93;
    margin-bottom: 4px;
}

.timeline-row-label {
    color: #697a93;
    font-weight: 400;
}

.timeline-row-value {
    color: #2c3440;
    font-weight: 600;
}

.timeline-row-message .timeline-row-value {
    font-weight: 700;
}

.timeline-row-message {
    align-items: flex-start;
}

.timeline-row-message .timeline-row-label,
.timeline-row-message .timeline-row-value {
    display: inline;
}

.timeline-row-message-text {
    display: inline;
}

.notes-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #243b8f;
}

.notes-textarea {
    width: 100%;
    border: 1px solid #c9d4e6;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    background: #fff;
}

.notes-textarea:focus {
    outline: none;
    border-color: #5c7fd5;
    box-shadow: 0 0 0 4px rgba(92, 127, 213, 0.14);
}

.notes-modal-actions {
    padding: 14px 34px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-outline {
    padding: 11px 22px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid #aebdd8;
    color: #243b8f;
    font-weight: 700;
    cursor: pointer;
}

.btn-outline:hover {
    background: #f4f7fd;
}

.btn-primary {
    padding: 11px 22px;
    border-radius: 12px;
    background: #ffcb08;
    border: 1px solid #ffcb08;
    color: #173169;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.notes-loading,
.notes-empty {
    margin: auto;
    padding: 28px 32px;
    border: 1px dashed #d3dced;
    border-radius: 18px;
    color: #5e6c84;
    font-size: 1rem;
    text-align: center;
    background: #fafcff;
}

@media (max-width: 900px) {
    .notes-modal-content {
        width: min(100%, 100vw);
        height: 100%;
        border-radius: 0;
    }

    .notes-modal-header {
        padding: 24px 24px 22px;
    }

    .notes-modal-toolbar {
        padding: 24px 24px 0;
    }

    .notes-form-section {
        margin: 0 24px 8px;
    }

    .notes-modal-body {
        padding: 22px 22px 10px;
    }

    .notes-modal-actions {
        padding: 12px 22px 22px;
    }

    .notes-timeline {
        padding: 28px 24px 30px;
    }

    .timeline-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 16px;
        padding-bottom: 28px;
    }

    .timeline-item::before {
        left: 28px;
        top: 52px;
    }

    .timeline-dot {
        width: 42px;
        height: 42px;
    }

    .timeline-dot::before {
        inset: 12px;
    }

    .timeline-dot::after {
        left: 20px;
        top: 13px;
        height: 8px;
        box-shadow: -5px 6px 0 0 #233977;
    }

    .btn-new-note {
        width: 100%;
        justify-content: center;
        min-height: 60px;
        padding: 14px 20px;
    }
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}

.pagination-container.compact {
    justify-content: flex-end;
}

.remittance-results-summary {
    margin-top: 10px;
    color: #2f3947;
    font-size: 14px;
    line-height: 1.4;
}

.tc-config-page {
    width: 100%;
    gap: 28px;
    padding-top: 0;
}

.tc-config-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-config-title {
    margin: 0;
    color: #0d2f76;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

.tc-config-route {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0d2f76;
    font-size: 15px;
    font-weight: 500;
}

.tc-config-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(330px, 0.94fr) minmax(430px, 1.24fr);
    gap: 22px;
    align-items: start;
}

.tc-config-card {
    background: #fff;
    border: 1px solid #d6dfeb;
    border-radius: 6px;
    box-shadow: none;
}

.tc-config-flag {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tc-config-arrow {
    color: #0d2f76;
    font-size: 18px;
    line-height: 1;
}

.tc-config-new-card {
    min-height: 210px;
    padding: 22px 20px;
}

.tc-config-settings-card {
    min-height: 448px;
    padding: 22px 20px 26px;
}

.tc-config-service-card {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 22px 20px 24px;
}

.tc-config-history-card {
    grid-column: 3;
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 0;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.tc-config-card-heading {
    margin: 0;
    color: #0d2f76;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.tc-config-card-copy {
    margin: 2px 0 18px;
    color: #202a38;
    font-size: 15px;
    line-height: 1.35;
}

.tc-config-basic-field,
.tc-config-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tc-config-basic-field {
    margin-top: 24px;
}

.tc-config-basic-field > span,
.tc-config-field > span {
    color: #0d2f76;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.tc-config-basic-field input,
.tc-config-field input,
.tc-config-adjust-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #9dafc2;
    border-radius: 8px;
    background: #fff;
    color: #6b7f93;
    font-size: 15px;
    padding: 0 14px;
    box-shadow: none;
}

.tc-config-basic-field input {
    border-color: #1768ff;
}

.tc-config-field input {
    height: 48px;
    padding-top: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #4c5c6e;
}

.tc-config-field > span {
    z-index: 1;
    color: #2f3947;
    font-size: 14px;
}

.tc-config-adjust-input {
    height: 46px;
    color: #000;
    font-weight: 700;
}

#spreadInput {
    color: #000;
}

.tc-config-basic-field input:focus,
.tc-config-field input:focus,
.tc-config-adjust-input:focus {
    outline: none;
    border-color: #1768ff;
    box-shadow: 0 0 0 3px rgba(23, 104, 255, 0.1);
}

.tc-config-card-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 26px;
}

.tc-config-purple-btn {
    min-width: 120px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: #5e5ef7;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.tc-config-purple-btn:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.tc-config-rate-display {
    margin-top: 12px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}

.tc-config-rate-display strong {
    margin-left: 8px;
    color: #000;
    font-size: 15px;
    font-weight: 800;
}

#rateDisplayValue {
    color: #000 !important;
}

.tc-config-adjust-group {
    margin-top: 22px;
}

.tc-config-section-title {
    margin-bottom: 12px;
    color: #0d2f76;
    font-size: 17px;
    font-weight: 700;
}

.tc-config-adjust-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: center;
}

.tc-config-adjust-btn {
    width: 54px;
    height: 46px;
    border: 1.5px solid #0f355f;
    border-radius: 8px;
    background: #fff;
    color: #0f355f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
}

.tc-config-adjust-btn:hover {
    background: #f7faff;
}

.tc-config-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 30px;
}

.tc-config-save-btn {
    min-width: 156px;
}

.tc-config-service-group + .tc-config-service-group {
    margin-top: 20px;
}

.tc-config-service-group:first-of-type {
    margin-top: 24px;
}

.tc-config-service-range {
    color: #1e293b;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
}

.tc-config-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #374151;
    font-size: 15px;
    line-height: 1.45;
}

.tc-config-service-row + .tc-config-service-row {
    margin-top: 8px;
}

.tc-config-service-row strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.tc-config-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.tc-config-refresh-btn {
    min-width: 126px;
    height: 40px;
    border: 1.5px solid #0f355f;
    border-radius: 8px;
    background: #fff;
    color: #12345e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.tc-config-refresh-btn i {
    font-size: 15px;
}

.tc-config-history-table-wrap {
    overflow: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tc-config-history-table-wrap::-webkit-scrollbar {
    display: none;
}

.tc-config-history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tc-config-history-table thead {
    background: #082e78;
}

.tc-config-history-table th {
    height: 48px;
    padding: 0 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}

.tc-config-history-table td {
    height: 45px;
    padding: 0 14px;
    border-bottom: 1px solid #dfe6ef;
    color: #111827;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.tc-config-history-table th:nth-child(1),
.tc-config-history-table td:nth-child(1) {
    width: 38%;
}

.tc-config-history-table th:nth-child(2),
.tc-config-history-table td:nth-child(2) {
    width: 28%;
}

.tc-config-history-table th:nth-child(3),
.tc-config-history-table td:nth-child(3) {
    width: 34%;
}

.tc-config-pagination {
    justify-content: flex-end;
    padding: 14px 0 0;
}

@media (max-width: 1880px) {
    .tc-config-page {
        width: 100%;
    }

    .tc-config-grid {
        grid-template-columns: minmax(280px, 0.82fr) minmax(330px, 0.94fr) minmax(430px, 1.24fr);
        gap: 22px;
    }
}

@media (max-width: 1100px) {
    .tc-config-grid {
        grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr);
    }

    .tc-config-service-card,
    .tc-config-history-card {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 840px) {
    .tc-config-page {
        gap: 32px;
        padding-top: 24px;
    }

    .tc-config-title {
        font-size: 34px;
    }

    .tc-config-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tc-config-new-card,
    .tc-config-settings-card,
    .tc-config-service-card,
    .tc-config-history-card {
        padding: 24px 18px;
    }

    .tc-config-adjust-row {
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        gap: 12px;
    }

    .tc-config-adjust-btn {
        width: 64px;
    }

    .tc-config-history-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tc-config-refresh-btn,
    .tc-config-purple-btn {
        width: 100%;
    }

    .tc-config-history-table-wrap {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tc-config-history-table-wrap::-webkit-scrollbar {
        display: none;
    }

    .tc-config-history-table {
        min-width: 640px;
    }

    .tc-config-pagination {
        justify-content: center;
    }
}

.cell-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn:hover {
    background: var(--primary-light);
}

.icon-btn.text-danger {
    color: var(--danger);
    border-color: #f3b4b4;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 36px;
    color: #8ea0b8;
    font-size: 0.92rem;
    font-weight: 700;
}

/* ========================================
   LEGACY STYLES (for other pages)
   ======================================== */
.shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

main.shell {
    padding: 48px 0;
}

.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 24px 60px rgba(15, 76, 129, 0.08);
}

.hero-copy {
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 640px) {
    .hero {
        padding: 32px 24px;
        border-radius: 18px;
    }

    main.shell {
        padding: 32px 0;
    }
}

/* ===========================
   LOGIN PAGE
   =========================== */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* Panel izquierdo - branding */
.login-brand-panel {
    flex: 0 0 38%;
    background: linear-gradient(180deg, #5f5cf6 0%, #5a58f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-brand-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-brand-image {
    width: min(210px, 46%);
    height: auto;
    object-fit: contain;
    display: block;
}

/* Panel derecho - formulario */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #ffffff;
}

.login-form-content {
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    color: #14213d;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

/* Botón Google */
.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #3c4043;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.login-google-btn:hover {
    background: #f8f9fa;
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-google-btn:active {
    background: #f1f3f4;
}

.login-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Login error message */
.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Login loading overlay */
.login-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #14213d;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

/* Google button disabled state */
.login-google-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botón Microsoft */
.login-microsoft-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #8c8c8c;
    border-radius: 8px;
    background: #fff;
    color: #5e5e5e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.login-microsoft-btn:hover {
    background: #f5f5f5;
    border-color: #6b6b6b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-microsoft-btn:active {
    background: #ececec;
}

.login-microsoft-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.login-microsoft-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Subtitulo del formulario de registro */
.login-subtitle {
    font-size: 14px;
    color: #475569;
    margin: -16px 0 24px 0;
    line-height: 1.5;
}

/* Formulario de registro (ExternalLoginConfirmation) */
.login-register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #14213d;
}

.login-field-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #14213d;
    box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.12);
}

.login-input-readonly {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.login-field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 2px;
}

.login-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
}

.login-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #14213d;
}

.login-checkbox-row label {
    cursor: pointer;
    margin: 0;
}

.login-register-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.login-primary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #14213d;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-primary-btn:hover {
    background: #1e2f56;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.login-cancel-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.login-cancel-link:hover {
    color: #14213d;
    text-decoration: underline;
}

/* Responsive login */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-brand-panel {
        flex: none;
        min-height: 200px;
        padding: 40px 32px;
        align-items: center;
        justify-content: center;
    }

    .login-brand-image {
        width: min(180px, 56%);
    }

    .login-form-panel {
        padding: 40px 24px;
    }

    .login-title {
        font-size: 26px;
    }
}

/* ============================================================
   Accounts Drawer
   ============================================================ */

/* Overlay */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.45);
    z-index: 1040;
    backdrop-filter: blur(1px);
}

.drawer-overlay.active {
    display: block;
}

/* Panel */
.drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 760px;
    max-width: 94vw;
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 32px rgba(10, 37, 64, 0.14);
    z-index: 1050;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid #dbe5f1;
}

.drawer.active {
    display: flex;
}

#accountsDrawer {
    width: 980px;
    max-width: 96vw;
}

#accountsDrawer .data-table th {
    padding: 11px 8px;
}

#accountsDrawer .data-table td {
    padding: 11px 8px;
}

/* Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 18px;
    border-bottom: 2px solid #dbe5f1;
    flex-shrink: 0;
    background: #fff;
}

.drawer-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.drawer-title > span:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a2540;
    letter-spacing: -0.01em;
}

.drawer-subtitle {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.15s;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Filters bar */
.drawer-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: #fff;
}

.drawer-filters .search-box {
    flex: 1;
    max-width: 240px;
}

.drawer-filters .search-input {
    width: 100%;
}

/* Table area */
.drawer .table-container {
    padding: 10px 8px 10px 16px;
    margin: 12px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.drawer .table-scroll-wrapper {
    min-width: 100%;
    overflow-x: auto;
    border: 0;
    background: transparent;
}

/* Table styles */
.drawer .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.drawer .data-table thead {
    background: #11388d;
    position: sticky;
    top: 0;
    z-index: 2;
}

.drawer .data-table th {
    padding: 13px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    letter-spacing: 0;
    border: none;
    text-transform: none;
}

.drawer .data-table td {
    padding: 13px 10px;
    color: #415064;
    background: #fff;
    border-bottom: 0;
    vertical-align: middle;
}

.drawer .data-table tbody tr:hover td {
    background: #fbfcff;
}

/* Column widths for accounts drawer */
.drawer .data-table th:nth-child(1),
.drawer .data-table td:nth-child(1) {
    width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: copy;
}
.drawer .data-table th:nth-child(2),
.drawer .data-table td:nth-child(2) { width: 190px; }  /* Nombre */
.drawer .data-table th:nth-child(3),
.drawer .data-table td:nth-child(3) { width: 140px; }  /* Banco */
.drawer .data-table th:nth-child(4),
.drawer .data-table td:nth-child(4) { width: 250px; }  /* Tipo y número */
.drawer .data-table th:nth-child(5),
.drawer .data-table td:nth-child(5) { width: 180px; }  /* Fecha */
.drawer .data-table th:nth-child(6),
.drawer .data-table td:nth-child(6) { width: 110px; }  /* Acción */

.drawer .table-feedback-cell {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

#accountsDrawer td.cell-actions {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

#accountsDrawer .cell-actions .icon-btn {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#accountsDrawer .cell-actions .icon-btn:hover {
    background: transparent;
    transform: translateY(-1px);
}

#accountsDrawer .cell-actions .icon-btn + .icon-btn {
    margin-left: 14px;
}

#accountsDrawer .cell-actions .btn-edit-account {
    color: #4f61f6;
}

#accountsDrawer .cell-actions .btn-delete-account {
    color: #ef6b72;
}

#accountsDrawer .cell-actions .icon-btn i {
    font-size: 1.2rem;
}

/* Pagination */
.drawer .pagination-container {
    display: flex;
    justify-content: flex-end;
    padding: 14px 24px 22px;
    margin-top: 6px;
    flex-shrink: 0;
    border-top: 0;
    background: #fff;
}

/* Pagination inside drawer */
#accountsDrawerPagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

#accountsDrawerPagination .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d9e1ef;
    background: #fff;
    color: #78879d;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(15, 37, 64, 0.04);
}

#accountsDrawerPagination .pagination-btn.active {
    background: #173a88;
    border-color: #173a88;
    color: #fff;
    box-shadow: none;
}

#accountsDrawerPagination .pagination-btn:hover:not(:disabled) {
    border-color: #9fb1d3;
    color: #173a88;
}

#accountsDrawerPagination .pagination-btn:disabled {
    color: #b8c1d3;
    background: #fff;
    border-color: #d9e1ef;
    cursor: default;
}

#accountsDrawerPagination .pagination-btn i {
    font-size: 0.82rem;
}

#accountsDrawerPagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 35px;
    color: #9aa8bc;
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .drawer {
        width: 100vw;
        max-width: 100vw;
        border-left: none;
    }
}

/* Recipient Edit Drawer */
.recipient-edit-drawer {
    width: 910px;
    max-width: 96vw;
    padding-bottom: 0;
    background: #fff;
    box-shadow: -10px 0 38px rgba(10, 37, 64, 0.16);
}

.recipient-edit-header {
    padding: 18px 28px 17px;
    border-bottom: 1px solid #dbe5f1;
}

.recipient-edit-header .drawer-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4d5f76;
    font-size: 1.1rem;
}

.recipient-edit-header .drawer-close:hover {
    background: transparent;
    border-color: transparent;
    color: #173a88;
}

.recipient-edit-header .drawer-title > span:first-child {
    font-size: 1.05rem;
    font-weight: 700;
    color: #173a88;
    letter-spacing: -0.01em;
}

.recipient-edit-body {
    padding: 20px 28px 14px;
}

.recipient-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.recipient-edit-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin-top: 16px;
}

.recipient-edit-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recipient-edit-field > span {
    position: absolute;
    top: 11px;
    left: 16px;
    z-index: 1;
    font-size: 14px;
    font-weight: 500;
    color: #173a88;
    line-height: 1.1;
    pointer-events: none;
}

.recipient-edit-field-full {
    grid-column: 1 / -1;
}

.recipient-edit-checkbox-field {
    min-height: 60px;
    padding: 0 18px;
    border: 1.5px solid #9cb2cb;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipient-edit-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #315ec5;
    cursor: pointer;
}

.recipient-edit-checkbox-field > span {
    position: static;
    font-size: 0.96rem;
    font-weight: 500;
    color: #4c5d72;
    pointer-events: auto;
}

.recipient-edit-input {
    min-height: 60px;
    padding: 30px 16px 10px;
    width: 100%;
    border: 1.5px solid #9cb2cb;
    border-radius: 10px;
    background: #fff;
    color: #4c5d72;
    font-size: 0.96rem;
    line-height: 1.25;
    display: flex;
    align-items: center;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.recipient-edit-input:focus {
    outline: none;
    border-color: #315ec5;
    box-shadow: 0 0 0 3px rgba(49, 94, 197, 0.11);
}

.recipient-edit-input::placeholder {
    color: #7a889a;
}

.recipient-edit-input i {
    color: #425a78;
    font-size: 1rem;
}

.recipient-edit-input[type="text"],
.recipient-edit-input[type="number"] {
    appearance: none;
}

select.recipient-edit-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%233b4e67' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 42px;
}

.recipient-edit-bank-select-wrap {
    position: relative;
    width: 100%;
}

.recipient-edit-bank-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-46%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.recipient-edit-bank-icon-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.recipient-edit-bank-icon-fallback {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef4ff;
    color: #173a88;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}

select.recipient-edit-input-bank {
    padding-left: 59px;
    text-align: left;
    line-height: 1.15;
}
.recipient-edit-bank-field > span {
    left: 59px;
    top: 11px;
}

.recipient-edit-bank-field-wide {
    width: 100%;
    margin-right: 0;
}

.recipient-edit-bank-field-wide .recipient-edit-bank-select-wrap {
    width: 100%;
}

.recipient-edit-bank-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipient-edit-bank-value .bank-badge {
    gap: 10px;
}

.recipient-edit-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.recipient-edit-meta-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recipient-edit-meta-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #173a88;
}

.recipient-edit-meta-value {
    font-size: 0.95rem;
    color: #4c5d72;
}

.recipient-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding: 22px 28px 26px;
    margin-top: auto;
}

.recipient-edit-actions .btn-outline,
.recipient-edit-actions .btn-primary {
    min-width: 154px;
    height: 52px;
    border-radius: 12px;
    font-size: 0.96rem;
    font-weight: 700;
}

.recipient-edit-actions .btn-primary {
    min-width: 196px;
    color: #173169;
}

.recipient-edit-actions .btn-outline {
    border-color: #173a88;
    color: #173a88;
    background: #fff;
}

.recipient-edit-actions .btn-outline:hover {
    background: #f5f8ff;
}

@media (max-width: 960px) {
    .recipient-edit-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .recipient-edit-body,
    .recipient-edit-actions,
    .recipient-edit-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .recipient-edit-grid,
    .recipient-edit-extra-grid,
    .recipient-edit-meta {
        grid-template-columns: 1fr;
    }

    .recipient-edit-actions {
        flex-direction: column;
    }

    .recipient-edit-actions .btn-outline,
    .recipient-edit-actions .btn-primary {
        width: 100%;
    }
}
