﻿/* Shared internal panel/table styling for admin components */

/* Prevent the document from ever producing a horizontal scrollbar.
   Wide content (e.g. a DxGrid, the DxMenu bar on small viewports, or the
   body-level <dxbl-popup-portal> that DxPopup teleports outside of
   .InternalAppContent) used to push the page wider than the viewport,
   leaving a horizontal scrollbar visible behind the modal backdrop. We
   clip horizontal overflow at the document, app-shell, and popup-portal
   level — content that legitimately needs horizontal scrolling (grids,
   code blocks) should set `overflow-x: auto` on its own container so
   the scroll affordance lives there, not on the page. */
html,
body {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

.InternalAppContent {
    overflow-x: clip;
    max-width: 100vw;
}

/* DxPopup renders its modal into a body-level <dxbl-popup-portal>
   wrapper. If the popup's requested Width is wider than the viewport,
   the portal itself overflows the body before our :has() clamp on
   .dxbl-modal-content takes effect, so guard the portal too. */
.dxbl-popup-portal {
    max-width: 100vw;
    overflow-x: clip;
}


/* Badge styling for notifications/requests */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 6px;
    border-radius: 6px;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    background-color: var(--dxds-color-content-danger-default-rest);
    color: var(--dxds-color-content-neutral-default-static-dark-rest);
}

/* Prevent DxMenu from clipping the notification badge */
.dxbl-menu-item .nav-badge:not(:empty) {
    display: inline-flex !important;
    overflow: visible !important;
    vertical-align: top;
}

.dxbl-menu-item .nav-badge:empty {
    display: none !important;
}

.dxbl-menu .dxbl-menu-item-text-container {
    overflow: visible !important;
}









/* Width utilities */
.min-w-600 {
    min-width: 600px;
}

.second-group {
    z-index: 1000;
}

/* Theme popup - transparent container so only InternalCard is visible */
.theme-popup-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.theme-popup.dxbl-popup,
.theme-popup .dxbl-popup-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Overlay panel popup - keeps the DxPopup border/shadow visible */
.overlay-popup.dxbl-popup,
.overlay-popup .dxbl-popup-content {
    border-radius: 18px;
    border: 1px solid var(--dxds-color-border-neutral-default-active);
    background: var(--dxds-color-surface-neutral-default-selected);
    box-shadow: 0 22px 60px var(--dxds-color-shadow-default);
}

/* Hard cap the overlay popup window to the viewport.
   DxPopup renders the popup into a body-level <dxbl-popup-portal> with a
   <div class="dxbl-modal-content"> child that receives the inline width
   from the Width parameter. The CssClass on DxPopup ("overlay-popup")
   does NOT land on that modal-content element, so a plain class selector
   cannot clamp it. We instead identify the right modal-content via
   :has() of our BodyCssClass marker (.overlay-popup-body) and clamp its
   max-width to the viewport. The per-instance <style> block emitted by
   MainLayout.razor also forces the actual width via min(<requested>, 95vw)
   for the responsive clamp. */
.dxbl-modal-content:has(.overlay-popup-body) {
    max-width: 95vw !important;
    box-sizing: border-box !important;
}

.overlay-popup-body {
    padding: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Strip inner card chrome when inside the overlay popup to avoid double border */
.overlay-popup-body .InternalCardPopup,
.overlay-popup-body .InternalCard {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.theme-popup-close {
    opacity: 0.7;
}

.theme-popup-close:hover {
    opacity: 1;
}


.InternalSurface {
    padding: 22px;
    margin: 0 auto;
}


.form-text {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--dxds-color-content-neutral-secondary-rest);
}

.InternalCardPopup {
    border: 1px solid var(--dxds-color-border-neutral-default-active);
    border-radius: 18px;
    background: var(--dxds-color-surface-neutral-default-selected);
    box-shadow: 0 22px 60px var(--dxds-color-shadow-default);
    padding: 26px;
   
    margin: 0 auto;
}

.InternalCard {
    border-radius: 18px;
    border: 1px solid var(--dxds-color-border-neutral-default-active);
    background-color: purple;
    background: var(--dxds-color-surface-neutral-default-selected);
    box-shadow: 0 22px 60px var(--dxds-color-shadow-default);
    padding: 10px;
    margin: 0 auto;
}



.InternalDxGrid {
    border-radius: 18px;
    border: 1px solid var(--dxds-color-border-neutral-default-active);
   
    box-shadow: 0 22px 60px var(--dxds-color-shadow-default);
    padding: 5px;
    margin: 0 auto;
}
.InternalListCard {
    border-radius: 18px;
    border: 1px solid var(--dxds-color-border-neutral-default-active);
    background: var(--dxds-color-surface-neutral-default-selected);
    background-color: var(--dxds-color-surface-neutral-default-selected);
    box-shadow: 0 22px 60px var(--dxds-color-shadow-default);
    padding: 26px;
    margin: 0 auto;
}

.InternalCard:hover {
    border-color: var(--dxds-color-border-neutral-default-hover);
}

.InternalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 8px;
}

.InternalHeaderLeft {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.InternalHeaderCenter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
    min-width: 0;
}

.InternalCentered {
    text-align: center;
    width: 100%;
}


.Internal-align-items-start {
    align-items: flex-start !important;
}
.InternalGridButton {
    color: var(--dxds-color-surface-primary-default-rest);
}

.InternalIcon {
    font-size: 28px;
    color: var(--dxds-color-surface-primary-default-rest);
    flex-shrink: 0;
}

.InternalIconGrid {
    width: 25px;
    height: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    flex-shrink: 0;
}


.InternalThemeIcon {
    mask-size: cover;
    width: 1rem;
    height: 1rem;
    background-color: var(--dxds-color-surface-primary-default-rest);
    color: var(--dxds-color-surface-primary-default-rest);
    mask-image: url("../images/theme.svg");
    -webkit-mask-image: url("../images/theme.svg");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.InternalIconGrid span {
    background: #2b7de9;
    border-radius: 3px;
    display: block;
    min-width: 0;
    min-height: 0;
}

.InternalBreadcrumb {
    font-size: 14px;
    color: var(--dxds-color-text-neutral-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.InternalBreadcrumbSeparator {
    color: var(--dxds-color-text-neutral-tertiary);
    padding: 0 6px;
}

.InternalTitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--dxds-color-text-neutral-primary);
    line-height: 1.2;
    margin-top: 2px;
    
}

.InternalBackButton {
    color: var(--dxds-color-text-neutral-secondary);
    background: var(--dxds-color-surface-accent-primary-default-rest);
    font-size: 1.5rem;
    cursor: pointer;
    
}

.InternalIntro {
    text-align: left;
    color: var(--dxds-color-text-neutral-secondary);
    font-size: 14px;
    width: 80%;
    line-height: 1.6;
    margin: 16px auto 0;
}

.InternalLogoHeader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 70px;
    flex-wrap: wrap;
}

.InternalLogo {
    height: 70px;
    width: auto;
    flex-shrink: 0;
}

.InternalLogoHeaderText {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.Internal-center-text {

    
        text-align: center !important;
    
}

.InternalPrimaryButton {
    background: var(--dxds-color-surface-accent-primary-default-rest);
    color: var(--dxds-color-text-onaccent-primary);
    border: 1px solid var(--dxds-color-border-accent-primary-default-rest);
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.InternalPrimaryButton:hover {
    background: var(--dxds-color-surface-accent-primary-default-hover);
    border-color: var(--dxds-color-border-accent-primary-default-hover);
}

.InternalMetaRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    margin-bottom: 12px;
}

.InternalCount {
    color: var(--dxds-color-text-neutral-secondary);
    font-size: 13px;
}

.InternalTableWrap {
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: 10px;
    overflow: hidden;
    background: var(--dxds-color-surface-neutral-default-rest);
}

.InternalTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--dxds-color-text-neutral-primary);
}

.InternalTable thead th {
    text-align: left;
    background: var(--dxds-color-surface-neutral-default-hover);
    color: var(--dxds-color-text-neutral-primary);
    padding: 10px 12px;
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
    font-weight: 700;
}

.InternalTable tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--dxds-color-border-neutral-secondary);
}

.InternalTable tbody tr:hover td {
    background: var(--dxds-color-surface-neutral-default-hover);
}

.InternalStrong {
    font-weight: 700;
    color: var(--dxds-color-text-neutral-primary);
}

.InternalNum {
    text-align: center;
    width: 120px;
}

.InternalActions {
    text-align: right;
    width: 220px;
    white-space: nowrap;
}

.InternalLink {
    color: var(--dxds-color-text-accent-primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 14px;
    cursor: pointer;
}

.InternalLink:hover {
    text-decoration: underline;
}

.InternalDangerButton {
    background: transparent;
    border: 1px solid var(--dxds-color-border-danger-default-rest);
    color: var(--dxds-color-text-danger);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
}

.InternalDangerButton:hover {
    background: var(--dxds-color-surface-danger-default-hover);
    border-color: var(--dxds-color-border-danger-default-hover);
}




.d-flex {
    display: flex !important;
}


.gap-3 {
    gap: 1rem !important;
}

.w-100 {
    width: 100% !important;
}



.w-80 {
    width: 80% !important;
}

.w-160px {

    width:140px;

}

.w-70 {
    width: 70% !important;
}

.w-50 {
    width: 50% !important;
}
.w-25 {
    width: 25% !important;
}

.m-800 {
    max-width: 800px !important;
}

.m-900 {
    max-width: 900px !important;
}



.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}


.mb-1 {
    margin-bottom: 8px !important;
}


.mb-3 {
    margin-bottom: 1rem !important;
}



.me-1 {
    margin-right: .25rem !important
}

.me-2 {
    margin-right: .5rem !important
}

.me-3 {
    margin-right: 1rem !important
}



.ml-3 {
    margin-left: 7px !important
}
/* Font weight*/

.fw-lighter {
    font-weight: lighter !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-bolder {
    font-weight: bolder !important;
}

/* ========== Notification Preferences Layout ========== */
.InternalPrefGrid {
    width: 100%;
    justify-items: start;
}

/* DxGridLayout renders a nested grid container; force left alignment there as well */
.InternalPrefGrid > * {
    justify-items: start;
}

.InternalCheckHeader {
    display: inline-flex;
    align-items:  center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
}

.InternalCheckCell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 32px;
    width: 100%;
}



/* Responsive layout for small screens */
@media (max-width: 800px) {
    .InternalLogoHeader {
        flex-direction: column;
        align-items: center;
    }

    .InternalLogoHeaderText {
        align-items: center;
    }

    .InternalIntro {
        width: 100%;
    }
}

/* Action List styling */
.InternalActionList {
    list-style: none;
    padding: 0;
    margin: 24px auto 0;
    max-width: 1100px;
}

.InternalActionItem {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
}

.InternalActionItem:last-child {
    border-bottom: none;
}

.InternalActionIcon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.InternalActionIcon.warning {
    color: #f0ad4e;
}

.InternalActionContent {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.InternalActionTitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--dxds-color-content-primary-default-rest);
    text-decoration: none;
    cursor: pointer;
}

.InternalActionTitle:hover {
    text-decoration: underline;
}

.InternalActionDesc {
    font-size: 14px;
    color: var(--dxds-color-text-neutral-secondary);
    line-height: 1.5;
}

.InternalFooter {
    text-align: left;
    color: var(--dxds-color-text-neutral-tertiary);
    font-size: 13px;
    margin: 24px 0 0 26px;
}

/* Queue Panel styling */
.InternalQueueContainer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.InternalQueueDrawer {
    flex: 1;
    min-height: 0;
}

.InternalDrawerBody {
    height: 100%;
    background: var(--dxds-color-surface-neutral-default-rest);
    border-right: 1px solid var(--dxds-color-border-neutral-default-rest);
}

.InternalDrawerHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
}

.InternalDrawerIcon {
    font-size: 20px;
    color: var(--dxds-color-content-primary-default-rest);
}

.InternalDrawerTitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--dxds-color-text-neutral-primary);
}

.InternalDrawerList {
    padding: 12px 0;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.InternalDrawerItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--dxds-color-text-neutral-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .InternalDrawerItem:hover {
        background-color: var(--dxds-color-surface-neutral-default-selected-hovered);
        color: var(--dxds-color-text-neutral-primary);
    }

    .InternalDrawerItem.selected {
        background-color: var(--dxds-color-surface-neutral-default-selected);
        color: var(--dxds-color-content-primary-default-rest);
        font-weight: 500;
    }

.InternalDrawerItem.selected:hover {
    background-color: var(--dxds-color-surface-primary-subdued-hover);
}

.InternalDrawerItem > span:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.InternalDrawerItemText {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.InternalBadge {
    flex-shrink: 0;
    background: var(--dxds-color-surface-neutral-default-hover);
    color: var(--dxds-color-text-neutral-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.InternalTextBadge {
    display: inline-block;
    background: var(--dxds-color-surface-primary-subdued-rest);
    color: var(--dxds-color-content-neutral-default-rest);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
    
}

.InternalBadge.warning {
    background: var(--dxds-color-surface-warning-subdued-rest);
    color: var(--dxds-color-content-warning-default-rest);
}

.InternalToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;


    flex-shrink: 0;
}

.InternalNavButton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--dxds-color-text-neutral-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.InternalNavButton:hover {
    background: var(--dxds-color-surface-neutral-default-hover);
}

.InternalNavButton .oi {
    font-size: 22px;
}

.InternalToolbarTitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--dxds-color-text-neutral-primary);
    flex: 1;

}


.InternalQueueContent {
    height: calc(100vh - 180px);
    padding: 8px;
    display: flex;
    flex-direction: column;
}



.priority-cell {
    display: block;
    padding: 2px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    white-space: nowrap;
}

    .priority-cell.priority-critical {
        background: var(--dxds-color-surface-danger-subdued-rest);
        color: var(--dxds-color-content-danger-default-rest);
    }

    .priority-cell.priority-high {
        background: var(--dxds-color-surface-warning-subdued-rest);
        color: var(--dxds-color-content-warning-default-rest);
    }

    .priority-cell.priority-medium {
        background: var(--dxds-color-surface-utility-yellow-subdued-rest);
        color: var(--dxds-color-content-caution-default-rest);
    }

    .priority-cell.priority-low {
        background: var(--dxds-color-surface-success-subdued-rest);
        color: var(--dxds-color-content-success-default-rest);
    }

.status-cell {
    display: inline-block;
    padding: 2px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    white-space: nowrap;
}

    .status-cell.status-proposed {
        background: var(--dxds-color-surface-warning-subdued-rest);
        color: var(--dxds-color-content-warning-default-rest);
    }

    .status-cell.status-approved {
        background: var(--dxds-color-surface-success-subdued-rest);
        color: var(--dxds-color-content-success-default-rest);
    }

    .status-cell.status-rejected {
        background: var(--dxds-color-surface-danger-subdued-rest);
        color: var(--dxds-color-content-danger-default-rest);
    }

    .status-cell.status-completed {
        background: var(--dxds-color-surface-primary-subdued-rest);
        color: var(--dxds-color-content-primary-default-rest);
    }

    .status-cell.status-inprogress {
        background: var(--dxds-color-surface-info-subdued-rest);
        color: var(--dxds-color-content-info-default-rest);
    }

    .status-cell.status-waiting {
        background: var(--dxds-color-surface-utility-yellow-subdued-rest);
        color: var(--dxds-color-content-caution-default-rest);
    }

    .status-cell.status-cancelled {
        background: var(--dxds-color-surface-neutral-default-hover);
        color: var(--dxds-color-text-neutral-secondary);
    }

/* Collapsible Card Styling */
.InternalCollapsibleCard {
    border-radius: 12px;
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    background: var(--dxds-color-surface-neutral-default-rest);
    overflow: hidden;
    margin-bottom: 12px;
}

.InternalCollapsibleHeader {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    background: var(--dxds-color-surface-neutral-default-hover);
    border-bottom: 1px solid transparent;
    transition: background-color 0.15s ease;
    overflow: hidden;
    flex-wrap: wrap;
}

.InternalCollapsibleHeader > .InternalTextBadge {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.InternalCollapsibleHeader:hover {
    background: var(--dxds-color-surface-neutral-default-selected-hovered);
}

.InternalCollapsibleHeader .InternalTextBadge,
.InternalCollapsibleHeader .status-cell,
.InternalCollapsibleHeader .priority-cell,
.InternalCollapsibleHeader .InternalBadge,
.InternalCollapsibleHeader .InternalCollapsibleCount {
    cursor: default;
}

.InternalCollapsibleCard.expanded .InternalCollapsibleHeader {
    border-bottom-color: var(--dxds-color-border-neutral-default-rest);
}

.InternalCollapsibleChevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--dxds-color-text-neutral-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.InternalCollapsibleChevron svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.InternalCollapsibleCard.expanded > .InternalCollapsibleHeader > .InternalCollapsibleChevron {
    transform: rotate(90deg);
}

.InternalCollapsibleTitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--dxds-color-text-neutral-primary);
    flex-shrink: 0;
}

.InternalCollapsibleCount {
    background: var(--dxds-color-surface-neutral-default-rest);
    color: var(--dxds-color-text-neutral-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.InternalCollapsibleActions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    cursor: default;
    flex-shrink: 0;
}

.InternalCollapsibleActions button,
.InternalCollapsibleActions .dxbl-btn {
    cursor: pointer;
}

.InternalCollapsibleBody {
    padding: 16px;
    display: none;
}

.InternalCollapsibleCard.expanded .InternalCollapsibleBody {
    display: block;
}

/* ========== Attachment Grid ========== */
.InternalAtt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
    margin-top: .5rem;
}


/* Attachments grid styles */
.att-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.att-card {
    width: 200px;
    border-radius: 8px;
    background: var(--dxds-color-surface-neutral-default-hover);
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.att-card:hover {
    border-color: var(--dxds-color-border-neutral-default-hover);
    box-shadow: 0 4px 12px var(--dxds-color-shadow-default);
}

.att-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    background: var(--dxds-color-surface-neutral-default-rest);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.att-card-thumb:hover {
    opacity: 0.9;
}

.att-thumb {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.att-card-icon {
    display: flex;
    width: 100%;
    height: 100px;
    align-items: center;
    justify-content: center;
    background: var(--dxds-color-surface-neutral-default-rest);
    font-size: 2rem;
    color: var(--dxds-color-text-neutral-secondary);
}

.att-card-info {
    border-top: 1px solid var(--dxds-color-border-neutral-default-rest);
    padding: 10px 12px;
}

.att-file-icon {
    display: flex;
    width: 100%;
    height: 100px;
    align-items: center;
    justify-content: center;
    background: var(--dxds-color-surface-neutral-default-rest);
    font-size: 2.5rem;
}

.att-thumb-text {
    display: flex;
    width: 100%;
    height: 100px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--dxds-color-surface-neutral-default-rest);
    font-size: 11px;
    line-height: 1.4;
    color: var(--dxds-color-text-neutral-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    word-break: break-word;
}

.att-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dxds-color-text-neutral-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.att-card-meta {
    font-size: 11px;
    color: var(--dxds-color-text-neutral-secondary);
}

.dz-file-icon-sm {
    display: inline-flex;
    width: 270px;
    height: 270px;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e7e7eb;
    border-radius: .35rem;
    font-size: 3rem;
    color: #64748b;
}

.att-name {
    color: #0a58ca;
    text-decoration: none;
}

    .att-name:hover {
        text-decoration: underline;
    }

.att-sec-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: #1f2a44;
    font-weight: 600;
    cursor: pointer;
}

/* ========== Attachment Preview Styling ========== */
.InternalPreviewBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

.InternalPreviewToolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dxds-color-surface-neutral-default-hover);
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
    min-height: 48px;
}

    .InternalPreviewToolbar .InternalBackButton {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        font-size: 1.1rem;
        transition: background-color 0.15s ease;
        color: var(--dxds-color-content-primary-default-rest);
    }

.InternalPreviewToolbar .InternalBackButton:hover {
    background: var(--dxds-color-surface-neutral-default-selected-hovered);
}

.InternalPreviewFileName {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--dxds-color-text-neutral-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.InternalPreviewPanel {
    position: fixed;
    right: 0;
    top: 5vh;
    bottom: 5vh;
    width: min(900px, 90vw);
    background: var(--dxds-color-surface-neutral-default-rest);
    z-index: 1201;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--dxds-color-border-neutral-default-rest);
    box-shadow: 0 8px 24px var(--dxds-color-shadow-default);
    overflow: hidden;
}





.InternalPreviewHeader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
    background: var(--dxds-color-surface-neutral-default-hover);
}
::deep .custom .dxbl-list-box-item-selected {
    border: solid !important;
    color: rgb(73, 80, 87) !important;
    border-color: rgb(95, 54, 141) !important;
    background-color: white !important;
    border-width: 1px !important;
}




.InternalPreviewBody {
    padding: 1rem;
    overflow: auto;
    background: var(--dxds-color-surface-neutral-default-rest);
    flex: 1;
}

.InternalPreviewBodyPopup {
    height: calc(90vh - 120px);
    min-height: 400px;
}

.InternalPreviewBodyPopup iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.InternalPreviewText {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--dxds-color-text-neutral-primary);
}

.InternalPreviewFrame {
    width: 100%;
    height: 100%;
    border: 0;
}

.InternalPreviewDocx {
    color: var(--dxds-color-text-neutral-primary);
    line-height: 1.6;
}

.InternalPreviewImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}





/* Optional for the content */
.collapsed {
    display: none;
}

/* Small screens: make panel full width */
@media (max-width: 640px) {
    .InternalPreviewPanel {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        border-left: none;
        border-radius: 0;
    }
}

/* Narrow screens: remove card border/shadow for full-bleed layout */
@media (max-width: 576px) {
    .InternalSurface {
        padding: 4px;
    }

    .InternalCard {
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 6px;
    }
}

/* Layout styles */
.InternalAppHeader {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.InternalAppContent {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.InternalMainLogo {
    height: 62px;
    width: auto;
    padding:2px;
    flex-shrink: 0;
    filter: brightness(1.10) contrast(1.1); /* slightly darker with more contrast */
}

.InternalAppHeader > .dxbl-menu {
    flex: 1;
    min-width: 0;
   
}

/* ========== Drop Zone Styling ========== */
.drop-zone-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 2px dashed var(--dxds-color-border-neutral-default-rest);
    border-radius: 8px;
    background: var(--dxds-color-surface-neutral-default-rest);
    color: var(--dxds-color-text-neutral-secondary);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-zone-container:hover {
    border-color: var(--dxds-color-border-neutral-default-hover);
}

.drop-zone-container .oi {
    font-size: 1.25rem;
    color: var(--dxds-color-content-primary-default-rest);
}

.custom-drop-zone-hover {
    border-color: var(--dxds-color-border-accent-primary-default-rest) !important;
    background: var(--dxds-color-surface-primary-subdued-rest) !important;
}

/* ========== Collapsible Note Cards ========== */
.note-card {
    background: var(--dxds-color-surface-neutral-default-rest);
    transition: background-color 0.15s ease;
    overflow: hidden;
}

.note-card .note-header {
    background: var(--dxds-color-surface-neutral-default-hover);
    border-radius: 4px 4px 0 0;
    transition: background-color 0.15s ease;
    min-height: 30px;
    padding: 2px 5px !important;
    overflow: hidden;
}

.note-card:not(.expanded) .note-header {
    border-radius: 4px;
}

.note-card .note-header:hover {
    background: var(--dxds-color-surface-neutral-default-selected-hovered);
}

.note-card .InternalCollapsibleChevron {
    transition: transform 0.2s ease;
}

.note-card.expanded .InternalCollapsibleChevron {
    transform: rotate(90deg);
}

.note-card .note-body {
    background: #fff;
    color: #111;
    border-radius: 0 0 4px 4px;
    overflow-x: hidden;
    word-break: break-word;
}

.note-preview {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0.8;
}

.min-width-0 {
    min-width: 0;
}

/* ========== Inline Status Combo ========== */
.status-inline-combo {
    min-width: 120px;
    max-width: 160px;
}

.status-inline-combo .dxbl-edit-input-container {
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}

.status-inline-combo.status-proposed .dxbl-edit-input-container {
    background: var(--dxds-color-surface-warning-subdued-rest) !important;
    border-color: var(--dxds-color-border-warning-default-rest) !important;
}

.status-inline-combo.status-proposed input {
    color: var(--dxds-color-content-warning-default-rest) !important;
    font-weight: 600;
}

.status-inline-combo.status-approved .dxbl-edit-input-container {
    background: var(--dxds-color-surface-success-subdued-rest) !important;
    border-color: var(--dxds-color-border-success-default-rest) !important;
}

.status-inline-combo.status-approved input {
    color: var(--dxds-color-content-success-default-rest) !important;
    font-weight: 600;
}

.status-inline-combo.status-rejected .dxbl-edit-input-container {
    background: var(--dxds-color-surface-danger-subdued-rest) !important;
    border-color: var(--dxds-color-border-danger-default-rest) !important;
}

.status-inline-combo.status-rejected input {
    color: var(--dxds-color-content-danger-default-rest) !important;
    font-weight: 600;
}

.status-inline-combo.status-completed .dxbl-edit-input-container {
    background: var(--dxds-color-surface-primary-subdued-rest) !important;
    border-color: var(--dxds-color-border-primary-default-rest) !important;
}

.status-inline-combo.status-completed input {
    color: var(--dxds-color-content-primary-default-rest) !important;
    font-weight: 600;
}

.status-inline-combo.status-inprogress .dxbl-edit-input-container {
    background: var(--dxds-color-surface-info-subdued-rest) !important;
    border-color: var(--dxds-color-border-info-default-rest) !important;
}

.status-inline-combo.status-inprogress input {
    color: var(--dxds-color-content-info-default-rest) !important;
    font-weight: 600;
}

.status-inline-combo.status-waiting .dxbl-edit-input-container {
    background: var(--dxds-color-surface-utility-yellow-subdued-rest) !important;
    border-color: var(--dxds-color-border-caution-default-rest) !important;
}

.status-inline-combo.status-waiting input {
    color: var(--dxds-color-content-caution-default-rest) !important;
    font-weight: 600;
}

.status-inline-combo.status-cancelled .dxbl-edit-input-container {
    background: var(--dxds-color-surface-neutral-default-hover) !important;
    border-color: var(--dxds-color-border-neutral-default-rest) !important;
}

.status-inline-combo.status-cancelled input {
    color: var(--dxds-color-text-neutral-secondary) !important;
    font-weight: 600;
}

/* ========== Priority Inline Combo (TicketDetails header) ========== */
.priority-inline-combo {
    min-width: 110px;
    max-width: 150px;
}

.priority-inline-combo .dxbl-edit-input-container {
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}

.priority-inline-combo.priority-critical .dxbl-edit-input-container {
    background: var(--dxds-color-surface-danger-subdued-rest) !important;
    border-color: var(--dxds-color-border-danger-default-rest) !important;
}

.priority-inline-combo.priority-critical input {
    color: var(--dxds-color-content-danger-default-rest) !important;
    font-weight: 600;
}

.priority-inline-combo.priority-urgent .dxbl-edit-input-container {
    background: var(--dxds-color-surface-danger-subdued-rest) !important;
    border-color: var(--dxds-color-border-danger-default-rest) !important;
}

.priority-inline-combo.priority-urgent input {
    color: var(--dxds-color-content-danger-default-rest) !important;
    font-weight: 600;
}

.priority-inline-combo.priority-high .dxbl-edit-input-container {
    background: var(--dxds-color-surface-warning-subdued-rest) !important;
    border-color: var(--dxds-color-border-warning-default-rest) !important;
}

.priority-inline-combo.priority-high input {
    color: var(--dxds-color-content-warning-default-rest) !important;
    font-weight: 600;
}

.priority-inline-combo.priority-medium .dxbl-edit-input-container {
    background: var(--dxds-color-surface-utility-yellow-subdued-rest, rgba(255, 171, 0, 0.15)) !important;
    border-color: var(--dxds-color-border-caution-default-rest, #ffab00) !important;
}

.priority-inline-combo.priority-medium input {
    color: var(--dxds-color-content-caution-default-rest, #ffab00) !important;
    font-weight: 600;
}

.priority-inline-combo.priority-normal .dxbl-edit-input-container {
    background: var(--dxds-color-surface-neutral-default-hover) !important;
    border-color: var(--dxds-color-border-neutral-default-rest) !important;
}

.priority-inline-combo.priority-normal input {
    color: var(--dxds-color-text-neutral-secondary) !important;
    font-weight: 600;
}

.priority-inline-combo.priority-low .dxbl-edit-input-container {
    background: var(--dxds-color-surface-success-subdued-rest) !important;
    border-color: var(--dxds-color-border-success-default-rest) !important;
}

.priority-inline-combo.priority-low input {
    color: var(--dxds-color-content-success-default-rest) !important;
    font-weight: 600;
}

/* ========== Business Hours Calendar Panel ========== */
.bh-time-edit {
    width: 100px;
}

/* ========== @Mention Styling in DxHtmlEditor ========== */
.dx-mention {

    color: var(--dxds-color-content-primary-default-rest);
    border-radius: 3px;
    padding: 1px 4px;
    font-weight: 500;
}

.dx-mention:hover {
    background-color: var(--dxds-color-surface-primary-subdued-hover);
}


/* ========== DxHtmlEditor — force white editing surface in all themes ========== */
.dxbl-html-editor .ql-editor {
    background-color: #fff !important;
    color: #111 !important;
}

.baktest {
}