/* =========================================
   Document Toolbar
   ========================================= */

.document-toolbar {
    background-color: #fff;
}

/* Action container */
.document-toolbar .document-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* -----------------------------------------
   Button Reset
----------------------------------------- */
.document-toolbar .no-button {
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

/* Disabled button */
.document-toolbar .no-button:disabled,
.document-toolbar .is-disabled {
    cursor: not-allowed;
}

/* -----------------------------------------
   Base Attachment Icon Style
----------------------------------------- */
.document-toolbar img {
    width: 24px;
    height: auto;
    vertical-align: middle;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        filter 0.2s ease;
}

/* -----------------------------------------
   ACTIVE ICONS (dark green – emphasized)
----------------------------------------- */
.document-toolbar .is-blue img
{
    filter: brightness(0) saturate(100%)
            invert(33%)
            sepia(92%)
            saturate(2470%)
            hue-rotate(174deg)
            brightness(92%)
            contrast(101%);
}

.document-toolbar .toolbar-back img,
.document-toolbar .toolbar-print img{
    filter: brightness(0) saturate(100%) invert(23%) sepia(72%) saturate(460%) hue-rotate(95deg) brightness(85%) contrast(110%);
} 

/* Bigger icons when attachment exists */
.document-toolbar .has-attachment img {
    width: 30px;
}

/* Subtle lift */
.document-toolbar .has-attachment {
    transform: translateY(-1px);
}

/* Hover emphasis for active attachments */
.document-toolbar .has-attachment:hover img , button#print:hover img{
    transform: scale(1.12);
}

/* -----------------------------------------
   DISABLED / NO ATTACHMENT
----------------------------------------- */
.document-toolbar .is-disabled img {
    width: 22px;
    opacity: 0.35;
    filter: grayscale(100%);
}

/* -----------------------------------------
   Optional links (Back to PAB, if used)
----------------------------------------- */
.document-toolbar .toolbar-pab-back {
    margin-left: 0.5rem;
    font-weight: 500;
    text-decoration: none;
}

.document-toolbar .toolbar-pab-back:hover {
    text-decoration: underline;
}

/* -----------------------------------------
   Language Switch (unchanged)
----------------------------------------- */
.document-toolbar button[data-lang] {
    font-weight: 600;
    /*margin-left: 0.25rem;*/
}

.lang-btn {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 400;
    transition: all 0.2s ease;
}

/* Hover (optional, nice feel) */
.lang-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Active language */
.lang-btn.active {
    font-weight: 600;
    background-color: #0b3c7d; /* dark blue */
    color: #fff;
}

.lang-btn:focus-visible {
    outline: 2px solid #0b3c7d;
    outline-offset: 2px;
}



/*/////Modal Popup///*/
/* =========================
   Image Modal – Polished
   ========================= */

/* Modal shell */
.image-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Modal body centers everything */
.image-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

/* White frame that hugs image */
.image-frame {
    position: relative; /* 🔑 anchor for close button */

    background: #fff;
    padding: 1rem;
    max-height: 85vh;
    max-width: 85vw;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 8px;
}


/* Image fits inside white frame */
.image-frame img {
    max-height: 80vh;
    max-width: 80vw;
    object-fit: contain;
    display: block;
}

/* Close button – visible & professional */
.image-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    background-color: #fff;
    border-radius: 50%;
    opacity: 1;

    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 10;
}


.image-modal-close:hover {
    background-color: #f2f2f2;
}


/* Image counter (1 / N) */
.image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 14px;
    font-weight: 500;

    padding: 4px 10px;
    border-radius: 12px;

    z-index: 5;
    pointer-events: none; /* clicks pass through */
}

.carousel-control-next-icon, .carousel-control-prev-icon{
    background-color: #000;
}

.pdf-thumb {
    width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f2f2f2;
    border-radius: 4px;
}

.pdf-thumb-link:hover .pdf-thumb {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}


