﻿/* screed documenter */

.--active-element-indicator-- {
    border: 2px double maroon !important;
    background-color: lightgoldenrodyellow !important;
}

.--active-element-indicator--duplicate {
    background-color: palevioletred !important;
}

.--css-selector-billboard {
    position: absolute;
    bottom: 24px;
    left: calc(35%);
    width: 50%;
    height: 34px;
    border: 2px dashed orangered;
    padding: 1px;
    box-shadow: 10px 10px 29px 1px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 10px 10px 29px 1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 10px 29px 1px rgba(0, 0, 0, 0.75);
}

    .--css-selector-billboard input {
        background: silver;
        width: 100%;
        height: 100%;
        border: 1px solid #a8a8a8;
        font-weight: 100;
    }


/* sidepanel dialog */
.modal-dialog-slide {
    position: fixed;
    top: 0;
    right: calc(-1 * (50% - 150px));
    width: calc(50% - 150px);
    height: 100%;
    margin: 0;
    transition: right 0.3s ease;
}

.modal.fade .modal-dialog-slide {
    right: 0;
}

.modal.show .modal-dialog-slide {
    right: 0;
}


/* Excel template viewer component style*/
.excel-template-viewer {
    overflow-x: auto;
}

    .excel-template-viewer .table {
        margin-bottom: 0;
    }

        .excel-template-viewer .table th,
        .excel-template-viewer .table td {
            white-space: nowrap;
            vertical-align: middle;
            padding: 0.75rem;
        }

.excel-toolbar {
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.excel-icon {
    margin-right: 8px;
}

.app-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    user-select: none;
}

.window-action {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    padding: 4px 12px;
    border-radius: 15px;
    background-color: #f8f9fa;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    position: relative;
}

.download-action {
    display: inline-flex;
    align-items: center;
    z-index: 1;
}

    .download-action .bi-download {
        font-size: 14px;
    }

.position-relative:hover .download-action {
    background-color: #217346;
    border-color: #217346;
    color: white;
}

    .position-relative:hover .download-action .bi-download {
        color: white;
    }


/* Navigation menu link aliases items style*/
.set-alias-btn {
    opacity: 0;
    visibility: collapse;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    box-shadow: 0 0 4px 0px;
    zoom: .70;
}

.s-sidebar-item:hover:not(.has-children) .set-alias-btn {
    opacity: 1;
    visibility: visible;
}

/* My Select Editor component style */
.s-MySelectEditor {
    position: relative;
    width: 100%;
    font-family: inherit;
    height: calc(var(--s-input-inner-height) + 5px);
}

    .s-MySelectEditor .select-button {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid var(--bs-border-color);
        border-radius: 4px;
        background: white;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        height: calc(var(--s-input-inner-height) + 3px);
    }

    .s-MySelectEditor.readonly .select-button {
        border-color: var(--bs-border-color);
        background-color: rgba(var(--s-bright-rgb), .02);
        color: var(--s-disabled);
        cursor: default;
    }

    .s-MySelectEditor .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid var(--bs-border-color);
        border-radius: 4px;
        margin-top: 2px;
        z-index: 1000;
        display: none;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .s-MySelectEditor .search-wrapper {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        padding: 8px;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .s-MySelectEditor .search-input-container {
        position: relative;
        display: flex;
        align-items: center;
    }

    .s-MySelectEditor .search-input {
        width: 100%;
        padding: 8px;
        padding-right: 30px;
        border: 1px solid var(--bs-border-color);
        border-radius: 4px;
        outline: none;
    }

    .s-MySelectEditor .clear-search {
        position: absolute;
        right: 8px;
        background: none;
        border: none;
        color: #999;
        font-size: 18px;
        cursor: pointer;
        padding: 0 4px;
        line-height: 1;
    }

        .s-MySelectEditor .clear-search:hover {
            color: #666;
        }

    .s-MySelectEditor .options {
        overflow-y: auto;
        max-height: 200px;
    }

    .s-MySelectEditor .option {
        padding: 8px 12px;
        cursor: pointer;
    }

        .s-MySelectEditor .option:hover,
        .s-MySelectEditor .option.active {
            color: #fff;
            background: #3875d7;
        }

/* Notes editor */

.s-NotesEditor {
    border: 1px solid var(--bs-border-color, #ccc);
    border-radius: var(--bs-border-radius);
    padding: 10px
}

    .s-NotesEditor ul {
        padding: 0;
        min-height: 110px;
        overflow-y: auto;
        list-style: none
    }

    .s-NotesEditor li {
        margin: 10px 0;
        border-radius: var(--bs-border-radius);
        border: 1px solid var(--s-card-border, #C3C2C2);
        background-color: var(--bs-body-bg, #F5E7DC);
        padding: 8px;
        position: relative
    }

    .s-NotesEditor .note-text {
        padding-right: 24px;
        display: block
    }

    .s-NotesEditor .note-delete {
        display: block;
        position: absolute;
        right: 6px;
        top: 4px;
        text-decoration: none
    }

        .s-NotesEditor .note-delete:after {
            font-family: var(--s-icon-font, "FontAwesome");
            font-weight: var(--s-icon-solid);
            color: var(--bs-danger);
            content: "\f00d";
            font-size: 1.1em
        }

        .s-NotesEditor .note-delete:hover {
            opacity: 1
        }

    .s-NotesEditor .note-date {
        margin-top: 6px;
        display: block;
        text-align: right;
        color: var(--bs-link-color, #2a4084);
        text-decoration: none;
        font-style: italic
    }

.s-NoteDialog > .size {
    width: 465px
}

.s-NoteDialog .ui-dialog-content {
    padding-bottom: 10px
}


/* navbar tooltip */

.nav-item-tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2px;
    z-index: 1000;
    display: none;
}

    .nav-item-tooltip .tooltip-item {
        display: flex;
        align-items: center;
        padding: 4px 8px;
        cursor: pointer;
        border-radius: 3px;
        color: #212529;
        text-decoration: none;
        font-size: 10px;
    }

        .nav-item-tooltip .tooltip-item:hover {
            background-color: #f8f9fa;
        }

    .nav-item-tooltip .tooltip-divider {
        height: 1px;
        background-color: #dee2e6;
        margin: 4px 0;
    }


/* ghost button:
    slickgrid column invisible buttons, appears when mouse over 
*/
.ghost-btn-container-cell {
    width: 100%;
    height: 100%;
}

.ghost-btn-container .btn {
    position: absolute;
    right: 1px;
    top: 6px;
    display: none;
    width: 24px;
    height: 24px;
    line-height: 18px;
    padding: 1px 5px;
    filter: drop-shadow(1px 2px 3px #444);
}

    .ghost-btn-container .btn span {
        font-size: 14px;
        color: white;
        text-shadow: 1px 1px 3px #333;
    }

.ghost-btn-container:hover .btn {
    display: block;
}

/* favorite view */


.favorite-views {
    order: 11;
    margin-left: var(--s-col-gap)
}

    .view-switch ~ .title-text, .favorite-views ~ .title-text {
        margin-right: auto
    }

    .favorite-views ul {
        width: 320px;
        margin: 1em;
        background-color: #f8f9fa;
    }

        .favorite-views ul li {
            padding: 1px 6px
        }

    .favorite-views li.save {
        margin-top: 16px;
        margin-left: 6px;
    }

    .favorite-views li.fav {
        position: relative;
        margin: 3px 6px;
        border-bottom: 1px solid #d3d3d391;
        margin-bottom: 6px;
    }

        .favorite-views li.fav a {
            text-decoration: none;
            color: #3c4d62;
        }

    .favorite-views i.fa-trash-o {
        cursor: pointer;
        position: absolute;
        right: 4px;
        top: 4px;
    }


/* navbar todolist */

.navbar-todo-list {
}

    .navbar-todo-list li {
        border-radius: 8px;
        margin: 2px 4px;
        border: 1px solid #dadce0;
    }

        .navbar-todo-list li a.s-sidebar-link {
            font-weight: 100;
        }

        .navbar-todo-list li:hover {
            box-shadow: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
        }

        .navbar-todo-list li a.s-sidebar-link:hover {
            background: none;
        }

a.s-sidebar-link:hover {
    background: #f4f4f5;
}

.s-sidebar-link:hover, .s-sidebar-pane .active > .s-sidebar-link {
    color: initial;
}


/* toggle check button */

.toogle-check-button {
    color: black;
    margin-right: 7px;
}

    .toogle-check-button .ti {
        font-size: 22px;
        line-height: 19px;
        margin-right: 5px;
    }

    .toogle-check-button .ti-square {
        display: block;
    }

    .toogle-check-button.check-yes .ti-square {
        display: none;
    }

    .toogle-check-button .ti-checkbox {
        display: none;
    }

    .toogle-check-button.check-yes .ti-checkbox {
        display: block;
    }


/* dropdown control */
.s-DropdownControl .fa, .s-DropdownControl .fas, .s-DropdownControl .ti {
    font-size: 1.3rem !important;
}

.s-DropdownControl small .fa, .s-DropdownControl small .fas, .s-DropdownControl small .ti {
    font-size: 1.1rem !important;
}


/*
 * Component: Products List
 * ------------------------
 */
.products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .products-list > .item {
        border-radius: 3px;
        -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        background: #fff;
    }

        .products-list > .item:before,
        .products-list > .item:after {
            content: " ";
            display: table;
        }

        .products-list > .item:after {
            clear: both;
        }

    .products-list .product-img {
        float: left;
    }

        .products-list .product-img img {
            width: 120px;
            height: 120px;
        }

    .products-list .product-info {
        margin-left: 130px;
    }

        .products-list .product-info .actions {
            margin-top: 10px;
        }

    .products-list .product-title {
        font-weight: 600;
    }

    .products-list .product-description {
        display: block;
        color: #999;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.product-list-in-box > .item {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid #f4f4f4;
}

    .product-list-in-box > .item:last-of-type {
        border-bottom-width: 0;
    }

/* AI Prompt */

.ai-prompt-button {
    position: absolute;
    top: 8px;
    right: 15px;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.6s ease;
    box-shadow: 7px 6px 15px 6px rgba(0, 0, 0, 0.2);
}

.monaco-editor:hover .ai-prompt-button,
.cke_contents:hover .ai-prompt-button {
    opacity: 1;
}

.ai-prompt-button:hover {
    transform: scale(1.05);
}

.ai-prompt-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 700px;
    max-width: 90%;
}

    .ai-prompt-popup .form-group {
        margin-bottom: 15px;
    }

.ai-prompt-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.sold-out-ribbon {
    position: absolute;
    width: 200px;
    background-color: #dc3545;
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 40px;
    transform: rotate(-45deg);
    left: -50px;
    top: 30px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.eol-ribbon {
    position: absolute;
    width: 200px;
    background-color: #915c75;
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 40px;
    transform: rotate(-45deg);
    left: -50px;
    top: 30px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
}


.ab-masked-input {
    color: transparent !important;
    text-shadow: 0 0 8px #333;
    transition: color 1s ease, text-shadow 1s ease !important;
    transition-delay: 0s !important;
}

    .ab-masked-input:hover {
        color: #333 !important;
        text-shadow: none;
        transition-delay: 0.2s !important;
    }

    .ab-masked-input:not(:hover) {
        transition-delay: 0s;
        transition-duration: 0.4s !important;
    }

    .ab-masked-input:focus {
        color: #333 !important;
        text-shadow: none;
        transition-delay: 0s !important;
    }



.variable {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 3px;
    padding: 2px 4px;
    color: #1565c0;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

    .variable:hover {
        background-color: #bbdefb;
    }

.variable-loop {
    background-color: #f3e5f5;
    border: 1px solid #9c27b0;
    border-radius: 4px;
    padding: 8px;
    margin: 4px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #6a1b9a;
    white-space: pre-line;
}

.ckeditor-variable-dropdown {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    min-width: 260px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.variable-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.variable-item {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    line-height: 1.3;
}

    .variable-item:hover,
    .variable-item.selected {
        background-color: #f0f7ff;
    }

    .variable-item strong {
        color: #333;
    }

    .variable-item small {
        color: #666;
        font-family: 'Courier New', monospace;
        font-size: 11px;
    }

.variable-loop-template {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    margin: 2px 0;
    border-radius: 3px;
}

    .variable-loop-template:hover,
    .variable-loop-template.selected {
        background-color: #f3e5f5;
        border-color: #9c27b0;
    }

    .variable-loop-template .loop-label {
        color: #9c27b0;
        font-size: 10px;
        font-weight: normal;
        background-color: #f3e5f5;
        padding: 1px 4px;
        border-radius: 2px;
        margin-left: 6px;
    }

.variable-group-header {
    padding: 10px 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

    .variable-group-header:hover,
    .variable-group-header.selected {
        background-color: #e9ecef;
    }

    .variable-group-header .loop-info {
        color: #6c757d;
        font-size: 12px;
        font-weight: normal;
        font-style: italic;
    }

    .variable-group-header .arrow {
        float: right;
        font-size: 12px;
    }

.variable-group-fields {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fafbfc;
}

.variable-field {
    padding-left: 24px;
    background-color: #fafbfc;
}

    .variable-field:hover,
    .variable-field.selected {
        background-color: #e3f2fd;
    }

.variable-complex-field {
    padding-left: 16px;
    background-color: #fafbfc;
}



/* Maintenance Item Timeline */

.mt3d-wrap {
    font-family: inherit;
}

.mt3d-untimed-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 16px;
    opacity: 0.75;
    filter: saturate(0.85);
}

.mt3d-untimed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
    color: #555;
    cursor: default;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

    .mt3d-untimed-badge:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

/* Outer wrapper caps the component height (never overflows a host dialog body)
   and provides horizontal scroll when there are more events than fit. */
.mt3d-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 0;
}

/* Straight horizontal axis. Ticks/labels/cards are absolutely positioned; the
   axis line sits at AXIS_TOP (40px, kept in sync with the TSX constant). */
.mt3d-track {
    position: relative;
    min-width: 700px;
    min-height: 600px;
}

.mt3d-axis-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #c4c4c4 4%, #c4c4c4 96%, transparent);
}

/* Real event/today tick: bold and tall. */
.mt3d-tick {
    position: absolute;
    top: 35px;
    width: 2px;
    height: 30px;
    margin-top: -10px;
    border-radius: 1.5px;
    background: #6f6f6f;
    transform: translateX(-50%);
}

/* Ghost ticks: exactly 3 per side of every real tick, each level shorter and
   fainter moving outward (buildGhostTicks assigns level 1..3). Purely
   decorative — no date meaning. */
.mt3d-ghost-tick {
    position: absolute;
    top: 40px;
    width: 1px;
    transform: translateX(-50%);
    background: #bcbcbc;
}

.mt3d-ghost-l1 {
    height: 18px;
    margin-top: -9px;
    opacity: 0.65;
}

.mt3d-ghost-l2 {
    height: 12px;
    margin-top: -5px;
    opacity: 0.45;
}

.mt3d-ghost-l3 {
    height: 7px;
    margin-top: -2.5px;
    opacity: 0.25;
}

.mt3d-tick-label {
    position: absolute;
    top: 54px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    transform: translateX(-50%);
}

    .mt3d-tick-label.mt3d-today {
        color: #1a73e8;
        font-weight: 600;
    }

/* An event cluster hangs below its axis tick and its date label: a short
   connector drops from the axis line down to a rounded-rectangle card. All
   cards share one baseline. */
.mt3d-cluster {
    position: absolute;
    top: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 168px;
    transform: translateX(-50%);
}

.mt3d-connector {
    width: 1px;
    height: 22px;
    background: #cdcdcd;
}

/* A day can hold several event types; each type is its own card, stacked
   vertically under the single connector. This wrapper spaces them apart without
   putting a gap between the connector and the first card. */
.mt3d-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}

/* Per-type card wrapper is the hover anchor. Must stay position:static (the
   tooltip is reparented to document.body on hover, see CONTEXT.md); giving it
   position would not clobber the cluster here, but static keeps it consistent. */
.mt3d-card-anchor {
    width: 100%;
}

.mt3d-card {
    display: flex;
    align-items: stretch;
    position: relative; /* anchor for the overdue badge */
    width: 100%;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

    .mt3d-card:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
        transform: translateY(-1px);
    }

/* Overdue badge: a small red pill pinned to the card's top-right corner, like a
   mobile notification tag. Only rendered when the type-card has overdue items;
   the title itself carries the type name (no "overdue (6/7)" in the title). */
.mt3d-overdue-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.5;
    color: #fff;
    background: #E24B4A;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

/* Left strip is the single status signal: red = overdue, green = done,
   gray = upcoming. Type is intentionally NOT color-coded. */
.mt3d-card-status {
    flex: 0 0 5px;
}

.mt3d-card.mt3d-status-overdue .mt3d-card-status {
    background: #E24B4A;
}

.mt3d-card.mt3d-status-done .mt3d-card-status {
    background: #1D9E75;
}

.mt3d-card.mt3d-status-upcoming .mt3d-card-status {
    background: #b9bec4;
}

.mt3d-card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 10px;
}

.mt3d-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt3d-card.mt3d-status-overdue .mt3d-card-title {
    color: #b02a2a;
    /* leave room for the top-right overdue badge so it doesn't overlap the title */
    padding-right: 52px;
}

.mt3d-card-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt3d-legend {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    min-height: 1em;
}

/* NOTE: .mt3d-hover-anchor deliberately has NO position:relative. The tooltip
   is reparented to document.body with position:fixed on hover, so the anchor
   needs no positioning context — and giving it position:relative would override
   .mt3d-cluster's position:absolute (both are single-class selectors, and this
   rule came later), collapsing every cluster into normal flow (the stacking
   bug). Keep this element position:static. */

.mt3d-hover-tooltip {
    display: none;
    z-index: 1100;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    width: max-content;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    cursor: default;
}

    .mt3d-hover-tooltip.mt3d-hover-tooltip-open {
        display: block;
    }

.mt3d-tooltip-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    white-space: nowrap;
}

.mt3d-tooltip-list {
    /* No overflow clipping here: the per-row snooze menu opens as an absolutely
       positioned child, and overflow-y:auto would clip it on the lower rows. */
    max-height: none;
    overflow: visible;
}

.mt3d-tooltip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    border-top: 1px solid #eee;
    color: #555;
    cursor: pointer;
}

    .mt3d-tooltip-item:first-of-type {
        border-top: none;
    }

    .mt3d-tooltip-item:hover {
        color: #1a73e8;
    }

.mt3d-tooltip-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Leading status icon (replaces the old "overdue/done/upcoming" text). Fixed
   square so titles line up; color carries the status. */
.mt3d-tooltip-item-icon {
    flex: 0 0 auto;
    width: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #999;
}

    .mt3d-tooltip-item-icon.mt3d-status-overdue {
        color: #E24B4A;
    }

    .mt3d-tooltip-item-icon.mt3d-status-done {
        color: #2FA36B;
    }

    .mt3d-tooltip-item-icon.mt3d-status-upcoming {
        color: #8a8a8a;
    }

.mt3d-tooltip-item-edit {
    flex: 0 0 auto;
    font-size: 12px;
    color: #1a73e8;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.mt3d-tooltip-item:hover .mt3d-tooltip-item-edit {
    opacity: 1;
}

/* Snooze control: a clock button that toggles a small menu. The menu is
   position:absolute inside the row so it floats over the tooltip content. */
.mt3d-tooltip-item-snooze {
    flex: 0 0 auto;
    position: relative;
}

/* Snooze button: a real button, not a bare icon. */
.mt3d-snooze-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    border: 1px solid #d6d9e0;
    border-radius: 6px;
    background: #f5f6f8;
    color: #5a6270;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

    .mt3d-snooze-btn:hover {
        background: #e9edf6;
        border-color: #b9c2d6;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

/* Pressed/active look while the menu is open. */
.mt3d-tooltip-item-snooze.mt3d-open .mt3d-snooze-btn {
    background: #e2e9f7;
    border-color: #9fb2dc;
}

.mt3d-snooze-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    padding: 4px;
    z-index: 1200;
}

    .mt3d-snooze-menu.mt3d-open {
        display: block;
    }

.mt3d-snooze-opt {
    padding: 7px 10px;
    font-size: 12px;
    color: #444;
    border-radius: 5px;
    white-space: nowrap;
    cursor: pointer;
}

    .mt3d-snooze-opt:hover {
        background: #f0f4fb;
        color: #1a73e8;
    }

/* Dormant/snoozed card: faded, so a snoozed occurrence reads as "sleeping"
   rather than an active due item. */
.mt3d-card.mt3d-card-snoozed {
    opacity: 0.55;
    filter: saturate(0.7);
}
