:root,
:host {
    --font-sans: "Work Sans", "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --header-height: 60px;
    --color-yellow-300: oklab(92.66% -0.03708 0.17405);
}

.font-inter {
    font-family: "Inter", sans-serif;
}

.demo1 {
    --header-height: 60px;
}

.w-\[74px\] {
    width: 74px;
}

.w-\[140px\] {
    width: 140px;
}

.w-\[180px\] {
    width: 180px;
}

.w-\[300px\] {
    width: 300px;
}

.w-\[340px\] {
    width: 340px;
}

.h-\[2px\] {
    height: 2px;
}

.h-\[56px\] {
    height: 56px;
}

.min-h-\[75px\] {
    height: 75px;
}

.h-half {
    height: 50%;
}

.min-w-\[340px\] {
    min-width: 340px;
}

@media (width >=48rem) {
    .md\:w-\[200px\] {
        width: 200px;
    }

    .md\:min-w-full {
        min-width: 100%;
    }

    .md\:p-7 {
        padding: calc(var(--spacing) * 7);
    }

    .md\:pb-0 {
        padding-bottom: calc(var(--spacing) * 0);
    }
}

.h-\[200px\] {
    height: 200px;
}

.h-full\! {
    height: 100% !important;
}

/* Participant filter dropdown action buttons (Waiting list) */
.waiting-participant-accept,
.waiting-participant-remove,
.inactive-participant-remove {
    border: 0;
    width: 20px;
    height: 20px;
    border-radius: 9999px; /* round */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.waiting-participant-accept i,
.waiting-participant-remove i,
.inactive-participant-remove i {
    font-size: 10px;
    line-height: 1;
    color: white !important;
}


    .waiting-participant-accept i
    {
        font-size: 10px;
        line-height: 1;
        color: #22c55e !important;
    }

    .waiting-participant-remove i,
    .inactive-participant-remove i {
        font-size: 10px;
        line-height: 1;
        color: #dc2626 !important;
    }

.waiting-participant-accept {
    color: white; /* green-500 */
}
    .waiting-participant-accept:hover {
        background-color: #55de8757; /* green-600 */
        color: white !important;
    }

.waiting-participant-remove,
.inactive-participant-remove {
    color: #ef4444; /* red-500 */
}
    .waiting-participant-remove:hover,
    .inactive-participant-remove:hover {
        background-color: var( --color-red-400); /* red-600 */
        color: white !important;
    }

.min-h-\[200px\] {
    min-height: 200px;
}

.min-h-\[100px\] {
    min-height: 100px;
}

.min-h-\[150px\] {
    min-height: 150px;
}

.min-h-\[500px\] {
    min-height: 500px;
}

@media (width >=48rem) {
    .md\:min-h-\[500px\] {
        min-height: 500px;
    }
}

.max-h-\[100vh\] {
    max-height: 100vh;
}

@media (width >=48rem) {
    .md\:flex-col {
        flex-direction: column;
    }
}

.border-blue-200 {
    border-color: var(--color-blue-100);
}

.hover-border-primary:hover {
    border-color: var(--primary);
}

.hover-card:hover .hover-text {
    color: var(--primary) !important;
}

.bg-light {
    background-color: var(--color-blue-50);
}

.bg-gray-400 {
    background-color: var(--accent);
}

.bg-yellow-300 {
    background-color: var(--color-yellow-300);
}

.shadow-drop {
    box-shadow: 0px 0px 10px 0px rgba(53, 53, 53, 0.2);
}

.text-3xs {
    font-size: 0.625rem;
    line-height: var(--tw-leading, var(--text-2xs--line-height));
}

.fs-15 {
    font-size: 0.938rem;
}

.-top-\[35px\] {
    top: -35px;
}

.-top-\[20px\] {
    top: -20px;
}

.-top-\[25px\] {
    top: -25px;
}

.top-1 {
    top: calc(var(--spacing) * 1);
}

.left-1 {
    left: calc(var(--spacing) * 1);
}

.-left-5 {
    left: calc(var(--spacing) * -5);
}

.bottom-1 {
    bottom: calc(var(--spacing) * 1);
}

.-left-\[28px\] {
    left: -28px;
}

.-right-\[38px\] {
    right: -38px;
}

.-right-1 {
    right: calc(var(--spacing) * -1);
}

.right-1 {
    right: calc(var(--spacing) * 1);
}

.right-2 {
    right: calc(var(--spacing) * 2);
}

.px-px {
    padding: 0 1px;
}

.p-1 {
    padding: 4px;
}

.py-4\.5 {
    padding-block: calc(var(--spacing) * 4.5);
}

.px-4\.5 {
    padding-inline: calc(var(--spacing) * 4.5);
}

.pt-4\.5 {
    padding-top: calc(var(--spacing) * 4.5);
}

.pb-4 {
    padding-bottom: calc(var(--spacing) * 4);
}

.z-2 {
    z-index: 2;
}

.cursor-row-resize {
    cursor: row-resize;
}

.cursor-col-resize {
    cursor: col-resize;
}

.line-height-1 {
    line-height: 1;
}

.-ml-\[30px\] {
    margin-left: -30px;
}

.-mb-\[22px\] {
    margin-bottom: -22px;
}

.pb-3px {
    padding-bottom: 3px;
}

.rotate-180 {
    rotate: 180deg;
}

.border-gray-custom {
    border-color: #e5e7eb !important;
}

@media (max-width: 1279px) {
    .xl-hidden {
        display: none;
    }
}

@media (width >= 64rem) {
    .lg\:min-w-12 {
        min-width: 3rem;
    }

    .lg\:justify-between {
        justify-content: space-between;
    }

    .lg\:text-2sm {
        font-size: 14px !important;
    }

    .lg\:mx-3 {
        margin: 0 14px;
    }

    .lg-min-h-42 {
        min-height: 42px !important;
    }

    .h-\[60px\] {
        height: 60px;
    }
}

@media (width <= 80rem) {
    .px-1\.5 {
        padding-inline: 0;
    }
}

@media (width >=80rem) {
    .rounded-custom {
        border-radius: 0.5rem;
    }
}

.lg\:text-2sm {
    font-size: 10px;
}

.lg\:mx-3 {
    margin: 0 4px;
}

.lg-min-h-42 {
    min-height: 30px;
}

.kt-card-group > .card:last-child {
    border-bottom: 0 !important;
    padding-bottom: calc(var(--spacing) * 2) !important;
}

.kt-switch:before {
    inset-inline-start: calc(var(--spacing) * -0.65);
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.5412);
}

.kt-switch:checked,
.kt-switch[aria-checked='true'] {
    background-color: var(--color-green-500);
}

.kt-switch + span {
    font-size: 0.688rem;
}

.kt-switch:checked + span,
.kt-switch[aria-checked='true'] + span {
    font-size: 0.688rem;
    color: var(--color-green-500);
}

.kt-switch {
    height: calc(var(--spacing) * 4.5);
    width: calc(var(--spacing) * 7.9);
    background-color: var(--color-zinc-400);
}

    .kt-switch:before {
        width: calc(var(--spacing) * 3.9);
        height: calc(var(--spacing) * 3.9);
    }

:is(.kt-switch:checked, .kt-switch[aria-checked='true']):before {
    --tw-translate-x: calc(var(--spacing) * 4.3);
    translate: var(--tw-translate-x) var(--tw-translate-y);
}

.before\:left-\[-48px\]::before {
    left: -48px;
}

.before\:border-m::before {
    content: var(--tw-content);
    border-inline-start-style: var(--tw-border-style);
    border-inline-start-width: 2px;
}

.before\:border-dashed::before {
    --tw-border-style: dashed;
    border-style: dashed;
}

.transition-\[width\] {
    transition-property: width;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
}

.duration-400 {
    --tw-duration: 400ms;
    transition-duration: 400ms;
}

@media (width >=80rem) {
    .kt_aside_left.fixed,
    .kt_aside_right.fixed {
        position: relative;
    }
}

@media (width <=80rem) {
    .kt_aside_left,
    .kt_aside_right {
        z-index: 10;
    }

        .kt_aside_left.shadow-none,
        .kt_aside_right.shadow-none {
            --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
}

@media (width >=80rem) {
    .xl\:hidden {
        display: none;
    }
}

#second_documents_accordion.h-auto {
    padding-bottom: 0;
}

.dark\:bg-light:is(.dark *) {
    background-color: var(--color-white);
}

.dark\:bg-white:is(.dark *) {
    background-color: var(--color-white);
}

.dark\:bg-dark:is(.dark *) {
    background-color: var(--color-black);
}

.dark\:text-dark:is(.dark *) {
    color: var(--color-black);
}

.dark\:text-white:is(.dark *) {
    color: var(--color-white);
}

@media (hover: hover) {
    .dark\:bg-white:is(.dark *):hover {
        background-color: var(--primary);
    }

    .dark\:bg-white:is(.dark *):hover {
        color: var(--color-white);
    }
}

.dark\:text-dark:is(.dark *):is(.kt-btn-outline:hover, .kt-btn-outline.active) svg {
    color: var(--color-white);
}

.dark\:bg-muted:is(.dark *) {
    background-color: var(--muted);
}

.kt-badge-light.kt-badge-success:is(.dark *) {
    background-color: var(--color-green-100);
    color: var(--color-green-800);
}

.kt-badge-light.kt-badge-warning:is(.dark *) {
    background-color: var(--color-yellow-100);
    color: var(--color-yellow-800);
}

.kt-badge-light.kt-badge-info:is(.dark *) {
    background-color: var(--color-violet-100);
    color: var(--color-violet-800);
}


@media (width <=48rem) {
}

/*  */
/* PDF */
/*  */
.app {
    grid-template-rows: auto 1fr;
}

/* PDF Toolbar - Metronic Design */
#divToolbar {
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

    #divToolbar input[type="range"] {
        cursor: pointer;
    }

@media (max-width: 768px) {
    #divToolbar {
        gap: 8px !important;
        padding: 8px 12px !important;
    }

    .kt-alert-close {
        top: -10px;
        right: -10px;
    }

        .kt-alert-close svg {
            height: 10px;
            width: 10px;
        }
}

@media (max-width: 576px) {
    #divToolbar {
        gap: 6px !important;
        padding: 6px 8px !important;
    }

        #divToolbar .d-flex {
            flex-wrap: wrap;
        }

    .sm\:justify-center {
        justify-content: center !important;
    }

    .h-36 {
        height: 30px;
    }

    .md\:w-full {
        width: 100%;
    }

    .px-4 {
        padding: 0 12px !important;
    }

    .lg-absulate {
        position: absolute;
        top: 5px;
        left: -9px;
        z-index: 1000;
        padding: 2px 4px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
        border-radius: 4px;
    }
}

input[type=file] {
    display: none
}

input[type=color] {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer
}

input[type=range] {
    width: 96px
}

#searchField {
    min-width: 250px;
}

#stampField {
    min-width: 280px;
}

.doc {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    gap: 12px;
}

/* Mobile document layout adjustments */
@media (max-width: 768px) {
    .doc {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .doc {
        gap: 8px;
    }
}

.page-outer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    max-width: 100%;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* Mobile page adjustments */
@media (max-width: 768px) {
    .page-outer {
        border-radius: 8px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    }
}

@media (max-width: 576px) {
    .page-outer {
        border-radius: 4px;
    }
}

.page-wrap {
    position: relative
}

.page-viewport {
    position: relative;
    transform-origin: 0 0
}

canvas.pdf {
    display: block;
    width: 100%;
    height: auto;
    touch-action: pan-y;
    /* Allow vertical scrolling on touch devices */
}

/* Ensure PDF rendering is smooth on mobile */
@media (max-width: 768px) {
    canvas.pdf {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.ann-layer {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    z-index: 1
}

    .ann-layer svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: auto
    }

        .ann-layer svg g.svg-delete {
            pointer-events: auto;
            cursor: pointer;
            display: none
        }

            .ann-layer svg g.svg-delete[data-visible=true] {
                display: block
            }

.ann,
.ann-text {
    position: absolute;
    user-select: none;
    cursor: move;
    z-index: 2
}

    .ann img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .18)
    }

    .ann .delete,
    .ann .resize,
    .ann-text .delete,
    .ann-text .resize {
        display: none
    }

    .ann[data-selected=true] .delete,
    .ann[data-selected=true] .resize,
    .ann-text[data-selected=true] .delete,
    .ann-text[data-selected=true] .resize {
        display: block
    }

    /* Locked annotation styles - hide controls only */
    .ann[data-locked=true] .delete,
    .ann[data-locked=true] .resize,
    .ann-text[data-locked=true] .delete,
    .ann-text[data-locked=true] .resize {
        display: none !important
    }

    .ann-text[data-locked=true] .text {
        pointer-events: none
    }

.delete {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-weight: 700;
    touch-action: none;
    /* Prevent default touch actions */
}

.resize {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #60a5fa;
    border: 2px solid #fff;
    cursor: nwse-resize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    touch-action: none;
    /* Prevent default touch actions */
}

/* Mobile annotation controls - larger touch targets */
@media (max-width: 768px) {
    .delete {
        width: 32px;
        height: 32px;
        top: -12px;
        right: -12px;
        font-size: 18px;
    }

    .resize {
        width: 24px;
        height: 24px;
        right: -12px;
        bottom: -12px;
    }
}

.ann-text .text {
    min-width: 120px;
    min-height: 36px;
    padding: 6px 8px;
    background: transparent;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    border-radius: 6px;
    outline: 1px dashed rgba(96, 165, 250, 0);
    overflow-wrap: break-word;
    white-space: pre-wrap
}

.ann-text[data-selected=true] .text {
    outline-color: rgba(96, 165, 250, .9)
}

/* Empty/Placeholder text annotation styles - always visible */
.ann-text[data-placeholder=true] {
    background: rgba(255, 255, 255, 0.95);
    border: 2px dashed #60a5fa;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .ann-text[data-placeholder=true] .text {
        color: #9ca3af !important;
        font-style: italic;
    }

    .ann-text[data-placeholder=true][data-selected=true] {
        border-color: #3b82f6;
        border-style: solid;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }

/* Non-empty text annotation - subtle background for visibility */
.ann-text[data-placeholder=false] {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
}

    .ann-text[data-placeholder=false][data-selected=true] {
        border-color: #60a5fa;
        box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
    }

.hit {
    position: absolute;
    background: rgba(255, 230, 0, .38);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    border-radius: 2px
}


/* Left Active */

.document-active {
    border: 1px solid var(--primary);
    border-radius: 0.375rem;
    background-color: rgba(59, 130, 246, 0.1);
    position: relative;
    
}

   
    .live-document {
        background-color: #00c950;
        position: absolute;
        top: 4px;
        right: 4px;
        color: white;
        line-height: 1;
        font-size: 12px;
        padding: 2px 4px;
        border-radius: 4px;
        text-transform: uppercase;
    }
.document-active live-document {
    display: block;
}

:root,
:host {
    --font-sans: "Work Sans", "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --header-height: 60px;
    --color-yellow-300: oklab(92.66% -0.03708 0.17405);
}

.font-inter {
    font-family: "Inter", sans-serif;
}

.demo1 {
    --header-height: 60px;
}

.w-\[74px\] {
    width: 74px;
}

.w-\[140px\] {
    width: 140px;
}

.w-\[180px\] {
    width: 180px;
}

.w-\[300px\] {
    width: 300px;
}

.w-\[340px\] {
    width: 340px;
}

.h-\[2px\] {
    height: 2px;
}

.h-\[56px\] {
    height: 56px;
}

.min-h-\[75px\] {
    height: 75px;
}

.h-half {
    height: 50%;
}

.min-w-\[340px\] {
    min-width: 340px;
}

@media (width >=48rem) {
    .md\:w-\[200px\] {
        width: 200px;
    }

    .md\:min-w-full {
        min-width: 100%;
    }

    .md\:p-7 {
        padding: calc(var(--spacing) * 7);
    }

    .md\:pb-0 {
        padding-bottom: calc(var(--spacing) * 0);
    }
}

.h-\[200px\] {
    height: 200px;
}

.h-full\! {
    height: 100% !important;
}

.min-h-\[200px\] {
    min-height: 200px;
}

.min-h-\[100px\] {
    min-height: 100px;
}

.min-h-\[150px\] {
    min-height: 150px;
}

.min-h-\[500px\] {
    min-height: 500px;
}

@media (width >=48rem) {
    .md\:min-h-\[500px\] {
        min-height: 500px;
    }
}

.max-h-\[100vh\] {
    max-height: 100vh;
}

@media (width >=48rem) {
    .md\:flex-col {
        flex-direction: column;
    }
}

.border-blue-200 {
    border-color: var(--color-blue-100);
}

.hover-border-primary:hover {
    border-color: var(--primary);
}

.hover-card:hover .hover-text {
    color: var(--primary) !important;
}

.bg-light {
    background-color: var(--color-blue-50);
}

.bg-gray-400 {
    background-color: var(--accent);
}

.bg-yellow-300 {
    background-color: var(--color-yellow-300);
}

.shadow-drop {
    box-shadow: 0px 0px 10px 0px rgba(53, 53, 53, 0.2);
}

.text-3xs {
    font-size: 0.625rem;
    line-height: var(--tw-leading, var(--text-2xs--line-height));
}

.fs-15 {
    font-size: 0.938rem;
}

.-top-\[35px\] {
    top: -35px;
}

.-top-\[20px\] {
    top: -20px;
}

.-top-\[25px\] {
    top: -25px;
}

.top-1 {
    top: calc(var(--spacing) * 1);
}

.left-1 {
    left: calc(var(--spacing) * 1);
}

.-left-5 {
    left: calc(var(--spacing) * -5);
}

.bottom-1 {
    bottom: calc(var(--spacing) * 1);
}

.-left-\[28px\] {
    left: -28px;
}

.-right-\[38px\] {
    right: -38px;
}

.-right-1 {
    right: calc(var(--spacing) * -1);
}

.right-1 {
    right: calc(var(--spacing) * 1);
}

.right-2 {
    right: calc(var(--spacing) * 2);
}

.px-px {
    padding: 0 1px;
}

.p-1 {
    padding: 4px;
}

.py-4\.5 {
    padding-block: calc(var(--spacing) * 4.5);
}

.px-4\.5 {
    padding-inline: calc(var(--spacing) * 4.5);
}

.pt-4\.5 {
    padding-top: calc(var(--spacing) * 4.5);
}

.pb-4 {
    padding-bottom: calc(var(--spacing) * 4);
}

.z-2 {
    z-index: 2;
}

.cursor-row-resize {
    cursor: row-resize;
}

.cursor-col-resize {
    cursor: col-resize;
}

.line-height-1 {
    line-height: 1;
}

.-ml-\[30px\] {
    margin-left: -30px;
}

.-mb-\[22px\] {
    margin-bottom: -22px;
}

.pb-3px {
    padding-bottom: 3px;
}

.rotate-180 {
    rotate: 180deg;
}

.border-gray-custom {
    border-color: #e5e7eb !important;
}

@media (max-width: 1279px) {
    .xl-hidden {
        display: none;
    }
}

@media (max-width: 770px) {
    .xs-hidden {
        display: none;
    }
}

@media (width >= 64rem) {
    .lg\:min-w-12 {
        min-width: 3rem;
    }

    .lg\:justify-between {
        justify-content: space-between;
    }

    .lg\:text-2sm {
        font-size: 14px !important;
    }

    .lg\:mx-3 {
        margin: 0 14px;
    }

    .lg-min-h-42 {
        min-height: 42px !important;
    }

    .h-\[60px\] {
        height: 60px;
    }
}

@media (width <= 80rem) {
    .px-1\.5 {
        padding-inline: 0;
    }
}

@media (width >=80rem) {
    .rounded-custom {
        border-radius: 0.5rem;
    }
}

.lg\:text-2sm {
    font-size: 10px;
}

.lg\:mx-3 {
    margin: 0 4px;
}

.lg-min-h-42 {
    min-height: 30px;
}

.kt-card-group > .card:last-child {
    border-bottom: 0 !important;
    padding-bottom: calc(var(--spacing) * 2) !important;
}

.kt-switch:before {
    inset-inline-start: calc(var(--spacing) * -0.65);
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.5412);
}

.kt-switch:checked,
.kt-switch[aria-checked='true'] {
    background-color: var(--color-green-500);
}

.kt-switch + span {
    font-size: 0.688rem;
}

.kt-switch:checked + span,
.kt-switch[aria-checked='true'] + span {
    font-size: 0.688rem;
    color: var(--color-green-500);
}

.kt-switch {
    height: calc(var(--spacing) * 4.5);
    width: calc(var(--spacing) * 7.9);
    background-color: var(--color-zinc-400);
}

    .kt-switch:before {
        width: calc(var(--spacing) * 3.9);
        height: calc(var(--spacing) * 3.9);
    }

:is(.kt-switch:checked, .kt-switch[aria-checked='true']):before {
    --tw-translate-x: calc(var(--spacing) * 4.3);
    translate: var(--tw-translate-x) var(--tw-translate-y);
}

.before\:left-\[-48px\]::before {
    left: -48px;
}

.before\:border-m::before {
    content: var(--tw-content);
    border-inline-start-style: var(--tw-border-style);
    border-inline-start-width: 2px;
}

.before\:border-dashed::before {
    --tw-border-style: dashed;
    border-style: dashed;
}

.transition-\[width\] {
    transition-property: width;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
}

.duration-400 {
    --tw-duration: 400ms;
    transition-duration: 400ms;
}

@media (width >=80rem) {
    .kt_aside_left.fixed,
    .kt_aside_right.fixed {
        position: relative;
    }
}

@media (width <=80rem) {
    .kt_aside_left,
    .kt_aside_right {
        z-index: 10;
    }

        .kt_aside_left.shadow-none,
        .kt_aside_right.shadow-none {
            --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
}

@media (width >=80rem) {
    .xl\:hidden {
        display: none;
    }
}

#second_documents_accordion.h-auto {
    padding-bottom: 0;
}

.dark\:bg-light:is(.dark *) {
    background-color: var(--color-white);
}

.dark\:bg-white:is(.dark *) {
    background-color: var(--color-white);
}

.dark\:bg-dark:is(.dark *) {
    background-color: var(--color-black);
}

.dark\:text-dark:is(.dark *) {
    color: var(--color-black);
}

.dark\:text-white:is(.dark *) {
    color: var(--color-white);
}

@media (hover: hover) {
    .dark\:bg-white:is(.dark *):hover {
        background-color: var(--primary);
    }

    .dark\:bg-white:is(.dark *):hover {
        color: var(--color-white);
    }
}

.dark\:text-dark:is(.dark *):is(.kt-btn-outline:hover, .kt-btn-outline.active) svg {
    color: var(--color-white);
}

.dark\:bg-muted:is(.dark *) {
    background-color: var(--muted);
}

.kt-badge-light.kt-badge-success:is(.dark *) {
    background-color: var(--color-green-100);
    color: var(--color-green-800);
}

.kt-badge-light.kt-badge-warning:is(.dark *) {
    background-color: var(--color-yellow-100);
    color: var(--color-yellow-800);
}

.kt-badge-light.kt-badge-info:is(.dark *) {
    background-color: var(--color-violet-100);
    color: var(--color-violet-800);
}


@media (width <=48rem) {
}

/*  */
/* PDF */
/*  */
.app {
    grid-template-rows: auto 1fr;
}

/* PDF Toolbar - Metronic Design */
#divToolbar {
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

    #divToolbar input[type="range"] {
        cursor: pointer;
    }

@media (max-width: 768px) {
    #divToolbar {
        gap: 8px !important;
        padding: 8px 12px !important;
    }

    .kt-alert-close {
        top: -10px;
        right: -10px;
    }

        .kt-alert-close svg {
            height: 10px;
            width: 10px;
        }
}

@media (max-width: 576px) {
    #divToolbar {
        gap: 6px !important;
        padding: 6px 8px !important;
    }

        #divToolbar .d-flex {
            flex-wrap: wrap;
        }

    .sm\:justify-center {
        justify-content: center !important;
    }

    .h-36 {
        height: 30px;
    }

    .md\:w-full {
        width: 100%;
    }

    .px-4 {
        padding: 0 12px !important;
    }

    .lg-absulate {
        position: absolute;
        top: 5px;
        left: -9px;
        z-index: 1000;
        padding: 2px 4px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
        border-radius: 4px;
    }
}

input[type=file] {
    display: none
}

input[type=color] {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer
}

input[type=range] {
    width: 96px
}

#searchField {
    min-width: 250px;
}

#stampField {
    min-width: 280px;
}

.doc {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    gap: 12px;
}

/* Mobile document layout adjustments */
@media (max-width: 768px) {
    .doc {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .doc {
        gap: 8px;
    }
}

.page-outer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    max-width: 100%;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* Mobile page adjustments */
@media (max-width: 768px) {
    .page-outer {
        border-radius: 8px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    }
}

@media (max-width: 576px) {
    .page-outer {
        border-radius: 4px;
    }
}

.page-wrap {
    position: relative
}

.page-viewport {
    position: relative;
    transform-origin: 0 0
}

canvas.pdf {
    display: block;
    width: 100%;
    height: auto;
    touch-action: pan-y;
    /* Allow vertical scrolling on touch devices */
}

/* Ensure PDF rendering is smooth on mobile */
@media (max-width: 768px) {
    canvas.pdf {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.ann-layer {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    z-index: 1
}

    .ann-layer svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: auto
    }

        .ann-layer svg g.svg-delete {
            pointer-events: auto;
            cursor: pointer;
            display: none
        }

            .ann-layer svg g.svg-delete[data-visible=true] {
                display: block
            }

.ann,
.ann-text {
    position: absolute;
    user-select: none;
    cursor: move;
    z-index: 2
}

    .ann img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .18)
    }

    .ann .delete,
    .ann .resize,
    .ann-text .delete,
    .ann-text .resize {
        display: none
    }

    .ann[data-selected=true] .delete,
    .ann[data-selected=true] .resize,
    .ann-text[data-selected=true] .delete,
    .ann-text[data-selected=true] .resize {
        display: block
    }

    /* Locked annotation styles - hide controls only */
    .ann[data-locked=true] .delete,
    .ann[data-locked=true] .resize,
    .ann-text[data-locked=true] .delete,
    .ann-text[data-locked=true] .resize {
        display: none !important
    }

    .ann-text[data-locked=true] .text {
        pointer-events: none
    }

.delete {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-weight: 700;
    touch-action: none;
    /* Prevent default touch actions */
}

.resize {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #60a5fa;
    border: 2px solid #fff;
    cursor: nwse-resize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    touch-action: none;
    /* Prevent default touch actions */
}

/* Mobile annotation controls - larger touch targets */
@media (max-width: 768px) {
    .delete {
        width: 32px;
        height: 32px;
        top: -12px;
        right: -12px;
        font-size: 18px;
    }

    .resize {
        width: 24px;
        height: 24px;
        right: -12px;
        bottom: -12px;
    }
}

.ann-text .text {
    min-width: 120px;
    min-height: 36px;
    padding: 6px 8px;
    background: transparent;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    border-radius: 6px;
    outline: 1px dashed rgba(96, 165, 250, 0);
    overflow-wrap: break-word;
    white-space: pre-wrap
}

.ann-text[data-selected=true] .text {
    outline-color: rgba(96, 165, 250, .9)
}

/* Empty/Placeholder text annotation styles - always visible */
.ann-text[data-placeholder=true] {
    background: rgba(255, 255, 255, 0.95);
    border: 2px dashed #60a5fa;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .ann-text[data-placeholder=true] .text {
        color: #9ca3af !important;
        font-style: italic;
    }

    .ann-text[data-placeholder=true][data-selected=true] {
        border-color: #3b82f6;
        border-style: solid;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }

/* Non-empty text annotation - subtle background for visibility */
.ann-text[data-placeholder=false] {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
}

    .ann-text[data-placeholder=false][data-selected=true] {
        border-color: #60a5fa;
        box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
    }

.hit {
    position: absolute;
    background: rgba(255, 230, 0, .38);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    border-radius: 2px
}


/* Left Active */

.document-active {
    padding: 6px;
    border: 1px solid var(--primary);
    border-radius: 0.375rem;
    background-color: rgba(59, 130, 246, 0.1);
    position: relative;
}

.live-document {
    background-color: #00c950;
    position: absolute;
    top: 4px;
    right: 4px;
    color: white;
    line-height: 1;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    text-transform: uppercase;
}

.presenter-card {
    border-radius: 0.375rem;
    background-color: rgba(59, 130, 246, 0.1);
    position: relative;
}

.document {
    padding: 6px;
    cursor: pointer;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.pdf-skeleton-page .shimmer {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite;
}

/* PDF page skeleton overlay – line-style placeholder until page is rendered */
.pdf-page-skeleton {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 20px;
    box-sizing: border-box;
    border-radius: inherit;
    background: #f9fafb;
}
.pdf-page-skeleton .pdf-skeleton-line {
    height: 12px;
    border-radius: 6px;
    min-width: 40%;
    flex-shrink: 0;
}
.pdf-page-skeleton .pdf-skeleton-line.shimmer {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite;
}
.pdf-page-skeleton.pdf-skeleton-loaded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Full-page skeleton shown in #doc immediately when load starts (before build) */
.pdf-loading-skeleton {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 20px;
    box-sizing: border-box;
    min-height: 60vh;
    width: 100%;
 /*   max-width: 800px;*/
    margin: 0 auto;
    background: #f9fafb;
}
.pdf-loading-skeleton .pdf-skeleton-line {
    height: 12px;
    border-radius: 6px;
    min-width: 40%;
    flex-shrink: 0;
}
.pdf-loading-skeleton .pdf-skeleton-line.shimmer {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite;
}

/* PDF load error state (3.4) – message + Retry in document area */
.pdf-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 200px;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 480px;
}
.pdf-error-state .pdf-error-message {
    color: var(--color-gray-700, #374151);
    font-size: 0.9375rem;
    margin: 0;
}
.pdf-error-state .kt-btn {
    flex-shrink: 0;
}

.grayColor {
    color: gray;
}


.access-wait-icon {
    font-size: 8rem;
    color: var(--primary);
    display: block;
}

.access-sucess-icon {
    font-size: 8rem;
    color: var(--color-green-500);
    display: block;
}


.access-denied-icon {
    font-size: 8rem;
    color: var(--destructive);
    display: block;
}

.access-denied-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {

    .access-wait-icon {
        font-size: 5rem;
    }

    .access-denied-icon {
        font-size: 5rem;
    }

    .access-denied-title {
        font-size: 2rem;
    }
}

.declined-icon {
    font-size: 6rem;
    color: var(--destructive);
    display: block;
}

@media (max-width: 768px) {
    .declined-icon {
        font-size: 4.5rem;
    }
}
.select_color span.color_box {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-right: 10px;
    cursor: pointer;
    display: inline-block;
}

    .select_color span.color_box:hover, .select_color span.color_box.selected {
        border-color: #000000;
    }

.sticker.sticker-stamp {
    color: #2e353b;
    font-size: 18px;
    padding: 20px 15px 15px;
    line-height: 24px;
    min-width: 160px;
    text-transform: uppercase;
}

.sticker {
    background-color: #FFE210;
    border: 2px solid #000000;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.d-none {
    display: none !important;
}

/* ============================================ */
/* Document Close Button - Match Participant Close */
/* ============================================ */

.document-close {
    flex-shrink: 0;
    width: 1.1rem; /* w-6 = 24px */
    height: 1.1rem; /* h-6 = 24px */
    min-width: 20px;
    min-height: 20px;
    border-radius: 9999px;
    background-color: var(--color-red-400); /* bg-red-500 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    transition: background-color 0.2s ease;
}

    .document-close:hover {
        background-color: var(--color-red-600); /* hover:bg-red-600 */
    }

    .document-close i {
        font-size: 10px;
        color: white; /* bg-red-500 */
        line-height: 1;
    }

/* Participant count badge blink animation */
@keyframes badgeBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

#participantCountBadge {
    background-color: var(--color-red-400);
    top: -10px;
    right: -7px;
}

#participantCountBadge.badge-blink {
    animation: badgeBlink 5.0s ease-in-out 5;
}

/* ============================================ */
/* Colorful Avatar Circles - Random Flat Colors */
/* ============================================ */

/* Flat colorful backgrounds for avatars - using nth-child for variety */
.participant-card .kt-badge-success,
.participant-card .kt-badge-warning,
.participant-card .kt-badge-info {
    position: relative;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Flat colors for avatars - using nth-child for variety */
.participant-card:nth-child(1) .kt-badge-success,
.participant-card:nth-child(1) .kt-badge-warning,
.participant-card:nth-child(1) .kt-badge-info {
    background: #667eea !important;
    color: white !important;
}

.participant-card:nth-child(2) .kt-badge-success,
.participant-card:nth-child(2) .kt-badge-warning,
.participant-card:nth-child(2) .kt-badge-info {
    background: #f5576c !important;
    color: white !important;
}

.participant-card:nth-child(3) .kt-badge-success,
.participant-card:nth-child(3) .kt-badge-warning,
.participant-card:nth-child(3) .kt-badge-info {
    background: #4facfe !important;
    color: white !important;
}

.participant-card:nth-child(4) .kt-badge-success,
.participant-card:nth-child(4) .kt-badge-warning,
.participant-card:nth-child(4) .kt-badge-info {
    background: #fa709a !important;
    color: white !important;
}

.participant-card:nth-child(5) .kt-badge-success,
.participant-card:nth-child(5) .kt-badge-warning,
.participant-card:nth-child(5) .kt-badge-info {
    background: #30cfd0 !important;
    color: white !important;
}

.participant-card:nth-child(6) .kt-badge-success,
.participant-card:nth-child(6) .kt-badge-warning,
.participant-card:nth-child(6) .kt-badge-info {
    background: #a8edea !important;
    color: #333 !important;
}

.participant-card:nth-child(7) .kt-badge-success,
.participant-card:nth-child(7) .kt-badge-warning,
.participant-card:nth-child(7) .kt-badge-info {
    background: #fcb69f !important;
    color: #333 !important;
}

.participant-card:nth-child(8) .kt-badge-success,
.participant-card:nth-child(8) .kt-badge-warning,
.participant-card:nth-child(8) .kt-badge-info {
    background: #ff6a88 !important;
    color: white !important;
}

.participant-card:nth-child(9) .kt-badge-success,
.participant-card:nth-child(9) .kt-badge-warning,
.participant-card:nth-child(9) .kt-badge-info {
    background: #a1c4fd !important;
    color: #333 !important;
}

.participant-card:nth-child(10) .kt-badge-success,
.participant-card:nth-child(10) .kt-badge-warning,
.participant-card:nth-child(10) .kt-badge-info {
    background: #84fab0 !important;
    color: #333 !important;
}

/* For more than 10 participants, cycle through colors */
.participant-card:nth-child(11) .kt-badge-success,
.participant-card:nth-child(11) .kt-badge-warning,
.participant-card:nth-child(11) .kt-badge-info {
    background: #667eea !important;
    color: white !important;
}

.participant-card:nth-child(12) .kt-badge-success,
.participant-card:nth-child(12) .kt-badge-warning,
.participant-card:nth-child(12) .kt-badge-info {
    background: #f5576c !important;
    color: white !important;
}

/* Continue pattern for more participants - cycles every 10 */
.participant-card:nth-child(n+13) .kt-badge-success,
.participant-card:nth-child(n+13) .kt-badge-warning,
.participant-card:nth-child(n+13) .kt-badge-info {
    background: #4facfe !important;
    color: white !important;
}

/* Hover effects */
.participant-card:hover .kt-badge-success,
.participant-card:hover .kt-badge-warning,
.participant-card:hover .kt-badge-info {
    transform: scale(1.1);
}

/* Participant Filter Dropdown Widths */
#participantFilterDropdown {
    width: 450px !important;
    max-width: 450px !important;
    min-width: 450px !important;
}

.waiting-participant-role,
.inactive-participant-role {
    min-width: 180px !important;
    width: 300px !important;
    max-width: 300px !important;
}

/* KTSelect wrapper width */
.waiting-participant-role + .kt-select,
.inactive-participant-role + .kt-select,
.kt-select:has(.waiting-participant-role),
.kt-select:has(.inactive-participant-role) {
    min-width: 180px !important;
    width: 300px !important;
    max-width: 300px !important;
}

#participantFilterDropdownContent{
    overflow-y: auto;
    overflow-x:hidden;
}

/* Remove white background for stamp images when resizing */
.ann[data-stamp="true"] {
    background: transparent !important;
}

    .ann[data-stamp="true"] img {
        object-fit: fill;
        background: transparent !important;
        box-shadow: none;
        display: block;
        width: 100%;
        height: 100%;
    }
.field-validation-error {
    color: #ff0000 !important;
}

/* PDF progressive loading overlay */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
.pdf-loading-overlay.pdf-loading-fade-out {
    opacity: 0;
    pointer-events: none;
}
.pdf-loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}
.pdf-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: pdf-spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes pdf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.pdf-loading-progress {
    width: 100%;
    height: 8px;
    background: #f3f3f3;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}
.pdf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
    width: 0%;
}
.pdf-loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
.pdf-loading-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    min-height: 1.5em;
}

/* Prevent document content (Excel headers, etc.) from overriding left/right document panels */
/*.kt_aside_left,
.kt_aside_right {
    z-index: 10;
    isolation: isolate;
}*/

/* Accordion: show only one icon (up when collapsed, down when expanded) */
.secondSection {
    position: relative;
    overflow: hidden;
    width: 30px;
    height: 25px;
    min-width: calc(var(--spacing, 0.25rem) * 3.5);
}
    .secondSection .kt-accordion-indicator-on,
    .secondSection .kt-accordion-indicator-off {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .secondSection .kt-accordion-indicator-on {
        display: block !important;
    }
    .secondSection .kt-accordion-indicator-off {
        display: none !important;
    }
.kt-accordion-item.active .secondSection .kt-accordion-indicator-on {
    display: none !important;
}
.kt-accordion-item.active .secondSection .kt-accordion-indicator-off {
    display: block !important;
}