﻿:root {
    --primary-color: #1890ff;
    --secondary-text-color: #7d8186;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex !important;
}

.d-flex-column {
    display: flex !important;
    flex-direction: column;
}

.w-full {
    width: 100% !important;
}

.ant-input[disabled], .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
    color: rgb(0 0 0 / 64%) !important;
}

.justify-content-end {
    justify-content: end;
}

.justify-content-start {
    justify-content: start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-space-between {
    justify-content: space-between;
}


.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: start;
}

.align-items-end {
    align-items: end;
}


body ::-webkit-scrollbar, .ant-table-body::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

body ::-webkit-scrollbar-track, .ant-table-body::-webkit-scrollbar-track {
    background: transparent !important;
}

body ::-webkit-scrollbar-thumb, .ant-table-body::-webkit-scrollbar-thumb {
    background: #c3baba !important;
    border-radius: 5px;
    border: 1px solid #c3baba;
}

    body ::-webkit-scrollbar-thumb:hover, .ant-table-body::-webkit-scrollbar-thumb:hover {
        background: #555 !important;
    }

.ant-layout {
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    overflow: hidden;
}

.ant-layout-content {
    overflow-x: hidden;
    overflow-y: auto;
    height: calc(100vh - 60px);
    padding: 24px;
    margin: 0px !important;
}

.ant-pro-basicLayout-children-content-wrap {
    height: fit-content !important;
    max-width: 100%;
}

.layout-spinner {
    z-index: 1001 !important;
    background: rgb(255 255 255 / 50%) !important;
    width: 100% !important;
    max-height: 100% !important;
    position: fixed !important;
}

.ant-layout-header, .shadow, .ant-modal {
    border-color: transparent;
    box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}

.shadow-light {
    box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.1), 0px 4px 20px -2px rgba(50, 50, 71, 0.08);
}

.shadow-thin {
    box-shadow: 0px 1px 9px rgba(109, 109, 109, 0.25);
}

.user-full-name {
    position: relative;
    color: black !important;
    font-weight: 600;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    max-width: 200px;
    font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    text-overflow: ellipsis;
}

.user-role {
    position: relative;
    color: rgba(0, 0, 0, 0.45) !important;
    font-size: 10px;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    max-width: 200px;
    text-overflow: ellipsis;
}

.ant-modal-header, .ant-modal-content {
    border-radius: 10px !important;
}


.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
    display: none !important;
}

.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::after {
    display: inline-block;
    margin-right: 4px;
    color: #ff4d4f;
    font-size: 14px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    content: '*';
}

.profile-popover {
    border-right: none !important;
}

.ant-layout-content {
    display: flex;
}

    .ant-layout-content .ant-pro-basicLayout-children-content-wrap {
        min-height: 100%;
        flex: auto;
    }

.add-visit-info-form .ant-input-number-affix-wrapper, .add-access-card-form .ant-input-number-affix-wrapper {
    min-width: 100% !important;
    width: 100% !important;
}

.card {
    box-shadow: 0 1px 1px -2px rgba(0, 0, 0, 0.0), 0 1px 1px 0 rgba(0, 0, 0, 0.0), 0 1px 10px 2px rgba(0, 0, 0, 0.15);
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.parant-frame {
    height: 100px;
    border-radius: 24px;
    padding: 20px 30px;
    line-height: 1;
    box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}

.first-parant-frame {
    background: linear-gradient(145.29deg, #FE9E46 12.07%, rgba(238, 144, 57, 0.57) 115.2%);
}

.second-parant-frame {
    background: linear-gradient(127.56deg, #4A8DF2 6.07%, rgba(65, 141, 255, 0.63) 115%);
}

.third-parant-frame {
    background: linear-gradient(133deg, #F8846F 19.75%, rgba(241, 109, 86, 0.51) 146.08%);
}

.parant-frame .frame1 {
    position: absolute;
    width: 30%;
    height: 100%;
    left: 75%;
    top: -100%;
}

.parant-frame .frame2 {
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10px;
    top: 100%;
    background: rgba(240, 242, 245, 0.15);
    border-radius: 12px;
    transform: rotate(-19.91deg);
}

.parant-frame .frame3 {
    position: absolute;
    width: 120%;
    height: 140%;
    left: 0px;
    top: 65%;
    background: rgba(240, 242, 245, 0.24);
    border-radius: 12px;
    transform: rotate(-19.91deg);
}

.third-parant-frame .frame1 {
    width: 22%;
}

.third-parant-frame .frame2 {
    width: 112%;
}

.third-parant-frame .frame3 {
    width: 100%;
}

.parant-frame .icon-frame {
    width: 60px;
    height: 60px;
    background: linear-gradient(153.56deg, rgba(245, 245, 245, 0.43) 6.76%, rgba(255, 255, 255, 0) 140.18%);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    flex: none;
    order: 0;
    flex-grow: 0;
    padding: 15px;
}

.ant-collapse-header {
    background-color: var(--primary-color);
    color: white !important;
}

    .ant-collapse-header .ant-collapse-header-text .ant-typography {
        color: white;
    }

.ant-collapse-item {
    margin-bottom: 16px;
    box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}

.ant-collapse-content-active {
    border: 1px solid #d9d9d9;
}

.ant-collapse {
    border: none !important;
}

.ant-table-wrapper {
    border: 1px solid #d9d9d9;
}

.ant-table-thead > tr > th {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.ant-table-thead th.ant-table-column-has-sorters:hover {
    background: rgba(24,144,255, 0.7) !important;
}

.ant-table-thead .ant-table-filter-trigger.active {
    color: white !important;
}

.ant-table-column-sorter-inner {
    color: white !important;
}

.ant-table table {
    width: 100%;
}

    .ant-table table td, .ant-table table tr, .ant-table table th {
        width: fit-content;
    }

        .ant-table table td * {
            max-width: 100%;
        }

.ant-select-item-option-disabled:has(.ddl-custom) {
    cursor: pointer;
}

.left-right-div-continer {
    overflow: hidden;
    height: 100%;
    min-height: calc(100vh - 60px) !important;
    display: flex !important;
    width: calc(100% + 48px);
    min-height: 100%;
    margin: -24px;
}

    .left-right-div-continer .left-div {
        width: 350px !important;
        border-right: 1px solid #f0f0f0;
        background-color: white;
        position: fixed !important;
        height: 100%;
    }

        .left-right-div-continer .left-div .image-div {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 250px;
            width: 100%;
            border-radius: 15px;
            flex-direction: column;
            gap: 15px;
        }

    .left-right-div-continer .right-div {
        padding: 24px;
        padding-left: calc(350px + 24px) !important;
        width: 100%;
    }

.text-detail {
    font-size: 14px;
}

.ant-typography-secondary {
    color: var(--secondary-text-color) !important;
}

.ant-form-item-required, .ant-form-item-label, .ant-form-item-label label {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--secondary-text-color) !important;
}

.ant-radio-group .ant-radio-button-wrapper {
    border: 1px solid var(--primary-color) !important;
    margin-right: 1rem;
    padding: 0px 12px !important;
    border-radius: 12px !important;
    color: var(--primary-color)
}

.ant-radio-group .ant-radio-button-wrapper-checked {
    border-radius: 12px !important;
    border: 1px solid var(--primary-color) !important;
}

.ant-radio-button-wrapper:not(:first-child)::before {
    width: 0px !important;
}

hr {
    color: var(--secondary-text-color);
    opacity: 0.4;
}

.ant-select-item-option-active {
    background: #1890ff21 !important;
}

.ant-btn-link {
    overflow: hidden;
}

    .ant-btn-link span {
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
        overflow: hidden;
    }

.ant-table .ant-btn-link:not(.ant-btn-circle) {
    padding: 0px;
}

.zxing-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zxing-container > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.zxing-button {
    line-height: 1.5715;
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    border: 1px solid transparent;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    height: 32px;
    padding: 4px 15px;
    font-size: 14px;
    border-radius: 2px;
    color: rgba(0, 0, 0, 0.85);
    border-color: #d9d9d9;
    background: #fff;
}

.zxing-video-select {
    padding: 5px;
}

.img-avatar {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 15px;
    min-width: 30px;
}

    .img-avatar img {
        width: 30px;
        height: 30px;
        object-fit: cover;
        border-radius: 15px;
    }

.ant-pro-sider-logo {
    padding: 10px 16px !important;
}

    .ant-pro-sider-logo img {
        height: 50px !important;
    }

.ant-modal.ant-modal-confirm {
    padding-bottom: 0px;
}

.application-status-ribbon.ant-ribbon-placement-end {
    margin-top: -20px;
}

.modal-show-overflow .ant-modal-content {
    overflow: unset !important;
}
