@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}



.table-col-data-text-align-center {
    text-align: center;
}



.table-col-width-5 {
    width: 5%;
}

.table-col-width-10 {
    width: 10%;
}

.table-col-width-15 {
    width: 15%;
}

.table-col-width-20 {
    width: 20%;
}

.table-col-width-30 {
    width: 30%;
}

.table-col-width-40 {
    width: 40%;
}

.table-col-width-50 {
    width: 50%;
}

.table-col-width-60 {
    width: 60%;
}

.table-col-width-70 {
    width: 70%;
}

.table-col-width-80 {
    width: 80%;
}

.table-col-width-90 {
    width: 90%;
}

.table-col-width-100 {
    width: 100%;
}

.text-align-right {
    text-align: right;
}


.single-top {
    border-top: 2px solid #ffffff !important;
}

.double-bottom {
    border-bottom: 3px double #ffffff !important;
}



.handle-cell {
    width: 20px;
    text-align: center;
    vertical-align: middle;
    padding: 6px 6px;
    user-select: none;
    -webkit-user-select: none;
    background-color: transparent;
}

.drag-handle {
    display: inline-block;
    width: 10px;
    height: 1px;
    position: relative;
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
}


    .drag-handle:active,
    .drag-handle.dragging {
        cursor: grabbing;
    }


    .drag-handle::before,
    .drag-handle::after,
    .drag-handle > span {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        margin: 0 auto;
    }


    .drag-handle > span {
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        left: 0;
    }

    .drag-handle::before {
        top: 3px;
        width: 60%;
        left: 20%;
        opacity: 0.95;
    }


    .drag-handle::after {
        bottom: 3px;
        width: 60%;
        left: 20%;
        opacity: 0.95;
    }


.handle-cell .drag-handle {
    padding: 6px;
    box-sizing: content-box;
}


.drag-handle {
    color: white;
}

    .drag-handle:hover {
        color: hotpink;
    }

tbody tr * {
    -webkit-user-drag: none;
    user-drag: none;
}


.handle-cell:hover ~ td,
.handle-cell:hover ~ th {
}


.dragging-row {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    transition: background-color 0.2s ease;
}


/* ---------------------------------------------------------------------------
   Kanban board  (GitHub-Projects dark style)
--------------------------------------------------------------------------- */
.kanban-board {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
}

.kanban-column {
    flex: 0 0 300px;
    max-width: 300px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    max-height: 78vh;
}

.kanban-column-header {
    padding: 0.85rem 0.9rem 0.6rem;
    border-bottom: 1px solid #21262d;
}

.kanban-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    flex: 0 0 auto;
}

.kanban-column-title {
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
}

.kanban-count {
    margin-left: 0.5rem;
    background: #21262d;
    color: #8b949e;
    border-radius: 20px;
    padding: 0.05rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.kanban-column-desc {
    color: #8b949e;
    font-size: 0.75rem;
    margin: 0.4rem 0 0;
    line-height: 1.35;
}

.kanban-column-body {
    min-height: 120px;
    overflow-y: auto;
    padding: 0.7rem;
    flex: 1 1 auto;
}

.kanban-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.7rem 0.75rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.kanban-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35);
}

.kanban-card:active {
    cursor: grabbing;
    transform: scale(0.99);
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.kanban-card-type {
    color: #8b949e;
    font-size: 0.75rem;
    font-weight: 500;
}

.kanban-card-avatar {
    color: #6e7681;
    font-size: 0.95rem;
}

.kanban-card-title {
    color: #e6edf3;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    word-break: break-word;
}

.kanban-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}

.kanban-prio {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
}

.kanban-prio.prio-critical { background: #4b1113; color: #ff7b72; border: 1px solid #6e2528; }
.kanban-prio.prio-high     { background: #341a1c; color: #ff7b72; border: 1px solid #5c2a2d; }
.kanban-prio.prio-medium   { background: #3a2c05; color: #e3b341; border: 1px solid #5c4611; }
.kanban-prio.prio-low      { background: #21262d; color: #8b949e; border: 1px solid #30363d; }

.kanban-assignee {
    font-size: 0.72rem;
    color: #8b949e;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-placeholder {
    border: 1px dashed #58a6ff;
    background: rgba(88, 166, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    height: 70px;
}

.kanban-empty {
    text-align: center;
    color: #6e7681;
    font-size: 0.78rem;
    padding: 1.1rem 0.5rem;
    border: 1px dashed #30363d;
    border-radius: 8px;
}

.kanban-iteration {
    display: inline-block;
    font-size: 0.68rem;
    color: #adbac7;
    background: #2d333b;
    border: 1px solid #373e47;
    border-radius: 12px;
    padding: 0.05rem 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card type accents: feature = blue, issue = red */
.kanban-card.type-feature { border-left: 3px solid #388bfd; }
.kanban-card.type-issue   { border-left: 3px solid #f85149; }
.kanban-card-type.type-feature { color: #58a6ff; }
.kanban-card-type.type-issue   { color: #ff7b72; }

/* Member avatar (initials) */
.member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #5a8dee;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    flex: 0 0 auto;
}

.member-avatar-sm {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
}

/* ---------------------------------------------------------------------------
   Document editor (Editor.js)
--------------------------------------------------------------------------- */
.doc-title {
    border: none;
    border-bottom: 1px solid #e0e6ed;
    border-radius: 0;
    font-size: 1.6rem;
    font-weight: 700;
    padding-left: 0;
}
.doc-title:focus {
    box-shadow: none;
    border-bottom-color: #5a8dee;
}

.doc-meta {
    font-size: 0.8rem;
    flex: 1 1 auto;
    text-align: center;
}

.doc-editor {
    max-width: 820px;
    margin: 0 auto;
    min-height: 320px;
}
/* Give Editor.js room and keep its popovers above the card */
.doc-editor .codex-editor { z-index: 1; }
.doc-editor .ce-block__content,
.doc-editor .ce-toolbar__content { max-width: 100%; }

/* ---------------------------------------------------------------------------
   Notion-style block editor (doceditor.js)
--------------------------------------------------------------------------- */
.doc-toolbar { max-width: 900px; margin-left: auto; margin-right: auto; }

/* Borderless document title inline with the Back button */
.doc-title-inline {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 4px 6px;
    color: #2b333b;
}
.doc-title-inline:focus { box-shadow: none; }

/* A4 "page" on a Word-like gray desk */
.doc-canvas {
    background: #151521;
    padding: 32px 16px;
    border-radius: 4px;
}
.doc-page {
    display: flex;
    flex-direction: column;
    width: 794px; /* A4 @ 96dpi = 210mm */
    max-width: 100%;
    min-height: 1123px; /* A4 @ 96dpi = 297mm */
    margin: 0 auto;
    background: #0d0d16; /* editable paper, a touch off pure-white */
    box-shadow: 0 2px 14px rgba(0, 0, 0, .22);
    border-radius: 13px;
    padding: 72px 76px;
}
.doc-editor { flex: 1 1 auto; }

/* Created / updated footer, bottom-left of the page */
.doc-footer {
    margin-top: auto;
    padding-top: 28px;
    color: #9aa5b1;
    font-size: .78rem;
    text-align: left;
}
.doc-footer:empty { display: none; }

/* Custom text selection colour inside the page */
.doc-page ::selection { background: #cfe0ff; }
.doc-page ::-moz-selection { background: #cfe0ff; }

.doc-editor-surface { outline: none; }

/* Rows: gutter + marker + editable content */
.doc-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 1px 0;
}
.doc-content {
    flex: 1 1 auto;
    outline: none;
    padding: 3px 2px;
    line-height: 1.6;
    min-height: 1.6em;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 4px;
}
.doc-content:empty::before {
    content: attr(data-placeholder);
    color: #b9c3cf;
    pointer-events: none;
}

/* Hover gutter (add / drag handle) sits in the left margin */
.doc-gutter {
    position: absolute;
    left: -3.1rem;
    top: .2rem;
    display: flex;
    align-items: center;
    gap: 1px;
    opacity: 0;
    transition: opacity .1s ease;
    user-select: none;
}
.doc-row:focus-within > .doc-gutter { opacity: .5; }  /* clicked/focused row */
.doc-row:hover > .doc-gutter { opacity: 1; }          /* hover wins */
.doc-add, .doc-handle {
    color: #9aa5b1;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1.4;
}
.doc-add { font-size: 1.15rem; }
.doc-handle { cursor: grab; }
.doc-add:hover, .doc-handle:hover { background: #eef1f5; color: #5b6b7e; }
.doc-row.dragging { opacity: .5; }

/* Markers (bullet / number / checkbox) */
.doc-marker {
    flex: 0 0 auto;
    min-width: 1.5em;
    text-align: right;
    padding: 3px 6px 0 0;
    color: #4b5563;
    user-select: none;
}
.doc-marker:empty { display: none; }
.doc-check { width: 15px; height: 15px; cursor: pointer; margin-top: 4px; }

/* Headings */
.doc-content.doc-h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.3; margin-top: .4rem; }
.doc-content.doc-h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-top: .3rem; }
.doc-content.doc-h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin-top: .2rem; }

/* Quote */
.doc-content.doc-quote {
    border-left: 3px solid #5a8dee;
    padding-left: .75rem;
    color: #4b5563;
    font-style: italic;
}

/* Lists / to-do */
.doc-content.doc-li { padding-top: 3px; }
.doc-content.doc-done { color: #9aa5b1; text-decoration: line-through; }

/* Inline code */
.doc-content code {
    background: #f0f2f5;
    border-radius: 3px;
    padding: 1px 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    color: #d6336c;
}

/* Code block */
.doc-content.doc-code {
    background: #0d1117;
    color: #e6edf3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88rem;
    padding: 12px 14px;
    border-radius: 6px;
    white-space: pre-wrap;
}
.doc-content.doc-code code { background: transparent; color: inherit; padding: 0; }

/* Divider */
.doc-divider { flex: 1 1 auto; padding: 6px 0; cursor: default; user-select: none; }
.doc-divider hr { margin: 0; border: none; border-top: 1px solid #d5dbe2; }

/* Floating selection toolbar (dark popup) */
.doc-seltoolbar {
    position: absolute;
    z-index: 2000;
    display: none;
    align-items: center;
    gap: 1px;
    background: #1f2329;
    color: #fff;
    border-radius: 8px;
    padding: 4px 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.doc-seltoolbar.show { display: flex; }

/* Slash command menu (dark popup) */
.doc-slashmenu {
    position: absolute;
    z-index: 2100;
    display: none;
    flex-direction: column;
    min-width: 232px;
    max-height: 320px;
    overflow-y: auto;
    background: #1f2329;
    color: #fff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.doc-slashmenu.show { display: flex; }
.doc-slashitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
}
.doc-slashitem.active { background: #2f3540; }
.doc-slashicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    background: #33383f;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 600;
}
.doc-slashlabel { flex: 1 1 auto; }
.doc-seltool {
    background: transparent;
    border: none;
    color: #e6e6e6;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: .9rem;
    line-height: 1.1;
    min-width: 28px;
}
.doc-seltool:hover { background: #33383f; }
.doc-seltool.active { color: #8ab4ff; }
.doc-seltool.doc-b { font-weight: 700; }
.doc-seltool.doc-i { font-style: italic; }
.doc-seltool.doc-u { text-decoration: underline; }
.doc-seltool.doc-s { text-decoration: line-through; }
.doc-seltool.doc-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.doc-seltool-sep { width: 1px; height: 18px; background: #3a4048; margin: 0 4px; }
.doc-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .3);
    margin: 0 1px;
    transition: transform .08s ease;
}
.doc-swatch:hover { transform: scale(1.15); }

/* ---------------------------------------------------------------------------
   GitHub-style task detail modal (dark)
--------------------------------------------------------------------------- */
.gh-modal {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #e6edf3;
}

.gh-modal-header {
    border-bottom: 1px solid #21262d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gh-modal-header .modal-title { color: #e6edf3; }

.btn-close-gh {
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 1rem;
    cursor: pointer;
}
.btn-close-gh:hover { color: #e6edf3; }

.gh-modal-body { padding: 1.25rem 1.4rem; }

.gh-sidebar {
    border-left: 1px solid #21262d;
}

@media (max-width: 991px) {
    .gh-sidebar { border-left: none; border-top: 1px solid #21262d; padding-top: 1rem; }
}

.gh-label {
    color: #8b949e;
    font-size: 0.78rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.gh-field { margin-bottom: 1rem; }

.gh-input {
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #e6edf3 !important;
}
.gh-input:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.25) !important;
}
.gh-input::placeholder { color: #6e7681; }

.gh-meta {
    font-size: 0.8rem;
    color: #c9d1d9;
    border-top: 1px solid #21262d;
    padding-top: 0.8rem;
}
.gh-meta > div { margin-bottom: 0.35rem; }

.gh-remove {
    background: transparent;
    border: none;
    color: #f85149;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    cursor: pointer;
    margin-top: 0.6rem;
}
.gh-remove:hover { text-decoration: underline; }

.gh-modal-footer {
    border-top: 1px solid #21262d;
}
/* ------------------------------------------------------------------ *
   Global modal backdrop
   All modals use data-bs-backdrop="false", so Bootstrap renders no
   .modal-backdrop element. Bootstrap still adds .modal-open to <body>
   whenever a modal is shown, so we paint a blurred, darkened overlay
   from there. z-index sits below .modal (1055) so dialogs stay sharp.
 * ------------------------------------------------------------------ */
body.modal-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: none;
}
