﻿/* ============================================================
   ATM WORX KYC
   ============================================================ */

* {
    box-sizing: border-box;
}

.atm-layout {
    min-height: 100vh;
    background: #f5f6f7;
    color: #172b3a;
    font-family: Arial, Helvetica, sans-serif;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.atm-sidebar {
    width: 285px;
    background: #ffffff;
    border-right: 1px solid #e1e5e8;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 20;
}

.atm-logo {
    height: 68px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #e4e7e9;
}

    .atm-logo img {
        width: 235px;
        max-height: 55px;
        object-fit: contain;
    }


/* Collapse button */

.sidebar-collapse {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
}

.collapse-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-color: #00a36c !important;
    color: #008f63 !important;
}

.collapse-icon {
    font-size: 23px;
    font-weight: bold;
}


/* Navigation */

.atm-navigation {
    margin-top: 5px;
}

.nav-item {
    height: 43px;
    margin: 2px 4px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #46515a;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
}

    .nav-item:hover {
        background: #f0f7f4;
    }

    .nav-item.active {
        background: #dff2e9;
        color: #008f63;
        font-weight: 600;
        border-left: 4px solid #00a36c;
    }

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.nav-arrow {
    margin-left: auto;
    font-size: 18px;
}

.nav-divider {
    height: 1px;
    background: #dddddd;
    margin: 3px 8px;
}


.sidebar-footer {
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid #e5e5e5;
    color: #66727c;
    font-size: 11px;
}


/* ============================================================
   MAIN
   ============================================================ */

.atm-main {
    margin-left: 285px;
    width: calc(100% - 285px);
    min-height: 100vh;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.atm-topbar {
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid #e1e5e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #44515b;
}

.user-icon {
    color: #53636e;
}

.language-divider {
    width: 1px;
    height: 25px;
    background: #e3e3e3;
    margin: 0 14px;
}


/* ============================================================
   CONTENT
   ============================================================ */

.atm-content {
    padding: 18px 24px 28px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #52616d;
    font-size: 13px;
    margin-bottom: 10px;
}

.breadcrumb-home {
    color: #008f63;
}

.page-heading h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 500;
    color: #152b3a;
}

.page-heading p {
    margin: 5px 0 18px;
    color: #61717e;
    font-size: 14px;
}


/* ============================================================
   STEPPER
   ============================================================ */

.kyc-stepper {
    background: #ffffff;
    border: 1px solid #dce3e6;
    padding: 18px 20px 14px;
    width: 100%;
    border-radius: 4px;
}

.kyc-step {
    flex: 1;
    position: relative;
    min-width: 0;
}

.step-line-wrapper {
    display: flex;
    align-items: center;
    height: 31px;
}

.step-circle {
    width: 29px;
    height: 29px;
    min-width: 29px;
    border-radius: 50%;
    background: #e3e8eb;
    color: green;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    z-index: 2;
}

.step-circle.completed {
    background: #00a36c;
    color: #ffffff;
}

.step-circle.active {
    background: #008f63;
    color: #ffffff;
    box-shadow: 0 0 0 4px #dff2e9;
}
.stepper-desc{
    font-size:x-small;
    font-style:italic;
}

.step-line {
    height: 2px;
    background: #dce2e5;
    flex: 1;
    margin-left: 7px;
    margin-right: 0;
}

.kyc-step.completed .step-line,
.kyc-step.active .step-line {
    background: #00a36c;
}

.kyc-step.last .step-line {
    display: none;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 7px;
    color: #31404b;
}

.kyc-step.active .step-title {
    color: #008f63;
}

.step-description {
    color: #74838e;
    font-size: 10px;
    margin-top: 5px;
}


/* ============================================================
   BODY
   ============================================================ */

.kyc-body {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr);
    gap: 16px;
    align-items: start;
}

.kyc-left-column,
.kyc-right-column {
    min-width: 0;
}


/* ============================================================
   CARD
   ============================================================ */

.kyc-card {
    background: #ffffff;
    border: 1px solid #dce3e6;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.card-header {
    min-height: 42px;
    padding: 0 17px;
    background: linear-gradient( to right, #f9fbfb, #ffffff );
    border-bottom: 1px solid #e0e5e7;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #007f61;
    font-weight: 600;
    font-size: 15px;
}

.card-header-icon {
    color: #008f63;
    font-size: 18px;
}

.card-body {
    padding: 17px 18px;
}


/* ============================================================
   FORM
   ============================================================ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 13px;
}

.form-field {
    min-width: 0;
}

    .form-field label {
        display: block;
        font-size: 13px;
        color: #394b58;
        margin-bottom: 6px;
    }

.required {
    color: #e03e4d;
    font-weight: bold;
}


/* Telerik controls */

.form-field .k-input,
.form-field .k-picker,
.form-field .k-dropdownlist {
    width: 100%;
}

.form-field .k-input-inner {
    font-size: 13px;
}

.k-input,
.k-picker,
.k-dropdownlist {
    border-color: #cbdbe2 !important;
}

    .k-input:focus-within,
    .k-picker:focus-within,
    .k-dropdownlist:focus-within {
        border-color: #00a36c !important;
        box-shadow: 0 0 0 2px rgba(0, 163, 108, 0.12) !important;
    }


/* ============================================================
   UPLOAD
   ============================================================ */

.upload-container {
    min-height: 78px;
    margin-top: 17px;
    border: 1px dashed #a9d9ca;
    background: #fbfefd;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 14px;
    border-radius: 3px;
}

.upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f6f0;
    color: #00a36c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

.upload-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

    .upload-content strong {
        color: #27414e;
        font-size: 13px;
    }

    .upload-content span {
        color: #5f707b;
        font-size: 12px;
    }

    .upload-content small {
        color: #7d8c95;
        font-size: 11px;
    }

.choose-file-button {
    border-color: #00a36c !important;
    color: #008f63 !important;
    min-width: 115px;
}


/* ============================================================
   SECURITY MESSAGE
   ============================================================ */

.security-message {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 9px 12px;
    background: #eaf8f3;
    color: #14765c;
    font-size: 11px;
    border-radius: 3px;
}

.security-icon {
    font-size: 17px;
}


/* ============================================================
   VERIFICATION SUMMARY
   ============================================================ */

.summary-card {
    margin-bottom: 14px;
}

.summary-body {
    padding: 4px 17px;
}

.summary-item {
    display: flex;
    align-items: center;
    min-height: 73px;
    border-bottom: 1px solid #edf0f1;
    gap: 12px;
}

    .summary-item:last-child {
        border-bottom: none;
    }

.summary-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #e8ecee;
    color: #56646d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.summary-item.completed .summary-number {
    background: #dff2e9;
    color: #008f63;
}

.summary-item.active .summary-number {
    background: #dff2e9;
    color: #008f63;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

    .summary-content strong {
        font-size: 13px;
        color: #344652;
    }

.summary-item.active .summary-content strong {
    color: #007f61;
}

.summary-content span {
    font-size: 12px;
    color: #76858f;
}

.summary-check {
    color: #008f63;
    font-size: 20px;
    font-weight: bold;
}

.summary-active {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #00a36c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}


/* ============================================================
   HELP CARD
   ============================================================ */

.help-card {
    background: #ffffff;
    border: 1px solid #dce3e6;
    border-radius: 4px;
    padding: 15px 17px;
}

.help-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #007f61;
    font-size: 14px;
}

.help-icon {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #008f63;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.help-card p {
    margin: 10px 0 12px 37px;
    font-size: 12px;
    color: #61717c;
}

.support-button {
    margin-left: 37px;
    color: #008f63 !important;
    border-color: #00a36c !important;
}


/* ============================================================
   ACTION BUTTONS
   ============================================================ */

.kyc-actions {
    background: #ffffff;
    border: 1px solid #dce3e6;
    border-radius: 4px;
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    color: #008f63 !important;
    border-color: #00a36c !important;
    min-width: 108px;
}

.next-button {
    background: #009d6a !important;
    border-color: #009d6a !important;
    color: #ffffff !important;
    min-width: 100px;
}

    .next-button:hover {
        background: #00895d !important;
        border-color: #00895d !important;
    }

.signzy-iframe {
    display: block;
    width: 100%;
    height: calc(100vh - 285px);
    min-height: 650px;
    border: 0;
    background: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .atm-sidebar {
        width: 230px;
    }

    .atm-main {
        margin-left: 230px;
        width: calc(100% - 230px);
    }

    .atm-logo img {
        width: 190px;
    }

    .kyc-body {
        grid-template-columns: 1fr;
    }

    .kyc-right-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .summary-card,
    .help-card {
        margin-bottom: 0;
    }
}


@media (max-width: 800px) {

    .atm-sidebar {
        display: none;
    }

    .atm-main {
        margin-left: 0;
        width: 100%;
    }

    .atm-content {
        padding: 12px;
    }

    .kyc-stepper {
        overflow-x: auto;
        min-width: 700px;
    }

    .kyc-body {
        grid-template-columns: 1fr;
    }

    .kyc-right-column {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .upload-container {
        flex-wrap: wrap;
    }

    .upload-content {
        min-width: 200px;
    }

    .atm-topbar {
        padding: 0 15px;
    }

    .topbar-user {
        font-size: 11px;
    }
}

/*--------------------------------------------------*/
/*-----------------KYC + AML Styles-----------------*/
/*--------------------------------------------------*/
.kyc-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.kyc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .kyc-header h2 {
        margin: 0;
        font-size: 26px;
        font-weight: 700;
    }

.application-number {
    display: block;
    margin-top: 5px;
    color: #71808a;
    font-size: 13px;
}

.workflow-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.workflow-step {
    flex: 1;
    position: relative;
    text-align: center;
}

    .workflow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 17px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: #e3e8eb;
        z-index: 0;
    }

.step-circle {
    position: relative;
    z-index: 1;
    margin: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8ecee;
    color: #697780;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.workflow-step.active .step-circle {
    background: #173f4f;
    color: white;
}

.step-title {
    margin-top: 8px;
    font-size: 12px;
    color: #687780;
}

.kyc-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e5e9eb;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

    .step-header h3 {
        margin: 0;
        font-size: 20px;
    }

    .step-header p {
        margin-top: 6px;
        color: #71808a;
    }

.step-status {
    padding: 5px 12px;
    border-radius: 20px;
    background: #eef3f4;
    color: #56646d;
    font-size: 12px;
}

.aml-card {
    border: 1px solid #e4e9eb;
    border-radius: 12px;
    padding: 25px;
}

.aml-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .aml-header h3 {
        margin: 0;
    }

    .aml-header p {
        color: #74818a;
    }

.risk-badge {
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
}

.risk-low {
    background: #e8f6ef;
    color: #1d7b4c;
}

.risk-medium {
    background: #fff4d6;
    color: #956d00;
}

.risk-high {
    background: #ffe8d9;
    color: #a94e1c;
}

.risk-critical {
    background: #ffe0e0;
    color: #a51f1f;
}

.aml-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.aml-check-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e8ecee;
    border-radius: 9px;
}

.aml-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

    .aml-check-icon.passed {
        background: #e8f6ef;
        color: #1d7b4c;
    }

    .aml-check-icon.warning {
        background: #fff0dd;
        color: #b45d00;
    }

    .aml-check-icon.pending {
        background: #edf1f3;
        color: #687780;
    }

.aml-check-content {
    display: flex;
    flex-direction: column;
}

    .aml-check-content span {
        margin-top: 3px;
        color: #74818a;
        font-size: 12px;
    }

.aml-results {
    margin-top: 30px;
}

.aml-warning {
    margin-top: 25px;
    padding: 18px;
    border-radius: 8px;
    background: #fff7e5;
    border: 1px solid #f0d38a;
}

    .aml-warning p {
        margin: 5px 0 15px;
        color: #6d5a2b;
    }

.kyc-footer {
    display: flex;
    margin-top: 20px;
}

.footer-spacer {
    flex: 1;
}

@media(max-width: 768px) {

    .workflow-progress {
        overflow-x: auto;
    }

    .workflow-step {
        min-width: 120px;
    }

    .aml-checks {
        grid-template-columns: 1fr;
    }

    .aml-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/*-----------------------SOF, Certification-------------------------*/
.sof-question {
    padding: 20px;
    border: 1px solid #e4e9eb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}

.account-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e8ecee;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

.information-panel {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    border-radius: 9px;
    background: #f3f6f7;
    margin-bottom: 20px;
}

.success-panel {
    background: #edf8f2;
    border: 1px solid #cce9d8;
}

.panel-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcecef;
    font-weight: 700;
}

.success-panel .panel-icon {
    background: #d6f0e1;
    color: #197548;
}

.information-panel p {
    margin: 4px 0 0;
    color: #687780;
    font-size: 13px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.form-field {
    flex: 1;
}

.full-width {
    width: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.verification-section {
    margin-top: 30px;
}

.verification-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e4e9eb;
    border-radius: 9px;
}

    .verification-option > div {
        flex: 1;
    }

.option-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf8f2;
    color: #197548;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-option small {
    display: block;
    color: #71808a;
    margin-top: 3px;
}

.certification-notice {
    padding: 16px;
    border-radius: 8px;
    background: #f3f6f7;
    margin-bottom: 25px;
}

    .certification-notice p {
        margin: 5px 0 0;
        color: #687780;
        font-size: 13px;
    }

.certification-section {
    margin-bottom: 30px;
}

.certification-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 5px;
    border-bottom: 1px solid #edf0f1;
}

    .certification-question small {
        display: block;
        margin-top: 4px;
        color: #7a878e;
    }

.attestation-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 18px;
    border: 1px solid #dce3e6;
    border-radius: 9px;
}

.review-section {
    margin-bottom: 28px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e7ebed;
}

.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .review-section-header h4 {
        margin: 0;
        font-size: 16px;
    }

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 25px;
}

.review-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #7b878e;
}

.review-value {
    font-size: 14px;
    color: #26343b;
    font-weight: 500;
}

.aml-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.review-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e7ebed;
    border-radius: 8px;
}

.review-check-icon {
    width: 27px;
    height: 27px;
    min-width: 27px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

    .review-check-icon.passed {
        background: #e5f5ec;
        color: #197548;
    }

    .review-check-icon.failed {
        background: #fff0e0;
        color: #a75c13;
    }

.review-warning {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #fff7e5;
    border: 1px solid #efd28a;
}

    .review-warning p {
        margin: 5px 0 0;
        color: #6f5d2e;
        font-size: 13px;
    }

.review-check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.final-attestation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border: 1px solid #d8e1e4;
    border-radius: 10px;
    background: #f7f9fa;
}

    .final-attestation p {
        margin: 5px 0 0;
        color: #697780;
        font-size: 13px;
    }

.attestation-warning {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 7px;
    background: #fff0e0;
    color: #8a521a;
    font-size: 13px;
}

@media(max-width: 768px) {

    .review-grid,
    .aml-review-grid,
    .review-check-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .verification-option {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}