/* ───────────────────────────────
   Slim Select – Design Tokens
   ───────────────────────────────
*/
:root {
    /* fonts / typography */
    --ss-font-family: 'Inter', sans-serif;
    --ss-font-size-sm: 12px;
    --ss-font-size-md: 14px;
    --ss-font-weight-regular: 400;
    --ss-font-weight-medium: 500;

    /* greys */
    --ss-grey-900: #202020;
    --ss-grey-600: #646464;
    --ss-grey-300: #dddddd;

    /* semantic colours */
    --ss-success: #18794e;
    --ss-danger: #c62a2f;

    /* component radii & gaps */
    --ss-radius: 4px;
    --ss-radius-lg: 8px;
    --ss-gap-sm: 8px;

    /* padding values */
    --ss-padding-xs: 2px;
    --ss-padding-sm: 4px;
    --ss-padding-md: 8px;
    --ss-padding-lg: 12px;

    /* avatar sizes */
    --ss-avatar-sm: 16px;
    --ss-avatar-md: 20px;
    --ss-avatar-lg: 24px;
}

/* Utility: Avatar & Icon */
.ssx-avatar,
.ssx-icon {
    flex: 0 0 auto;
}
.ssx-avatar {
    border-radius: 50%;
    object-fit: cover;
}
.ssx-avatar--sm {
    width: var(--ss-avatar-sm) !important;
    height: var(--ss-avatar-sm) !important;
}
.ssx-avatar--md {
    width: var(--ss-avatar-md) !important;
    height: var(--ss-avatar-md) !important;
}
.ssx-avatar--lg {
    width: var(--ss-avatar-lg) !important;
    height: var(--ss-avatar-lg) !important;
}

/* Icon visibility */
.ssx-icon {
    display: none;
}
.ss-list .ss-option.ss-selected .ssx-icon {
    display: flex;
    align-items: center;
}

/* fix avatar only padding */
.ssx-main-plugin {
    flex-grow: 1 !important;
}

.ssx-avatar-only > .ss-main.slim-dropdown {
    border-radius: 999px !important;
}

.ssx-avatar-only .ss-main .ss-values .ss-single {
    margin: 0px;
}

/* Main control scoping */
.ssx-main-control,
.ssx-main-control .ss-main,
.ssx-main-control .ss-values,
.ssx-main-control .ss-single,
.ssx-main-control .ssx-control {
    display: flex;
    align-items: center;
    gap: var(--ss-gap-sm, 8px);
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 20px;
}

.ssx-main-control .ss-placeholder {
    padding: 0px !important;
}

.ssx-main-control .ssx-current-wrap {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ssx-main-control .ss-values {
    display: flex;
    flex: 1 1 100%;
}
.ssx-main-control .ss-single {
    display: flex;
    flex: 1 1 0;
}
.ssx-main-control .ssx-control {
    display: flex;
    align-items: center;
    gap: var(--ss-gap-sm, 8px);
    flex: 1 1 0;
}

/* Text overflow utility */
.ssx-main-control .ssx-current-wrap {
    flex: 1 1 0;
}
.ssx-main-control .ssx-text-overflow {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

.ssx-current-wrap {
    flex: 1 1 0;
    min-width: 0;
}
.ssx-text-overflow {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}
/*
----------------------
Thi section is for avatar only displays

Avatar only classes to add:
plugin: {addClass: "ssx-main-control ssx-background-transparent ssx-avatar-only ssx-hide-arrow"}
helper: ssx-padding-sm, ssx-radius-options, ssx-dropdown-auto-width

----------------------
*/
.ssx-dropdown-auto-width-sm {
    min-width: 140px; /* Or whatever width you want */
    width: auto !important; /* Override plugin's default width */
    max-width: 100vw; /* Avoid accidental overflow */
}

.ssx-dropdown-auto-width {
    min-width: 188px; /* Or whatever width you want */
    width: auto !important; /* Override plugin's default width */
    max-width: 100vw; /* Avoid accidental overflow */
}

.ssx-avatar-only .ss-main .ssx-main-control > :not(.ssx-avatar) {
    display: none !important;
}

/* 4. Conditional Arrow Hiding */
.ssx-avatar-only .ss-arrow {
    display: none !important;
}

.ssx-avatar-only > .ss-main.slim-dropdown {
    border-width: 0px !important;
}

/*
----------------------
This section is for label styling for 1t
----------------------
*/

.ssx-main-content .ss-optgroup-label .ss-optgroup-label-text {
    font-size: var(--ss-font-size-sm) !important;
    font-weight: var(--ss-font-weight-regular) !important;
    color: var(--ss-grey-600) !important;
}
.ssx-main-content .ss-optgroup-label {
    padding: var(--ss-padding-md) var(--ss-padding-sm) !important;
}

/*
----------------------
This section is for random utilities.
----------------------
*/

.ssx-padding-sm {
    padding: var(--ss-padding-sm);
}

.ssx-background-transparent .ss-main {
    background-color: transparent !important;
}

.ssx-radius-options .ss-list .ss-option {
    border-radius: var(--ss-radius);
}

.ssx-font-weight-md {
    font-weight: var(--ss-font-weight-medium);
}

.ssx-font-weight-rg {
    font-weight: var(--ss-font-weight-regular);
}

/*testing force open right*/
.ss-content.ssx-force-open-right {
    left: auto !important;
    right: 0 !important; /* force to open leftward */
}

.tooltip-main-container,
.tooltip-main-container * {
    box-sizing: border-box;
}

.tooltip-main-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #dddddd;
    max-width: 240px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Common styles for flex containers */
.tooltip-section,
.tooltip-box {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

/* Styles for the tooltip wrapper and image */
.tooltip-wrapper {
    width: fit-content;
    height: fit-content;
    overflow: hidden;
    max-width: 224px;
}

.tooltip-img {
    width: 13px;
    height: 13px;
    margin: 1.5px 0 0 1.5px;
    background-size: 100% 100%;
}

/* Common text styles */
.tooltip-text,
.tooltip-text-2 {
    flex-basis: auto;
    height: 16px;
    color: #646464;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 130%;
    text-align: left;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 224px;
}

.tooltip-text {
    font-weight: 500;
}

.tooltip-text-2 {
    font-weight: 400;
}

/* Styles for the tooltip header text */
.tooltip-header-text3 {
    flex-basis: auto;
    width: fit-content;
    max-width: 240px;
    min-width: min-content;
    height: auto;
    color: #646464;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 130%;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    font-weight: 400;
}

/*
----------------------
this section is for scrollbar modifications
----------------------
*/

/* Stable scrollbars (no width hacks, no layout shift) */
.scrollable-container {
    overflow: auto;
    box-sizing: border-box;
    /* Reserve a consistent gutter even if the OS shows/hides bars */
    scrollbar-gutter: stable both-edges;

    /* Keep it simple for Firefox; don't fight its width */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.35) transparent;

    /* Avoid extra work during programmatic scrolls while debugging */
    scroll-behavior: auto;
}

/* WebKit/Chromium: only style, don't change width */
.scrollable-container::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    border: 2px solid transparent; /* “inset” look without affecting layout */
}

/* Optional: subtle hover tint (no show/hide, no width change) */
.scrollable-container:hover {
    scrollbar-color: rgba(0, 0, 0, 0.55) transparent;
}
.scrollable-container:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.55);
}

/* Usage:
 For the element previously using id="grp-comment-inner-rg", use:
 class="scrollable-container"

 For the element previously using id="grp-pre-read-vert-scroll", use:
 class="scrollable-container"
*/

/*
----------------------
this secton is for tiptap styling
----------------------
*/

.tippy-box {
    background-color: #fff !important;
}

.tippy-content {
    padding: 0px !important;
}

/* Spinner Button (not tiptap related) */
.spinner-button .icon-item svg {
    animation: rotate 1500ms linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Bandaid: remove tt scrollbar effects
#tiptap-area .bubble-element[class~="1714072999083x630344922366476300-AAC"] {
    overflow: auto !important;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
  }
#tiptap-area .bubble-element[class~="1714072999083x630344922366476300-AAC"]::-webkit-scrollbar {
    display: none !important;
}*/

.fixOverflowTT {
    overflow: visible !important;
}

/*
----------------------
this section is pulled from left nav styling
----------------------
*/

/* Common styles */
body {
    font-family: Inter, sans-serif;
    color: #202020;
}

/* Typography */
p,
li {
    line-height: 142%;
    font-size: 14px;
    font-weight: 400;
}

h3,
h5,
h6 {
    line-height: 142%;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

h5,
h6 {
    font-size: 16px;
}

h5 {
    font-weight: 500 !important;
}

h6 {
    font-weight: 500;
}

/* Lists */
ul,
ol {
    padding-left: 24px;
}

ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
}

ul ul ul {
    list-style-type: square;
}

ul ul ul ul {
    list-style-type: circle;
}

ol {
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

/* Links */
a {
    color: #155eef !important;
    text-decoration: underline;
}

/* Empty paragraphs */
p:empty::before {
    content: '';
    display: inline-block;
}

/* Custom classes */
.air-datepicker {
    --adp-width: 260px;
}

.custom-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.highlight {
    background-color: #ffdc74;
}

/* Status spans */
.span-done,
.span-not-done,
.span-cancelled,
.span-overdue {
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    background-color: transparent;
    padding: 2px 6px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.span-done {
    color: green;
    border: 1px solid green;
}

.span-not-done {
    color: #b42318;
    border: 1px solid #b42318;
}

.span-cancelled {
    color: #344054;
    border: 1px solid #344054;
}

.span-overdue {
    color: #b54708;
    border: 1px solid #b54708;
}

/* Emoji styles */
.emojis {
    padding: 3px 6px 1px 6px;
}

.add-emoji-btn {
    opacity: 80%;
}

.reorder-editor {
    order: 3 !important;
}

.expandOverflowBek {
    overflow-y: auto !important;
    overflow-x: clip !important;
}

/* air date picker styling */
.air-datepicker-cell.-day-.-current- {
    color: #ffffff;
    background-color: #e54666;
    border-radius: 100%;
}

.air-datepicker-body--cells.-days- {
    gap: 0px 4px;
}

/* add animation to chevron btn */
.animateBtnChevron {
    transition: transform 0.15s ease-in-out !important; /* Adjust duration and easing as needed */
}

.hr-line {
    border: none;
    height: 1px;
    background-color: #ebebeb;
    margin-top: 16px;
    margin-bottom: 16px;
}

/*
----------------------
blink animations for Record Reusable Element
----------------------
*/

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 1s infinite;
}

/*
----------------------
this section is for the TipTap Table styling
----------------------
*/

.tableWrapper table {
    border: 1px solid #ebebeb;
    border-radius: 2px;
}

.tableWrapper table th:not(:last-child),
.tableWrapper table td:not(:last-child) {
    border-right: 1px solid #ebebeb;
}

/*
----------------------
This section is for fixing text selection in flyout menus
----------------------
*/

/* Flyout Menu Container */
.flyOutPointer {
    pointer-events: none; /* Allow text selection to pass through */
}

/* Interactive Elements within the Flyout Menu */
.flyOutPointer .clickable-element {
    pointer-events: auto; /* Keep buttons and links interactive */
    user-select: none;
}

/* Disable pointer events on interactive elements during selection */
.flyOutPointer.is-selecting .clickable-element {
    pointer-events: none; /* Prevent interference during text selection */
    user-select: none;
}

.no-select {
    user-select: none; /* Prevent selection */
    pointer-events: none; /* Prevent interaction like dragging */
}

.text-overflow {
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap;
}

.text-white-space-nowrap {
    white-space: nowrap !important;
}

/*
----------------------
this section is for bluring sections
----------------------
*/
.results-locked {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/*
----------------------
this section is for Advanced ToolTip styling
----------------------
*/

.advanced-tooltip-container {
    padding: 6px 10px;
    background-color: white;
    color: #202020;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    line-height: 1.4;
    user-select: none;
    white-space: nowrap;
    font-family: Inter, sans-serif;
    width: fit-content;
}

/*
----------------------
this section is for update banner
----------------------
*/

.bad-revision {
    font-size: 24px !important;
    padding: 24px !important;
}

/*
----------------------
this section is for tailwind styling
----------------------
*/

.tw-box-shadow-md {
    box-shadow:
        0 4px 6px -1px rgb(0, 0, 0, 0.1),
        0 2px 4px -2px rgb(0, 0, 0, 0.1);
}

.tw-box-shadow-lg {
    box-shadow:
        0 10px 15px -3px rgb(0, 0, 0, 0.1),
        0 4px 6px -4px rgb(0, 0, 0, 0.1);
}

.tw-box-shadow-xl {
    box-shadow:
        0 20px 25px -5px rgb(0, 0, 0, 0.1),
        0 8px 10px -6px rgb(0, 0, 0, 0.1);
}

/* One paint-only toggle instead of touching each tooltip node */
body.is-selecting [data-tippy-root] {
    visibility: hidden !important;
}

blockquote {
    margin-top: 1.5rem;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-style: italic;
    border-left: 2px solid oklch(92.2% 0 0);
}
