/* Amanah Web3 Supplier application-specific additions. */
.ams_profile_logo_img,
.ams_profile_logo_svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ams_profile_logo_img {
    object-fit: cover;
}

[hidden] {
    display: none !important;
}

.ams_chat_list_page {
    padding: 0;
    background: #fff;
}

.ams_chat_search_line {
    margin: 0;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #edf1ec;
}

.ams_chat_list {
    padding: 6px 12px 18px;
}

.ams_chat_list_item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 72px;
    margin: 4px 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e4ece3;
    border-radius: 8px;
}

.ams_chat_list_item:hover {
    background: #f7faf5;
}

.ams_chat_list_body {
    flex: 1;
    min-width: 0;
}

.ams_chat_list_header,
.ams_chat_list_subject,
.ams_chat_list_preview {
    min-width: 0;
}

.ams_chat_list_name,
.ams_chat_list_subject,
.ams_chat_list_preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ams_chat_list_subject {
    margin-top: 2px;
    color: #627065;
    font-size: 12px;
    font-weight: 700;
}

.ams_chat_list_preview {
    margin-top: 3px;
    color: #445048;
    font-size: 13px;
}

.ams_chat_list_time {
    flex: 0 0 auto;
    color: #7a877c;
    font-size: 11px;
    font-weight: 800;
}

.ams_chat_search_btn .p1_icon {
    width: 18px;
    height: 18px;
    display: block;
}

.ams_sup_chat_entry_btns {
    display: contents;
}

.ams_sup_voice_btn,
.ams_sup_send_btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0;
}

.ams_sup_voice_btn {
    border: 0;
    border-radius: 8px;
    background: #f7faf5;
    color: #12372a;
}

.ams_sup_voice_btn svg,
.ams_sup_send_btn svg,
.ams_sup_ai_btn svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ams_sup_send_btn {
    color: #fff;
}

.ams_profile_preview {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d8dfd4;
    border-radius: 8px;
    background: #f7faf5;
    color: #0f5b3f;
    cursor: pointer;
}

.ams_profile_preview img,
.ams_profile_preview svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ams_profile_save_btn .amanah_menu_icon {
    width: 18px;
    height: 18px;
}

.ams_credit_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ams_credit_grid div {
    border: 1px solid #e1e9dc;
    border-radius: 8px;
    background: #f8fbf7;
    padding: 10px;
}

.ams_credit_grid span,
.ams_credit_grid b {
    display: block;
}

.ams_credit_grid span {
    color: #7a877c;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ams_credit_grid b {
    color: #12372a;
    font-size: 14px;
    margin-top: 3px;
}

.ams_recharge_btn {
    margin-top: 10px;
}

.ams_message_inbox_page {
    padding: 0;
    background: #fff;
}

.ams_message_inbox_list {
    padding: 6px 12px 18px;
}

.ams_message_inbox_item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 78px;
    margin: 4px 0;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #e4ece3;
    border-radius: 8px;
    cursor: pointer;
}

.ams_message_inbox_item.ams_message_unread {
    background: #f0fbf4;
    border-color: #c6e8d1;
}

.ams_message_inbox_body {
    flex: 1;
    min-width: 0;
}

.ams_message_inbox_head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ams_message_inbox_head b,
.ams_message_inbox_subject,
.ams_message_inbox_preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ams_message_inbox_head b {
    color: #12372a;
    font-size: 14px;
}

.ams_message_inbox_head span {
    flex: 0 0 auto;
    color: #7a877c;
    font-size: 11px;
    font-weight: 800;
}

.ams_message_inbox_subject {
    margin-top: 3px;
    color: #627065;
    font-size: 12px;
    font-weight: 800;
}

.ams_message_inbox_preview {
    margin-top: 4px;
    color: #445048;
    font-size: 13px;
}

.ams_message_meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.ams_message_meta div {
    border: 1px solid #e1e9dc;
    border-radius: 8px;
    background: #f8fbf7;
    padding: 10px;
}

.ams_message_meta span,
.ams_message_meta b {
    display: block;
}

.ams_message_meta span {
    color: #7a877c;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ams_message_meta b {
    color: #12372a;
    font-size: 13px;
    margin-top: 3px;
}

.ams_message_body {
    color: #12372a;
    font-size: 14px;
    line-height: 1.55;
    background: #fff;
    border: 1px solid #e1e9dc;
    border-radius: 8px;
    padding: 12px;
}

.ams_message_search_btn .p1_icon {
    width: 18px;
    height: 18px;
    display: block;
}

.ams_home_profile_btn {
    position: relative;
}

.ams_home_profile_img,
.ams_home_profile_svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ams_desktop_shell {
    display: none;
}

@media (min-width: 980px) {
    .ams_body.ams_has_nav .tt_body {
        top: 0;
    }

    .ams_has_nav .amanah_nav {
        display: none;
    }

    body.ams_has_nav #tthomein {
        padding-top: 0;
    }

    body.ams_has_nav #tthomein .ams_mobile_dashboard {
        display: none;
    }

    body.ams_has_nav #tthomein .ams_desktop_shell {
        display: block;
        width: 100%;
        height: 100%;
        background: #f6f7f9;
        color: #1e2329;
        overflow: hidden;
        font-family: Arial, Helvetica, sans-serif;
    }

    .ams_desktop_left_panel,
    .ams_desktop_stage_panel,
    .ams_desktop_right_panel {
        height: 100%;
        min-width: 0;
        float: left;
    }

    .ams_desktop_left_panel {
        width: 20%;
    }

    .ams_desktop_stage_panel {
        width: 60%;
    }

    .ams_desktop_right_panel {
        width: 20%;
    }

    .ams_desktop_left_panel,
    .ams_desktop_right_panel {
        background: #fff;
    }

    .ams_desktop_left_panel {
        border-right: 1px solid #d9dee7;
    }

    .ams_desktop_right_panel {
        border-left: 1px solid #d9dee7;
        position: relative;
    }

    .ams_desktop_identity {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 50px;
        min-height: 50px;
        padding: 10px;
        border-bottom: 1px solid #d9dee7;
        overflow: hidden;
    }

    .ams_desktop_avatar {
        position: relative;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border: 1px solid #d8dfd4;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
    }

    .pms_student_identity {
        min-width: 0;
    }

    .pms_student_name {
        color: #12372a;
        font-size: 15px;
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pms_student_description {
        color: #66736b;
        font-size: 12px;
        font-weight: 700;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ams_desktop_nav {
        height: calc(100% - 94px);
        overflow-y: auto;
        padding: 8px;
    }

    .ams_desktop_nav_item,
    .ams_desktop_action,
    .ams_desktop_alert,
    .ams_desktop_right_footer button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        border: 0;
        background: transparent;
        color: #12372a;
        cursor: pointer;
        text-align: left;
    }

    .ams_desktop_nav_item {
        min-height: 52px;
        padding: 8px;
        border-radius: 8px;
    }

    .ams_desktop_nav_item:hover,
    .ams_desktop_action:hover,
    .ams_desktop_alert:hover {
        background: #eef5f2;
    }

    .ams_desktop_nav_item .amanah_menu_icon,
    .ams_desktop_action .amanah_menu_icon,
    .ams_desktop_right_footer .amanah_menu_icon {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
    }

    .ams_desktop_nav_item span,
    .ams_desktop_action span,
    .ams_desktop_alert span {
        min-width: 0;
    }

    .ams_desktop_nav_item b,
    .ams_desktop_action b,
    .ams_desktop_alert b {
        display: block;
        font-size: 13px;
        font-weight: 900;
    }

    .ams_desktop_nav_item small,
    .ams_desktop_action small,
    .ams_desktop_alert small,
    .ams_desktop_credit_card small {
        display: block;
        color: #6f7b73;
        font-size: 11px;
        margin-top: 2px;
    }

    .ams_desktop_footer {
        height: 44px;
        padding: 12px 10px;
        border-top: 1px solid #d9dee7;
        color: #6f7b73;
        font-size: 12px;
        font-weight: 800;
    }

    .ams_desktop_stage_panel {
        background: #fff;
        overflow: hidden;
    }

    .ams_desktop_stage_body {
        height: 100%;
        overflow-y: auto;
        padding: 18px;
        background: #fff;
    }

    .ams_desktop_stage_head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .ams_desktop_stage_head span {
        color: #12372a;
        font-size: 20px;
        font-weight: 900;
    }

    .ams_desktop_stage_head b {
        color: #0f5b3f;
        font-size: 13px;
    }

    .ams_desktop_metric_grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .ams_desktop_metric,
    .ams_desktop_credit_card {
        border: 1px solid #e1e9dc;
        border-radius: 8px;
        background: #f8fbf7;
        padding: 12px;
    }

    .ams_desktop_metric span,
    .ams_desktop_credit_card span {
        display: block;
        color: #7a877c;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .ams_desktop_metric b,
    .ams_desktop_credit_card b {
        display: block;
        color: #12372a;
        font-size: 24px;
        font-weight: 900;
        margin-top: 4px;
    }

    .ams_desktop_metric small {
        display: block;
        color: #6f7b73;
        font-size: 11px;
        margin-top: 3px;
    }

    .ams_desktop_action_grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .ams_desktop_action {
        min-height: 84px;
        padding: 12px;
        border: 1px solid #e1e9dc;
        border-radius: 8px;
        background: #fff;
    }

    .ams_desktop_action i {
        margin-left: auto;
        color: #809086;
        font-style: normal;
        font-size: 24px;
    }

    .ams_desktop_right_header {
        height: 48px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border-bottom: 1px solid #d9dee7;
        color: #12372a;
    }

    .ams_desktop_right_body {
        height: calc(100% - 102px);
        overflow-y: auto;
        padding: 10px;
    }

    .ams_desktop_alert {
        min-height: 66px;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #e5ebe2;
    }

    .ams_desktop_alert em {
        flex: 0 0 auto;
        min-width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #eef5f2;
        color: #0f5b3f;
        font-style: normal;
        font-weight: 900;
    }

    .ams_desktop_credit_card {
        margin-top: 10px;
    }

    .ams_desktop_right_footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 54px;
        border-top: 1px solid #d9dee7;
        background: #fff;
    }

    .ams_desktop_right_footer button {
        height: 54px;
        padding: 0 12px;
        font-weight: 900;
    }

    #stage_hc {
        background: #eef2f6 !important;
        border-bottom: 1px solid #b9c3cf;
    }

    .pms_stage_panel,
    #ttstage,
    #stage_bc,
    .pms_chat_tab {
        background: #ffffff !important;
    }

    #tab_c .k_tab0 {
        background: #ffffff !important;
        border: 1px solid #b9c3cf;
        border-bottom: 0;
        color: #1e2329;
        font-weight: 700;
        position: relative;
        z-index: 2;
    }

    #tab_c .k_tab1 {
        background: #e6edf3 !important;
        border: 1px solid #cbd4de;
        border-bottom: 1px solid #cbd4de;
        color: #1e2329;
    }

    #tab_c .k_tab0::after {
        background: #ffffff;
        bottom: -1px;
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        right: 0;
    }

    #tab_c .k_tab0 svg,
    #tab_c .k_tab1 svg {
        stroke: #1e2329;
    }

    #tab_c .k_tab0 > div:first-child,
    #tab_c .k_tab1 > div:first-child {
        color: #1e2329;
    }

    #stage_bc {
        height: calc(100% - 3vw) !important;
        overflow: hidden;
    }

    #stage_bc > .tt_page,
    #stage_bc .ams_stage_tab_body > .tt_page {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        height: 100% !important;
        width: 100% !important;
        overflow-y: auto;
    }

    .ams_stage_tab_body {
        overflow: hidden;
    }

    .ams_stage_tab_title,
    .ams_stage_tab_close,
    #tab_add {
        cursor: pointer;
    }
}
