/* history css start */
.tool-custom {
    margin: 0 auto 0 !important;
}

.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: 6px 12px 6px 10px;
    background-color: #F2F4F9;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 6px;
    font-size: var(--font-size-x-small);
    line-height: 20px;
    color: #000000;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease-in-out;
}

.history-btn:hover {
    background-color: #DEE6F4;
}

.hist-main-pan {
    height: 100%;
    max-height: 90vh;
    width: 100%;
    max-width: 400px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #ffffff;
    box-shadow: -2px 0px 24px 0px #1018281A;
    z-index: 100;
    overflow-y: auto;
    border-radius: 12px;
    transform: translateX(500px);
    transition: all 0.3s ease-out;
}

.hist-main-pan::-webkit-scrollbar-track {
    background: transparent;
}

.hist-main-pan::-webkit-scrollbar-thumb {
    background: #AAACB7 !important;
    border-radius: 99px;
}

.loading {
    height: calc(100% - 48.81px);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading .text {
    font-size: 16px;
    line-height: 24px;
    color: #55586E;
}

.loader {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

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

.hist-pan-body,
.hist-detail-body {
    height: calc(100% - 48.81px);
}

.close-his-pan {
    cursor: pointer;
}

.close-his-pan path {
    transition: all 0.2s ease-in-out;
}

.close-his-pan:hover path {
    stroke: #000000;
}

.history {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.history_info {
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-grow: 1;
}

.history_info .folder_info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history_info .folder_info .name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #1E223F;
}

.history_info .folder_info .count,
.history_info .since {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #85878E;
}

.back-btn {
    gap: 12px;
}

.back-text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #1E223F;
}

.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;
}

.hist_detail {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.detail_img {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-thumbnail {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.file_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.file_info .name,
.hist_modal_info .name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #1E223F;
}

.file_info .name.no_text {
    font-weight: 600;
    color: #FF5C5C;
}

.file_info .size {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    color: #85878E;
}

.hist_modal_info .file-thumbnail {
    height: 32px;
    width: 32px;
}

.go_arrow path {
    transition: all 0.2s ease-in-out;
}

.hist_detail:hover .go_arrow path {
    stroke: #000000;
}

.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: 8px 0px;
    display: flex;
    flex-direction: column;
}

.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;
}

.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 #EAECF0;
    min-height: 56px;
}

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

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

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

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

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

.text_view_body h1 {
    font-size: revert;
    text-align: revert;
    line-height: normal;
}

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

.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:hover {
    background-color: #F7FAFC;
}

.hist_actions {
    max-height: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hist_actions .btn_ {
    cursor: pointer;
}

.hist-title-hover {
    position: relative;
    height: 32px;
}

.hist-tooltip::before {
    content: attr(data-title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: white;
    border-radius: 5px;
    opacity: 0;
    font-size: 12px;
    padding: 2px 5px;
    z-index: 9999;
    max-height: 18px;
    display: flex;
    align-items: center;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.load-btn {
    height: 40px;
    width: -webkit-fill-available;
    border: none;
    font-size: 16px;
    line-height: 24px;
    color: #1E223F;
    background-color: #F2F4F9;
    border-radius: 8px;
    position: sticky;
    bottom: 12px;
    margin: 12px 16px 0px 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

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

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

.hist_modal_info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hist_modes {
    padding: 2px;
    background-color: #F5F7FB;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.hist_modes .mode {
    padding: 6px 8px;
    background-color: transparent;
    border-radius: 6px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #85878E;
    border: 1px solid transparent;
    min-width: 72px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.hist_modes .mode.active {
    background-color: #FFFFFF;
    color: #4899FF;
    border: 0.5px solid #E2E8F0;
    box-shadow: 0px 1px 3px 0px #00000014;
}

.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;
}

.outer-date-filter {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.outer-date-filter * {
    color: #AAACB7;
}

.history-date-filter {
    width: 99px;
    border: none;
    padding: 0px;
    height: 20px;
    color: #55586E;
    line-height: 20px;
    font-size: 14px;
}

.no-history,
.premium-history {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    pointer-events: none;
}

.premium-history {
    pointer-events: unset;
}

.no-history .text,
.premium-history .text {
    max-width: 200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.premium-history .text .redirect {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #4899FF;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 24px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 18px;
    transition: all 0.2s ease-in-out;
}

.premium-history .text .redirect:hover {
    background-color: #0984E3;
}

.no-history .text .heading,
.premium-history .text .heading {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #1E223F;
}

.no-history .text .sub-heading,
.premium-history .text .sub-heading {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    color: #55586E;
}

.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;
}

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

    .hist_text_container {
        padding: 6px;
    }

    .text_view_head {
        flex-wrap: wrap;
    }

    .text_view_body,
    .text_view_body {
        padding: 8px;
    }
}

@media (min-width: 768px) {
    .hist-tooltip:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

/* history css end */