/* history css start */
.hist-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 1200px;
    width: 100%;
}

.tool-custom {
    margin: 0 auto 0 !important;
}

.content-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hist-contnet-text>table {
    width: 100%;
    min-width: fit-content;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: center;
    border: 1px solid #eaeaea;
}

.hist-contnet-text>table th {
    font-size: 12px !important;
    border-top: none;
}

.hist-contnet-text>table td {
    font-size: 12px !important;
    border-right: none;
}

.history-btn {
    border: none;
    padding: 8px 0;
    line-height: 24px;
    font-size: var(--font-size-small);
    color: #000000;
    transition: all 0.3s ease-out;
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hist-main-pan {
    height: 100vh;
    width: 500px;
    position: fixed;
    top: 0px;
    right: 0px;
    background-color: #ffffff;
    box-shadow: -1px 0px 15px 1px rgba(0, 0, 0, 0.11);
    z-index: 100;
    overflow-y: auto;
    transform: translateX(500px);
    transition: all 0.3s ease-out;
}

.hist-pan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    padding-right: 8px;
    border-bottom: 1px solid #EAEAEA;
}

.hist-pan-head .heading {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #000000;
}

.hist-pan-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.close-his-pan {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in;
}

.close-his-pan:hover svg {
    filter: invert(1);
}

.since {
    color: #9da9b5;
    font-size: 16px;
    line-height: 24px;
    padding-bottom: 4px;
}

.history {
    border-radius: 8px;
    border: 1px solid #eaeaea;
    position: relative;
}

.hist-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.history-head .toggle-arow,
.hist-detail-card .toggle-arow {
    transition: all 0.2s ease-out;
    opacity: 0;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history:hover .toggle-arow,
.hist-detail-card:hover .toggle-arow {
    opacity: 1;
}

.toggle-arow-div {
    max-width: 149px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}

.back-text {
    font-size: 16px;
    line-height: 24px;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    min-height: 48px;
}

.history-detail-head {
    padding: 16px;
    padding-bottom: 0px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-detail-head div {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #000000;
}

.history-detail-head span {
    font-size: 14px;
    line-height: 20px;
    color: #9DA9B5;
}

.hist-detail-cont {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hist-detail-card {
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 8px 12px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.file-thumbnail {
    height: 32px;
    width: 32px;
    border-radius: 4px;
    border: 0.5px solid #DDDDF8;
    cursor: pointer;
}

.hist-file-info {
    max-width: 170px;
    width: 100%;
}

.file-name {
    font-size: 14px;
    line-height: 16px;
}

.hist-no-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 16px;
    color: #363B42;
}

.hist_text_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000040;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hist_text_view {
    max-width: 800px;
    width: 100%;
    max-height: 600px;
    min-height: 300px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0px 0px 60px 0px #00000012;
    overflow: clip;
}

.text_view_head {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EAEAEA;
    min-height: 60px;
}

.text_view_body {
    padding: 24px;
    font-size: 14px;
    line-height: 20px;
    max-height: 540px;
    height: 100%;
    overflow: scroll;
}

.text_view_body::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.text_view_body::-webkit-scrollbar-thumb {
    background-color: #D8DEE6;
}

.text_view_body::-webkit-scrollbar {
    background-color: transparent;
}

.text_view_body ol,
.text_view_body ul {
    margin-left: 20px;
}

.history-head .tool-name {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #000000;
    max-width: 160px;
    width: 100%;
}

.preview_file_name {
    font-size: 14px;
    line-height: 16px;
}

.close_text_preview {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.history-content {
    position: relative;
    display: none;
    padding: 8px 12px;
}

.history-head .file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 12px;
}

.history-head .file-info span,
.hist-detail-card .file-info span {
    color: #9da9b5;
    font-size: 12px;
    line-height: 16px;
    text-wrap: nowrap;
}

.history:hover,
.hist-detail-card:hover {
    background-color: #fafbfd;
}

.hist_actions .button {
    border-radius: 8px;
    border: 1px solid #EAEAEA;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #000000;
    transition: all 0.2s;
    height: 36px;
    position: relative;
    cursor: pointer;
}

.hist_actions .button:hover {
    background-color: #F9F9F9;
}

.load-btn {
    height: 48px;
    border: 1px solid #eaeaea;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #000000;
    background-color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: sticky;
    bottom: 2px;
    margin: 0px 10px;
}

.load-btn:hover {
    background-color: #fafbfd;
}

.modal-opened {
    transform: translateX(0px);
}

.inner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hist-contnet-text {
    max-height: 75px;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    font-size: 12px;
    line-height: 20px;
    padding: 4px;
    /* background-color: #f1f1f1; */
    border-radius: 4px;
}

.no-data {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #ff6363;
}

.outer-date-filter {
    display: flex;
    align-items: center;
}

.date-filter-label,
.history-date-filter {
    color: #000000;
    line-height: 20px;
    font-size: 14px;
}

.history-date-filter {
    width: 144px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    padding: 6px 0px 6px 8px;
    height: 32px;
}

.history-date-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.hist-contnet-text::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

.hist_download_btn .dropdown-arrow {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    transform: rotateX(180deg);
    transition: transform 0.3s ease;
}

.hist_download_btn .dropdown-arrow.rotate-arrow {
    transform: rotateX(0);
}

.text_view_body table {
    width: 100%;
    border: 1px solid #eaeaea;
    border-collapse: collapse;
}

.text_view_body table th,
.text_view_body table td {
    border: 1px solid #eaeaea;
    padding: 6px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #000000;
    white-space: nowrap;
}

.download_menu {
    min-width: 113px;
    border-radius: 8px !important;
    padding: 4px !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    border: 1px solid #EAEAEA !important;
    box-shadow: 0px 4px 10px -2px #0000001A;
    position: absolute !important;
    z-index: 10 !important;
    top: 40px !important;
    left: 0px !important;
    display: none;
}

.download_menu button {
    border-radius: 4px !important;
    background-color: transparent !important;
    border: none !important;
    padding: 6px 8px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: black !important;
    text-align: left !important;
    width: 100% !important;
    transition: all 0.2s ease-out !important;
}

.download_menu button:hover {
    background-color: #f5f7fb !important;
}

.history-date-filter::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 20px;
}

.imagetotext-progress {
    width: 100%;
    height: 5px;
    position: absolute;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    background: var(--color-EAEAEA);
    max-width: 100%;
    margin: 0 auto;
    left: 0;
    bottom: 0;
}

.imagetotext-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            #fff0 2.85%,
            rgb(169 149 253/0.909375) 53.25%,
            #a28cff 100%);
    border-radius: 3px;
    animation: progress 2s linear infinite;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 500px) {
    .hist-main-pan {
        width: 100vw;
    }

    .hist_actions .button {
        padding: 6px 10px;
        font-size: 12px;
        line-height: 18px;
        height: 32px;
    }
}

/* history css end */