@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* TaskBoard / Treviq design system
 * Central stylesheet: page-level CSS belongs here.
 */

/* Source: resources/views/dashboard.blade.php */
.dashboard-shell {
    display: grid;
    gap: 1.25rem;
}

.dashboard-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--tb-border, #f3ecff);
    border-radius: 12px;
    background: var(--tb-surface, #ffffff);
    box-shadow: 0 4px 20px rgba(129, 56, 232, 0.04);
}

.dashboard-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--tb-primary-soft, #faf7ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--tb-primary, #8138e8);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-section {
    display: grid;
    gap: 0.85rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.summary-grid.grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.summary-card {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 1.1rem;
    border: 1px solid var(--tb-border, #f3ecff);
    border-radius: 12px;
    background: var(--tb-surface, #ffffff);
    box-shadow: 0 4px 16px rgba(129, 56, 232, 0.04);
    color: var(--metric-color, #8138e8);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(129, 56, 232, 0.08);
}

.summary-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: currentColor;
}

.summary-card span {
    display: block;
    color: var(--tb-muted, #8138e8);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-card strong {
    display: block;
    margin-top: 1rem;
    color: var(--tb-heading, #2b1458);
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 900;
}

.card-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.today-task-panel, .comment-reminder-panel {
    border-radius: 12px !important;
}

.today-table-wrap {
    overflow-x: auto;
}

.today-task-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.today-task-table th {
    padding: 0.85rem 0.8rem;
    color: var(--tb-muted, #8138e8);
    border-bottom: 1px solid var(--tb-border, #f3ecff);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.today-task-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid var(--tb-border-soft, #faf7ff);
    font-size: 0.86rem;
    vertical-align: middle;
}

.today-task-table tbody tr:hover {
    background: rgba(129, 56, 232, 0.03);
}

.team-member {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.member-avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tb-primary-soft, #faf7ff);
    color: var(--tb-primary-strong, #6723ce);
    font-size: 0.7rem;
    font-weight: 800;
}

.priority-pill, .status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.73rem;
    font-weight: 800;
}

.priority-low { background: #f3ecff; color: #6723ce; }
.priority-medium { background: #f3ecff; color: #8138e8; }
.priority-high, .priority-urgent { background: #f3ecff; color: #6723ce; }

.status-todo { background: #f3ecff; color: #8138e8; }
.status-in_progress { background: #f3ecff; color: #6723ce; }
.status-review { background: #f3ecff; color: #6723ce; }
.status-on_hold { background: #f3ecff; color: #6723ce; }
.status-completed { background: #faf7ff; color: #8138e8; }

.dashboard-empty {
    color: var(--tb-muted, #8138e8);
    border: 1px dashed var(--tb-border, #e6d8ff);
    border-radius: 8px;
    background: var(--tb-surface-muted, #faf7ff);
}

.metric-blue { --metric-color: #8138e8; }
.metric-green { --metric-color: #9b5cf7; }
.metric-amber { --metric-color: #9b5cf7; }
.metric-teal { --metric-color: #8138e8; }
.metric-indigo { --metric-color: #6723ce; }
.metric-red { --metric-color: #6723ce; }
.metric-slate { --metric-color: #6723ce; }

/* Interior palette: clean white panels, black type and Treviq-like purple accents. */
.dashboard-titlebar {
    padding: 0.45rem 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.dashboard-eyebrow { color: #6723ce; }
.dashboard-titlebar h1 { font-size: 1.55rem; }
.summary-card {
    min-height: 100px;
    border-radius: 15px;
    box-shadow: none;
}
.summary-card:before { display: none; }
.summary-card:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b5cf7, #9b5cf7);
}
.summary-card strong { color: #2b1458; }
.today-task-panel, .comment-reminder-panel {
    border: 1px solid #f3ecff !important;
    box-shadow: none !important;
}
.today-task-table tbody tr:hover { background: #faf7ff; }

@media (max-width: 1199px) {
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-grid.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .dashboard-titlebar { padding: 1rem; }
    .summary-grid, .summary-grid.grid-6 { grid-template-columns: 1fr; }
}

/* Source: resources/views/welcome.blade.php */
.welcome-page {
                font-family: 'Instrument Sans', sans-serif;
                background: #faf7ff;
                color: #4c2191;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 1.5rem;
            }
            .welcome-card {
                max-width: 640px;
                width: 100%;
                background: #ffffff;
                border: 1px solid #f3ecff;
                border-radius: 12px;
                box-shadow: 0 16px 40px rgba(129, 56, 232, 0.06);
                padding: 2.5rem;
                text-align: center;
            }
            .welcome-brand {
                font-size: 2.2rem;
                font-weight: 800;
                color: #4c2191;
                margin-bottom: 0.75rem;
                letter-spacing: -0.01em;
            }
            .welcome-brand span {
                color: #9b5cf7;
            }
            .welcome-desc {
                font-size: 1.05rem;
                color: #8138e8;
                margin-bottom: 1.75rem;
                line-height: 1.5;
            }
            .feature-pills {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
                justify-content: center;
                margin-bottom: 2rem;
            }
            .feature-pill {
                background: #faf7ff;
                color: #4c2191;
                font-size: 0.85rem;
                font-weight: 600;
                padding: 0.35rem 0.85rem;
                border-radius: 999px;
            }
            .btn-action {
                background: #9b5cf7;
                border: 1px solid #9b5cf7;
                color: #ffffff;
                font-weight: 700;
                padding: 0.7rem 1.8rem;
                border-radius: 8px;
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
                transition: background 0.16s ease;
            }
            .btn-action:hover {
                background: #9b5cf7;
                color: #ffffff;
            }

/* Source: resources/views/attendance/index.blade.php */
.status-auto-clocked-out { background:#f3ecff; color:#6723ce; }
    [data-bs-theme="dark"] .status-auto-clocked-out { background:#2b1458; color:#f3ecff; }

/* Source: resources/views/auth/complete-kyc.blade.php */
.login-shell {
        min-height:calc(100vh - 2rem);
        display:grid;
        place-items:center;
        padding:2rem 0;
    }
    .login-panel {
        width:min(1040px, 100%);
        display:grid;
        grid-template-columns:minmax(0, 1.15fr) minmax(340px, .85fr);
        border:1px solid var(--tb-border);
        border-radius:24px;
        overflow:hidden;
        background:var(--tb-surface);
        box-shadow:0 24px 70px rgba(129, 56, 232, .16);
    }
    .login-story {
        min-height:540px;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        gap:2rem;
        padding:2rem;
        color:#ffffff;
        background:linear-gradient(135deg,#9b5cf7 0%,#6723ce 52%,#4c2191 100%);
    }
    .login-brand { letter-spacing:.02em; }
    .login-eyebrow {
        margin:0 0 .8rem;
        font-size:.75rem;
        font-weight:850;
        letter-spacing:.08em;
        text-transform:uppercase;
        opacity:.74;
    }
    .login-story h1 {
        max-width:620px;
        margin:0;
        font-size:clamp(2rem, 3.6vw, 3.1rem);
        line-height:1.06;
        font-weight:850;
        letter-spacing:0;
    }
    .login-story p:not(.login-eyebrow) {
        max-width:560px;
        margin:1rem 0 0;
        color:rgba(129, 56, 232, .82);
        font-size:1rem;
    }
    .login-proof {
        display:flex;
        flex-wrap:wrap;
        gap:.65rem;
    }
    .login-proof span {
        border:1px solid rgba(129, 56, 232, .25);
        border-radius:999px;
        padding:.45rem .75rem;
        background:rgba(129, 56, 232, .1);
        font-weight:700;
        font-size:.8rem;
    }
    .login-card {
        align-self:center;
        padding:2rem;
    }
    .login-card h2 {
        margin:0;
        color:var(--tb-heading);
        font-size:1.5rem;
        font-weight:800;
    }
    .login-card p {
        margin:.35rem 0 1.35rem;
    }
    @media (max-width: 767px) {
        .login-panel { grid-template-columns:1fr; }
        .login-story { min-height:280px; }
        .login-card { padding:1.25rem; }
    }

/* Source: resources/views/auth/login.blade.php */
.login-shell {
        min-height:calc(100vh - 2rem);
        display:grid;
        place-items:center;
        padding:2rem 0;
    }
    .login-panel {
        width:min(1040px, 100%);
        display:grid;
        grid-template-columns:minmax(0, 1.15fr) minmax(340px, .85fr);
        border:1px solid var(--tb-border);
        border-radius:24px;
        overflow:hidden;
        background:var(--tb-surface);
        box-shadow:0 24px 70px rgba(129, 56, 232, .16);
    }
    .login-story {
        min-height:540px;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        gap:2rem;
        padding:2rem;
        color:#ffffff;
        background:linear-gradient(135deg,#9b5cf7 0%,#6723ce 52%,#4c2191 100%);
    }
    .login-brand { letter-spacing:.02em; }
    .login-eyebrow {
        margin:0 0 .8rem;
        font-size:.75rem;
        font-weight:850;
        letter-spacing:.08em;
        text-transform:uppercase;
        opacity:.74;
    }
    .login-story h1 {
        max-width:620px;
        margin:0;
        font-size:clamp(2rem, 4vw, 3.55rem);
        line-height:1.02;
        font-weight:850;
        letter-spacing:0;
    }
    .login-story p:not(.login-eyebrow) {
        max-width:560px;
        margin:1rem 0 0;
        color:rgba(129, 56, 232, .78);
        font-size:1rem;
    }
    .login-proof {
        display:flex;
        flex-wrap:wrap;
        gap:.65rem;
    }
    .login-proof span {
        border:1px solid rgba(129, 56, 232, .25);
        border-radius:999px;
        padding:.45rem .75rem;
        background:rgba(129, 56, 232, .1);
        font-weight:700;
        font-size:.8rem;
    }
    .login-card {
        align-self:center;
        padding:2rem;
    }
    .login-card h2 {
        margin:0;
        color:var(--tb-heading);
        font-size:1.6rem;
        font-weight:800;
    }
    .login-card p {
        margin:.35rem 0 1.5rem;
    }
    @media (max-width: 767px) {
        .login-panel { grid-template-columns:1fr; }
        .login-story { min-height:320px; }
        .login-card { padding:1.25rem; }
    }

/* Source: resources/views/calendar/index.blade.php */
.calendar-shell { display:grid; grid-template-columns:310px minmax(0,1fr); gap:1rem; }
    .calendar-side { display:grid; gap:1rem; align-content:start; }
    .calendar-panel,.calendar-main { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:8px; box-shadow:var(--tb-shadow); }
    .calendar-panel { padding:1rem; }
    .calendar-filter { display:flex; align-items:center; gap:.55rem; padding:.45rem 0; cursor:pointer; }
    .legend-dot { width:10px; height:10px; border-radius:50%; flex:0 0 auto; }
    .upcoming-item { display:flex; gap:.55rem; color:var(--tb-body-color); text-decoration:none; padding:.65rem 0; border-bottom:1px solid var(--tb-border-soft); }
    .upcoming-item:last-child { border-bottom:0; }
    .upcoming-item strong { display:block; font-size:.92rem; }
    .upcoming-item small { color:var(--tb-muted); }
    .calendar-main { min-width:0; overflow:hidden; }
    .calendar-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; border-bottom:1px solid var(--tb-border); }
    #calendar { padding:1rem; }
    .fc .fc-toolbar-title { font-size:1.25rem; }
    .fc .fc-button-primary { background:#8138e8; border-color:#8138e8; }
    .fc-event { border:0; border-radius:6px; padding:2px 4px; }
    @media (max-width: 991px) { .calendar-shell { grid-template-columns:1fr; } .calendar-toolbar { align-items:flex-start; flex-direction:column; } }

/* Source: resources/views/companies/index.blade.php */
.company-kpi-card {
    border-radius: 12px !important;
}

/* Source: resources/views/daily_work_logs/index.blade.php */
/* ─── Daily Work Logs Module ──────────────────────────────────── */
    .dwl-filter-bar {
        background: var(--tb-surface);
        border: 1px solid var(--tb-border);
        border-radius: 10px;
        box-shadow: var(--tb-card-shadow);
        padding: 1rem 1.25rem;
    }

    .dwl-date-pills {
        display: flex;
        gap: .4rem;
    }
    .dwl-date-pills a {
        display: inline-flex;
        align-items: center;
        padding: .4rem .9rem;
        border-radius: 999px;
        border: 1px solid var(--tb-border);
        background: var(--tb-surface);
        color: var(--tb-muted);
        font-size: .8rem;
        font-weight: 700;
        text-decoration: none;
        transition: all .16s ease;
    }
    .dwl-date-pills a:hover {
        border-color: var(--tb-primary);
        color: var(--tb-primary);
        background: var(--tb-primary-soft);
    }
    .dwl-date-pills a.active {
        background: var(--tb-primary);
        border-color: var(--tb-primary);
        color: #ffffff;
    }

    .dwl-subheader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }
    .dwl-subheader h5 {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--tb-heading);
        display: flex;
        align-items: center;
        gap: .5rem;
        margin: 0;
    }
    .dwl-count-badge {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        padding: .3rem .75rem;
        border-radius: 999px;
        background: var(--tb-primary-soft);
        color: var(--tb-primary-strong);
        font-size: .76rem;
        font-weight: 800;
    }

    /* ─── Log Card ────────────────────────────────────────────────── */
    .dwl-card {
        background: var(--tb-surface);
        border: 1px solid var(--tb-border);
        border-left: 4px solid var(--tb-primary);
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(129, 56, 232, .045);
        overflow: hidden;
        transition: box-shadow .2s ease, transform .2s ease;
        display: flex;
        flex-direction: column;
    }
    .dwl-card:hover {
        box-shadow: 0 8px 28px rgba(129, 56, 232, .09);
        transform: translateY(-1px);
    }
    .dwl-card.reviewed {
        border-left-color: #9b5cf7;
    }

    /* Card Header */
    .dwl-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--tb-border-soft);
    }
    .dwl-user-info {
        display: flex;
        align-items: center;
        gap: .65rem;
        min-width: 0;
    }
    .dwl-avatar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        background: var(--tb-primary-soft);
        color: var(--tb-primary-strong);
        flex-shrink: 0;
        letter-spacing: .02em;
    }
    .dwl-card.reviewed .dwl-avatar {
        background: #faf7ff;
        color: #8138e8;
    }
    [data-bs-theme="dark"] .dwl-card.reviewed .dwl-avatar {
        background: #4c2191;
        color: #f3ecff;
    }
    .dwl-user-name {
        font-size: .92rem;
        font-weight: 700;
        color: var(--tb-heading);
        line-height: 1.3;
    }
    .dwl-user-role {
        font-size: .78rem;
        color: var(--tb-muted);
        line-height: 1.3;
    }
    .dwl-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .3rem;
        flex-shrink: 0;
    }
    .dwl-hours-badge {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        padding: .3rem .7rem;
        border-radius: 999px;
        font-size: .76rem;
        font-weight: 800;
        background: var(--tb-primary-soft);
        color: var(--tb-primary-strong);
    }
    .dwl-card.reviewed .dwl-hours-badge {
        background: #faf7ff;
        color: #8138e8;
    }
    [data-bs-theme="dark"] .dwl-card.reviewed .dwl-hours-badge {
        background: #4c2191;
        color: #f3ecff;
    }
    .dwl-time-stamp {
        font-size: .72rem;
        color: var(--tb-muted);
        font-weight: 600;
    }

    /* Card Body — Work Sections Grid */
    .dwl-card-body {
        padding: 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: .85rem;
        flex: 1;
    }
    .dwl-sections-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }
    @media (max-width: 1399px) {
        .dwl-sections-grid { grid-template-columns: 1fr; }
    }

    .dwl-section {
        padding: .75rem .85rem;
        border-radius: 8px;
        border-left: 3px solid var(--tb-border);
        background: var(--tb-surface-muted);
    }
    .dwl-section.sec-completed { border-left-color: #9b5cf7; }
    .dwl-section.sec-progress  { border-left-color: #8138e8; }
    .dwl-section.sec-blockers  { border-left-color: #8138e8; }
    .dwl-section.sec-plan      { border-left-color: #8138e8; }

    .dwl-section-label {
        display: flex;
        align-items: center;
        gap: .35rem;
        font-size: .7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: .4rem;
    }
    .dwl-section.sec-completed .dwl-section-label { color: #9b5cf7; }
    .dwl-section.sec-progress  .dwl-section-label { color: #8138e8; }
    .dwl-section.sec-blockers  .dwl-section-label { color: #8138e8; }
    .dwl-section.sec-plan      .dwl-section-label { color: #8138e8; }

    [data-bs-theme="dark"] .dwl-section.sec-completed .dwl-section-label { color: #d0b2ff; }
    [data-bs-theme="dark"] .dwl-section.sec-progress  .dwl-section-label { color: #b784ff; }
    [data-bs-theme="dark"] .dwl-section.sec-blockers  .dwl-section-label { color: #b784ff; }
    [data-bs-theme="dark"] .dwl-section.sec-plan      .dwl-section-label { color: #b784ff; }

    .dwl-section-text {
        font-size: .84rem;
        line-height: 1.6;
        color: var(--tb-body-color);
        white-space: pre-line;
        word-break: break-word;
    }

    /* ─── Manager Feedback ────────────────────────────────────────── */
    .dwl-card-footer {
        padding: .85rem 1.25rem;
        border-top: 1px solid var(--tb-border-soft);
        background: var(--tb-surface-muted);
        margin-top: auto;
    }
    .dwl-feedback-existing {
        display: flex;
        align-items: flex-start;
        gap: .65rem;
        padding: .7rem .85rem;
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(129, 56, 232, .06), rgba(129, 56, 232, .06));
        border: 1px solid rgba(129, 56, 232, .12);
        margin-bottom: .65rem;
    }
    [data-bs-theme="dark"] .dwl-feedback-existing {
        background: linear-gradient(135deg, rgba(129, 56, 232, .08), rgba(129, 56, 232, .08));
        border-color: rgba(129, 56, 232, .18);
    }
    .dwl-feedback-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--tb-primary-soft);
        color: var(--tb-primary-strong);
        font-size: 13px;
        flex-shrink: 0;
        margin-top: 1px;
    }
    .dwl-feedback-content {
        flex: 1;
        min-width: 0;
    }
    .dwl-feedback-author {
        font-size: .76rem;
        font-weight: 700;
        color: var(--tb-heading);
    }
    .dwl-feedback-date {
        font-size: .7rem;
        color: var(--tb-muted);
        margin-left: .4rem;
    }
    .dwl-feedback-text {
        font-size: .84rem;
        color: var(--tb-body-color);
        margin-top: .15rem;
        line-height: 1.5;
    }

    .dwl-review-form .input-group {
        border-radius: 8px;
        overflow: hidden;
    }
    .dwl-review-form .form-control {
        border-radius: 8px 0 0 8px !important;
        font-size: .84rem;
        min-height: 36px;
    }
    .dwl-review-form .btn {
        border-radius: 0 8px 8px 0 !important;
        font-size: .82rem;
        min-height: 36px;
        white-space: nowrap;
    }

    .dwl-edit-link {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        font-size: .8rem;
        font-weight: 700;
        color: var(--tb-muted);
        text-decoration: none;
        padding: .3rem .65rem;
        border-radius: 6px;
        transition: all .14s;
    }
    .dwl-edit-link:hover {
        background: var(--tb-primary-soft);
        color: var(--tb-primary-strong);
    }

    /* ─── Empty State ─────────────────────────────────────────────── */
    .dwl-empty {
        background: var(--tb-surface);
        border: 1px solid var(--tb-border);
        border-radius: 12px;
        box-shadow: var(--tb-card-shadow);
        padding: 3.5rem 2rem;
        text-align: center;
    }
    .dwl-empty-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--tb-primary-soft);
        color: var(--tb-primary);
        font-size: 28px;
        margin-bottom: 1rem;
    }
    .dwl-empty h5 {
        font-weight: 700;
        color: var(--tb-heading);
        margin-bottom: .4rem;
    }
    .dwl-empty p {
        color: var(--tb-muted);
        font-size: .88rem;
        max-width: 420px;
        margin: 0 auto .75rem;
        line-height: 1.6;
    }

/* Source: resources/views/departments/index.blade.php */
.department-kpi-card {
    border-radius: 12px !important;
}

/* Source: resources/views/industries/index.blade.php */
.industry-kpi-card {
    border-radius: 12px !important;
}

/* Source: resources/views/layouts/app.blade.php */
:root {
            --tb-body-bg:#faf7ff;
            --tb-body-color:#4c2191;
            --tb-surface:#ffffff;
            --tb-surface-muted:#faf7ff;
            --tb-border:#f3ecff;
            --tb-border-soft:#f3ecff;
            --tb-muted:#8138e8;
            --tb-shadow:0 10px 26px rgba(129, 56, 232, .05);
            --tb-card-shadow:0 8px 22px rgba(129, 56, 232, .05);
            --tb-kanban-bg:#f3ecff;
            --tb-primary:#8138e8;
        }
        [data-bs-theme="dark"] {
            --tb-body-bg:#2b1458;
            --tb-body-color:#faf7ff;
            --tb-surface:#2b1458;
            --tb-surface-muted:#4c2191;
            --tb-surface-lift:#4c2191;
            --tb-border:#6723ce;
            --tb-border-soft:#4c2191;
            --tb-muted:#d0b2ff;
            --tb-shadow:0 16px 36px rgba(129, 56, 232, .46);
            --tb-card-shadow:0 12px 28px rgba(129, 56, 232, .36);
            --tb-kanban-bg:#2b1458;
            --tb-primary:#d0b2ff;
            --tb-primary-strong:#faf7ff;
            --tb-accent:#9b5cf7;
        }
        body { background:var(--tb-body-bg); color:var(--tb-body-color); }
        .sidebar { width:260px; min-height:100vh; background:linear-gradient(180deg,#2b1458 0%,#2b1458 100%); position:fixed; }
        .sidebar a { color:#e6d8ff; text-decoration:none; display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem 1rem; border-radius:.5rem; }
        .sidebar a:hover,.sidebar a.active,.sidebar a.has-unread { background:#4c2191; color:#ffffff; }
        .sidebar a.has-unread { box-shadow:inset 3px 0 0 var(--tb-primary); }
        .sidebar-unread-badge { min-width:22px; height:22px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:#8138e8; color:#ffffff; font-size:.75rem; font-weight:700; padding:0 .4rem; }
        .main { margin-left:260px; min-height:100vh; }
        .metric { border:0; border-left:4px solid var(--tb-primary); box-shadow:0 8px 24px rgba(129, 56, 232, .06); border-radius:8px; }
        .badge-soft { background:#f3ecff; color:#6723ce; }
        .badge-priority-low { background:#f3ecff; color:#6723ce; }
        .badge-priority-medium { background:#faf7ff; color:#8138e8; }
        .badge-priority-high { background:#f3ecff; color:#8138e8; }
        .badge-priority-urgent { background:#f3ecff; color:#4c2191; }
        .project-health-on_track { background:#faf7ff; color:#8138e8; }
        .project-health-at_risk { background:#f3ecff; color:#8138e8; }
        .project-health-off_track { background:#f3ecff; color:#4c2191; }
        .avatar { width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--tb-border); color:var(--tb-body-color); font-size:.75rem; font-weight:700; }
        .progress-thin { height:7px; border-radius:999px; }
        .soft-card { border:1px solid var(--tb-border); box-shadow:var(--tb-card-shadow); background:var(--tb-surface); }
        .toolbar { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:8px; padding:.75rem; }
        .kanban-scroll { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(315px,1fr); gap:1rem; overflow-x:auto; padding-bottom:.25rem; }
        .kanban-column { background:var(--tb-kanban-bg); border:1px solid var(--tb-border); border-radius:8px; padding:.75rem; min-height:540px; }
        .kanban-card { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:8px; padding:1rem; margin-bottom:.75rem; box-shadow:0 4px 12px rgba(129, 56, 232, .05); }
        .kanban-card.is-overdue { border-left:4px solid #6723ce; }
        .kanban-card.is-due-soon { border-left:4px solid #d0b2ff; }
        .task-meta { display:grid; grid-template-columns:115px 1fr; gap:.45rem .75rem; font-size:.92rem; }
        .task-meta .label { color:var(--tb-muted); }
        .view-panel { display:none; }
        .view-panel.active { display:block; }
        .notification-btn { width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; }
        .notification-menu { width:min(420px, 92vw); max-height:520px; overflow:auto; }
        .notification-item { white-space:normal; border-bottom:1px solid var(--tb-border-soft); }
        .notification-item.unread { background:#faf7ff; }
        .notification-icon { width:34px; height:34px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; background:#f3ecff; color:#6723ce; flex:0 0 auto; }
        .form-shell { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:1rem; align-items:start; }
        .form-main,.form-aside,.form-section { min-width:0; }
        .form-section,.form-aside { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:8px; box-shadow:var(--tb-shadow); }
        .form-section { margin-bottom:1rem; }
        .form-section-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1rem 1rem .75rem; border-bottom:1px solid var(--tb-border-soft); }
        .form-section-header h5,.form-aside h5 { margin:0; }
        .form-section-header p,.form-aside p { margin:.2rem 0 0; color:var(--tb-muted); font-size:.9rem; }
        .form-section-body { padding:1rem; }
        .form-aside { padding:1rem; position:sticky; top:1rem; }
        .form-help-list { display:grid; gap:.65rem; margin:0; padding:0; list-style:none; }
        .form-help-list li { display:flex; gap:.55rem; color:var(--tb-muted); font-size:.9rem; }
        .form-help-list li:before { content:""; width:8px; height:8px; border-radius:50%; background:var(--tb-primary); flex:0 0 auto; margin-top:.45rem; }
        .form-action-bar { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.5rem; background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:8px; box-shadow:var(--tb-shadow); padding:1rem; position:sticky; bottom:1rem; z-index:5; }
        .required-mark { color:#6723ce; }
        .field-hint { color:var(--tb-muted); font-size:.84rem; margin-top:.25rem; }
        .subtask-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
        .select2-container--default .select2-selection--multiple { border:1px solid #f3ecff; border-radius:.375rem; min-height:38px; padding:.2rem .25rem; }
        .select2-container--default.select2-container--focus .select2-selection--multiple { border-color:#d0b2ff; box-shadow:0 0 0 .25rem rgba(129, 56, 232, .25); }
        .select2-container--default .select2-selection--multiple .select2-selection__choice { background:#faf7ff; border:1px solid #e6d8ff; border-radius:999px; color:#6723ce; padding:.15rem .55rem .15rem 1.4rem; }
        .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { border-right:0; color:#6723ce; margin-left:.25rem; }
        .select2-dropdown { border-color:#f3ecff; box-shadow:0 14px 30px rgba(129, 56, 232, .12); }
        @media (max-width: 1199px) { .form-shell { grid-template-columns:1fr; } .form-aside,.form-action-bar { position:static; } }
        @media (max-width: 767px) { .subtask-grid { grid-template-columns:1fr; } }

        @media (max-width: 991px) { .sidebar { position:static; width:100%; min-height:auto; } .main { margin-left:0; } }

/* Source: resources/views/layouts/app.blade.php */
[data-bs-theme="dark"] .card,
        [data-bs-theme="dark"] .dropdown-menu,
        [data-bs-theme="dark"] .modal-content,
        [data-bs-theme="dark"] .list-group-item {
            background-color:var(--tb-surface);
            color:var(--tb-body-color);
            border-color:var(--tb-border);
        }
        [data-bs-theme="dark"] body {
            background:var(--tb-body-bg);
        }
        [data-bs-theme="dark"] .sidebar {
            background:linear-gradient(180deg,#2b1458 0%,#2b1458 58%,#4c2191 100%);
            box-shadow:inset -1px 0 0 rgba(129, 56, 232, .18);
        }
        [data-bs-theme="dark"] .sidebar a {
            color:#e6d8ff;
        }
        [data-bs-theme="dark"] .sidebar a:hover,
        [data-bs-theme="dark"] .sidebar a.active,
        [data-bs-theme="dark"] .sidebar a.has-unread {
            background:#4c2191;
            color:#faf7ff;
            box-shadow:inset 3px 0 0 var(--tb-primary);
        }
        [data-bs-theme="dark"] .metric {
            background:linear-gradient(135deg,#2b1458,#4c2191);
            border:1px solid rgba(129, 56, 232, .16);
            border-left:4px solid var(--tb-primary);
            box-shadow:var(--tb-card-shadow);
        }
        [data-bs-theme="dark"] .metric h3 {
            color:#faf7ff;
        }
        [data-bs-theme="dark"] .table { --bs-table-bg:transparent; --bs-table-color:var(--tb-body-color); --bs-table-border-color:var(--tb-border); --bs-table-striped-bg:#4c2191; --bs-table-hover-bg:#4c2191; }
        [data-bs-theme="dark"] .text-muted { color:var(--tb-muted) !important; }
        [data-bs-theme="dark"] .border,
        [data-bs-theme="dark"] .border-bottom,
        [data-bs-theme="dark"] .border-top { border-color:var(--tb-border) !important; }
        [data-bs-theme="dark"] .btn-light { --bs-btn-bg:#2b1458; --bs-btn-border-color:#6723ce; --bs-btn-color:#faf7ff; --bs-btn-hover-bg:#4c2191; --bs-btn-hover-border-color:#d0b2ff; --bs-btn-hover-color:#ffffff; }
        [data-bs-theme="dark"] .btn-primary {
            --bs-btn-bg:#d0b2ff;
            --bs-btn-border-color:#d0b2ff;
            --bs-btn-color:#2b1458;
            --bs-btn-hover-bg:#faf7ff;
            --bs-btn-hover-border-color:#faf7ff;
            --bs-btn-hover-color:#2b1458;
        }
        [data-bs-theme="dark"] .form-control,
        [data-bs-theme="dark"] .form-select {
            background-color:#2b1458;
            border-color:var(--tb-border);
            color:var(--tb-body-color);
        }
        [data-bs-theme="dark"] .form-control:focus,
        [data-bs-theme="dark"] .form-select:focus {
            background-color:#2b1458;
            border-color:var(--tb-primary);
            box-shadow:0 0 0 .2rem rgba(129, 56, 232, .18);
            color:var(--tb-body-color);
        }
        [data-bs-theme="dark"] .bg-white,
        [data-bs-theme="dark"] .soft-card,
        [data-bs-theme="dark"] .toolbar,
        [data-bs-theme="dark"] .calendar-panel,
        [data-bs-theme="dark"] .calendar-main,
        [data-bs-theme="dark"] .attendance-panel,
        [data-bs-theme="dark"] .messenger-shell,
        [data-bs-theme="dark"] .messenger-contacts,
        [data-bs-theme="dark"] .messenger-chat,
        [data-bs-theme="dark"] .chat-header,
        [data-bs-theme="dark"] .chat-composer,
        [data-bs-theme="dark"] .composer-box,
        [data-bs-theme="dark"] .message-bubble,
        [data-bs-theme="dark"] .attachment-card,
        [data-bs-theme="dark"] .message-attachment,
        [data-bs-theme="dark"] .composer-toolbar,
        [data-bs-theme="dark"] .attachment-chip {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .chat-header,
        [data-bs-theme="dark"] .messenger-search,
        [data-bs-theme="dark"] .contact-item,
        [data-bs-theme="dark"] .calendar-toolbar,
        [data-bs-theme="dark"] .composer-toolbar,
        [data-bs-theme="dark"] .chat-composer,
        [data-bs-theme="dark"] .attendance-grid div,
        [data-bs-theme="dark"] .summary-row,
        [data-bs-theme="dark"] .upcoming-item {
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .contact-item,
        [data-bs-theme="dark"] .upcoming-item {
            color:var(--tb-body-color) !important;
            background:var(--tb-surface) !important;
        }
        [data-bs-theme="dark"] .contact-item:hover,
        [data-bs-theme="dark"] .contact-item.active,
        [data-bs-theme="dark"] .contact-item.has-unread,
        [data-bs-theme="dark"] .notification-item.unread,
        [data-bs-theme="dark"] .select2-results__option--highlighted,
        [data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
            background:#4c2191 !important;
            color:#faf7ff !important;
        }
        [data-bs-theme="dark"] .contact-item strong,
        [data-bs-theme="dark"] .contact-preview,
        [data-bs-theme="dark"] .contact-item.has-unread strong,
        [data-bs-theme="dark"] .contact-item.has-unread .contact-preview {
            color:var(--tb-body-color) !important;
        }
        [data-bs-theme="dark"] .message-list,
        [data-bs-theme="dark"] .chat-empty,
        [data-bs-theme="dark"] .empty-thread {
            background:#2b1458 !important;
            color:var(--tb-muted) !important;
        }
        [data-bs-theme="dark"] .message-row.mine .message-bubble {
            background:#d0b2ff !important;
            color:#2b1458 !important;
            border-color:#d0b2ff !important;
        }
        [data-bs-theme="dark"] .message-row.theirs .message-bubble {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .message-row.theirs .message-attachment {
            background:var(--tb-surface-muted) !important;
        }
        [data-bs-theme="dark"] .message-day-separator {
            color:var(--tb-muted) !important;
        }
        [data-bs-theme="dark"] .message-day-separator span {
            background:var(--tb-surface) !important;
            border-color:var(--tb-border) !important;
            color:var(--tb-muted) !important;
        }
        [data-bs-theme="dark"] .message-day-separator:before,
        [data-bs-theme="dark"] .message-day-separator:after {
            background:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .message-editor {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
        }
        [data-bs-theme="dark"] .composer-toolbar button,
        [data-bs-theme="dark"] .attachment-button {
            background:#2b1458 !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .composer-toolbar button:hover,
        [data-bs-theme="dark"] .attachment-button:hover,
        [data-bs-theme="dark"] .attachment-download:hover {
            background:#4c2191 !important;
            color:#faf7ff !important;
            border-color:var(--tb-primary) !important;
        }
        [data-bs-theme="dark"] .file-icon {
            background:#4c2191 !important;
            color:#faf7ff !important;
        }
        [data-bs-theme="dark"] .contact-unread-dot {
            border-color:var(--tb-surface) !important;
        }
        [data-bs-theme="dark"] .attendance-grid div {
            background:var(--tb-surface-muted);
        }
        [data-bs-theme="dark"] .attendance-grid small,
        [data-bs-theme="dark"] .summary-row span,
        [data-bs-theme="dark"] .upcoming-item small {
            color:var(--tb-muted) !important;
        }
        [data-bs-theme="dark"] .select2-container--default .select2-selection--multiple,
        [data-bs-theme="dark"] .select2-dropdown,
        [data-bs-theme="dark"] .select2-search__field {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
            background:#4c2191;
            border-color:#6723ce;
            color:#faf7ff;
        }
        [data-bs-theme="dark"] .fc,
        [data-bs-theme="dark"] .fc .fc-list,
        [data-bs-theme="dark"] .fc .fc-scrollgrid,
        [data-bs-theme="dark"] .fc .fc-daygrid-day,
        [data-bs-theme="dark"] .fc .fc-col-header-cell {
            border-color:var(--tb-border);
            color:var(--tb-body-color);
        }
        [data-bs-theme="dark"] .fc .fc-daygrid-day-frame,
        [data-bs-theme="dark"] .fc .fc-list-day-cushion {
            background:var(--tb-surface);
        }
        [data-bs-theme="dark"] .project-board-shell,
        [data-bs-theme="dark"] .project-board-main,
        [data-bs-theme="dark"] .task-page-shell,
        [data-bs-theme="dark"] .task-page-top,
        [data-bs-theme="dark"] .task-detail-panel,
        [data-bs-theme="dark"] .task-panel-content,
        [data-bs-theme="dark"] .task-panel-section,
        [data-bs-theme="dark"] .project-inline-form {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .project-kanban-lane,
        [data-bs-theme="dark"] .kanban-column,
        [data-bs-theme="dark"] .task-fields-grid strong,
        [data-bs-theme="dark"] .time-summary-grid div,
        [data-bs-theme="dark"] .assigned-user-row,
        [data-bs-theme="dark"] .reported-time-row,
        [data-bs-theme="dark"] .project-task-card,
        [data-bs-theme="dark"] .kanban-card {
            background:var(--tb-surface-muted) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .project-board-head p,
        [data-bs-theme="dark"] .task-title,
        [data-bs-theme="dark"] .task-tabs button.active,
        [data-bs-theme="dark"] .task-tabs .active {
            color:var(--tb-body-color) !important;
        }
        [data-bs-theme="dark"] .project-task-empty,
        [data-bs-theme="dark"] .task-meta-line,
        [data-bs-theme="dark"] .task-time small,
        [data-bs-theme="dark"] .task-fields-grid label,
        [data-bs-theme="dark"] .project-title-fields label,
        [data-bs-theme="dark"] .project-edit-grid label,
        [data-bs-theme="dark"] .time-summary-grid span,
        [data-bs-theme="dark"] .assigned-user-row small,
        [data-bs-theme="dark"] .reported-time-row span,
        [data-bs-theme="dark"] .reported-time-row p {
            color:var(--tb-muted) !important;
        }
        [data-bs-theme="dark"] .task-status-chip {
            background:#4c2191 !important;
            color:#faf7ff !important;
        }
        [data-bs-theme="dark"] .task-status-inline {
            color:#faf7ff !important;
        }
        [data-bs-theme="dark"] .estimate-bar {
            background:#4c2191 !important;
        }
        [data-bs-theme="dark"] .estimate-bar span {
            background:#d0b2ff !important;
        }
        [data-bs-theme="dark"] .task-panel-backdrop {
            background:rgba(129, 56, 232, .62) !important;
        }

/* Source: resources/views/layouts/app.blade.php */
:root {
            --tb-body-bg:#faf7ff;
            --tb-body-color:#2b1458;
            --tb-surface:#ffffff;
            --tb-surface-muted:#faf7ff;
            --tb-surface-lift:#ffffff;
            --tb-border:#f3ecff;
            --tb-border-soft:#f3ecff;
            --tb-muted:#8138e8;
            --tb-heading:#2b1458;
            --tb-primary:#8138e8;
            --tb-primary-strong:#6723ce;
            --tb-primary-soft:#f3ecff;
            --tb-success:#9b5cf7;
            --tb-warning:#9b5cf7;
            --tb-danger:#6723ce;
            --tb-radius:8px;
            --tb-shadow:0 14px 34px rgba(129, 56, 232, .07);
            --tb-card-shadow:0 8px 24px rgba(129, 56, 232, .06);
            --tb-sidebar-bg:#2b1458;
            --tb-sidebar-active:#6723ce;
            --tb-sidebar-text:#e6d8ff;
            --tb-kanban-bg:#f3ecff;
        }

        [data-bs-theme="dark"] {
            --tb-body-bg:#2b1458;
            --tb-body-color:#f3ecff;
            --tb-surface:#2b1458;
            --tb-surface-muted:#2b1458;
            --tb-surface-lift:#2b1458;
            --tb-border:#4c2191;
            --tb-border-soft:#4c2191;
            --tb-muted:#b784ff;
            --tb-heading:#faf7ff;
            --tb-primary:#b784ff;
            --tb-primary-strong:#d0b2ff;
            --tb-primary-soft:#4c2191;
            --tb-shadow:0 18px 38px rgba(129, 56, 232, .34);
            --tb-card-shadow:0 12px 30px rgba(129, 56, 232, .26);
            --tb-sidebar-bg:#180d2f;
            --tb-sidebar-active:#6723ce;
            --tb-sidebar-text:#e6d8ff;
            --tb-kanban-bg:#2b1458;
        }

        * { box-sizing:border-box; }
        html { min-height:100%; }
        body {
            min-height:100vh;
            background:
                radial-gradient(circle at top right, rgba(129, 56, 232, .10), transparent 30rem),
                var(--tb-body-bg);
            color:var(--tb-body-color);
            font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            letter-spacing:0;
        }
        h1,h2,h3,h4,h5,h6 { color:var(--tb-heading); letter-spacing:0; }
        a { color:var(--tb-primary); }
        a:hover { color:var(--tb-primary-strong); }

        .sidebar {
            width:260px;
            height:100vh;
            top:0;
            left:0;
            position:fixed;
            z-index:1020;
            overflow-y:auto;
            overscroll-behavior:contain;
            background:linear-gradient(180deg,var(--tb-sidebar-bg),#2b1458);
            border-right:1px solid rgba(129, 56, 232, .14);
            box-shadow:8px 0 28px rgba(129, 56, 232, .12);
        }
        .sidebar h4 {
            height:48px;
            display:flex;
            align-items:center;
            margin-bottom:1rem !important;
            font-size:1.15rem;
            letter-spacing:.01em;
        }
        .sidebar a {
            color:var(--tb-sidebar-text);
            min-height:42px;
            padding:.68rem .85rem;
            margin:.15rem 0;
            border-radius:8px;
            font-weight:600;
            transition:background .16s ease, color .16s ease, transform .16s ease;
        }
        .sidebar a:hover {
            background:rgba(129, 56, 232, .08);
            color:#ffffff;
            transform:translateX(2px);
        }
        .sidebar a.active,
        .sidebar a.has-unread {
            background:linear-gradient(135deg,var(--tb-sidebar-active),#9b5cf7);
            color:#ffffff;
            box-shadow:0 10px 24px rgba(129, 56, 232, .28);
        }
        .sidebar form { padding-left:0 !important; padding-right:0 !important; }
        .main { margin-left:260px; min-height:100vh; }
        .main > .container-fluid { max-width:1720px; padding:1.5rem !important; }

        .app-header {
            position:sticky;
            top:0;
            z-index:1010;
            padding:.9rem 1rem;
            background:rgba(129, 56, 232, .82);
            border:1px solid rgba(129, 56, 232, .82);
            border-radius:8px;
            box-shadow:var(--tb-shadow);
            backdrop-filter:blur(16px);
        }
        [data-bs-theme="dark"] .app-header {
            background:rgba(129, 56, 232, .82);
            border-color:rgba(129, 56, 232, .92);
        }
        .app-header h2 {
            font-size:1.45rem;
            line-height:1.2;
            font-weight:800;
        }

        .card,
        .soft-card,
        .toolbar,
        .form-section,
        .form-aside,
        .attendance-panel,
        .calendar-panel,
        .calendar-main,
        .reports-filter,
        .report-card,
        .report-table-card,
        .report-metric,
        .messenger-shell,
        .project-board-shell,
        .task-page-shell {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border:1px solid var(--tb-border) !important;
            border-radius:var(--tb-radius) !important;
            box-shadow:var(--tb-card-shadow) !important;
        }
        .card { overflow:hidden; }
        .card-body { padding:1rem; }
        .metric {
            border-left:0 !important;
            min-height:112px;
            background:linear-gradient(180deg,var(--tb-surface),var(--tb-surface-muted)) !important;
        }
        .metric .card-body {
            display:flex;
            flex-direction:column;
            justify-content:space-between;
            gap:.8rem;
        }
        .metric small,
        .report-metric span,
        .time-summary-grid span,
        .task-meta .label,
        .field-hint,
        .text-muted {
            color:var(--tb-muted) !important;
        }
        .metric h3,
        .report-metric strong {
            color:var(--tb-heading) !important;
            font-size:1.7rem;
            font-weight:800;
            margin:0;
        }

        .btn {
            border-radius:7px;
            font-weight:700;
            min-height:38px;
            display:inline-flex;
            align-items:center;
            justify-content:center;
            gap:.35rem;
        }
        .btn-sm { min-height:32px; }
        .btn-primary {
            --bs-btn-bg:var(--tb-primary);
            --bs-btn-border-color:var(--tb-primary);
            --bs-btn-hover-bg:var(--tb-primary-strong);
            --bs-btn-hover-border-color:var(--tb-primary-strong);
        }
        .btn-light,
        .btn-outline-secondary,
        .btn-outline-primary,
        .btn-outline-dark {
            --bs-btn-bg:var(--tb-surface);
            --bs-btn-color:var(--tb-body-color);
            --bs-btn-border-color:var(--tb-border);
            --bs-btn-hover-bg:var(--tb-surface-muted);
            --bs-btn-hover-color:var(--tb-heading);
            --bs-btn-hover-border-color:var(--tb-primary);
        }
        .btn-group .btn.active,
        .btn.active {
            background:var(--tb-primary) !important;
            border-color:var(--tb-primary) !important;
            color:#ffffff !important;
        }

        .form-control,
        .form-select,
        .select2-container--default .select2-selection--multiple {
            background-color:var(--tb-surface-lift) !important;
            border:1px solid var(--tb-border) !important;
            color:var(--tb-body-color) !important;
            border-radius:7px !important;
            min-height:38px;
        }
        .form-control:focus,
        .form-select:focus,
        .select2-container--default.select2-container--focus .select2-selection--multiple {
            border-color:var(--tb-primary) !important;
            box-shadow:0 0 0 .18rem rgba(129, 56, 232, .16) !important;
            color:var(--tb-body-color) !important;
        }
        label,
        .task-fields-grid label,
        .project-title-fields label,
        .project-edit-grid label {
            color:var(--tb-muted) !important;
            font-size:.82rem;
            font-weight:700;
        }

        .table-responsive { border-radius:8px; }
        .table {
            --bs-table-bg:transparent;
            --bs-table-color:var(--tb-body-color);
            --bs-table-border-color:var(--tb-border-soft);
            margin-bottom:0;
        }
        .table thead th {
            color:var(--tb-muted);
            background:var(--tb-surface-muted);
            border-bottom:1px solid var(--tb-border);
            font-size:.76rem;
            text-transform:uppercase;
            letter-spacing:.04em;
            white-space:nowrap;
        }
        .table tbody tr:hover { background:var(--tb-surface-muted); }
        .table td,
        .table th {
            padding:.85rem .75rem;
            vertical-align:middle;
        }
        .dataTables_wrapper .row:first-child,
        .dt-container .row:first-child {
            row-gap:.75rem;
            margin-bottom:.75rem;
        }
        .dt-search input,
        .dt-length select {
            background:var(--tb-surface-lift) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
            border-radius:7px !important;
        }

        .badge {
            border-radius:999px;
            font-weight:800;
            padding:.38rem .62rem;
        }
        .badge-priority-low { background:#f3ecff !important; color:#6723ce !important; }
        .badge-priority-medium { background:#faf7ff !important; color:#8138e8 !important; }
        .badge-priority-high { background:#f3ecff !important; color:#8138e8 !important; }
        .badge-priority-urgent { background:#f3ecff !important; color:#4c2191 !important; }
        [data-bs-theme="dark"] .badge-priority-low { background:#4c2191 !important; color:#e6d8ff !important; }
        [data-bs-theme="dark"] .badge-priority-medium { background:#4c2191 !important; color:#f3ecff !important; }
        [data-bs-theme="dark"] .badge-priority-high { background:#4c2191 !important; color:#f3ecff !important; }
        [data-bs-theme="dark"] .badge-priority-urgent { background:#4c2191 !important; color:#e6d8ff !important; }

        .avatar {
            background:var(--tb-primary-soft);
            color:var(--tb-primary-strong);
            font-weight:800;
        }
        .progress,
        .progress-thin {
            background:var(--tb-border-soft);
            overflow:hidden;
        }
        .progress-bar { background:linear-gradient(90deg,var(--tb-primary),#b784ff); }

        .toolbar {
            padding:1rem !important;
            gap:1rem !important;
        }
        .kanban-scroll {
            grid-auto-columns:minmax(300px,1fr);
            gap:1rem;
        }
        .kanban-column,
        .project-kanban-lane {
            background:var(--tb-kanban-bg) !important;
            border:1px solid var(--tb-border) !important;
            border-radius:8px !important;
        }
        .kanban-card,
        .project-task-card {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border:1px solid var(--tb-border) !important;
            border-radius:8px !important;
            box-shadow:0 8px 20px rgba(129, 56, 232, .08) !important;
        }

        .task-page-top,
        .task-tabs,
        .task-detail-panel,
        .task-panel-content,
        .project-board-main {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        .task-detail-panel {
            box-shadow:-18px 0 42px rgba(129, 56, 232, .22) !important;
        }
        .task-panel-section,
        .project-inline-form {
            border-color:var(--tb-border-soft) !important;
        }
        .task-fields-grid strong,
        .time-summary-grid div,
        .assigned-user-row,
        .reported-time-row,
        .time-request-box {
            background:var(--tb-surface-muted) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
            border-radius:8px;
        }
        .task-tabs button {
            color:var(--tb-muted) !important;
            text-decoration:none !important;
            font-weight:800;
        }
        .task-tabs button.active,
        .task-tabs .active {
            color:var(--tb-heading) !important;
            border-bottom-color:var(--tb-primary) !important;
        }
        .time-summary-grid {
            display:grid;
            grid-template-columns:repeat(3,minmax(0,1fr));
            gap:.75rem;
        }
        .time-summary-grid div {
            padding:.85rem;
        }
        .time-summary-grid span {
            display:block;
            font-size:.78rem;
            font-weight:800;
            text-transform:uppercase;
            letter-spacing:.04em;
        }
        .time-summary-grid strong {
            display:block;
            margin-top:.25rem;
            color:var(--tb-heading);
        }

        .alert {
            border-radius:8px;
            border:1px solid transparent;
            box-shadow:var(--tb-card-shadow);
        }
        .notification-menu,
        .dropdown-menu,
        .modal-content {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border:1px solid var(--tb-border) !important;
            border-radius:8px !important;
            box-shadow:var(--tb-shadow) !important;
        }
        .notification-item.unread {
            background:var(--tb-primary-soft) !important;
        }

        .messenger-shell,
        .calendar-shell,
        .reports-shell {
            min-width:0;
        }
        .messenger-contacts,
        .message-list,
        .calendar-side,
        .calendar-main,
        .chat-composer,
        .composer-box,
        .composer-toolbar,
        .report-table-card h5 {
            background:var(--tb-surface) !important;
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border) !important;
        }
        .message-list,
        .messenger-contacts {
            background:var(--tb-surface-muted) !important;
        }
        .contact-item {
            color:var(--tb-body-color) !important;
            border-color:var(--tb-border-soft) !important;
        }
        .contact-item:hover,
        .contact-item.active,
        .contact-item.has-unread {
            background:var(--tb-primary-soft) !important;
            color:var(--tb-heading) !important;
        }

        .fc,
        .fc .fc-scrollgrid,
        .fc .fc-daygrid-day,
        .fc .fc-col-header-cell,
        .fc-theme-standard td,
        .fc-theme-standard th {
            border-color:var(--tb-border) !important;
            color:var(--tb-body-color) !important;
        }
        .fc .fc-daygrid-day-frame,
        .fc .fc-list-day-cushion {
            background:var(--tb-surface) !important;
        }

        @media (max-width: 1199px) {
            .app-header { align-items:flex-start !important; gap:1rem; flex-wrap:wrap; }
            .toolbar form { width:100%; }
        }
        @media (max-width: 991px) {
            .sidebar {
                position:static;
                width:100%;
                height:auto;
                min-height:auto;
                display:grid;
                grid-template-columns:repeat(2,minmax(0,1fr));
                gap:.25rem;
                padding:.75rem !important;
            }
            .sidebar h4,
            .sidebar form {
                grid-column:1 / -1;
            }
            .main { margin-left:0; }
            .main > .container-fluid { padding:1rem !important; }
        }
        @media (max-width: 575px) {
            .sidebar { grid-template-columns:1fr; }
            .app-header > div:last-child { width:100%; flex-wrap:wrap; justify-content:flex-start; }
            .toolbar,
            .toolbar form,
            .toolbar .d-flex {
                align-items:stretch !important;
            }
            .toolbar form > * {
                max-width:none !important;
                width:100%;
            }
            .card-body { padding:.85rem; }
        }

        /* ─── RISE Application Shell ─────────────────────────────────── */
        body{background:#faf7ff;font-size:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}

        /* Sidebar */
        .sidebar{width:256px;height:100vh;position:fixed;top:0;left:0;z-index:1020;background:#ffffff;border-right:1px solid #f3ecff;box-shadow:4px 0 18px rgba(129, 56, 232, .04);padding:0 12px 14px;display:flex;flex-direction:column;overflow:hidden}

        /* Sidebar Brand */
        .sidebar-brand{height:72px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:0 8px;border-bottom:1px solid #f3ecff;margin:0 0 10px;font-size:19px;color:#4c2191;background:#ffffff;text-decoration:none}
        .sidebar-brand-icon{font-size:22px;color:#9b5cf7;flex-shrink:0}
        .sidebar-brand strong{font-weight:800;letter-spacing:-.01em;color:#4c2191}
        .sidebar-brand strong span{color:#9b5cf7}

        /* Sidebar Navigation */
        .sidebar-nav{display:flex;flex-direction:column;gap:1px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(129, 56, 232, .35) transparent;padding-right:4px;margin-right:-4px}
        .sidebar-nav::-webkit-scrollbar{width:5px}
        .sidebar-nav::-webkit-scrollbar-track{background:transparent}
        .sidebar-nav::-webkit-scrollbar-thumb{background:rgba(129, 56, 232, .25);border-radius:999px}
        .sidebar-nav:hover::-webkit-scrollbar-thumb{background:rgba(129, 56, 232, .5)}
        .sidebar-section-title{padding:14px 8px 5px;color:#d0b2ff;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;flex-shrink:0}

        /* Sidebar Links */
        .sidebar a{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:7px 10px;margin:1px 0;color:#8138e8;border-radius:8px;font-weight:600;font-size:13.5px;transition:background .14s,color .14s;border:1px solid transparent;text-decoration:none;gap:4px;box-shadow:none!important;transform:none!important;flex-shrink:0}
        .sidebar a:hover{background:#faf7ff;color:#4c2191;border-color:#f3ecff}
        .sidebar a.active,.sidebar a.has-unread{background:#faf7ff;color:#8138e8;border-color:#f3ecff;box-shadow:inset 3px 0 0 #9b5cf7!important}

        /* Sidebar Link Inner */
        .sidebar-link-copy{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
        .sidebar-link-copy>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}

        /* Sidebar Icon — Bootstrap Icons */
        .sidebar-icon{width:30px;height:30px;flex:0 0 auto;border:1px solid #f3ecff;border-radius:8px;display:inline-grid;place-items:center;font-size:15px;color:#9b5cf7;background:#faf7ff;transition:background .14s,color .14s,border-color .14s}
        .sidebar a.active .sidebar-icon,.sidebar a.has-unread .sidebar-icon{border-color:#9b5cf7;background:#9b5cf7;color:#ffffff}

        /* Sidebar Badges */
        .sidebar-unread-badge{height:20px;min-width:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#8138e8;color:#ffffff;font-size:10px;font-weight:800;padding:0 .35rem;flex-shrink:0}

        /* Sidebar User Card */
        .sidebar-user-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin-top:10px;padding:10px;border:1px solid #f3ecff;border-radius:10px;background:#faf7ff;flex-shrink:0}
        .sidebar-user-card>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f3ecff;color:#8138e8;font-weight:800;font-size:15px;flex-shrink:0}
        .sidebar-user-card strong,.sidebar-user-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
        .sidebar-user-card strong{font-size:13px;color:#4c2191;font-weight:700}
        .sidebar-user-card small{font-size:11px;color:#b784ff}

        /* Sidebar Logout */
        .sidebar-logout{margin-top:8px;flex-shrink:0}
        .sidebar-logout .btn{height:38px;border:1px solid #f3ecff;color:#8138e8;background:#ffffff;border-radius:8px;font-weight:600;font-size:13px;width:100%;display:flex;align-items:center;justify-content:center}
        .sidebar-logout .btn:hover{background:#faf7ff;color:#4c2191;border-color:#e6d8ff}

        /* Main Content */
        .main{margin-left:256px}
        .main>.container-fluid{padding:0 22px 28px!important;max-width:none}

        /* App Header */
        .app-header{height:72px;margin:0 -22px 20px;padding:0 22px;border:0;border-bottom:1px solid #f3ecff;border-radius:0;background:#ffffff;box-shadow:none;backdrop-filter:none;position:sticky;top:0;z-index:1030}
        .app-header h2{font-size:17px;font-weight:700;color:#4c2191;margin:0}
        .app-header small{font-size:11px;color:#b784ff}
        .app-header>.d-flex{gap:8px!important}
        .app-header .btn{height:36px;border-radius:7px;font-size:13px}
        .notification-btn{width:38px!important;height:36px!important}
        .header-profile{height:42px;display:flex;align-items:center;gap:10px;padding:0 10px;border-left:1px solid #f3ecff}
        .header-profile>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f3ecff;color:#8138e8;font-weight:800;font-size:14px}
        .header-profile div{display:grid;line-height:1.2}
        .header-profile strong{font-size:12.5px;color:#4c2191;font-weight:700}
        .header-profile small{font-size:10.5px;color:#b784ff}

        /* Buttons */
        .btn-primary{--bs-btn-bg:#9b5cf7;--bs-btn-border-color:#9b5cf7;--bs-btn-hover-bg:#9b5cf7;--bs-btn-hover-border-color:#9b5cf7}
        .btn-light{--bs-btn-bg:#ffffff;--bs-btn-border-color:#f3ecff;--bs-btn-color:#6723ce;--bs-btn-hover-bg:#faf7ff;--bs-btn-hover-border-color:#e6d8ff;--bs-btn-hover-color:#4c2191}

        /* ─── Workspace Ribbon ─────────────────────────────────────────── */
        .workspace-ribbon{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:38px;padding:0 14px;background:#faf7ff;border:1px solid #f3ecff;border-radius:8px;margin-bottom:18px;font-size:12.5px}
        .workspace-ribbon-inner{display:flex;align-items:center;gap:7px;min-width:0;overflow:hidden}
        .workspace-ribbon-ico{font-size:14px;color:#9b5cf7;flex-shrink:0}
        .workspace-ribbon-name{font-weight:700;color:#4c2191;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
        .workspace-ribbon-sep{color:#d0b2ff;flex-shrink:0}
        .workspace-ribbon-sub{color:#9b5cf7;white-space:nowrap;flex-shrink:0}
        .workspace-ribbon-action{white-space:nowrap;flex-shrink:0;color:#9b5cf7;font-weight:600;text-decoration:none;font-size:12px;padding:4px 10px;border:1px solid #f3ecff;border-radius:6px;background:#ffffff;transition:background .13s,color .13s}
        .workspace-ribbon-action:hover{background:#9b5cf7;color:#ffffff;border-color:#9b5cf7}
        [data-bs-theme="dark"] .workspace-ribbon{background:#2b1458;border-color:#4c2191}
        [data-bs-theme="dark"] .workspace-ribbon-name{color:#faf7ff}
        [data-bs-theme="dark"] .workspace-ribbon-sub{color:#b784ff}
        [data-bs-theme="dark"] .workspace-ribbon-action{color:#b784ff;border-color:#4c2191;background:#2b1458}
        [data-bs-theme="dark"] .workspace-ribbon-action:hover{background:#b784ff;color:#2b1458;border-color:#b784ff}

        /* ─── Dark Mode Sidebar ────────────────────────────────────────── */
        [data-bs-theme="dark"] .sidebar{background:#2b1458!important;border-right-color:#4c2191!important;box-shadow:4px 0 18px rgba(129, 56, 232, .2)}
        [data-bs-theme="dark"] .sidebar-nav{scrollbar-color:rgba(129, 56, 232, .35) transparent}
        [data-bs-theme="dark"] .sidebar-nav::-webkit-scrollbar-thumb{background:rgba(129, 56, 232, .28)}
        [data-bs-theme="dark"] .sidebar-nav:hover::-webkit-scrollbar-thumb{background:rgba(129, 56, 232, .55)}
        [data-bs-theme="dark"] .sidebar-brand{background:#2b1458!important;border-bottom-color:#4c2191!important;color:#faf7ff!important}
        [data-bs-theme="dark"] .sidebar-brand strong{color:#faf7ff}
        [data-bs-theme="dark"] .sidebar-section-title{color:#b784ff!important}
        [data-bs-theme="dark"] .sidebar a{color:#e6d8ff!important;border-color:transparent!important}
        [data-bs-theme="dark"] .sidebar a:hover{background:#2b1458!important;color:#f3ecff!important;border-color:#4c2191!important}
        [data-bs-theme="dark"] .sidebar a.active,[data-bs-theme="dark"] .sidebar a.has-unread{background:#4c2191!important;color:#d0b2ff!important;border-color:#6723ce!important}
        [data-bs-theme="dark"] .sidebar-icon{background:#2b1458!important;border-color:#4c2191!important;color:#d0b2ff!important}
        [data-bs-theme="dark"] .sidebar a.active .sidebar-icon,[data-bs-theme="dark"] .sidebar a.has-unread .sidebar-icon{background:#b784ff!important;border-color:#b784ff!important;color:#2b1458!important}
        [data-bs-theme="dark"] .sidebar-user-card{background:#2b1458!important;border-color:#4c2191!important}
        [data-bs-theme="dark"] .sidebar-user-card strong{color:#f3ecff!important}
        [data-bs-theme="dark"] .sidebar-user-card small{color:#b784ff!important}
        [data-bs-theme="dark"] .sidebar-logout .btn{background:#2b1458!important;border-color:#4c2191!important;color:#e6d8ff!important}
        [data-bs-theme="dark"] .sidebar-logout .btn:hover{background:#2b1458!important;border-color:#b784ff!important;color:#f3ecff!important}
        [data-bs-theme="dark"] .app-header{background:#2b1458!important;border-bottom-color:#4c2191!important}
        [data-bs-theme="dark"] .app-header h2{color:#f3ecff!important}

        @media(max-height:540px){
            .sidebar{overflow-y:auto!important}
            .sidebar-nav{flex:1 0 auto!important;overflow-y:visible!important;margin-right:0!important;padding-right:0!important}
        }

        /* ─── Responsive / Mobile ──────────────────────────────────────── */
        @media(max-width:991px){
            .sidebar{position:relative;width:100%;height:auto;min-height:0;max-height:none;overflow-y:visible;overflow-x:visible;display:block;padding:10px 14px}
            .sidebar-brand{height:58px;margin-bottom:10px}
            .sidebar-nav{flex-direction:row;flex-wrap:wrap;gap:4px}
            .sidebar-nav .sidebar-section-title{display:none}
            .sidebar-nav a{min-height:38px;flex:1 1 auto;min-width:120px}
            .sidebar-user-card{display:none}
            .sidebar-logout{margin-top:10px}
            .main{margin-left:0}
            .main>.container-fluid{padding:0 14px 20px!important}
            .app-header{margin:0 -14px 16px;padding:0 14px;height:64px}
            .header-profile{display:none}
            .workspace-ribbon{margin-bottom:14px}
        }
        @media(max-width:575px){
            .sidebar-nav a{min-width:100px}
            .app-header small{display:none}
            .app-header{height:58px}
            .app-header>.d-flex{gap:5px!important}
        }


        /* Existing task details use a centered modal presentation. */
        body.task-modal-open{overflow:hidden}
        .task-panel-backdrop{display:block!important;position:fixed!important;inset:0!important;background:rgba(129, 56, 232, .58)!important;backdrop-filter:blur(2px);opacity:0!important;pointer-events:none!important;transition:opacity .18s ease!important;z-index:1055!important}
        .task-panel-backdrop.is-open{opacity:1!important;pointer-events:auto!important}
        body .task-detail-panel{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;width:min(900px,calc(100vw - 40px))!important;max-height:calc(100vh - 40px)!important;border-radius:10px!important;overflow:auto!important;opacity:0!important;pointer-events:none!important;transform:translate(-50%,-46%) scale(.98)!important;transition:opacity .18s ease,transform .18s ease!important;z-index:1056!important;box-shadow:0 24px 70px rgba(129, 56, 232, .34)!important}
        body .task-detail-panel.is-open{opacity:1!important;pointer-events:auto!important;transform:translate(-50%,-50%) scale(1)!important}
        body .task-panel-top{position:sticky;top:0;z-index:5;background:var(--tb-surface);border-bottom:1px solid var(--tb-border);padding:18px 24px!important}
        body .task-tabs{position:sticky;top:79px;z-index:4;background:var(--tb-surface);padding:0 24px!important}
        body .task-panel-section{margin-left:24px!important;margin-right:24px!important}
        @media(max-width:640px){body .task-detail-panel{width:calc(100vw - 18px)!important;max-height:calc(100vh - 18px)!important;border-radius:8px!important}body .task-panel-top{padding:14px 16px!important}body .task-tabs{top:70px;padding:0 16px!important}body .task-panel-section{margin-left:16px!important;margin-right:16px!important}}

        /* Final UI/UX polish: consistent modern app surfaces across all pages. */
        :root {
            --tb-heading:#4c2191;
            --tb-primary-soft:#faf7ff;
            --tb-primary-strong:#8138e8;
            --tb-danger:#6723ce;
            --tb-success:#9b5cf7;
            --tb-warning:#9b5cf7;
            --tb-radius:8px;
        }
        [data-bs-theme="dark"] {
            --tb-heading:#faf7ff;
            --tb-primary-soft:#4c2191;
            --tb-primary-strong:#faf7ff;
            --tb-danger:#b784ff;
            --tb-success:#e6d8ff;
            --tb-warning:#e6d8ff;
        }
        html { scroll-behavior:smooth; }
        body {
            color:var(--tb-body-color);
            background:
                radial-gradient(circle at top right, rgba(129, 56, 232, .08), transparent 32rem),
                var(--tb-body-bg);
            font-family:Inter, "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            letter-spacing:0;
        }
        a { color:var(--tb-primary-strong); }
        a:hover { color:var(--tb-primary); }
        .main > .container-fluid { min-height:100vh; }
        .app-header { position:sticky;top:0;z-index:1030; }
        .notification-menu { z-index:1050 !important; }
        .app-header h2,
        .rise-titlebar h2,
        .task-rise-title h2,
        .form-section-header h5,
        .card h5,
        .attendance-panel h5,
        .report-card-header h5,
        .report-table-card h5 {
            color:var(--tb-heading);
            letter-spacing:0;
        }
        .card,
        .soft-card,
        .attendance-panel,
        .calendar-panel,
        .calendar-main,
        .form-section,
        .form-aside,
        .rise-shell,
        .task-rise-shell,
        .task-list-card,
        .reports-filter,
        .report-card,
        .report-table-card,
        .messenger-shell,
        .messenger-contacts,
        .messenger-chat {
            border:1px solid var(--tb-border) !important;
            border-radius:var(--tb-radius) !important;
            background:var(--tb-surface) !important;
            box-shadow:0 8px 22px rgba(129, 56, 232, .055) !important;
        }
        .rise-shell,
        .task-rise-shell,
        .reports-shell,
        .calendar-shell,
        .messenger-shell,
        .card,
        .attendance-panel {
            min-width:0;
            max-width:100%;
        }
        .card:hover,
        .report-card:hover,
        .rise-shell:hover,
        .task-list-card:hover {
            box-shadow:0 14px 34px rgba(129, 56, 232, .08) !important;
        }
        .metric {
            min-height:102px;
            border:1px solid var(--tb-border) !important;
            border-left:4px solid var(--tb-primary) !important;
            background:linear-gradient(180deg,var(--tb-surface),var(--tb-surface-muted)) !important;
        }
        .metric small {
            display:block;
            font-size:.73rem;
            font-weight:750;
            text-transform:uppercase;
            letter-spacing:.04em;
        }
        .metric h3 {
            margin-top:.35rem;
            color:var(--tb-heading);
            font-weight:800;
        }
        .btn {
            border-radius:7px;
            font-weight:650;
            letter-spacing:0;
            box-shadow:none !important;
        }
        .btn-sm { border-radius:6px; }
        .btn:focus-visible,
        .form-control:focus,
        .form-select:focus,
        .page-link:focus {
            border-color:var(--tb-primary) !important;
            box-shadow:0 0 0 .2rem rgba(129, 56, 232, .18) !important;
        }
        .form-control,
        .form-select,
        .select2-container--default .select2-selection--multiple {
            min-height:40px;
            border-color:var(--tb-border);
            border-radius:7px;
            color:var(--tb-body-color);
            background-color:var(--tb-surface);
        }
        textarea.form-control { min-height:94px; }
        label {
            color:var(--tb-muted);
            font-size:.8rem;
            font-weight:700;
        }
        .table,
        .rise-table,
        .task-list-table {
            margin-bottom:0;
            color:var(--tb-body-color);
        }
        .table thead th,
        .rise-table th,
        .task-list-table th {
            background:var(--tb-surface-muted);
            color:var(--tb-muted) !important;
            font-size:.72rem !important;
            font-weight:800 !important;
            text-transform:uppercase;
            letter-spacing:.045em;
            border-bottom:1px solid var(--tb-border) !important;
            white-space:nowrap;
        }
        .table tbody td,
        .rise-table td,
        .task-list-table td {
            border-color:var(--tb-border-soft) !important;
            vertical-align:middle;
        }
        .table tbody tr:hover,
        .rise-table tbody tr:hover,
        .task-list-table tbody tr:hover {
            background:var(--tb-surface-muted);
        }
        .table-responsive,
        .rise-table-wrap,
        .task-list-card {
            display:block;
            width:100%;
            max-width:100%;
            min-width:0;
            overflow-x:auto;
            overflow-y:hidden;
            border-radius:var(--tb-radius);
        }
        .rise-titlebar > *,
        .task-rise-head > *,
        .rise-toolbar > *,
        .task-rise-toolbar > * {
            min-width:0;
        }
        .dataTables_wrapper .dt-search input,
        .dataTables_wrapper .dt-length select {
            border-color:var(--tb-border);
            border-radius:7px;
            background:var(--tb-surface);
            color:var(--tb-body-color);
        }
        .badge,
        .rise-status,
        .task-row-status,
        .attendance-status {
            border-radius:999px !important;
            font-weight:750;
            letter-spacing:0;
        }
        .alert {
            border:0;
            border-radius:var(--tb-radius);
            box-shadow:0 8px 22px rgba(129, 56, 232, .055);
        }
        .dropdown-menu,
        .modal-content {
            border:1px solid var(--tb-border) !important;
            border-radius:var(--tb-radius) !important;
            box-shadow:0 22px 55px rgba(129, 56, 232, .18) !important;
        }
        .modal-header,
        .modal-footer {
            border-color:var(--tb-border-soft);
        }
        .notification-menu { overflow:hidden auto; }
        .notification-item:hover { background:var(--tb-surface-muted); }
        .avatar {
            background:var(--tb-primary-soft);
            color:var(--tb-primary-strong);
            border:1px solid color-mix(in srgb,var(--tb-primary) 18%,transparent);
        }
        .progress,
        .progress-thin,
        .rise-progress > div,
        .task-compact-progress > div,
        .report-progress {
            background:var(--tb-border-soft) !important;
        }
        .progress-bar,
        .rise-progress > div span,
        .task-compact-progress > div span,
        .report-progress span {
            background:linear-gradient(90deg,#9b5cf7,#b784ff) !important;
        }
        .rise-toolbar,
        .task-rise-toolbar,
        .toolbar {
            gap:.65rem;
            background:var(--tb-surface) !important;
            border-color:var(--tb-border) !important;
            max-width:100%;
        }
        .rise-chips,
        .task-quick-filters,
        .range-pills {
            min-width:0;
            max-width:100%;
            overflow-x:auto;
            scrollbar-width:thin;
        }
        .rise-chip,
        .task-quick-filters a,
        .task-view-tabs button,
        .task-view-tabs a {
            border-radius:999px !important;
            min-height:34px;
            display:inline-flex;
            align-items:center;
        }
        .kanban-column,
        .project-kanban-lane {
            border-radius:var(--tb-radius) !important;
            background:var(--tb-surface-muted) !important;
        }
        .kanban-card,
        .project-task-card {
            border-radius:var(--tb-radius) !important;
            background:var(--tb-surface) !important;
        }
        .reports-hero,
        .attendance-timer {
            border-radius:var(--tb-radius) !important;
            background:linear-gradient(135deg,#4c2191 0%,#9b5cf7 62%,#b784ff 130%) !important;
        }
        .reports-hero:after { display:none; }
        [data-bs-theme="dark"] body {
            background:
                radial-gradient(circle at top right, rgba(129, 56, 232, .08), transparent 32rem),
                var(--tb-body-bg);
        }
        [data-bs-theme="dark"] .app-header,
        [data-bs-theme="dark"] .rise-toolbar,
        [data-bs-theme="dark"] .task-rise-toolbar,
        [data-bs-theme="dark"] .toolbar {
            background:var(--tb-surface) !important;
            border-color:var(--tb-border) !important;
        }
        [data-bs-theme="dark"] .table thead th,
        [data-bs-theme="dark"] .rise-table th,
        [data-bs-theme="dark"] .task-list-table th {
            background:var(--tb-surface-muted) !important;
        }
        [data-bs-theme="dark"] .card,
        [data-bs-theme="dark"] .soft-card,
        [data-bs-theme="dark"] .attendance-panel,
        [data-bs-theme="dark"] .rise-shell,
        [data-bs-theme="dark"] .task-rise-shell,
        [data-bs-theme="dark"] .task-list-card,
        [data-bs-theme="dark"] .reports-filter,
        [data-bs-theme="dark"] .report-card,
        [data-bs-theme="dark"] .report-table-card,
        [data-bs-theme="dark"] .messenger-shell,
        [data-bs-theme="dark"] .messenger-contacts,
        [data-bs-theme="dark"] .messenger-chat {
            box-shadow:0 14px 34px rgba(129, 56, 232, .34) !important;
        }
        @media (max-width:1199px) {
            .app-header { height:auto;min-height:74px;padding-top:.75rem;padding-bottom:.75rem; }
            .rise-toolbar,
            .task-rise-toolbar { flex-wrap:wrap; }
            .rise-chips,
            .task-quick-filters { width:100%;overflow-x:auto;padding-bottom:.2rem; }
        }
        @media (max-width:767px) {
            html,
            body {
                max-width:100%;
                overflow-x:hidden;
            }
            body { font-size:13px; }
            .app-header h2 { font-size:1rem; }
            .app-header > .d-flex:last-child { width:100%; }
            .sidebar a { min-width:0; }
            .sidebar-link-copy { min-width:0; }
            .rise-titlebar,
            .task-rise-head,
            .reports-hero,
            .report-section-heading {
                flex-direction:column !important;
                align-items:flex-start !important;
            }
            .rise-actions,
            .task-rise-actions {
                display:flex;
                max-width:100%;
                width:100%;
                overflow-x:auto;
                padding-bottom:.2rem;
            }
            .rise-actions .btn,
            .task-rise-actions .btn { white-space:nowrap; }
            .rise-toolbar,
            .task-rise-toolbar {
                display:grid !important;
                grid-template-columns:1fr;
                align-items:stretch !important;
            }
            .rise-toolbar .btn,
            .task-rise-toolbar .btn,
            .rise-search,
            .rise-search input,
            .task-rise-search,
            .task-rise-toolbar .form-select {
                width:100% !important;
            }
            .rise-chips,
            .task-quick-filters {
                display:flex;
                flex-wrap:wrap;
                overflow:visible;
            }
            .rise-chip,
            .task-quick-filters a {
                flex:1 1 auto;
                justify-content:center;
            }
            .rise-table {
                min-width:720px !important;
            }
            .report-metric,
            .metric { min-height:auto; }
        }

        /* ─── Module KPI Cards — Unified Style ────────────────────────── */
        .kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1.5rem; }
        .kpi-grid.kpi-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
        .kpi-grid.kpi-6 { grid-template-columns:repeat(6,minmax(0,1fr)); }
        .kpi-card { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:var(--tb-radius); padding:1.1rem 1.2rem; box-shadow:0 4px 14px rgba(129, 56, 232, .045); position:relative; overflow:hidden; transition:box-shadow .18s }
        .kpi-card:before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background:var(--kpi-accent,var(--tb-primary)); }
        .kpi-card:hover { box-shadow:0 8px 24px rgba(129, 56, 232, .08); }
        .kpi-card-label { display:block; color:var(--tb-muted); font-size:.73rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-bottom:.45rem; }
        .kpi-card-value { display:block; color:var(--tb-heading); font-size:1.9rem; font-weight:800; line-height:1; }
        .kpi-card-sub { display:block; color:var(--tb-muted); font-size:.75rem; margin-top:.3rem; }
        .kpi-card-icon { position:absolute; top:.8rem; right:.9rem; font-size:1.5rem; opacity:.15; }
        .kpi-accent-blue { --kpi-accent:#8138e8; }
        .kpi-accent-green { --kpi-accent:#9b5cf7; }
        .kpi-accent-amber { --kpi-accent:#9b5cf7; }
        .kpi-accent-red { --kpi-accent:#6723ce; }
        .kpi-accent-purple { --kpi-accent:#6723ce; }
        .kpi-accent-teal { --kpi-accent:#8138e8; }
        .kpi-accent-indigo { --kpi-accent:#6723ce; }
        .kpi-accent-slate { --kpi-accent:#6723ce; }
        @media(max-width:991px) { .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .kpi-grid.kpi-6 { grid-template-columns:repeat(3,minmax(0,1fr)); } }
        @media(max-width:575px) { .kpi-grid,.kpi-grid.kpi-3,.kpi-grid.kpi-6 { grid-template-columns:1fr; } }

        /* ─── Module Table Card ─────────────────────────────────────────── */
        .module-card { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:var(--tb-radius); box-shadow:0 4px 14px rgba(129, 56, 232, .045); overflow:hidden; }
        .module-card-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; padding:1rem 1.25rem; border-bottom:1px solid var(--tb-border-soft); }
        .module-card-header h5,
        .module-card-header h6 { margin:0; color:var(--tb-heading); font-weight:700; }
        .module-card-body { padding:0; }

        /* ─── Empty State ───────────────────────────────────────────────── */
        .empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.75rem; padding:3rem 1.5rem; text-align:center; color:var(--tb-muted); }
        .empty-state-icon { font-size:3rem; opacity:.35; }
        .empty-state p { margin:0; font-size:.9rem; }

        /* ─── Hover utility ─────────────────────────────────────────────── */
        .hover-primary:hover { color:var(--tb-primary) !important; }

        /* ─── Range Chip pills  ─────────────────────────────────────────── */
        .range-chip,.range-pill {
            display:inline-flex; align-items:center; padding:.3rem .75rem; border-radius:999px;
            border:1px solid var(--tb-border); background:var(--tb-surface); color:var(--tb-muted);
            font-size:.78rem; font-weight:700; text-decoration:none; white-space:nowrap; transition:all .14s;
        }
        .range-chip:hover,.range-pill:hover { border-color:var(--tb-primary); color:var(--tb-primary); background:var(--tb-primary-soft); }
        .range-chip.active,.range-pill.active { background:var(--tb-primary); border-color:var(--tb-primary); color:#ffffff; }
        [data-bs-theme="dark"] .range-chip,[data-bs-theme="dark"] .range-pill { border-color:var(--tb-border); background:var(--tb-surface); color:var(--tb-muted); }
        [data-bs-theme="dark"] .range-chip.active,[data-bs-theme="dark"] .range-pill.active { background:var(--tb-primary); color:#2b1458; }

        /* ─── Attendance Module ─────────────────────────────────────────── */
        .attendance-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.65rem; }
        .attendance-grid > div { background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:8px; padding:.7rem .85rem; }
        .attendance-grid small { display:block; color:var(--tb-muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
        .attendance-grid strong { display:block; margin-top:.2rem; font-size:1rem; font-weight:700; color:var(--tb-heading); }
        .animate-pulse { animation:pulse 2s ease-in-out infinite; }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

        /* Status chips */
        .attendance-status { display:inline-flex; align-items:center; gap:.3rem; padding:.35rem .75rem; border-radius:999px; font-size:.76rem; font-weight:750; }
        .status-working-day,.status-clocked-in { background:#faf7ff; color:#8138e8; }
        .status-on-break,.status-on_break { background:#f3ecff; color:#8138e8; }
        .status-clocked-out,.status-day-complete { background:#f3ecff; color:#6723ce; }
        .status-absent { background:#f3ecff; color:#6723ce; }
        .status-not-started { background:#faf7ff; color:#8138e8; }
        [data-bs-theme="dark"] .status-working-day,[data-bs-theme="dark"] .status-clocked-in { background:#4c2191; color:#f3ecff; }
        [data-bs-theme="dark"] .status-on-break,[data-bs-theme="dark"] .status-on_break { background:#4c2191; color:#f3ecff; }
        [data-bs-theme="dark"] .status-clocked-out,[data-bs-theme="dark"] .status-day-complete { background:#4c2191; color:#e6d8ff; }
        [data-bs-theme="dark"] .status-not-started { background:var(--tb-surface-muted); color:var(--tb-muted); }

        /* Attendance Timer */
        .attendance-timer { background:linear-gradient(135deg,#4c2191 0%,#9b5cf7 62%,#b784ff 135%); color:#ffffff; border-radius:10px; padding:1.2rem 1.25rem; display:flex; flex-direction:column; gap:.25rem; margin-bottom:.85rem; }
        .attendance-timer small { opacity:.75; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
        .attendance-timer strong { font-size:2rem; font-weight:800; line-height:1; }
        .attendance-timer span { font-size:.82rem; opacity:.85; }

        /* ─── Timesheet Range Chips Flex Row ────────────────────────────── */
        .recommended-range-chips { display:flex; flex-wrap:wrap; gap:.5rem; }

        /* ─── Reporting & Analytics Hero ──────────────────────────────── */
        .reports-hero { background:linear-gradient(135deg,#4c2191 0%,#9b5cf7 62%,#b784ff 135%); border-radius:var(--tb-radius); padding:1.5rem 1.75rem; color:#ffffff; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
        .reports-eyebrow { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; opacity:.75; margin:0 0 .35rem; }
        .reports-hero h3 { font-size:1.45rem; font-weight:800; color:#ffffff; margin:0 0 .25rem; }
        .reports-hero p { color:rgba(129, 56, 232, .75); margin:0; font-size:.9rem; }
        .reports-hero .badge { backdrop-filter:blur(8px); background:rgba(129, 56, 232, .18); border-color:rgba(129, 56, 232, .3) !important; color:#ffffff; }
        .reports-hero .btn { backdrop-filter:blur(8px); background:rgba(129, 56, 232, .14); border-color:rgba(129, 56, 232, .3); color:#ffffff; font-weight:700; }
        .reports-hero .btn:hover { background:rgba(129, 56, 232, .25); border-color:rgba(129, 56, 232, .5); }

        /* ─── Section Header (page-level) ───────────────────────────────── */
        .section-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.85rem; }
        .section-heading h2 { font-size:1rem; font-weight:700; color:var(--tb-heading); margin:0; display:flex; align-items:center; gap:.4rem; }

        /* ─── Vault Secret Eye ─────────────────────────────────────────── */
        .password-eye { background:none; border:none; color:var(--tb-muted); cursor:pointer; padding:.1rem .3rem; }
        .password-eye:hover { color:var(--tb-primary); }

        /* Treviq-inspired visual system: soft lilac canvas, vivid violet actions,
           generous rounded surfaces and high-contrast type. */
        :root {
            --tb-body-bg:#ffffff;
            --tb-body-color:#2b1458;
            --tb-surface:#ffffff;
            --tb-surface-muted:#faf7ff;
            --tb-surface-lift:#ffffff;
            --tb-border:#f3ecff;
            --tb-border-soft:#f3ecff;
            --tb-muted:#8138e8;
            --tb-heading:#2b1458;
            --tb-primary:#6723ce;
            --tb-primary-strong:#6723ce;
            --tb-primary-soft:#f3ecff;
            --tb-success:#9b5cf7;
            --tb-warning:#b784ff;
            --tb-danger:#8138e8;
            --tb-kanban-bg:#f3ecff;
            --tb-radius:16px;
            --tb-shadow:0 12px 30px rgba(129, 56, 232, .06);
            --tb-card-shadow:0 8px 20px rgba(129, 56, 232, .045);
        }
        [data-bs-theme="dark"] {
            --tb-body-bg:#2b1458;
            --tb-body-color:#faf7ff;
            --tb-surface:#2b1458;
            --tb-surface-muted:#2b1458;
            --tb-surface-lift:#4c2191;
            --tb-border:#4c2191;
            --tb-border-soft:#4c2191;
            --tb-muted:#e6d8ff;
            --tb-heading:#ffffff;
            --tb-primary:#9b5cf7;
            --tb-primary-strong:#d0b2ff;
            --tb-primary-soft:#4c2191;
            --tb-kanban-bg:#2b1458;
        }
        body {
            background:var(--tb-body-bg);
            font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }
        h1,h2,h3,h4,h5,h6 { color:var(--tb-heading); font-weight:800; }
        .sidebar { background:#180d2f !important; border-right:1px solid #2b1458; box-shadow:none; }
        .sidebar-brand { background:transparent !important; border-bottom-color:rgba(129, 56, 232, .20) !important; color:#ffffff !important; }
        .sidebar-brand strong,.sidebar-brand strong span,.sidebar-brand-icon { color:#ffffff !important; }
        .sidebar-brand strong { font-size:21px; letter-spacing:-.04em; }
        .sidebar-section-title { color:rgba(129, 56, 232, .58) !important; }
        .sidebar a { color:rgba(129, 56, 232, .86) !important; border-color:transparent !important; }
        .sidebar a:hover { background:rgba(129, 56, 232, .13) !important; color:#ffffff !important; border-color:rgba(129, 56, 232, .12) !important; }
        .sidebar a.active,.sidebar a.has-unread { background:linear-gradient(90deg,#6723ce,#6723ce) !important; color:#ffffff !important; border-color:transparent !important; box-shadow:none !important; }
        .sidebar-icon { background:rgba(129, 56, 232, .14) !important; border-color:rgba(129, 56, 232, .18) !important; color:#ffffff !important; border-radius:10px; }
        .sidebar a.active .sidebar-icon,.sidebar a.has-unread .sidebar-icon { background:rgba(129, 56, 232, .16) !important; border-color:rgba(129, 56, 232, .16) !important; color:#ffffff !important; }
        .sidebar-user-card { background:rgba(129, 56, 232, .13) !important; border-color:rgba(129, 56, 232, .18) !important; }
        .sidebar-user-card>span { background:#ffffff !important; color:#6723ce !important; }
        .sidebar-user-card strong,.sidebar-user-card small { color:#ffffff !important; }
        .sidebar-user-card small { color:rgba(129, 56, 232, .70) !important; }
        .sidebar-logout .btn { background:rgba(129, 56, 232, .12) !important; border-color:rgba(129, 56, 232, .25) !important; color:#ffffff !important; }
        .sidebar-logout .btn:hover { background:#ffffff !important; color:#6723ce !important; }
        .app-header { background:#ffffff !important; border-bottom-color:#f3ecff !important; backdrop-filter:none; }
        .app-header h2,.header-profile strong { color:var(--tb-heading) !important; }
        .header-profile>span { background:linear-gradient(135deg,#9b5cf7,#6723ce) !important; color:#ffffff !important; }
        .workspace-ribbon { height:42px; background:#ffffff !important; border-color:#f3ecff !important; border-radius:12px; }
        .workspace-ribbon-ico,.workspace-ribbon-action { color:var(--tb-primary) !important; }
        .workspace-ribbon-action { border-color:#f3ecff !important; border-radius:9px; }
        .workspace-ribbon-action:hover { background:var(--tb-primary) !important; color:#ffffff !important; border-color:var(--tb-primary) !important; }
        .btn { border-radius:10px; font-weight:700; }
        .btn-primary { --bs-btn-bg:#6723ce; --bs-btn-border-color:#6723ce; --bs-btn-hover-bg:#6723ce; --bs-btn-hover-border-color:#6723ce; --bs-btn-active-bg:#4c2191; --bs-btn-active-border-color:#4c2191; box-shadow:none; }
        .btn-outline-primary { --bs-btn-color:#6723ce; --bs-btn-border-color:#e6d8ff; --bs-btn-hover-bg:#6723ce; --bs-btn-hover-border-color:#6723ce; }
        .btn-light { --bs-btn-border-color:#f3ecff; --bs-btn-color:#6723ce; --bs-btn-hover-bg:#f3ecff; --bs-btn-hover-border-color:#e6d8ff; }
        .card,.soft-card,.toolbar,.form-section,.form-aside,.form-action-bar { border-color:var(--tb-border) !important; border-radius:16px !important; box-shadow:var(--tb-card-shadow); }
        .form-control,.form-select { border-color:#f3ecff; border-radius:10px; min-height:42px; }
        .form-control:focus,.form-select:focus { border-color:#9b5cf7; box-shadow:0 0 0 .22rem rgba(129, 56, 232, .14); }
        .table > :not(caption) > * > * { border-bottom-color:var(--tb-border-soft); }
        .badge-soft,.notification-icon { background:#f3ecff; color:#6723ce; }
        .metric { border-left-color:var(--tb-primary); }
        [data-bs-theme="dark"] .sidebar { background:linear-gradient(180deg,#2b1458,#4c2191 100%) !important; }
        [data-bs-theme="dark"] .app-header { background:rgba(129, 56, 232, .86) !important; }

/* Source: resources/views/leaves/index.blade.php */
.leave-kpi-card {
    border-radius: 12px !important;
}

/* Leave history: keep the date and duration columns independent so their
   values never overlap when the table becomes tight. */
#leavesTable {
    min-width: 1480px;
}

#leavesTable .leave-date-column {
    min-width: 215px;
}

#leavesTable .leave-days-column {
    min-width: 105px;
    white-space: nowrap;
}

#leavesTable .leave-type-column {
    min-width: 180px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#leavesTable .leave-date-range {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Source: resources/views/leave_types/index.blade.php */
.leave-type-kpi-card {
    border-radius: 12px !important;
}

/* Source: resources/views/messages/index.blade.php */
/* Messenger App Wrapper Container */
    .messenger-app-container {
        background: var(--tb-surface);
        border: 1px solid var(--tb-border);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(129, 56, 232, .06);
        display: flex;
        flex-direction: column;
        height: calc(100vh - 120px);
        min-height: 600px;
    }

    /* Teams Unified Top Bar */
    .teams-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 1.15rem;
        background: #ffffff;
        border-bottom: 1px solid var(--tb-border);
        flex: 0 0 auto;
        position: relative;
        z-index: 20;
    }

    /* Teams Top Omnibox Search */
    .teams-top-search-bar { max-width:100%; position:relative; }
    .teams-search-box { background:#faf7ff; border:1px solid #f3ecff; border-radius:999px; transition:border-color .15s, box-shadow .15s, background .15s; }
    .teams-search-box:focus-within { background:#ffffff; border-color:#8138e8; box-shadow:0 0 0 3px rgba(129, 56, 232, 0.15); }
    .teams-search-flyout { position:absolute; top:calc(100% + 6px); left:0; right:0; background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:12px; z-index:1070; box-shadow:0 14px 34px rgba(129, 56, 232, 0.18); overflow:hidden; }
    .flyout-person-item { transition:transform .12s ease-in-out; }
    .flyout-person-item:hover { transform:translateY(-2px); }
    .flyout-person-item .avatar { border:2px solid #f3ecff; transition:border-color .12s; }
    .flyout-person-item:hover .avatar { border-color:#8138e8; }
    .recent-search-item { display:flex; align-items:center; justify-content:space-between; padding:.45rem .65rem; border-radius:6px; cursor:pointer; color:var(--tb-body-color); text-decoration:none; font-size:.84rem; }
    .recent-search-item:hover { background:var(--tb-surface-muted); color:#8138e8; }
    .search-result-item { display:flex; align-items:center; gap:.75rem; padding:.6rem .75rem; border-radius:8px; text-decoration:none; color:var(--tb-body-color); transition:background .1s; margin-bottom:2px; }
    .search-result-item:hover { background:#faf7ff; color:#6723ce; }
    .search-result-badge { font-size:.7rem; padding:.15rem .45rem; border-radius:999px; }

    /* Presence Badge Dots & Menus */
    .presence-badge-dot {
        position: absolute;
        right: -1px;
        bottom: -1px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        border: 2px solid #ffffff;
        box-shadow: 0 1px 2px rgba(129, 56, 232, 0.18);
        transition: background-color 0.2s ease;
    }
    .presence-badge-dot.large {
        width: 14px;
        height: 14px;
        border-width: 2px;
        right: 0px;
        bottom: 0px;
    }
    .presence-dot-mini {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .contact-presence-dot {
        position: absolute;
        right: 0;
        bottom: 2px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        border: 2px solid var(--tb-surface);
        box-shadow: 0 1px 2px rgba(129, 56, 232, 0.12);
        transition: background-color 0.2s ease;
    }
    .presence-select-btn {
        transition: background 0.12s;
        border-radius: 6px;
        margin: 1px 6px;
        width: calc(100% - 12px);
    }
    .presence-select-btn:hover {
        background: #faf7ff;
    }
    .presence-select-btn.active-presence {
        background: #faf7ff;
        font-weight: 600;
    }
    .presence-icon-indicator {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* In-Chat Search Panel & Highlights */
    .chat-search-panel { transition:all .2s; }
    .chat-search-mark { background:#f3ecff; color:#6723ce; padding:1px 3px; border-radius:3px; font-weight:600; }
    .chat-search-mark-active { background:#9b5cf7; color:#ffffff; box-shadow:0 0 0 2px #8138e8; }
    
    /* Highlight Pulse for ?highlight=ID */
    .message-highlight-pulse { animation:highlightPulse 2.8s ease-in-out infinite; border:2px solid #d0b2ff !important; }
    @keyframes highlightPulse {
        0% { box-shadow:0 0 0 0 rgba(129, 56, 232, 0.7); transform:scale(1); }
        50% { box-shadow:0 0 0 10px rgba(129, 56, 232, 0); transform:scale(1.015); }
        100% { box-shadow:0 0 0 0 rgba(129, 56, 232, 0.7); transform:scale(1); }
    }

    /* Messenger Shell Layout inside Container */
    .messenger-shell {
        display: grid;
        grid-template-columns: 330px minmax(0,1fr);
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        background: var(--tb-surface);
        border: none;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
    }
    .messenger-contacts { background:var(--tb-surface-muted); border-right:1px solid var(--tb-border); min-width:0; height:100%; overflow:hidden; display:flex; flex-direction:column; }
    .messenger-sidebar-header { padding:.85rem; border-bottom:1px solid var(--tb-border); background:var(--tb-surface-muted); flex:0 0 auto; }
    .messenger-search input { font-size:.84rem; }
    .messenger-filter-tabs .nav-link { color:var(--tb-muted); border-radius:6px; font-weight:600; font-size:.8rem; }
    .messenger-filter-tabs .nav-link.active { background:var(--tb-surface); color:var(--tb-body-color); border:1px solid var(--tb-border); box-shadow:0 1px 3px rgba(129, 56, 232, .05); }
    .contact-list { flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
    .contact-section-title { font-size:.7rem; letter-spacing:.05em; font-weight:700; }
    
    /* Contact List Items */
    .contact-item { display:flex; gap:.75rem; padding:.75rem .9rem; color:var(--tb-body-color); text-decoration:none; border-bottom:1px solid var(--tb-border-soft); position:relative; transition:all .15s; }
    .contact-item:hover { background:#faf7ff; }
    .contact-item.active { background:#faf7ff; }
    .contact-item.has-unread { background:#faf7ff; box-shadow:inset 4px 0 0 #8138e8; }
    .contact-item.has-unread strong, .contact-item.has-unread .contact-preview { font-weight:800; color:#2b1458; }
    .contact-avatar-wrap { position:relative; flex:0 0 auto; }
    .avatar.avatar-user { width:42px; height:42px; border-radius:50%; background:#f3ecff; color:#4c2191; font-weight:700; font-size:14px; display:inline-flex; align-items:center; justify-content:center; }
    .avatar.avatar-group { width:42px; height:42px; border-radius:12px; font-weight:700; font-size:14px; display:inline-flex; align-items:center; justify-content:center; }
    .avatar.avatar-header { width:44px; height:44px; border-radius:50%; font-size:15px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
    .avatar.avatar-sender { width:32px; height:32px; border-radius:50%; font-size:11px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; background:#f3ecff; color:#6723ce; margin-right:8px; margin-top:2px; }
    
    .contact-online-dot { position:absolute; right:0; bottom:2px; width:10px; height:10px; border-radius:50%; background:#b784ff; border:2px solid var(--tb-surface); }
    .contact-unread-dot { position:absolute; right:-2px; top:0; width:11px; height:11px; border-radius:50%; background:#8138e8; border:2px solid var(--tb-surface); }
    .contact-unread-badge { min-width:20px; height:20px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; padding:0 .4rem; background:#8138e8; color:#ffffff; font-size:.72rem; font-weight:800; flex:0 0 auto; }
    .contact-copy { min-width:0; flex:1; }
    .contact-copy strong, .contact-preview { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
    .contact-date { font-size:.72rem; color:var(--tb-muted); }

    /* Chat Area */
    .messenger-chat { display:flex; flex-direction:column; min-width:0; min-height:0; height:100%; overflow:hidden; background:var(--tb-surface); }
    .chat-header { min-height:72px; flex:0 0 auto; padding:.85rem 1.25rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--tb-border); background:var(--tb-surface); }
    .message-list { flex:1 1 auto; min-height:0; padding:1.25rem; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable; background:#faf7ff; }
    
    /* Message Bubbles */
    .message-row { display:flex; margin-bottom:.9rem; align-items:flex-end; }
    .message-row.mine { justify-content:flex-end; }
    .message-row.theirs { justify-content:flex-start; }
    .message-bubble-container { max-width:min(680px,78%); display:flex; flex-direction:column; }
    .message-row.mine .message-bubble-container { align-items:flex-end; }
    
    .message-sender-name { font-size:.76rem; font-weight:700; color:#8138e8; margin-bottom:.25rem; margin-left:4px; }
    .message-bubble { border-radius:16px; padding:.75rem 1rem; box-shadow:0 2px 8px rgba(129, 56, 232, .04); position:relative; word-break:break-word; }
    .message-row.mine .message-bubble { background:linear-gradient(135deg, #8138e8 0%, #6723ce 100%); color:#ffffff; border-bottom-right-radius:4px; }
    .message-row.theirs .message-bubble { background:var(--tb-surface); border:1px solid var(--tb-border); border-bottom-left-radius:4px; color:var(--tb-body-color); }
    
    .message-meta { display:flex; align-items:center; justify-content:flex-end; gap:.35rem; margin-top:.35rem; }
    .read-receipt-check { font-size:.8rem; opacity:.75; font-weight:700; letter-spacing:-0.5px; }
    .read-receipt-check.is-read { opacity:1; color:#e6d8ff; font-weight:900; text-shadow:0 0 6px rgba(129, 56, 232, .45); }

    .message-day-separator { display:flex; align-items:center; justify-content:center; gap:.75rem; color:var(--tb-muted); font-size:.76rem; margin:.9rem 0 1.2rem; }
    .message-day-separator:before, .message-day-separator:after { content:""; height:1px; background:var(--tb-border); flex:1; }
    .message-day-separator span { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:999px; padding:.2rem .75rem; font-weight:600; box-shadow:0 1px 3px rgba(129, 56, 232, .03); }

    /* @Mention Pills */
    .mention-tag { display:inline-flex; align-items:center; padding:1px 7px; border-radius:999px; font-weight:600; font-size:.9em; background:rgba(129, 56, 232, 0.12); color:#6723ce; text-decoration:none; margin:0 2px; }
    .message-row.mine .mention-tag { background:rgba(129, 56, 232, 0.25); color:#ffffff; border:1px solid rgba(129, 56, 232, 0.35); }
    .message-row.theirs .mention-tag { border:1px solid rgba(129, 56, 232, 0.25); }

    /* Mention Dropdown */
    .mention-dropdown { position:absolute; bottom:100%; left:12px; margin-bottom:8px; width:280px; max-height:220px; overflow-y:auto; background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:8px; z-index:1060; }
    .mention-item { display:flex; align-items:center; gap:.65rem; padding:.5rem .75rem; cursor:pointer; text-decoration:none; color:var(--tb-body-color); transition:background .1s; }
    .mention-item:hover, .mention-item.active { background:#faf7ff; color:#6723ce; }

    /* Attachments */
    .message-attachments { display:grid; gap:.5rem; margin-top:.6rem; }
    .message-attachment { display:flex; align-items:center; gap:.65rem; padding:.6rem; border-radius:8px; background:rgba(129, 56, 232, .16); color:inherit; border:1px solid rgba(129, 56, 232, .28); }
    .message-row.theirs .message-attachment { background:var(--tb-surface-muted); }
    .attachment-preview-link { color:inherit; text-decoration:none; flex:0 0 auto; }
    .message-attachment img { width:132px; height:88px; object-fit:cover; border-radius:6px; background:var(--tb-border); display:block; }
    .file-icon { width:42px; height:42px; border-radius:8px; background:var(--tb-border); color:var(--tb-body-color); display:inline-flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; }
    .attachment-name { min-width:0; flex:1; color:inherit; text-decoration:none; }
    .message-attachment strong { display:block; word-break:break-word; font-size:.85rem; }
    .message-attachment small { text-align:left; margin:0; opacity:.8; }
    .attachment-download { width:32px; height:32px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; color:inherit; text-decoration:none; border:1px solid rgba(129, 56, 232, .4); background:rgba(129, 56, 232, .35); flex:0 0 auto; }
    .attachment-download:hover { background:var(--tb-surface); color:#6723ce; }

    /* Modern Floating Composer */
    .chat-composer { display:flex; flex:0 0 auto; gap:.75rem; padding:1rem 1.25rem; border-top:1px solid var(--tb-border); background:var(--tb-surface); align-items:flex-end; }
    .composer-box { flex:1; border:1px solid var(--tb-border); border-radius:12px; overflow:visible; background:var(--tb-surface); position:relative; transition:border-color .15s, box-shadow .15s; }
    .composer-box:focus-within { border-color:#8138e8; box-shadow:0 0 0 3px rgba(129, 56, 232, 0.12); }
    .composer-toolbar { display:flex; flex-wrap:wrap; gap:.35rem; padding:.45rem .65rem; border-bottom:1px solid var(--tb-border-soft); background:#faf7ff; border-top-left-radius:11px; border-top-right-radius:11px; }
    .composer-toolbar button, .attachment-button, .btn-mention-trigger { border:1px solid var(--tb-border); background:var(--tb-surface); border-radius:6px; padding:.25rem .5rem; font-size:.82rem; color:var(--tb-body-color); cursor:pointer; display:inline-flex; align-items:center; }
    .composer-toolbar button:hover, .attachment-button:hover, .btn-mention-trigger:hover { background:#faf7ff; border-color:#e6d8ff; color:#8138e8; }
    .btn-mention-trigger { font-weight:600; color:#8138e8; }
    .message-editor { min-height:50px; max-height:160px; overflow:auto; padding:.65rem .85rem; outline:none; font-size:.92rem; line-height:1.5; }
    .message-editor:empty:before { content:attr(data-placeholder); color:#b784ff; }
    .attachment-preview { display:flex; flex-wrap:wrap; gap:.4rem; padding:0 .75rem .65rem; }
    .attachment-chip { display:inline-flex; align-items:center; gap:.4rem; border:1px solid var(--tb-border); background:var(--tb-surface-muted); border-radius:999px; padding:.28rem .55rem; font-size:.82rem; max-width:260px; }
    .attachment-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .btn-send { height:42px; border-radius:10px; font-weight:600; }
    
    .empty-thread { display:flex; align-items:center; justify-content:center; color:var(--tb-muted); padding:2rem; }
    .cursor-pointer { cursor:pointer; }
    
    @media (max-width: 991px) {
        .messenger-app-container { height: auto; min-height: 0; }
        .teams-top-bar { flex-wrap: wrap; gap: 0.5rem; }
        .teams-top-search-bar { order: 3; width: 100%; max-width: 100% !important; margin: 0.25rem 0 0 0 !important; }
        .messenger-shell { grid-template-columns:1fr; height:auto; min-height:0; }
        .messenger-contacts { height:auto; border-right:0; border-bottom:1px solid var(--tb-border); }
        .contact-list { max-height:300px; }
        .messenger-chat { min-height:560px; }
    }

/* Source: resources/views/passwords/index.blade.php */
.icon-btn { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; padding:0; vertical-align:middle; }
    .icon-btn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Source: resources/views/projects/index.blade.php */
/* Modern Design Tokens & Variables */
.rise-shell {
    width: 100%;
    background: var(--tb-surface, #ffffff);
    border: 1px solid var(--tb-border, #f3ecff);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(129, 56, 232, 0.04);
    overflow: hidden;
}

/* Authentication screens: the same Treviq visual system without workspace chrome. */
.login-shell {
    min-height:100vh !important;
    display:grid !important;
    place-items:center;
    padding:48px 24px !important;
    background:#fff;
}
.login-panel {
    width:min(100%, 1010px) !important;
    min-height:560px;
    grid-template-columns:minmax(0, 1.06fr) minmax(370px, .94fr) !important;
    border:1px solid var(--treviq-line) !important;
    border-radius:24px !important;
    background:#fff !important;
    box-shadow:0 18px 45px rgba(68, 37, 130, .10) !important;
}
.login-story {
    min-height:0 !important;
    padding:42px !important;
    gap:32px !important;
    background:linear-gradient(145deg, #8a43ef 0%, #6d28d9 55%, #5721b6 100%) !important;
}
.login-brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#fff !important;
    font-family:Inter, sans-serif;
    font-size:1.25rem !important;
    font-weight:800;
    letter-spacing:-.035em;
}
.login-brand i { font-size:1.2rem; }
.login-eyebrow { color:rgba(255,255,255,.72) !important; opacity:1 !important; }
.login-story h1 {
    max-width:510px;
    color:#fff !important;
    font-size:clamp(2.35rem, 4vw, 3.65rem) !important;
    line-height:1.08 !important;
    letter-spacing:-.05em !important;
}
.login-story p:not(.login-eyebrow) {
    max-width:470px;
    margin-top:18px !important;
    color:rgba(255,255,255,.78) !important;
    font-size:.94rem !important;
    line-height:1.7;
}
.login-proof { gap:8px !important; }
.login-proof span {
    color:#fff !important;
    border-color:rgba(255,255,255,.20) !important;
    background:rgba(255,255,255,.11) !important;
    padding:9px 12px !important;
    font-size:.72rem !important;
}
.login-card {
    width:100%;
    max-width:430px;
    padding:48px 42px !important;
}
.login-card h2 { font-size:1.7rem !important; letter-spacing:-.045em; }
.login-card > p { color:var(--treviq-muted) !important; font-size:.88rem; line-height:1.6; }
.login-card .form-label { color:#43516b; font-size:.76rem; font-weight:700; }
.login-card .form-control { min-height:44px !important; }
.login-card .input-group .btn { min-width:46px; padding:0 !important; color:#586781; }
.login-card .form-check-label { color:#53627d; font-size:.79rem; font-weight:600; }
.login-card .btn-primary { min-height:44px; margin-top:2px; }
.login-card .border-top { border-color:#edf0f5 !important; }
@media (max-width: 767px) {
    .login-shell { display:block !important; padding:20px 16px !important; }
    .login-panel { grid-template-columns:1fr !important; min-height:0; border-radius:18px !important; }
    .login-story { min-height:300px !important; padding:28px !important; }
    .login-story h1 { font-size:2.25rem !important; }
    .login-card { max-width:none; padding:30px 24px !important; }
}

.rise-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--tb-border, #f3ecff);
    background: var(--tb-surface, #ffffff);
    gap: 1rem;
    flex-wrap: wrap;
}

.header-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--tb-primary-soft, #faf7ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-dark-heading {
    color: var(--tb-heading, #2b1458);
}

.rise-meta-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.meta-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.btn-add-project {
    padding: 0.55rem 1.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #8138e8, #6723ce);
    border: none;
    box-shadow: 0 4px 12px rgba(129, 56, 232, 0.25);
    transition: all 0.2s ease;
}

.btn-add-project:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(129, 56, 232, 0.35);
}

.rise-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: var(--tb-surface-muted, #faf7ff);
    border-bottom: 1px solid var(--tb-border, #f3ecff);
    gap: 1rem;
    flex-wrap: wrap;
}

.rise-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Modern Segmented View Switcher */
.segmented-control {
    display: inline-flex;
    background: var(--tb-border-soft, #f3ecff);
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.segmented-btn {
    border: none;
    background: transparent;
    color: var(--tb-muted, #8138e8);
    padding: 0.38rem 0.95rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.segmented-btn:hover {
    color: var(--tb-heading, #2b1458);
}

.segmented-btn.active {
    background: #ffffff;
    color: var(--tb-primary, #8138e8);
    box-shadow: 0 2px 6px rgba(129, 56, 232, 0.08);
}

/* Quick Filter Chips */
.rise-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
}

.rise-chip {
    border: 1px solid var(--tb-border, #e6d8ff);
    background: var(--tb-surface, #ffffff);
    color: var(--tb-muted, #6723ce);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.rise-chip:hover {
    border-color: var(--tb-primary, #8138e8);
    color: var(--tb-primary, #8138e8);
}

.rise-chip.active {
    background: var(--tb-primary, #8138e8);
    border-color: var(--tb-primary, #8138e8);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(129, 56, 232, 0.25);
}

.rise-chip.chip-pending {
    border-color: #d0b2ff;
    color: #9b5cf7;
}

.rise-chip.chip-pending.active {
    background: #d0b2ff;
    border-color: #d0b2ff;
    color: #ffffff;
}

.action-btn {
    font-weight: 600;
    border-radius: 7px;
    padding: 0.4rem 0.8rem;
}

.rise-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    min-width: 210px;
}

.search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b784ff;
    font-size: 0.85rem;
}

.search-input {
    padding-left: 2rem !important;
    border-radius: 8px !important;
    border-color: var(--tb-border, #e6d8ff);
}

.search-input:focus {
    border-color: #8138e8 !important;
    box-shadow: 0 0 0 3px rgba(129, 56, 232, 0.15) !important;
}

.rise-filter-panel {
    padding: 1rem 1.5rem;
    background: var(--tb-surface-muted, #faf7ff);
    border-bottom: 1px solid var(--tb-border, #f3ecff);
}

/* List Table Styling */
.rise-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rise-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.rise-table th {
    padding: 0.9rem 1rem;
    background: var(--tb-surface-muted, #faf7ff);
    color: var(--tb-muted, #8138e8);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--tb-border, #f3ecff);
}

.rise-table td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--tb-border-soft, #faf7ff);
    font-size: 0.86rem;
    color: var(--tb-body-color, #4c2191);
}

.rise-table tbody tr:hover {
    background: rgba(129, 56, 232, 0.03);
}

.id-pill {
    background: var(--tb-surface-muted, #faf7ff);
    color: var(--tb-muted, #6723ce);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.rise-project-link {
    color: var(--tb-heading, #2b1458);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.15s ease;
}

.rise-project-link:hover {
    color: var(--tb-primary, #8138e8);
}

.rise-progress-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rise-progress-box .progress {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: var(--tb-border-soft, #f3ecff);
    overflow: hidden;
}

.progress-bar-vibrant {
    background: linear-gradient(90deg, #9b5cf7, #8138e8);
    border-radius: 999px;
}

.progress-num {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--tb-heading, #4c2191);
}

.status-pill {
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 800;
}

.status-badge-pending_approval { background: #f3ecff; color: #8138e8; border: 1px solid #f3ecff; }
.status-badge-planning { background: #faf7ff; color: #6723ce; border: 1px solid #f3ecff; }
.status-badge-in_progress, .status-badge-active { background: #f3ecff; color: #6723ce; border: 1px solid #e6d8ff; }
.status-badge-testing { background: #f3ecff; color: #6723ce; border: 1px solid #f3ecff; }
.status-badge-deployed, .status-badge-completed { background: #faf7ff; color: #8138e8; border: 1px solid #f3ecff; }
.status-badge-on_hold { background: #f3ecff; color: #6723ce; border: 1px solid #e6d8ff; }

.fs-xs {
    font-size: 0.7rem !important;
}

/* Custom Action Buttons */
.action-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-icon-action {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--tb-border, #e6d8ff);
    background: var(--tb-surface);
    color: var(--tb-muted, #6723ce);
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-icon-action:hover {
    border-color: var(--tb-primary, #8138e8);
    color: var(--tb-primary, #8138e8);
    background: #faf7ff;
}

.btn-approve {
    border-color: #e6d8ff;
    background: #faf7ff;
    color: #6723ce;
}

.btn-approve:hover {
    background: #faf7ff;
    color: #8138e8;
    border-color: #d0b2ff;
}

.btn-view:hover {
    border-color: #f3ecff;
    background: #faf7ff;
    color: #9b5cf7;
}

.btn-edit:hover {
    border-color: #e6d8ff;
    background: #faf7ff;
    color: #6723ce;
}

.btn-delete:hover {
    border-color: #d0b2ff;
    background: #faf7ff;
    color: #4c2191;
}

/* Kanban Column Grid Styles */
.projects-kanban-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(230px, 1fr));
    gap: 1.1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.projects-kanban-column {
    background: var(--tb-surface-muted, #faf7ff);
    border: 1px solid var(--tb-border, #f3ecff);
    border-radius: 12px;
    padding: 0.95rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--tb-border, #f3ecff);
}

.column-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--tb-heading, #2b1458);
}

.status-icon {
    font-size: 0.95rem;
}

.status-icon-pending { color: #d0b2ff; }
.status-icon-progress { color: #8138e8; }
.status-icon-testing { color: #b784ff; }
.status-icon-deployed { color: #b784ff; }
.status-icon-completed { color: #9b5cf7; }
.status-icon-hold { color: #8138e8; }

.count-badge {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border, #e6d8ff);
    color: var(--tb-heading, #2b1458);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.project-kanban-card {
    border-radius: 10px !important;
    border: 1px solid var(--tb-border, #f3ecff) !important;
    background: var(--tb-surface);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(129, 56, 232, 0.08) !important;
}
.column-theme-pending .project-kanban-card { border-left: 3px solid #d0b2ff !important; }
.column-theme-progress .project-kanban-card { border-left: 3px solid #8138e8 !important; }
.column-theme-testing .project-kanban-card { border-left: 3px solid #6723ce !important; }
.column-theme-deployed .project-kanban-card { border-left: 3px solid #b784ff !important; }
.column-theme-completed .project-kanban-card { border-left: 3px solid #9b5cf7 !important; }
.column-theme-hold .project-kanban-card { border-left: 3px solid #8138e8 !important; }

.project-card-title a {
    color: var(--tb-heading, #2b1458);
    font-size: 0.93rem;
    transition: color 0.15s ease;
}

.project-card-title a:hover {
    color: var(--tb-primary, #8138e8);
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8138e8;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    margin-left: -6px;
}

.avatar-pill:first-child {
    margin-left: 0;
}

.avatar-more {
    background: #8138e8;
}

.btn-icon-card {
    padding: 0.22rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 5px;
    border: 1px solid var(--tb-border, #f3ecff);
    background: var(--tb-surface);
    color: var(--tb-muted);
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-icon-card:hover {
    background: var(--tb-surface-muted, #faf7ff);
    border-color: #e6d8ff;
}

.empty-column-placeholder {
    border: 1px dashed var(--tb-border, #e6d8ff);
    background: rgba(129, 56, 232, 0.6);
}

@keyframes pulse-ring {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulse-ring 2s infinite ease-in-out;
}

/* Dark Mode Responsive Overrides */
[data-bs-theme="dark"] .rise-shell,
[data-bs-theme="dark"] .rise-titlebar,
[data-bs-theme="dark"] .rise-toolbar {
    background: var(--tb-surface);
    border-color: var(--tb-border);
}

[data-bs-theme="dark"] .header-icon-box {
    background: rgba(129, 56, 232, 0.15);
}

[data-bs-theme="dark"] .segmented-control {
    background: var(--tb-surface-lift);
}

[data-bs-theme="dark"] .segmented-btn.active {
    background: var(--tb-surface);
    color: var(--tb-primary-strong);
}

[data-bs-theme="dark"] .project-kanban-card {
    background: var(--tb-surface);
    border-color: var(--tb-border) !important;
}

[data-bs-theme="dark"] .btn-icon-card,
[data-bs-theme="dark"] .btn-icon-action {
    background: var(--tb-surface-lift);
    border-color: var(--tb-border);
    color: var(--tb-body-color);
}

[data-bs-theme="dark"] .count-badge {
    background: var(--tb-surface-lift);
    border-color: var(--tb-border);
    color: var(--tb-body-color);
}

[data-bs-theme="dark"] .rise-table th,
[data-bs-theme="dark"] .rise-filter-panel,
[data-bs-theme="dark"] .projects-kanban-column {
    background: var(--tb-surface-muted);
}

.project-kanban-card[draggable="true"] {
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-kanban-card[draggable="true"]:active {
    cursor: grabbing;
}
.project-kanban-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(129, 56, 232, 0.15) !important;
}
.projects-kanban-column.drag-over {
    background: rgba(129, 56, 232, 0.08) !important;
    border: 2px dashed #8138e8 !important;
    border-radius: 10px;
}

/* Additional dark mode */
[data-bs-theme="dark"] .rise-table tbody tr:hover { background: var(--tb-surface-muted); }
[data-bs-theme="dark"] .rise-filter-panel { background: var(--tb-surface-muted); border-color: var(--tb-border); }
[data-bs-theme="dark"] .id-pill { background: var(--tb-surface-lift); color: var(--tb-muted); }
[data-bs-theme="dark"] .btn-icon-card:hover { background: var(--tb-surface-lift); }
[data-bs-theme="dark"] .project-kanban-card { background: var(--tb-surface); }
[data-bs-theme="dark"] .status-badge-pending_approval { background: #4c2191; color: #f3ecff; border-color: #9b5cf7; }
[data-bs-theme="dark"] .status-badge-planning { background: var(--tb-surface-lift); color: var(--tb-muted); border-color: var(--tb-border); }
[data-bs-theme="dark"] .status-badge-in_progress, [data-bs-theme="dark"] .status-badge-active { background: #4c2191; color: #d0b2ff; border-color: #6723ce; }
[data-bs-theme="dark"] .status-badge-testing { background: #4c2191; color: #e6d8ff; border-color: #6723ce; }
[data-bs-theme="dark"] .status-badge-deployed, [data-bs-theme="dark"] .status-badge-completed { background: #4c2191; color: #e6d8ff; border-color: #8138e8; }
[data-bs-theme="dark"] .status-badge-on_hold { background: var(--tb-surface-lift); color: var(--tb-muted); border-color: var(--tb-border); }

/* ── Project Detail Side Drawer (Executive SaaS Design matching Task Popup) ── */
.project-panel-backdrop { display:none; position:fixed; inset:0; background:rgba(129, 56, 232, .45); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:1040; backdrop-filter:blur(4px); }
.project-panel-backdrop.is-open { display:block; opacity:1; pointer-events:auto; }
.project-detail-panel { position:fixed; top:64px; right:16px; bottom:16px; width:min(880px, calc(100vw - 32px)); background:var(--tb-surface); color:var(--tb-body-color); border:1px solid var(--tb-border); border-radius:16px; overflow-y:auto; transform:translateX(calc(100% + 40px)); transition:transform .25s cubic-bezier(0.16, 1, 0.3, 1); z-index:1045; box-shadow:-20px 0 50px rgba(129, 56, 232, .18); display:flex; flex-direction:column; scrollbar-width:thin; }
.project-detail-panel.is-open { transform:translateX(0); }
.project-panel-content { display:none; flex-direction:column; min-height:100%; }
.project-panel-content.active { display:flex; }

/* Drawer Header */
.project-drawer-header { padding:1.25rem 1.5rem 1rem; background:var(--tb-surface); border-bottom:1px solid var(--tb-border-soft, #f3ecff); flex-shrink:0; }
.project-code-badge { background:var(--tb-primary-soft, #f3ecff); color:var(--tb-primary, #8138e8); font-weight:800; font-size:.76rem; padding:.22rem .65rem; border-radius:6px; font-family:monospace; border:1px solid var(--tb-primary-soft, #f3ecff); }
.project-company-pill { background:var(--tb-surface-muted, #faf7ff); color:var(--tb-heading, #2b1458); font-size:.78rem; font-weight:700; padding:.22rem .65rem; border-radius:6px; border:1px solid var(--tb-border, #f3ecff); }
.btn-drawer-action { font-size:.78rem; font-weight:700; padding:.28rem .7rem; border-radius:6px; }
.project-drawer-title-wrap { margin:.4rem 0 .7rem; }
.project-drawer-title { font-size:1.25rem; font-weight:800; color:var(--tb-heading, #2b1458); margin:0; line-height:1.4; }
.project-quick-meta-bar { display:flex; align-items:center; gap:1.2rem; flex-wrap:wrap; padding-top:.5rem; border-top:1px dashed var(--tb-border-soft, #f3ecff); }
.meta-item { display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; }
.meta-label { color:var(--tb-muted, #8138e8); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.meta-val { color:var(--tb-heading, #2b1458); font-weight:600; display:inline-flex; align-items:center; gap:.3rem; }

/* Drawer Navigation Tabs */
.project-drawer-tabs { display:flex; gap:.35rem; padding:.6rem 1.5rem; background:var(--tb-surface); border-bottom:1px solid var(--tb-border-soft, #f3ecff); position:sticky; top:0; z-index:10; flex-shrink:0; }
.project-drawer-tabs button { border:0; background:transparent; color:var(--tb-muted, #8138e8); font-size:.82rem; font-weight:700; padding:.4rem .9rem; border-radius:7px; transition:all .15s ease; display:inline-flex; align-items:center; cursor:pointer; }
.project-drawer-tabs button:hover { color:var(--tb-heading, #2b1458); background:var(--tb-surface-muted, #faf7ff); }
.project-drawer-tabs button.active { background:var(--tb-primary-soft, #f3ecff); color:var(--tb-primary, #8138e8); font-weight:800; }

/* Drawer Tab Panes */
.project-tab-pane { display:none; padding:1.25rem 1.5rem 2rem; flex-grow:1; }
.project-tab-pane.active { display:block; }

/* 2-Column Split Grid */
.project-layout-columns { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:1.2rem; align-items:start; }
@media (max-width: 820px) {
    .project-layout-columns { grid-template-columns:1fr; }
}

/* Cards & Drawer Common */
.drawer-card { background:var(--tb-surface); border:1px solid var(--tb-border-soft, #f3ecff); border-radius:12px; padding:1.15rem; box-shadow:0 2px 10px rgba(129, 56, 232, .025); }
.drawer-card-label { font-size:.76rem; font-weight:800; color:var(--tb-muted, #8138e8); text-transform:uppercase; letter-spacing:.04em; display:block; margin-bottom:.4rem; }
.drawer-text { font-size:.88rem; line-height:1.6; color:var(--tb-body-color, #4c2191); }
.sidebar-card { background:var(--tb-surface-muted, #faf7ff); border-color:var(--tb-border, #f3ecff); }
.property-row { display:grid; grid-template-columns:100px 1fr; align-items:center; gap:.5rem; margin-bottom:.65rem; }
.property-row:last-child { margin-bottom:0; }
.property-label { font-size:.74rem; font-weight:800; color:var(--tb-muted, #8138e8); text-transform:uppercase; letter-spacing:.03em; }
.property-input .form-select, .property-input .form-control { background:var(--tb-surface); border-radius:7px; font-size:.82rem; font-weight:600; border-color:var(--tb-border, #f3ecff); min-height:34px; }
.stat-tile { background:var(--tb-surface-muted, #faf7ff); border:1px solid var(--tb-border-soft, #f3ecff); border-radius:10px; padding:.85rem; text-align:center; }
.stat-label { display:block; font-size:.72rem; font-weight:800; color:var(--tb-muted, #8138e8); text-transform:uppercase; letter-spacing:.04em; margin-bottom:.25rem; }
.stat-val { font-size:1.15rem; font-weight:800; }
.avatar-circle { width:38px; height:38px; border-radius:10px; background:var(--tb-primary-soft, #f3ecff); color:var(--tb-primary, #8138e8); font-size:.85rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.avatar-circle-sm { width:22px; height:22px; border-radius:50%; background:var(--tb-primary-soft, #f3ecff); color:var(--tb-primary, #8138e8); font-size:.65rem; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }

/* Dark Mode Overrides for Drawer */
[data-bs-theme="dark"] .project-detail-panel { background:var(--tb-surface); border-color:var(--tb-border); box-shadow:-20px 0 50px rgba(129, 56, 232, .45); }
[data-bs-theme="dark"] .project-drawer-header, [data-bs-theme="dark"] .project-drawer-tabs { background:var(--tb-surface); border-color:var(--tb-border-soft); }
[data-bs-theme="dark"] .drawer-card { background:var(--tb-surface); border-color:var(--tb-border-soft); }
[data-bs-theme="dark"] .sidebar-card, [data-bs-theme="dark"] .stat-tile, [data-bs-theme="dark"] .project-company-pill { background:var(--tb-surface-muted); border-color:var(--tb-border); }
[data-bs-theme="dark"] .property-input .form-select, [data-bs-theme="dark"] .property-input .form-control { background:var(--tb-surface-lift); border-color:var(--tb-border); color:var(--tb-body-color); }

@media (max-width: 767px) {
    .project-detail-panel { top:0; right:0; bottom:0; border-radius:0; width:100vw; }
    .project-drawer-header, .project-drawer-tabs, .project-tab-pane { padding-left:1rem; padding-right:1rem; }
}

/* Source: resources/views/projects/show.blade.php */
.project-board-shell { min-height:calc(100vh - 140px); background:#ffffff; color:#2b1458; border:1px solid #f3ecff; border-radius:8px; overflow:hidden; }
    .project-board-main { padding:1.5rem; overflow:auto; background:#ffffff; }
    .project-board-shell .form-control,
    .project-board-shell .form-select { background-color:#ffffff; border-color:#f3ecff; color:#2b1458; }
    .project-board-shell .btn-light { background:#ffffff; color:#2b1458; border-color:#f3ecff; }
    .project-board-head { display:flex; align-items:center; gap:.6rem; margin-bottom:1.25rem; }
    .project-inline-form { border-bottom:1px solid #f3ecff; margin-bottom:1rem; padding-bottom:1rem; }
    .project-title-fields { flex:1; display:grid; grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr); gap:.75rem; align-items:end; }
    .project-title-fields label,.project-edit-grid label { color:#9b5cf7; font-size:.78rem; margin-bottom:.25rem; }
    .project-board-head h4 { margin:0; font-size:1.65rem; font-weight:500; }
    .project-board-head p { margin:.8rem 0 0; color:#180d2f; }
    .project-edit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-bottom:1rem; }
    .project-file-field { grid-column:span 2; }
    .project-file-field small { display:block; margin-top:.25rem; }
    .project-files-panel { margin:1rem 0; padding:1rem; border:1px solid var(--tb-border); border-radius:8px; background:var(--tb-surface); }
    .project-file-list { display:grid; gap:.5rem; }
    .project-file-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem .75rem; border:1px solid var(--tb-border-soft); border-radius:8px; background:var(--tb-surface-muted); }
    .project-file-row a { min-width:0; text-decoration:none; }
    .project-file-row strong,.project-file-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .project-file-row small { color:var(--tb-muted); }
    .board-settings { color:#9b5cf7; text-decoration:none; font-size:.84rem; }
    .board-stats { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); gap:.75rem; margin-bottom:1rem; }
    .board-stats div { border:1px solid #f3ecff; border-radius:6px; padding:.7rem .8rem; background:#faf7ff; }
    .board-stats span { display:block; color:#8138e8; font-size:.78rem; }
    .board-stats strong { font-size:1rem; }
    .project-board-filters { display:flex; align-items:center; gap:.7rem; padding-top:.9rem; border-top:1px solid #f3ecff; margin-bottom:2rem; }
    /* ── Task Detail Side Drawer (Executive SaaS Design matching Task Index) ── */
    .task-panel-backdrop { display:none; position:fixed; inset:0; background:rgba(129, 56, 232, .45); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:1040; backdrop-filter:blur(4px); }
    .task-panel-backdrop.is-open { display:block; opacity:1; pointer-events:auto; }
    .task-detail-panel { position:fixed; top:64px; right:16px; bottom:16px; width:min(880px, calc(100vw - 32px)); background:var(--tb-surface); color:var(--tb-body-color); border:1px solid var(--tb-border); border-radius:16px; overflow-y:auto; transform:translateX(calc(100% + 40px)); transition:transform .25s cubic-bezier(0.16, 1, 0.3, 1); z-index:1045; box-shadow:-20px 0 50px rgba(129, 56, 232, .18); display:flex; flex-direction:column; scrollbar-width:thin; }
    .task-detail-panel.is-open { transform:translateX(0); }
    .task-panel-content { display:none; flex-direction:column; min-height:100%; }
    .task-panel-content.active { display:flex; }

    /* Drawer Header */
    .task-drawer-header { padding:1.25rem 1.5rem 1rem; background:var(--tb-surface); border-bottom:1px solid var(--tb-border-soft); flex-shrink:0; }
    .task-code-badge { background:var(--tb-primary-soft); color:var(--tb-primary); font-weight:800; font-size:.76rem; padding:.22rem .65rem; border-radius:6px; font-family:monospace; border:1px solid var(--tb-primary-soft); }
    .task-project-pill { background:var(--tb-surface-muted); color:var(--tb-heading); font-size:.78rem; font-weight:700; padding:.22rem .65rem; border-radius:6px; border:1px solid var(--tb-border); }
    .btn-drawer-action { font-size:.78rem; font-weight:700; padding:.28rem .7rem; border-radius:6px; }
    .task-drawer-title-wrap { margin:.4rem 0 .7rem; }
    .task-drawer-title { font-size:1.25rem; font-weight:800; color:var(--tb-heading); margin:0; line-height:1.4; }
    .task-quick-meta-bar { display:flex; align-items:center; gap:1.2rem; flex-wrap:wrap; padding-top:.5rem; border-top:1px dashed var(--tb-border-soft); }
    .meta-item { display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; }
    .meta-label { color:var(--tb-muted); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
    .meta-val { color:var(--tb-heading); font-weight:600; display:inline-flex; align-items:center; gap:.3rem; }
    .avatar-circle-sm { width:20px; height:20px; border-radius:50%; background:var(--tb-primary-soft); color:var(--tb-primary); font-size:.65rem; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }

    /* Drawer Navigation Tabs */
    .task-drawer-tabs { display:flex; gap:.35rem; padding:.6rem 1.5rem; background:var(--tb-surface); border-bottom:1px solid var(--tb-border-soft); position:sticky; top:0; z-index:10; flex-shrink:0; }
    .task-drawer-tabs button { border:0; background:transparent; color:var(--tb-muted); font-size:.82rem; font-weight:700; padding:.4rem .9rem; border-radius:7px; transition:all .15s ease; display:inline-flex; align-items:center; cursor:pointer; }
    .task-drawer-tabs button:hover { color:var(--tb-heading); background:var(--tb-surface-muted); }
    .task-drawer-tabs button.active { background:var(--tb-primary-soft); color:var(--tb-primary); font-weight:800; }

    /* Drawer Tab Panes */
    .task-tab-pane { display:none; padding:1.25rem 1.5rem 2rem; flex-grow:1; }
    .task-tab-pane.active { display:block; }

    /* 2-Column Split Grid */
    .task-layout-columns { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:1.2rem; align-items:start; }
    @media (max-width: 820px) {
        .task-layout-columns { grid-template-columns:1fr; }
    }

    /* Cards */
    .drawer-card { background:var(--tb-surface); border:1px solid var(--tb-border-soft); border-radius:12px; padding:1.15rem; box-shadow:0 2px 10px rgba(129, 56, 232, .025); }
    .drawer-card-label { font-size:.76rem; font-weight:800; color:var(--tb-muted); text-transform:uppercase; letter-spacing:.04em; display:block; margin-bottom:.4rem; }
    .drawer-textarea { border-radius:8px; font-size:.88rem; line-height:1.6; border-color:var(--tb-border); }
    .drawer-textarea:focus { border-color:var(--tb-primary); box-shadow:0 0 0 3px rgba(129, 56, 232, .12); }
    .drawer-save-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 1.15rem; background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:10px; }

    /* Sidebar Properties */
    .sidebar-card { background:var(--tb-surface-muted); border-color:var(--tb-border); }
    .property-row { display:grid; grid-template-columns:100px 1fr; align-items:center; gap:.5rem; margin-bottom:.65rem; }
    .property-row:last-child { margin-bottom:0; }
    .property-label { font-size:.74rem; font-weight:800; color:var(--tb-muted); text-transform:uppercase; letter-spacing:.03em; }
    .property-input .form-select, .property-input .form-control { background:var(--tb-surface); border-radius:7px; font-size:.82rem; font-weight:600; border-color:var(--tb-border); min-height:34px; }
    .property-input .form-select:focus, .property-input .form-control:focus { border-color:var(--tb-primary); box-shadow:0 0 0 2px rgba(129, 56, 232, .15); }

    /* Comments Section */
    .drawer-comments-list { display:flex; flex-direction:column; gap:.75rem; }
    .drawer-comment-item { display:flex; gap:.75rem; align-items:flex-start; }
    .drawer-comment-avatar { width:32px; height:32px; border-radius:8px; background:var(--tb-primary-soft); color:var(--tb-primary); font-size:.75rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .drawer-comment-bubble { flex:1; background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:10px; padding:.65rem .85rem; }
    .comment-author { font-size:.84rem; color:var(--tb-heading); }
    .comment-time { font-size:.72rem; color:var(--tb-muted); }
    .comment-text { font-size:.85rem; color:var(--tb-body-color); line-height:1.5; }
    .drawer-comment-form textarea { border-radius:8px; font-size:.86rem; border-color:var(--tb-border); }

    /* Stat Tiles */
    .stat-tile { background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:10px; padding:.85rem; text-align:center; }
    .stat-label { display:block; font-size:.72rem; font-weight:800; color:var(--tb-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:.25rem; }
    .stat-val { font-size:1.15rem; font-weight:800; }
    .avatar-circle { width:38px; height:38px; border-radius:10px; background:var(--tb-primary-soft); color:var(--tb-primary); font-size:.85rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .assigned-user-list { display:flex; flex-direction:column; gap:.55rem; }
    .assigned-user-row { display:flex; gap:.75rem; align-items:center; border:1px solid var(--tb-border-soft); background:var(--tb-surface-muted); padding:.65rem .85rem; border-radius:8px; }

    /* Dark Mode Overrides for Drawer */
    [data-bs-theme="dark"] .task-detail-panel { background:var(--tb-surface); border-color:var(--tb-border); box-shadow:-20px 0 50px rgba(129, 56, 232, .45); }
    [data-bs-theme="dark"] .task-drawer-header, [data-bs-theme="dark"] .task-drawer-tabs { background:var(--tb-surface); border-color:var(--tb-border-soft); }
    [data-bs-theme="dark"] .drawer-card { background:var(--tb-surface); border-color:var(--tb-border-soft); }
    [data-bs-theme="dark"] .sidebar-card, [data-bs-theme="dark"] .drawer-save-bar, [data-bs-theme="dark"] .drawer-comment-bubble, [data-bs-theme="dark"] .stat-tile, [data-bs-theme="dark"] .task-project-pill, [data-bs-theme="dark"] .spent-time-pill, [data-bs-theme="dark"] .assigned-user-row { background:var(--tb-surface-muted); border-color:var(--tb-border); }
    [data-bs-theme="dark"] .property-input .form-select, [data-bs-theme="dark"] .property-input .form-control, [data-bs-theme="dark"] .drawer-textarea, [data-bs-theme="dark"] .drawer-comment-form textarea { background:var(--tb-surface-lift); border-color:var(--tb-border); color:var(--tb-body-color); }
    .project-board-shell{border:0;background:transparent;overflow:visible}.project-board-main{padding:0;background:transparent;overflow:visible}
    .rise-project-heading{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:14px}.rise-project-name{display:flex;align-items:center;gap:8px}.rise-project-name h2{font-size:19px;font-weight:500;margin:0}.rise-project-name button{border:0;background:transparent;color:#d0b2ff;font-size:21px}.rise-project-grid{color:#8138e8;font-size:21px}.rise-project-actions{display:flex;gap:10px}.rise-project-actions .btn{font-size:13px;white-space:nowrap}.rise-project-tabs{height:59px;display:flex;align-items:end;gap:3px;padding:0 10px;background:var(--tb-surface);border:1px solid var(--tb-border);border-radius:6px;margin-bottom:20px;overflow-x:auto}.rise-project-tabs button{height:58px;padding:20px 13px 17px;color:#6723ce;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:transparent}.rise-project-tabs button:hover,.rise-project-tabs button.active{color:#4c2191;border-bottom-color:#6723ce;font-weight:600}
    .rise-task-section{background:var(--tb-surface);border:1px solid var(--tb-border);border-radius:6px;overflow:hidden}.rise-task-titlebar{min-height:67px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid var(--tb-border)}.rise-task-titlebar h3{font-size:18px;font-weight:500;margin:0}.rise-task-titlebar>div{display:flex;gap:9px}.rise-task-titlebar .btn{font-size:13px}
    .project-board-filters{display:flex;align-items:center;gap:10px;margin:0;padding:14px 18px;border:0;border-bottom:1px solid var(--tb-border)}.project-board-filters>.form-select{width:200px}.rise-task-table-tools{display:flex;gap:8px}.rise-task-table-tools input{width:200px}
    .rise-task-table-wrap{overflow-x:auto}.rise-task-table{width:100%;min-width:980px;border-collapse:collapse}.rise-task-table th{height:51px;padding:0 15px;color:#6723ce;font-size:12px;font-weight:700;text-align:left;border-bottom:1px solid var(--tb-border)}.rise-task-table td{height:58px;padding:8px 15px;border-bottom:1px solid var(--tb-border-soft);font-size:13px;color:#6723ce;vertical-align:middle}.rise-task-table tbody tr{box-shadow:inset 3px 0 #d0b2ff}.rise-task-table tbody tr.task-row-status-in_progress{box-shadow:inset 3px 0 #8138e8}.rise-task-table tbody tr.task-row-status-review{box-shadow:inset 3px 0 #6723ce}.rise-task-table tbody tr.task-row-status-completed{box-shadow:inset 3px 0 #b784ff}.rise-task-table tbody tr:hover{background:var(--tb-surface-muted)}.rise-check{width:19px;height:19px;border:2px solid var(--tb-border);border-radius:4px;display:grid;place-items:center;color:#9b5cf7;font-size:16px}.rise-check.done{border-color:transparent}.rise-task-link{color:#6723ce;text-decoration:none}.rise-task-link:hover{text-decoration:underline}.rise-assignee{display:flex;align-items:center;gap:8px;color:#6723ce}.rise-assignee i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f3ecff;color:#8138e8;font-style:normal;font-weight:700}.rise-task-status{display:inline-flex;color:#ffffff;border-radius:4px;padding:3px 6px;font-size:10px;font-weight:700}.rise-task-status.status-todo{background:#d0b2ff}.rise-task-status.status-in_progress{background:#8138e8}.rise-task-status.status-review{background:#6723ce}.rise-task-status.status-on_hold{background:#9b5cf7}.rise-task-status.status-completed{background:#b784ff}.rise-edit-task{width:28px;height:28px;border:1px solid var(--tb-border);border-radius:50%;display:grid;place-items:center;color:#b784ff;text-decoration:none}
    .rise-project-panel[hidden]{display:none!important}.rise-project-panel:not(.rise-task-section){background:var(--tb-surface);border:1px solid var(--tb-border);border-radius:6px;padding:20px}.rise-overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.rise-overview-grid article,.rise-panel-card{border:1px solid var(--tb-border);border-radius:7px;padding:18px;background:var(--tb-surface)}.rise-overview-grid span,.rise-overview-grid small{display:block;color:var(--tb-muted);font-size:12px}.rise-overview-grid strong{display:block;font-size:22px;margin:6px 0}.rise-overview-grid .progress{height:7px;background:var(--tb-border-soft)}.rise-overview-grid .progress i{display:block;background:#9b5cf7}.rise-panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.rise-mini-kanban{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:12px;overflow-x:auto}.rise-mini-column{background:var(--tb-surface-muted);border-radius:7px;padding:10px;min-height:300px}.rise-mini-column header{display:flex;justify-content:space-between;font-weight:700;padding:5px 4px 12px}.rise-mini-column header span{background:var(--tb-border);border-radius:99px;padding:1px 7px}.rise-mini-task{width:100%;text-align:left;border:1px solid var(--tb-border);border-left:3px solid #9b5cf7;border-radius:5px;background:var(--tb-surface);padding:12px;margin-bottom:8px}.rise-mini-task strong,.rise-mini-task small{display:block}.rise-mini-task small{color:var(--tb-muted);margin-top:8px}.rise-files-list{display:grid;gap:8px}.rise-files-list a{display:flex;justify-content:space-between;padding:12px;border:1px solid var(--tb-border);border-radius:6px;text-decoration:none}.rise-files-list span{color:var(--tb-muted)}.rise-comments-list{display:grid;gap:8px}.rise-comments-list article{display:flex;gap:12px;padding:14px;border-bottom:1px solid var(--tb-border-soft)}.rise-comments-list small{display:block;color:var(--tb-muted)}.rise-comments-list p{margin:5px 0}
    .rise-mini-task-item[draggable="true"] { cursor: grab; user-select: none; }
    .rise-mini-task-item[draggable="true"]:active { cursor: grabbing; }
    .rise-mini-task-item.is-dragging { opacity: 0.45; transform: scale(0.98); }
    .rise-mini-column.drag-over { background: rgba(129, 56, 232, 0.14) !important; border: 2px dashed #9b5cf7 !important; }
    @media (max-width: 767px) {
        .task-detail-panel{top:0;right:0;bottom:0;border-radius:0;width:min(720px,calc(100vw - 18px))}.task-panel-backdrop{display:block}
        .project-board-main,.task-panel-top,.task-tabs,.task-panel-section { padding-left:1rem; padding-right:1rem; margin-left:0; margin-right:0; }
        .project-title-fields,.board-stats,.task-fields-grid,.time-summary-grid,.reported-time-row { grid-template-columns:1fr; }.rise-project-heading,.rise-task-titlebar{align-items:flex-start;flex-direction:column;padding:12px}.rise-project-actions,.rise-task-titlebar>div{width:100%;overflow-x:auto}.project-board-filters{flex-wrap:wrap}.rise-table-tools{width:100%}.rise-table-tools input{flex:1}
    }

/* Source: resources/views/project_types/index.blade.php */
.type-kpi-card {
    border-radius: 12px !important;
}

/* Source: resources/views/reports/index.blade.php */
.filter-container-card {
    border-radius: var(--tb-radius, 10px);
    background: var(--tb-surface);
}

.chart-card {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius, 10px) !important;
}

.recommended-range-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.range-chip {
    border: 1px solid var(--tb-border, #e6d8ff);
    background: var(--tb-surface, #ffffff);
    color: var(--tb-muted, #6723ce);
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.range-chip:hover {
    border-color: var(--tb-primary, #8138e8);
    color: var(--tb-primary, #8138e8);
    background: var(--tb-primary-soft, #faf7ff);
}

.range-chip.active {
    background: var(--tb-primary, #8138e8);
    border-color: var(--tb-primary, #8138e8);
    color: #ffffff !important;
}

/* Segmented View Switcher Buttons */
.report-segmented-nav {
    display: inline-flex;
    background: var(--tb-surface-muted, #faf7ff);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--tb-border, #f3ecff);
    overflow-x: auto;
    max-width: 100%;
}

.report-segmented-nav button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--tb-muted, #8138e8);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.report-segmented-nav button:hover {
    color: var(--tb-primary, #8138e8);
}

.report-segmented-nav button.active {
    background: var(--tb-surface, #ffffff);
    color: var(--tb-primary, #8138e8);
    box-shadow: 0 2px 6px rgba(129, 56, 232, 0.06);
}

.report-segmented-nav button.active .badge {
    background: var(--tb-primary-soft, #faf7ff) !important;
    color: var(--tb-primary, #8138e8) !important;
    border-color: var(--tb-primary-soft, #faf7ff) !important;
}

.fs-7 { font-size: 0.78rem !important; }
.fs-8 { font-size: 0.72rem !important; }

.status-pill {
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.status-badge-pending_approval { background: #f3ecff; color: #8138e8; border: 1px solid #f3ecff; }
.status-badge-planning { background: #faf7ff; color: #6723ce; border: 1px solid #f3ecff; }
.status-badge-in_progress, .status-badge-active { background: #f3ecff; color: #6723ce; border: 1px solid #e6d8ff; }
.status-badge-testing { background: #f3ecff; color: #6723ce; border: 1px solid #f3ecff; }
.status-badge-deployed, .status-badge-completed { background: #faf7ff; color: #8138e8; border: 1px solid #f3ecff; }
.status-badge-on_hold { background: #f3ecff; color: #6723ce; border: 1px solid #e6d8ff; }
.status-badge-todo { background: #f3ecff; color: #8138e8; border: 1px solid #f3ecff; }
.status-badge-review { background: #f3ecff; color: #6723ce; border: 1px solid #f3ecff; }

@media print {
    .sidebar, .navbar, .app-header .btn, .filter-container-card, .report-segmented-nav, input[type="search"], .btn, #exportReportCsv {
        display: none !important;
    }
    .main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    .report-view-panel {
        display: block !important;
    }
    .card {
        border: 1px solid #f3ecff !important;
        box-shadow: none !important;
    }
}

/* Source: resources/views/reports/super_admin.blade.php */
.reports-hero {
    background: linear-gradient(135deg, #2b1458 0%, #4c2191 60%, #6723ce 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.reports-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: #d0b2ff;
    margin-bottom: .25rem;
}
.reports-hero h3 {
    font-weight: 800;
    margin-bottom: .4rem;
}
.metric-card {
    border-radius: 10px;
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(129, 56, 232, .08)!important;
}
.fs-7 {
    font-size: .85rem;
}

/* Source: resources/views/shifts/index.blade.php */
.shift-kpi-card {
    border-radius: 12px !important;
}

/* Source: resources/views/tasks/_create_modal.blade.php */
.rise-create-modal{border:0;border-radius:8px}.rise-create-modal .modal-header{padding:18px 22px}.rise-create-modal .modal-body{padding:18px 22px}.rise-modal-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rise-modal-form label{font-size:12px;color:var(--tb-muted);font-weight:650}.rise-modal-form .form-control,.rise-modal-form .form-select{margin-top:6px}.rise-modal-form .wide{grid-column:1/-1}@media(max-width:640px){.rise-modal-form{grid-template-columns:1fr}.rise-modal-form .wide{grid-column:auto}}

/* Source: resources/views/tasks/form.blade.php */
.cursor-pointer { cursor: pointer; }
    .attachment-dropzone { border-style: dashed !important; border-width: 2px !important; }
    .attachment-dropzone:hover { border-color: var(--tb-primary, #8138e8) !important; background: #faf7ff !important; }
    .selected-file { padding: 0.5rem 0.75rem; border: 1px solid #f3ecff; border-radius: 6px; background: #faf7ff; font-size: 0.875rem; }
    .subtask-row { position: relative; margin-bottom: 0.5rem; }
    .subtask-row .remove-subtask { position: absolute; right: 0.5rem; top: 0.25rem; border: none; background: transparent; color: #b784ff; font-size: 1.25rem; line-height: 1; }
    .select2-container--default .select2-selection--multiple { min-height: 48px; border: 1px solid #f3ecff; border-radius: 0.375rem; padding: 4px 8px; }
    .rich-editor-content {
        min-height: 160px;
        max-height: 460px;
        overflow-y: auto;
        outline: none;
        font-size: 0.95rem;
        line-height: 1.65;
    }
    .rich-editor-content:empty:before {
        content: attr(data-placeholder);
        color: #b784ff;
        pointer-events: none;
    }
    .rich-editor-content blockquote {
        border-left: 4px solid #9b5cf7;
        padding-left: 0.85rem;
        color: #6723ce;
        margin: 0.5rem 0;
        background: #faf7ff;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
    .rich-editor-content pre {
        background: #2b1458;
        color: #f3ecff;
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        font-family: monospace;
        font-size: 0.85rem;
    }
    .rich-editor-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 0.5rem 0;
    }
    .rich-editor-content table td, .rich-editor-content table th {
        border: 1px solid #e6d8ff;
        padding: 6px 10px;
    }

/* Source: resources/views/tasks/index.blade.php */
/* ── Shell ──────────────────────────────────────────────────────────── */
    .task-rise-shell { background:var(--tb-surface); border:1px solid var(--tb-border); border-radius:12px; overflow:hidden; }
    .task-rise-head { min-height:60px; display:flex; justify-content:space-between; align-items:center; padding:12px 20px; border-bottom:1px solid var(--tb-border-soft); background:var(--tb-surface); gap:1rem; flex-wrap:wrap; }
    .task-rise-title { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
    .task-rise-title h2 { font-size:1.2rem; font-weight:800; margin:0; color:var(--tb-heading); }
    .task-rise-actions { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
    /* ── View Tabs (Segmented) ──────────────────────────────────────────── */
    .task-view-tabs { display:inline-flex; background:var(--tb-surface-muted); padding:3px; border-radius:8px; gap:2px; border:1px solid var(--tb-border); }
    .task-view-tabs button, .task-view-tabs a { padding:.38rem .85rem; border:0; border-radius:6px !important; background:transparent; color:var(--tb-muted); font-size:.82rem; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:.3rem; transition:all .15s ease; cursor:pointer; min-height:auto; }
    .task-view-tabs button:hover, .task-view-tabs a:hover { color:var(--tb-heading); }
    .task-view-tabs .active { background:var(--tb-surface) !important; color:var(--tb-primary) !important; box-shadow:0 1px 4px rgba(129, 56, 232, .10); }
    [data-bs-theme="dark"] .task-view-tabs { background:var(--tb-surface-muted); border-color:var(--tb-border); }
    [data-bs-theme="dark"] .task-view-tabs .active { background:var(--tb-surface-lift) !important; }
    /* ── Toolbar ────────────────────────────────────────────────────────── */
    .task-rise-toolbar { padding:12px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--tb-border-soft); background:var(--tb-surface); flex-wrap:wrap; }
    .task-filter-select { min-height:36px; font-size:.82rem; border-radius:7px !important; }
    .task-quick-filters { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
    .task-quick-filters a { border:1px solid var(--tb-border); border-radius:999px; padding:.32rem .85rem; color:var(--tb-muted); font-size:.78rem; font-weight:700; text-decoration:none; white-space:nowrap; transition:all .15s ease; background:var(--tb-surface); }
    .task-quick-filters a:hover, .task-quick-filters a.active { background:var(--tb-primary-soft); color:var(--tb-primary); border-color:var(--tb-primary); }
    .task-search-box .input-group-text { background:var(--tb-surface) !important; border-color:var(--tb-border) !important; }
    /* ── Task List Table ────────────────────────────────────────────────── */
    .task-list-card { border:0 !important; background:var(--tb-surface); overflow:hidden; }
    .task-list-table thead th { background:var(--tb-surface-muted); color:var(--tb-muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:10px 16px; border-bottom:1px solid var(--tb-border); white-space:nowrap; }
    .task-list-table tbody td { padding:11px 16px; border-bottom:1px solid var(--tb-border-soft); vertical-align:middle; }
    .task-list-row { transition:background .15s ease; border-left:4px solid transparent; }
    .task-list-row:hover { background:var(--tb-surface-muted); }
    .task-list-row.status-border-todo { border-left-color:#d0b2ff; }
    .task-list-row.status-border-in_progress { border-left-color:#8138e8; }
    .task-list-row.status-border-review { border-left-color:#6723ce; }
    .task-list-row.status-border-completed { border-left-color:#b784ff; }
    .task-list-row.status-border-on_hold { border-left-color:#8138e8; }
    .task-list-title { color:var(--tb-heading) !important; font-weight:700; font-size:.9rem; transition:color .14s; }
    .task-list-title:hover { color:var(--tb-primary) !important; }
    .task-row-check { width:22px; height:22px; border:2px solid var(--tb-border); border-radius:6px; display:inline-flex; align-items:center; justify-content:center; background:var(--tb-surface); }
    .task-row-check.done { background:#faf7ff; border-color:#e6d8ff; }
    /* Priority dot in title */
    .task-priority-dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex-shrink:0; }
    .task-priority-dot.low { background:#9b5cf7; }
    .task-priority-dot.medium { background:#b784ff; }
    .task-priority-dot.high { background:#d0b2ff; }
    .task-priority-dot.urgent { background:#8138e8; }
    /* Action buttons */
    .task-action-group { display:inline-flex; align-items:center; gap:.3rem; }
    .task-btn-action { padding:.28rem .65rem; font-size:.78rem; font-weight:700; border-radius:6px; border:1px solid var(--tb-border); background:var(--tb-surface); color:var(--tb-muted); text-decoration:none; transition:all .15s ease; display:inline-flex; align-items:center; gap:.25rem; line-height:1; min-height:auto; cursor:pointer; }
    .task-btn-action:hover { border-color:var(--tb-primary); color:var(--tb-primary); background:var(--tb-surface-muted); }
    .task-btn-action.btn-view:hover { color:#9b5cf7; border-color:#f3ecff; background:#faf7ff; }
    [data-bs-theme="dark"] .task-btn-action { background:var(--tb-surface-lift); border-color:var(--tb-border); color:var(--tb-muted); }
    [data-bs-theme="dark"] .task-btn-action:hover { color:var(--tb-primary); border-color:var(--tb-primary); }
    /* Purple status */
    .bg-purple-subtle { background:#f3ecff !important; }
    .text-purple { color:#6723ce !important; }
    .border-purple-subtle { border-color:#f3ecff !important; }
    [data-bs-theme="dark"] .bg-purple-subtle { background:#4c2191 !important; }
    [data-bs-theme="dark"] .text-purple { color:#e6d8ff !important; }
    /* ── Kanban Board ───────────────────────────────────────────────────── */
    .task-metric { position:relative; overflow:hidden; transition:transform .16s ease,box-shadow .16s ease; }
    .task-metric:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(129, 56, 232, .11) !important; }
    .task-metric:after { content:""; position:absolute; right:-18px; bottom:-28px; width:76px; height:76px; border-radius:50%; background:var(--tb-primary-soft); opacity:.65; }
    .task-metric-overdue:after,.task-metric-time_requests:after { background:#f3ecff; }
    .task-metric-due_soon:after,.task-metric-on_hold:after { background:#f3ecff; }
    .toolbar { position:sticky; top:82px; z-index:12; backdrop-filter:blur(14px); background:color-mix(in srgb,var(--tb-surface) 92%,transparent) !important; }
    .kanban-column { max-height:calc(100vh - 185px); overflow-y:auto; scrollbar-gutter:stable; }
    .kanban-column > .d-flex:first-child { position:sticky; top:-.75rem; z-index:3; margin:-.75rem -.75rem .75rem !important; padding:.9rem .75rem .7rem; background:var(--tb-kanban-bg); border-bottom:1px solid var(--tb-border); }
    .task-status-select.is-saving { opacity:.65; cursor:progress; }
    .task-status-select.is-saved { border-color:#b784ff !important; }
    #boardView.cards-collapsed .task-card { display:none !important; }
    #boardView.cards-minimized .task-card-extra { display:none; }
    #boardView.cards-minimized .kanban-card { min-height:auto; }
    .task-card { cursor:pointer; }
    .task-card[draggable="true"] { cursor:grab; user-select:none; }
    .task-card[draggable="true"]:active { cursor:grabbing; }
    .task-card.is-dragging { opacity:.45; transform:scale(0.98); box-shadow:0 8px 24px rgba(129, 56, 232, 0.15) !important; }
    .kanban-column.drag-over { background:rgba(129, 56, 232, .08) !important; border:2px dashed #8138e8 !important; border-radius:10px; }
    .task-compact-row { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin:.8rem 0; }
    .task-compact-owner { display:flex; align-items:center; gap:.35rem; min-width:0; color:var(--tb-muted); font-size:.78rem; }
    .task-compact-owner .avatar { width:25px; height:25px; }
    .task-compact-progress { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.55rem; }
    .task-compact-progress>div { height:6px; background:var(--tb-border-soft); border-radius:99px; overflow:hidden; }
    .task-compact-progress>div span { display:block; height:100%; background:linear-gradient(90deg,var(--tb-primary),#b784ff); }
    .task-compact-progress strong { font-size:.75rem; }
    .task-compact-stats { display:flex; justify-content:space-between; margin-top:.65rem; padding-top:.6rem; border-top:1px solid var(--tb-border-soft); color:var(--tb-muted); font-size:.75rem; }
    .task-compact-stats span { display:inline-flex; align-items:center; gap:.25rem; }
    .task-card h5 a { color:var(--tb-heading) !important; }
    .kanban-card { transition:transform .16s ease,box-shadow .16s ease; }
    .kanban-card:hover { transform:translateY(-2px); box-shadow:0 14px 28px rgba(129, 56, 232, .12) !important; }
    .task-card select, .task-card a, .task-card button { cursor:auto; }
    .task-card.active { outline:3px solid var(--tb-primary); }
    /* ── Task Detail Side Drawer (Executive SaaS Design) ───────────────── */
    .task-panel-backdrop { display:none; position:fixed; inset:0; background:rgba(129, 56, 232, .45); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:1040; backdrop-filter:blur(4px); }
    .task-panel-backdrop.is-open { display:block; opacity:1; pointer-events:auto; }
    .task-detail-panel { position:fixed; top:64px; right:16px; bottom:16px; width:min(880px, calc(100vw - 32px)); background:var(--tb-surface); color:var(--tb-body-color); border:1px solid var(--tb-border); border-radius:16px; overflow-y:auto; transform:translateX(calc(100% + 40px)); transition:transform .25s cubic-bezier(0.16, 1, 0.3, 1); z-index:1045; box-shadow:-20px 0 50px rgba(129, 56, 232, .18); display:flex; flex-direction:column; scrollbar-width:thin; }
    .task-detail-panel.is-open { transform:translateX(0); }
    .task-panel-content { display:none; flex-direction:column; min-height:100%; }
    .task-panel-content.active { display:flex; }

    /* Drawer Header */
    .task-drawer-header { padding:1.25rem 1.5rem 1rem; background:var(--tb-surface); border-bottom:1px solid var(--tb-border-soft); flex-shrink:0; }
    .task-code-badge { background:var(--tb-primary-soft); color:var(--tb-primary); font-weight:800; font-size:.76rem; padding:.22rem .65rem; border-radius:6px; font-family:monospace; border:1px solid var(--tb-primary-soft); }
    .task-project-pill { background:var(--tb-surface-muted); color:var(--tb-heading); font-size:.78rem; font-weight:700; padding:.22rem .65rem; border-radius:6px; border:1px solid var(--tb-border); }
    .btn-drawer-action { font-size:.78rem; font-weight:700; padding:.28rem .7rem; border-radius:6px; }
    .task-drawer-title-wrap { margin:.4rem 0 .7rem; }
    .task-drawer-title { font-size:1.25rem; font-weight:800; color:var(--tb-heading); margin:0; line-height:1.4; }
    .task-quick-meta-bar { display:flex; align-items:center; gap:1.2rem; flex-wrap:wrap; padding-top:.5rem; border-top:1px dashed var(--tb-border-soft); }
    .meta-item { display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; }
    .meta-label { color:var(--tb-muted); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
    .meta-val { color:var(--tb-heading); font-weight:600; display:inline-flex; align-items:center; gap:.3rem; }
    .avatar-circle-sm { width:20px; height:20px; border-radius:50%; background:var(--tb-primary-soft); color:var(--tb-primary); font-size:.65rem; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }

    /* Drawer Navigation Tabs */
    .task-drawer-tabs { display:flex; gap:.35rem; padding:.6rem 1.5rem; background:var(--tb-surface); border-bottom:1px solid var(--tb-border-soft); position:sticky; top:0; z-index:10; flex-shrink:0; }
    .task-drawer-tabs button { border:0; background:transparent; color:var(--tb-muted); font-size:.82rem; font-weight:700; padding:.4rem .9rem; border-radius:7px; transition:all .15s ease; display:inline-flex; align-items:center; cursor:pointer; }
    .task-drawer-tabs button:hover { color:var(--tb-heading); background:var(--tb-surface-muted); }
    .task-drawer-tabs button.active { background:var(--tb-primary-soft); color:var(--tb-primary); font-weight:800; }

    /* Drawer Tab Panes */
    .task-tab-pane { display:none; padding:1.25rem 1.5rem 2rem; flex-grow:1; }
    .task-tab-pane.active { display:block; }

    /* 2-Column Split Grid */
    .task-layout-columns { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:1.2rem; align-items:start; }
    @media (max-width: 820px) {
        .task-layout-columns { grid-template-columns:1fr; }
    }

    /* Cards */
    .drawer-card { background:var(--tb-surface); border:1px solid var(--tb-border-soft); border-radius:12px; padding:1.15rem; box-shadow:0 2px 10px rgba(129, 56, 232, .025); }
    .drawer-card-label { font-size:.76rem; font-weight:800; color:var(--tb-muted); text-transform:uppercase; letter-spacing:.04em; display:block; margin-bottom:.4rem; }
    .drawer-textarea { border-radius:8px; font-size:.88rem; line-height:1.6; border-color:var(--tb-border); }
    .drawer-textarea:focus { border-color:var(--tb-primary); box-shadow:0 0 0 3px rgba(129, 56, 232, .12); }
    .drawer-save-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 1.15rem; background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:10px; }

    /* Sidebar Properties */
    .sidebar-card { background:var(--tb-surface-muted); border-color:var(--tb-border); }
    .property-row { display:grid; grid-template-columns:100px 1fr; align-items:center; gap:.5rem; margin-bottom:.65rem; }
    .property-row:last-child { margin-bottom:0; }
    .property-label { font-size:.74rem; font-weight:800; color:var(--tb-muted); text-transform:uppercase; letter-spacing:.03em; }
    .property-input .form-select, .property-input .form-control { background:var(--tb-surface); border-radius:7px; font-size:.82rem; font-weight:600; border-color:var(--tb-border); min-height:34px; }
    .property-input .form-select:focus, .property-input .form-control:focus { border-color:var(--tb-primary); box-shadow:0 0 0 2px rgba(129, 56, 232, .15); }

    /* Comments Section */
    .drawer-comments-list { display:flex; flex-direction:column; gap:.75rem; }
    .drawer-comment-item { display:flex; gap:.75rem; align-items:flex-start; }
    .drawer-comment-avatar { width:32px; height:32px; border-radius:8px; background:var(--tb-primary-soft); color:var(--tb-primary); font-size:.75rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .drawer-comment-bubble { flex:1; background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:10px; padding:.65rem .85rem; }
    .comment-author { font-size:.84rem; color:var(--tb-heading); }
    .comment-time { font-size:.72rem; color:var(--tb-muted); }
    .comment-text { font-size:.85rem; color:var(--tb-body-color); line-height:1.5; }
    .drawer-comment-form textarea { border-radius:8px; font-size:.86rem; border-color:var(--tb-border); }

    /* Stat Tiles */
    .stat-tile { background:var(--tb-surface-muted); border:1px solid var(--tb-border-soft); border-radius:10px; padding:.85rem; text-align:center; }
    .stat-label { display:block; font-size:.72rem; font-weight:800; color:var(--tb-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:.25rem; }
    .stat-val { font-size:1.15rem; font-weight:800; }
    .avatar-circle { width:38px; height:38px; border-radius:10px; background:var(--tb-primary-soft); color:var(--tb-primary); font-size:.85rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .assigned-user-list { display:flex; flex-direction:column; gap:.55rem; }
    .assigned-user-row { display:flex; gap:.75rem; align-items:center; border:1px solid var(--tb-border-soft); background:var(--tb-surface-muted); padding:.65rem .85rem; border-radius:8px; }

    /* Dark Mode Overrides for Drawer */
    [data-bs-theme="dark"] .task-detail-panel { background:var(--tb-surface); border-color:var(--tb-border); box-shadow:-20px 0 50px rgba(129, 56, 232, .45); }
    [data-bs-theme="dark"] .task-drawer-header, [data-bs-theme="dark"] .task-drawer-tabs { background:var(--tb-surface); border-color:var(--tb-border-soft); }
    [data-bs-theme="dark"] .drawer-card { background:var(--tb-surface); border-color:var(--tb-border-soft); }
    [data-bs-theme="dark"] .sidebar-card, [data-bs-theme="dark"] .drawer-save-bar, [data-bs-theme="dark"] .drawer-comment-bubble, [data-bs-theme="dark"] .stat-tile, [data-bs-theme="dark"] .task-project-pill, [data-bs-theme="dark"] .spent-time-pill, [data-bs-theme="dark"] .assigned-user-row { background:var(--tb-surface-muted); border-color:var(--tb-border); }
    [data-bs-theme="dark"] .property-input .form-select, [data-bs-theme="dark"] .property-input .form-control, [data-bs-theme="dark"] .drawer-textarea, [data-bs-theme="dark"] .drawer-comment-form textarea { background:var(--tb-surface-lift); border-color:var(--tb-border); color:var(--tb-body-color); }

    @media (max-width: 767px) {
        .task-detail-panel { top:0; right:0; bottom:0; border-radius:0; width:100vw; }
        .task-drawer-header, .task-drawer-tabs, .task-tab-pane { padding-left:1rem; padding-right:1rem; }
    }

/* Source: resources/views/tasks/show.blade.php */
.task-show-wrapper {
        max-width: 1300px;
        margin: 0 auto;
        padding: 0.5rem 0 2.5rem;
    }

    /* Top Breadcrumb */
    .task-show-breadcrumb .breadcrumb {
        background: transparent;
        padding: 0;
        font-size: 0.92rem;
    }
    .task-show-breadcrumb a {
        color: var(--tb-primary, #8138e8);
    }

    /* Hero Card */
    .task-hero-card {
        background: var(--tb-surface, #ffffff);
        border: 1px solid var(--tb-border, #f3ecff);
        border-radius: 12px;
        padding: 1.5rem 1.75rem;
        box-shadow: var(--tb-card-shadow, 0 4px 14px rgba(129, 56, 232, 0.04));
    }
    .task-code-pill {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.65rem;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        border-radius: 999px;
        background: rgba(129, 56, 232, 0.1);
        color: var(--tb-primary, #8138e8);
    }
    .task-project-pill {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.65rem;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 999px;
        background: var(--tb-surface-muted, #faf7ff);
        color: var(--tb-body-color, #4c2191);
        border: 1px solid var(--tb-border, #f3ecff);
    }
    .task-main-title {
        font-size: 1.65rem;
        font-weight: 700;
        color: var(--tb-body-color, #2b1458);
        letter-spacing: -0.02em;
    }

    /* Modern Segmented Tabs */
    .task-modern-tabs {
        background: var(--tb-surface-muted, #faf7ff);
        padding: 0.35rem;
        border-radius: 10px;
        border: 1px solid var(--tb-border, #f3ecff);
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
    }
    .task-modern-tabs .nav-link {
        color: var(--tb-muted, #8138e8);
        font-weight: 600;
        font-size: 0.88rem;
        padding: 0.55rem 1rem;
        border-radius: 8px;
        transition: all 0.15s ease;
        white-space: nowrap;
    }
    .task-modern-tabs .nav-link:hover {
        color: var(--tb-body-color, #4c2191);
        background: rgba(129, 56, 232, 0.1);
    }
    .task-modern-tabs .nav-link.active {
        background: var(--tb-surface, #ffffff);
        color: var(--tb-primary, #8138e8);
        box-shadow: 0 2px 8px rgba(129, 56, 232, 0.08);
    }

    /* Section Cards */
    .task-section-card,
    .task-sidebar-card {
        background: var(--tb-surface, #ffffff);
        border: 1px solid var(--tb-border, #f3ecff);
        border-radius: 12px;
        box-shadow: var(--tb-card-shadow, 0 4px 14px rgba(129, 56, 232, 0.04));
        overflow: hidden;
    }
    .task-section-header,
    .task-sidebar-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--tb-border-soft, #faf7ff);
    }
    .task-section-body {
        padding: 1.25rem;
    }

    /* Description Content */
    .task-description-content {
        line-height: 1.7;
        font-size: 0.98rem;
        color: var(--tb-body-color, #4c2191);
    }
    .task-checklist-notes {
        line-height: 1.65;
        font-size: 0.92rem;
    }

    /* User Avatar Initial Circles */
    .user-avatar-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        border-radius: 50%;
        background: #f3ecff;
        color: #6723ce;
        flex-shrink: 0;
    }
    .user-avatar-xs {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
    .user-avatar-sm {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    /* Sidebar Property Items */
    .sidebar-prop-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .sidebar-prop-item .prop-label {
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--tb-muted, #b784ff);
        letter-spacing: 0.5px;
    }

    /* Priority Badges */
    .priority-badge-low { background: #f3ecff; color: #6723ce; }
    .priority-badge-medium { background: #faf7ff; color: #6723ce; }
    .priority-badge-high { background: #f3ecff; color: #6723ce; }
    .priority-badge-urgent { background: #f3ecff; color: #4c2191; }

    /* Dark Mode Overrides */
    [data-bs-theme="dark"] .task-hero-card,
    [data-bs-theme="dark"] .task-section-card,
    [data-bs-theme="dark"] .task-sidebar-card {
        background: var(--tb-surface, #2b1458);
        border-color: var(--tb-border, #6723ce);
    }
    [data-bs-theme="dark"] .task-modern-tabs {
        background: var(--tb-surface-muted, #2b1458);
        border-color: var(--tb-border, #6723ce);
    }
    [data-bs-theme="dark"] .task-modern-tabs .nav-link.active {
        background: var(--tb-surface, #2b1458);
        color: var(--tb-primary-strong, #faf7ff);
    }
    [data-bs-theme="dark"] .task-section-header,
    [data-bs-theme="dark"] .task-sidebar-header {
        border-bottom-color: var(--tb-border, #6723ce);
    }
    [data-bs-theme="dark"] .user-avatar-circle {
        background: #4c2191;
        color: #f3ecff;
    }

/* Source: resources/views/timesheets/form.blade.php */
.timesheet-form-card {
    background: var(--tb-surface, #ffffff);
    border: 1px solid var(--tb-border, #f3ecff);
}

.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.76rem !important; }

/* Source: resources/views/timesheets/index.blade.php */
.recommended-range-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.range-chip {
    border: 1px solid var(--tb-border, #e6d8ff);
    background: var(--tb-surface, #ffffff);
    color: var(--tb-muted, #6723ce);
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.range-chip:hover {
    border-color: var(--tb-primary, #8138e8);
    color: var(--tb-primary, #8138e8);
}

.range-chip.active {
    background: var(--tb-primary, #8138e8);
    border-color: var(--tb-primary, #8138e8);
    color: #ffffff !important;
}

.metric-card {
    border-radius: 10px !important;
}

/* Source: resources/views/users/index.blade.php */
.avatar {
    background: var(--tb-primary-soft, #faf7ff);
    color: var(--tb-primary-strong, #8138e8);
}
/* Treviq palette enforcement */
:root {
    --tb-body-bg:#faf7ff;
    --tb-body-color:#2b1458;
    --tb-surface:#ffffff;
    --tb-surface-muted:#f3ecff;
    --tb-surface-lift:#ffffff;
    --tb-border:#e6d8ff;
    --tb-border-soft:#f3ecff;
    --tb-muted:#6723ce;
    --tb-heading:#180d2f;
    --tb-primary:#8138e8;
    --tb-primary-strong:#6723ce;
    --tb-primary-soft:#e6d8ff;
    --tb-success:#8138e8;
    --tb-warning:#9b5cf7;
    --tb-danger:#6723ce;
    --tb-sidebar-bg:#180d2f;
    --tb-sidebar-active:#8138e8;
    --tb-sidebar-text:#f3ecff;
    --tb-kanban-bg:#f3ecff;
}

body { background:var(--tb-body-bg); color:var(--tb-body-color); }
.btn-primary, .bg-primary { background-color:var(--tb-primary) !important; border-color:var(--tb-primary) !important; }
.text-primary { color:var(--tb-primary) !important; }
.badge, .status-badge, .priority-badge { border-color:var(--tb-border); }

/* Former static inline declarations */
[data-tb-style="tb-inline-1"] { background:#f3ecff; color:#6723ce; }
[data-tb-style="tb-inline-2"] { font-size:15px }
[data-tb-style="tb-inline-3"] { width:32px;height:32px;font-size:.75rem; }
[data-tb-style="tb-inline-4"] { text-transform:uppercase }
[data-tb-style="tb-inline-5"] { font-size:0.65rem; }
[data-tb-style="tb-inline-6"] { width:38px;height:38px;background:var(--tb-primary-soft);color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-7"] { max-width: 250px; }
[data-tb-style="tb-inline-8"] { width:26px;height:26px;font-size:11px;background:#faf7ff;color:#8138e8; }
[data-tb-style="tb-inline-9"] { width:64px;height:64px;font-size:24px;background:var(--tb-primary-soft);color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-10"] { white-space: pre-line; }
[data-tb-style="tb-inline-11"] { width:36px; height:36px; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-12"] { max-width: 220px; }
[data-tb-style="tb-inline-13"] { font-size: 0.7rem; }
[data-tb-style="tb-inline-14"] { cursor: not-allowed; pointer-events: none; }
[data-tb-style="tb-inline-15"] { font-size:6px }
[data-tb-style="tb-inline-16"] { color:var(--tb-primary);opacity:.7 }
[data-tb-style="tb-inline-17"] { min-width:0 }
[data-tb-style="tb-inline-18"] { width:30px; height:30px; font-size:0.75rem; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-19"] { white-space: pre-wrap; }
[data-tb-style="tb-inline-20"] { width:34px; height:34px; }
[data-tb-style="tb-inline-21"] { font-size: 0.72rem; }
[data-tb-style="tb-inline-22"] { max-width: 580px; }
[data-tb-style="tb-inline-23"] { text-decoration:none; }
[data-tb-style="tb-inline-24"] { font-size:0.65rem; padding: 2px 6px; }
[data-tb-style="tb-inline-25"] { font-size: 0.7rem; letter-spacing: 0.05em; }
[data-tb-style="tb-inline-26"] { scrollbar-width: thin; }
[data-tb-style="tb-inline-27"] { width: 42px; height: 42px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
[data-tb-style="tb-inline-28"] { max-width: 72px; font-size: 0.75rem; }
[data-tb-style="tb-inline-29"] { font-size: 0.75rem; }
[data-tb-style="tb-inline-30"] { max-height: 420px; overflow-y: auto; }
[data-tb-style="tb-inline-31"] { width: 36px; height: 36px; font-size: 13px; }
[data-tb-style="tb-inline-32"] { width: 290px; border-radius: 12px; overflow: hidden; z-index: 1080; }
[data-tb-style="tb-inline-33"] { width: 46px; height: 46px; font-size: 17px; }
[data-tb-style="tb-inline-34"] { font-size: 0.93rem; }
[data-tb-style="tb-inline-35"] { font-size: 0.76rem; }
[data-tb-style="tb-inline-36"] { font-size: 0.67rem; letter-spacing: 0.05em; }
[data-tb-style="tb-inline-37"] { font-size:0.78rem; }
[data-tb-style="tb-inline-38"] { width:54px; height:54px; font-size:20px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; }
[data-tb-style="tb-inline-39"] { width:64px; height:64px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-40"] { max-width:320px; }
[data-tb-style="tb-inline-41"] { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-42"] { max-height: 200px; overflow-y: auto; }
[data-tb-style="tb-inline-43"] { width:26px; height:26px; font-size:11px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-44"] { max-height: 220px; overflow-y: auto; }
[data-tb-style="tb-inline-45"] { width:30px; height:30px; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-46"] { max-height: 140px; overflow-y: auto; }
[data-tb-style="tb-inline-47"] { width:24px; height:24px; font-size:10px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-48"] { font-size:0.68rem; }
[data-tb-style="tb-inline-49"] { width:34px; height:34px; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-50"] { background-color: ${p.presence_color || '#8138e8'}; }
[data-tb-style="tb-inline-51"] { background-color:${p.presence_color || '#8138e8'}; }
[data-tb-style="tb-inline-52"] { width:32px; height:32px; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-53"] { width:32px; height:32px; font-size:11px; display:inline-flex; align-items:center; justify-content:center; }
[data-tb-style="tb-inline-54"] { font-size:0.7rem; }
[data-tb-style="tb-inline-55"] { color:${pColor}; }
[data-tb-style="tb-inline-56"] { max-width: 440px; }
[data-tb-style="tb-inline-57"] { width: 42px; height: 42px; }
[data-tb-style="tb-inline-58"] { letter-spacing: 0.45rem; font-size: 1.35rem; }
[data-tb-style="tb-inline-59"] { max-width: 80%; }
[data-tb-style="tb-inline-60"] { min-height: 200px; }
[data-tb-style="tb-inline-61"] { width: 90px; }
[data-tb-style="tb-inline-62"] { min-width: 220px; }
[data-tb-style="tb-inline-63"] { min-width: 160px; }
[data-tb-style="tb-inline-64"] { min-width: 140px; }
[data-tb-style="tb-inline-65"] { min-width: 120px; }
[data-tb-style="tb-inline-66"] { min-width: 180px; }
[data-tb-style="tb-inline-67"] { max-width:280px; }
[data-tb-style="tb-inline-68"] { font-size: 0.68rem; }
[data-tb-style="tb-inline-69"] { width:32px; height:32px; font-size:0.8rem; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-70"] { width:34px; height:34px; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-71"] { z-index: 1090; }
[data-tb-style="tb-inline-72"] { height: 220px; position: relative; }
[data-tb-style="tb-inline-73"] { width: 240px; }
[data-tb-style="tb-inline-74"] { min-width: 150px; }
[data-tb-style="tb-inline-75"] { height: 6px; }
[data-tb-style="tb-inline-76"] { width:30px; height:30px; font-size:0.75rem; background:var(--tb-primary-soft,#faf7ff); color:var(--tb-primary-strong,#8138e8); }
[data-tb-style="tb-inline-77"] { min-height: 250px; position: relative; }
[data-tb-style="tb-inline-78"] { width: 50px; }
[data-tb-style="tb-inline-79"] { width:34px;height:34px; }
[data-tb-style="tb-inline-80"] { width:16px;height:16px;cursor:pointer; }
[data-tb-style="tb-inline-81"] { width:150px; }
[data-tb-style="tb-inline-82"] { width:135px; }
[data-tb-style="tb-inline-83"] { width:155px; }
[data-tb-style="tb-inline-84"] { width:130px; }
[data-tb-style="tb-inline-85"] { width:145px; }
[data-tb-style="tb-inline-86"] { color:#d0b2ff;font-size:.65rem }
[data-tb-style="tb-inline-87"] { font-size:.65rem }
[data-tb-style="tb-inline-88"] { min-width:180px; }
[data-tb-style="tb-inline-89"] { width: 40px; }
[data-tb-style="tb-inline-90"] { width: 70px; }
[data-tb-style="tb-inline-91"] { width:26px; height:26px; font-size:0.7rem; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-92"] { height: 8px; }
[data-tb-style="tb-inline-93"] { width: 26px; height: 26px; display: grid; place-items: center; }
[data-tb-style="tb-inline-94"] { height: 10px; }
[data-tb-style="tb-inline-95"] { width:32px; height:32px; font-size:0.75rem; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-96"] { width:38px;height:38px;font-size:13px; }
[data-tb-style="tb-inline-97"] { width:64px; height:64px; }
[data-tb-style="tb-inline-98"] { width:64px; height:64px; font-size:1.5rem; background:var(--tb-primary-soft); color:var(--tb-primary-strong); }
[data-tb-style="tb-inline-99"] { width: 35%; }
[data-tb-style="tb-inline-100"] { font-size:0.75rem; }

/* --------------------------------------------------------------------------
   Treviq workspace shell
   A calm, high-contrast navigation rail paired with a generous white canvas.
   -------------------------------------------------------------------------- */
:root {
    --treviq-black:#000000;
    --treviq-ink:#10182b;
    --treviq-muted:#60708d;
    --treviq-line:#dfe5ef;
    --treviq-panel:#ffffff;
    --treviq-soft:#f6f3ff;
    --treviq-violet:#7c35ed;
    --treviq-violet-dark:#6425d8;
    --treviq-violet-light:#eadfff;
    --tb-body-bg:#000000;
    --tb-body-color:var(--treviq-ink);
    --tb-surface:var(--treviq-panel);
    --tb-surface-muted:#f8faff;
    --tb-border:var(--treviq-line);
    --tb-border-soft:#edf0f5;
    --tb-muted:var(--treviq-muted);
    --tb-heading:var(--treviq-ink);
    --tb-primary:var(--treviq-violet);
    --tb-primary-strong:var(--treviq-violet-dark);
    --tb-primary-soft:var(--treviq-violet-light);
}

html, body { min-height:100%; background:#ffffff !important; }
body { display:block !important; padding:0 !important; font-family:Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.welcome-page { display:flex !important; padding:1.5rem !important; }
h1, h2, h3, h4, h5, h6,
.app-header h2, .card-header h1, .card-header h2, .card-header h3,
.dashboard-titlebar h1, .section-heading h2 {
    font-family:Inter, ui-sans-serif, system-ui, sans-serif !important;
}

.sidebar {
    width:320px !important;
    padding:26px 16px 16px;
    display:flex;
    flex-direction:column;
    background:#000 !important;
    border:0 !important;
    box-shadow:none !important;
}
.sidebar-brand {
    height:78px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px 12px 24px;
    margin-bottom:18px;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
    font-size:1.25rem;
    letter-spacing:-.04em;
}
.sidebar-brand-icon { color:#fff; font-size:1.4rem; }
.sidebar-brand strong { font-size:1.2rem; font-weight:850; }
.sidebar-brand span { color:#fff; }
.sidebar-nav { flex:1; overflow-y:auto; padding:0 0 14px; }
.sidebar-section-title {
    color:#8d96a8 !important;
    font-size:.65rem !important;
    font-weight:800;
    letter-spacing:.12em;
    padding:18px 12px 8px !important;
}
.sidebar a {
    min-height:44px !important;
    margin:2px 0 !important;
    padding:10px 12px !important;
    border-radius:11px !important;
    color:#b4bdcd !important;
    font-size:.95rem;
    font-weight:650 !important;
    box-shadow:none !important;
    transform:none !important;
}
.sidebar a:hover { background:#171717 !important; color:#fff !important; }
.sidebar a.active, .sidebar a.has-unread {
    background:linear-gradient(100deg,#7831e7,#933cf3) !important;
    color:#fff !important;
    box-shadow:0 10px 20px rgba(124,53,237,.25) !important;
}
.sidebar-icon { width:20px; font-size:1rem; text-align:center; }
.sidebar-user-card {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
    width:100%;
    min-height:60px;
    margin-top:auto !important;
    padding:10px 12px !important;
    background:#181818 !important;
    color:#fff !important;
    border:0 !important;
    border-radius:12px !important;
}
.sidebar-user-card > span { flex:0 0 38px; width:38px !important; height:38px !important; }
.sidebar-user-card > div { flex:1 1 auto; min-width:0; text-align:left; }
.sidebar-user-card strong, .sidebar-user-card small { width:100%; margin:0; text-align:left; }
.sidebar-user-card strong { color:#fff !important; font-size:.82rem !important; }
.sidebar-user-card small { color:#b985ff !important; font-size:.68rem !important; }
.sidebar-logout { width:100%; margin-top:12px !important; }
.sidebar-logout .btn { min-height:40px; background:#170606; border:1px solid #351012; color:#ff6f78; }

.main {
    display:block !important;
    width:auto !important;
    flex:1 1 auto !important;
    min-height:calc(100vh - 48px) !important;
    margin:24px 16px 24px 336px !important;
    background:#fff !important;
    border-radius:32px !important;
    overflow:hidden;
}
.main > .container-fluid { max-width:none !important; padding:34px 32px 48px !important; }
.workspace-ribbon { display:none !important; }
.app-header {
    position:static !important;
    padding:0 0 28px !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}
.app-header h2 { color:var(--treviq-violet) !important; font-size:1.6rem !important; font-weight:800 !important; }
.app-header small { color:var(--treviq-muted) !important; }
.header-profile { color:var(--treviq-ink) !important; }
.header-profile > span { background:var(--treviq-violet) !important; color:#fff !important; }

.card, .soft-card, .toolbar, .form-section, .form-aside,
.attendance-panel, .calendar-panel, .calendar-main, .reports-filter,
.report-card, .report-table-card, .report-metric, .messenger-shell,
.project-board-shell, .task-page-shell {
    border:1px solid var(--treviq-line) !important;
    border-radius:16px !important;
    box-shadow:0 2px 4px rgba(16,24,43,.025) !important;
    background:#fff !important;
}
.card-header { background:#fff !important; border-bottom:1px solid var(--tb-border-soft) !important; }
.btn { min-height:40px; border-radius:10px !important; font-weight:750 !important; }
.btn-sm { min-height:34px; }
.btn-primary { --bs-btn-bg:var(--treviq-violet); --bs-btn-border-color:var(--treviq-violet); --bs-btn-hover-bg:var(--treviq-violet-dark); --bs-btn-hover-border-color:var(--treviq-violet-dark); }
.btn-outline-primary { --bs-btn-color:var(--treviq-violet); --bs-btn-border-color:#d9c6ff; --bs-btn-hover-bg:var(--treviq-violet); --bs-btn-hover-border-color:var(--treviq-violet); }
.btn-light, .btn-outline-secondary, .btn-outline-dark { background:#fff !important; border-color:var(--treviq-line) !important; color:#34425b !important; }
.form-control, .form-select { min-height:42px; border-color:var(--treviq-line) !important; border-radius:10px !important; }
.form-control:focus, .form-select:focus { border-color:var(--treviq-violet) !important; box-shadow:0 0 0 .2rem rgba(124,53,237,.12) !important; }

.table { --bs-table-bg:transparent; --bs-table-hover-bg:#fbfaff; --bs-table-border-color:#edf0f5; color:var(--treviq-ink); }
.table thead th, .today-task-table thead th { background:#f7f8fc !important; color:#66738b !important; border-bottom:1px solid var(--treviq-line) !important; font-size:.7rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.table > :not(caption) > * > * { padding:15px 12px; }
.table tbody tr:hover { background:#fcfbff !important; }
.badge { border-radius:999px; font-weight:750; }
.bg-success-subtle, .bg-danger-subtle, .bg-warning-subtle, .bg-secondary-subtle, .bg-primary-subtle { background:var(--treviq-soft) !important; color:var(--treviq-violet-dark) !important; border-color:#dccaff !important; }

.dashboard-titlebar { padding:0 0 26px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
.dashboard-titlebar h1, .dashboard-titlebar .dashboard-eyebrow { color:var(--treviq-violet) !important; }
.summary-card, .metric { min-height:128px; border:1px solid var(--treviq-line) !important; border-radius:16px !important; background:#fff !important; box-shadow:inset 0 -4px 0 #b467ff, 0 2px 4px rgba(16,24,43,.025) !important; }
.summary-card strong, .metric h3 { color:var(--treviq-ink) !important; }
.summary-card .card-icon, .dashboard-hero-icon { color:var(--treviq-violet) !important; background:var(--treviq-soft) !important; }

@media (max-width: 991px) {
    .sidebar { width:100% !important; min-height:auto !important; position:static !important; }
    .sidebar-nav { max-height:260px; }
    .main { margin:0 !important; min-height:100vh !important; border-radius:0 !important; }
    .main > .container-fluid { padding:24px 18px 36px !important; }
}

/* Shared component standards: applied across every TaskBoard module. */
:root {
    --ui-space-1:8px;
    --ui-space-2:12px;
    --ui-space-3:16px;
    --ui-space-4:24px;
    --ui-control-height:42px;
}
.main > .container-fluid { padding:32px !important; }
.main > .container-fluid > * + * { margin-top:var(--ui-space-4); }

.card, .module-card, .form-section, .form-aside, .toolbar {
    overflow:hidden;
    border:1px solid var(--treviq-line) !important;
    border-radius:14px !important;
    box-shadow:0 1px 3px rgba(16,24,43,.035) !important;
}
.card > .card-header, .module-card-header, .form-section-header {
    min-height:64px;
    padding:16px 20px !important;
    background:#fff !important;
    border-bottom:1px solid #edf0f5 !important;
}
.card > .card-body { padding:20px !important; }
.form-section-body { padding:20px !important; }
.module-card > .table-responsive, .module-card > .card-body { padding:0; }

.form-label {
    margin-bottom:6px !important;
    color:#000000 !important;
    font-size:.78rem;
    font-weight:600 !important;
    line-height:1.35;
}
.form-control, .form-select, .input-group > .form-control, .input-group > .form-select {
    min-height:var(--ui-control-height) !important;
    padding:9px 12px !important;
    color:#172033;
    font-family:Poppins, sans-serif;
    font-size:.88rem;
    line-height:1.35;
}
.input-group > .btn { min-height:var(--ui-control-height); }
.form-text, .field-hint, small.text-muted { font-size:.75rem !important; line-height:1.45; }

.btn {
    min-height:40px;
    padding:8px 15px;
    font-family:Poppins, sans-serif;
    font-size:.84rem;
    font-weight:650 !important;
    line-height:1.25;
    transition:background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease !important;
}
.btn-sm { min-height:34px; padding:6px 11px; font-size:.76rem; }
.notification-btn {
    width:40px !important;
    height:40px !important;
    padding:0 !important;
}
.notification-btn > svg {
    width:18px !important;
    height:18px !important;
    display:block;
    flex:0 0 18px;
    stroke-width:2.2;
}
.icon-btn > i, .btn > i:not(.spinner-border), .btn > svg {
    line-height:1;
}
.btn-primary:hover, .btn-outline-primary:hover {
    box-shadow:0 6px 14px rgba(124,53,237,.18) !important;
}
.btn-light:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover {
    border-color:#cbb3ff !important;
    background:#f8f5ff !important;
    color:var(--treviq-violet-dark) !important;
    box-shadow:0 4px 10px rgba(16,24,43,.06) !important;
}
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    outline:3px solid rgba(124,53,237,.2);
    outline-offset:2px;
}

.table { margin-bottom:0; }
.table thead th { height:48px; padding:0 14px !important; vertical-align:middle; }
.table tbody td { padding:14px !important; vertical-align:middle; }
.table-responsive { border-radius:0 0 14px 14px; }
.table .btn-group { display:inline-flex; gap:8px; }
.table .btn-group > .btn,
.table .btn-group > form > .btn { margin:0 !important; border-radius:9px !important; }
.table td.text-end { padding-right:20px !important; }
.alert { margin-bottom:16px; border-radius:10px; font-size:.8rem; line-height:1.5; }
.modal-content { border:1px solid var(--treviq-line); border-radius:16px; box-shadow:0 20px 50px rgba(16,24,43,.18); }
.modal-header, .modal-footer { padding:16px 20px; border-color:#edf0f5; }
.modal-body { padding:20px; }

/* Company form: keep its credential section and action row aligned to the system. */
.company-login-card > .card-body { padding:24px !important; }
.company-login-card h5 { margin:0 0 6px; font-size:1.05rem; }
.company-login-card > .card-body > p { margin:0 0 16px; }
.company-login-card .alert { padding:10px 12px !important; }
.company-form-actions {
    position:sticky;
    bottom:16px;
    z-index:5;
    margin-top:0 !important;
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
}


@media (max-width: 767px) {
    .main > .container-fluid { padding:20px 16px !important; }
    .main > .container-fluid > * + * { margin-top:16px; }
    .card > .card-header, .module-card-header, .form-section-header { min-height:auto; padding:14px 16px !important; }
    .card > .card-body, .form-section-body { padding:16px !important; }
    .table-responsive > .table { min-width:680px; }
    .btn { min-height:40px; }
}

/* Messages: calmer hierarchy, more distinct conversation states, and a
   purpose-built chat surface that still works with short conversations. */
.messenger-app-container {
    border-color:#e7ddfb;
    border-radius:18px;
    box-shadow:0 18px 44px rgba(78, 35, 157, .10);
}

.teams-top-bar {
    min-height:72px;
    padding:.85rem 1.15rem;
    background:linear-gradient(180deg,#ffffff 0%,#fdfcff 100%);
}

.teams-brand-badge {
    width:38px;
    height:38px;
    background:linear-gradient(135deg,#9333ea,#6d28d9) !important;
    box-shadow:0 8px 18px rgba(109, 40, 217, .24) !important;
}

.teams-search-box {
    min-height:46px;
    background:#faf9ff;
    border-color:#e7ddfb;
}

.messenger-shell { grid-template-columns:332px minmax(0,1fr); }

.messenger-contacts,
.messenger-sidebar-header { background:#fcfbff; }

.messenger-sidebar-header { padding:1rem; }

.messenger-filter-tabs {
    gap:4px;
    padding:4px;
    border:1px solid #ebe5f8;
    border-radius:10px;
    background:#f4f1fc;
}

.messenger-filter-tabs .nav-link { border:1px solid transparent; }
.messenger-filter-tabs .nav-link.active {
    color:#4c1d95;
    border-color:#e7ddfb;
    background:#ffffff;
    box-shadow:0 3px 9px rgba(78, 35, 157, .10);
}

.contact-section-title {
    padding-top:1rem !important;
    color:#7c3aed !important;
    letter-spacing:.09em;
}

.contact-item {
    margin:2px 8px;
    padding:.82rem .75rem;
    border:1px solid transparent;
    border-radius:11px;
}

.contact-item:hover {
    background:#f5f1ff;
    border-color:#e7ddfb;
}

.contact-item.active {
    background:linear-gradient(135deg,#eee7ff,#e8ddff);
    border-color:#d9c8ff;
    box-shadow:0 7px 14px rgba(109, 40, 217, .10);
}

.contact-item.has-unread {
    background:#f8f5ff;
    box-shadow:inset 3px 0 0 #7c3aed;
}

.messenger-chat { background:#ffffff; }

.chat-header {
    min-height:74px;
    padding:1rem 1.25rem;
    background:rgba(255,255,255,.96);
}

.message-list {
    padding:1.75rem 1.25rem;
    background:
        radial-gradient(circle at 1px 1px, rgba(124,58,237,.09) 1px, transparent 1.2px) 0 0 / 20px 20px,
        linear-gradient(180deg,#faf9ff 0%,#f6f3fc 100%);
}

.message-bubble {
    padding:.8rem 1rem;
    border-radius:18px;
    box-shadow:0 7px 17px rgba(78,35,157,.08);
}

.message-row.mine .message-bubble {
    background:linear-gradient(135deg,#8b2ce8 0%,#6824d5 100%);
    box-shadow:0 9px 20px rgba(104,36,213,.20);
}

.message-row.theirs .message-bubble {
    border-color:#e5ddf5;
    box-shadow:0 6px 15px rgba(63,30,124,.06);
}

.message-day-separator { margin:0 0 1.5rem; }
.message-day-separator span {
    padding:.28rem .8rem;
    color:#5b3c88;
    background:rgba(255,255,255,.9);
    box-shadow:0 3px 10px rgba(78,35,157,.06);
}

.chat-composer {
    padding:1rem 1.25rem 1.15rem;
    background:linear-gradient(180deg,#ffffff,#fcfbff);
}

.composer-box {
    border-color:#dfd4f4;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(78,35,157,.05);
}

.composer-toolbar {
    padding:.5rem .7rem;
    background:#faf8ff;
}

.message-editor { min-height:58px; padding:.8rem .9rem; }

.btn-send {
    min-width:96px;
    height:46px;
    background:linear-gradient(135deg,#8b2ce8,#6824d5);
    border:0;
    box-shadow:0 8px 18px rgba(104,36,213,.22);
}

.btn-send:hover { transform:translateY(-1px); box-shadow:0 11px 22px rgba(104,36,213,.28); }

/* Give all form fields a little more definition against light surfaces. */
.form-control,
.form-select,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color:#cfc0ea !important;
}

.form-control:hover,
.form-select:hover,
.input-group:focus-within .input-group-text {
    border-color:#ae94dc !important;
}

@media (max-width: 991px) {
    .messenger-app-container { border-radius:14px; }
    .message-list { padding:1.25rem .9rem; }
}

