/* CJB demo: same layout/sidebar styling as host (AuthenticatedLayout + NavMenu + Drawer).
   Only applies when root has .cjb-demo-root. Loaded globally; selectors scoped to this class. */

/* Darker shade of CJB primary (#971a3d) for nav and Back to Demos button */
.cjb-demo-root {
    --cjb-primary-dark: #1e0510;
}

.cjb-demo-root.page {
    height: 100%;
    font-family: var(--bs-font-sans-serif);
}

/* Nav menu / drawer panel background - use darker primary */
.cjb-demo-root .navigation-drawer {
    background-color: var(--cjb-primary-dark) !important;
    background-image: none !important;
}

.cjb-demo-root .mud-main-content {
    height: 100vh;
    overflow: auto;
}

/* Drawer header */
.cjb-demo-root .drawer-header .navigation-drawer-header {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    /* Reserve space for collapse button so logo centers in remaining width */
    padding-right: 2.5rem;
}

/* Logo link fills space to the left of the button; logo centered in that width */
.cjb-demo-root .drawer-header .navigation-drawer-header > a:first-of-type {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

/* Toggle button out of flow, same width as reserved padding */
.cjb-demo-root .drawer-header .navigation-drawer-header > button:last-child {
    position: absolute;
    right: 0;
    width: 2.5rem;
}

/* Drawer footer */
.cjb-demo-root .drawer-footer {
    padding-bottom: 1.5rem;
}

.cjb-demo-root .navigation-drawer {
    height: 100vh;
    max-height: 100%;
}

/* Only size the collapse toggle in the drawer header; no background to avoid double icon */
.cjb-demo-root .drawer-header .menu-button-nav {
    width: 1.875rem;
    height: 1.875rem;
    background-image: none;
    min-width: 1.875rem;
}

/* Collapse/open button inside drawer panel: white icon */
.cjb-demo-root .drawer-header .menu-button-nav .mud-icon-root {
    color: #fff !important;
}

/* Hamburger button in header (nav closed): dark primary icon */
.cjb-demo-root .nav-buttons-container .menu-button .mud-icon-root {
    color: var(--cjb-primary-dark, #1e0510) !important;
}

/* Back to Demos header button: pill style, white icon and text, same darker primary as nav */
.cjb-demo-root .back-to-demos-btn {
    min-width: 10rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: 50rem;
    background-color: var(--cjb-primary-dark) !important;
    color: #fff !important;
    border-color: var(--cjb-primary-dark) !important;
}

.cjb-demo-root .back-to-demos-btn:hover {
    filter: brightness(1.1);
    color: #fff !important;
}

.cjb-demo-root .nav-buttons-container {
    display: flex;
    gap: 10px;
    padding: 2rem 1rem;
}

.cjb-demo-root .nav-buttons-container .menubutton-float-end {
    margin-left: auto;
}

.cjb-demo-root .auth-controls.display-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

@media (max-width: 768px) {
    .cjb-demo-root .auth-controls.display-desktop {
        display: none;
    }
}

.cjb-demo-root .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    color: var(--bs-dark);
    cursor: default;
}

.cjb-demo-root .user-info:hover {
    background-color: transparent;
}

.cjb-demo-root .sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cjb-demo-root .copyright-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.cjb-demo-root .sidebar-footer-text {
    margin: 0.1rem 0;
}

/* Nav/sidebar (NavMenu equivalents) */
.cjb-demo-root #sidebar {
    min-width: 15rem;
    max-width: 15rem;
    transition: transform 0.1s ease-out;
    height: 100%;
    max-height: 100%;
    display: block;
    background: inherit;
}

.cjb-demo-root .logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 48px;
    text-align: center;
}

.cjb-demo-root .menu.display-mobile {
    margin-bottom: 2rem;
}

.cjb-demo-root .menu {
    background-color: inherit;
}

/* MudNavLink: white text and icons for dark sidebar */
.cjb-demo-root .menu .mud-nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cjb-demo-root .menu .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.cjb-demo-root .menu .mud-nav-link .mud-nav-link-icon {
    color: rgba(255, 255, 255, 0.85) !important;
}

.cjb-demo-root .menu .mud-nav-link:hover .mud-nav-link-icon {
    color: #fff !important;
}

/* Active / selected page highlight */
.cjb-demo-root .menu .mud-nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
}

.cjb-demo-root .menu .mud-nav-link.active .mud-nav-link-icon {
    color: #fff !important;
}

.cjb-demo-root .menu-item {
    color: var(--bs-white);
}

.cjb-demo-root #sidebar .icon {
    width: 1.4rem;
    height: 1.4rem;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.cjb-demo-root .home-icon {
    background-image: url("/images/icons/home-02.svg");
}

.cjb-demo-root .log-out-icon {
    background-image: url("/images/account/log-out.svg");
}

.cjb-demo-root .user-icon {
    background-image: url("/images/icons/users-01.svg");
}

.cjb-demo-root .user-display {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem 0.5rem calc(0.75rem - 3px);
    color: var(--bs-white);
    cursor: default;
    gap: 0.5rem;
}

.cjb-demo-root .user-display:hover {
    background-color: transparent;
}

.cjb-demo-root .log-out-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem 0.5rem calc(0.75rem - 3px);
    gap: 0.5rem;
}

.cjb-demo-root .log-out-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cjb-demo-root #sidebar {
        min-width: inherit;
        max-width: inherit;
        display: block;
    }

    .cjb-demo-root .logo {
        text-align: inherit;
    }
}

/* ═══════════════════════════════════════════════════════
   CJB Form fields — label above, clean bordered input
   ═══════════════════════════════════════════════════════ */
.cjb-demo-root .cjb-field {
    margin-bottom: 1rem;
}

.cjb-demo-root .cjb-field:last-child {
    margin-bottom: 0;
}

.cjb-demo-root .cjb-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

.cjb-demo-root .cjb-field-req {
    color: #dc2626;
}

/* Hide MudBlazor's built-in floating label when we use our own */
.cjb-demo-root .cjb-field .mud-input-label {
    display: none !important;
}

/* Tighten the outlined input — remove top legend gap since label is external */
.cjb-demo-root .cjb-field .mud-input-outlined-border legend {
    display: none !important;
}

/* Rounded corners and light gray border on outlined inputs */
.cjb-demo-root .cjb-field .mud-input-outlined-border {
    border-radius: 6px !important;
    border-color: #cbd5e1 !important;
}

.cjb-demo-root .cjb-field .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #94a3b8 !important;
}

.cjb-demo-root .cjb-field .mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #64748b !important;
}

/* Placeholder text: light gray */
.cjb-demo-root .cjb-field .mud-input input::placeholder,
.cjb-demo-root .cjb-field .mud-input textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* MudSelect selected-value text: ensure it stays dark (not grayed by placeholder rules) */
.cjb-demo-root .cjb-field .mud-select .mud-input-slot {
    color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════
   MudSelect / MudPopover dropdown styling
   ═══════════════════════════════════════════════════════ */
.mud-popover {
    z-index: 1300 !important;
}

.mud-popover .mud-paper,
.mud-popover.mud-paper {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

.mud-popover .mud-list {
    background: #fff !important;
    padding: 0.25rem 0 !important;
}

.mud-popover .mud-list-item {
    font-size: 0.875rem !important;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
    min-height: unset !important;
}

.mud-popover .mud-list-item:hover {
    background: #f1f5f9 !important;
}

.mud-popover .mud-list-item.mud-selected-item {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Popup close icon button */
.cjb-demo-root .wc-popup-close-btn,
.cjb-demo-root .task-popup-close-btn {
    color: #64748b !important;
}

.cjb-demo-root .wc-popup-close-btn:hover,
.cjb-demo-root .task-popup-close-btn:hover {
    color: #334155 !important;
    background: #f1f5f9 !important;
}

/* ═══════════════════════════════════════════════════════
   Work Center Detail: 3-tab layout (Employees, Chat, Tasks)
   ═══════════════════════════════════════════════════════ */

/* ── Tabs container ── */
.cjb-demo-root .wc-tabs {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff !important;
    min-height: calc(100vh - 14rem);
}

.cjb-demo-root .wc-tabs .mud-tabs-toolbar {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f1f5f9 !important;
    padding: 0.5rem 0.75rem 0 !important;
    gap: 0.375rem !important;
}

/* All tabs: pill-shaped base */
.cjb-demo-root .wc-tabs .mud-tab {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 0.5rem 1.25rem !important;
    min-width: 120px !important;
    transition: background-color 0.15s, color 0.15s !important;
}

/* Inactive tabs: muted / disabled appearance */
.cjb-demo-root .wc-tabs .mud-tab:not(.mud-tab-active) {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.cjb-demo-root .wc-tabs .mud-tab:not(.mud-tab-active):hover {
    background: #cbd5e1 !important;
    color: #64748b !important;
}

.cjb-demo-root .wc-tabs .mud-tab:not(.mud-tab-active) .mud-tab-icon {
    color: #94a3b8 !important;
}

.cjb-demo-root .wc-tabs .mud-tab:not(.mud-tab-active):hover .mud-tab-icon {
    color: #64748b !important;
}

/* Active tab: bright, solid background */
.cjb-demo-root .wc-tabs .mud-tab.mud-tab-active {
    background: #fff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #fff !important;
    margin-bottom: -1px;
}

.cjb-demo-root .wc-tabs .mud-tab.mud-tab-active .mud-tab-icon {
    color: #334155 !important;
}

/* Hide MudBlazor's default tab indicator bar — we use background styling instead */
.cjb-demo-root .wc-tabs .mud-tabs-toolbar .mud-tab-slider {
    display: none !important;
}

/* ── Tab 1: Employee Management ── */
.cjb-demo-root .wc-emp-root {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    flex-wrap: wrap;
}

.cjb-demo-root .wc-emp-column {
    flex: 1 1 280px;
    min-width: 280px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.cjb-demo-root .wc-emp-column--unassigned {
    flex-basis: 100%;
    background: #fefce8;
    border-color: #fde68a;
}

.cjb-demo-root .wc-emp-column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
}

.cjb-demo-root .wc-emp-column--unassigned .wc-emp-column-header {
    border-color: #fde68a;
}

.cjb-demo-root .wc-emp-column-title {
    flex: 1;
}

.cjb-demo-root .wc-emp-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.cjb-demo-root .wc-emp-empty {
    color: #94a3b8;
    font-size: 0.8125rem;
    padding: 1rem;
    text-align: center;
}

.cjb-demo-root .wc-emp-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: box-shadow 0.15s;
}

.cjb-demo-root .wc-emp-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cjb-demo-root .wc-emp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.cjb-demo-root .wc-emp-info {
    flex: 1;
    min-width: 0;
}

.cjb-demo-root .wc-emp-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cjb-demo-root .wc-emp-role {
    font-size: 0.6875rem;
    color: #64748b;
}

.cjb-demo-root .wc-emp-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-shrink: 0;
}

.cjb-demo-root .wc-emp-add-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.cjb-demo-root .wc-emp-add-bar .mud-select {
    flex: 1;
}

/* Rounded borders on employee tab dropdowns */
.cjb-demo-root .wc-emp-add-bar .mud-input-outlined-border {
    border-radius: 10px !important;
    border-color: #cbd5e1 !important;
}

.cjb-demo-root .wc-emp-add-bar .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #94a3b8 !important;
}

.cjb-demo-root .wc-emp-add-bar .mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #64748b !important;
}

.cjb-demo-root .wc-emp-add-bar .mud-input-label {
    color: #94a3b8 !important;
    font-size: 0.8125rem !important;
}

/* Rounded corners on employee action menus and menu items */
.cjb-demo-root .wc-emp-actions .mud-menu .mud-menu-activator .mud-icon-button {
    border-radius: 8px !important;
}

.mud-popover.mud-popover-open .mud-list {
    border-radius: 8px !important;
    overflow: hidden;
}

.mud-popover.mud-popover-open .mud-list .mud-list-item {
    border-radius: 0 !important;
}

.mud-popover.mud-popover-open .mud-list .mud-list-item:first-child {
    border-radius: 8px 8px 0 0 !important;
}

.mud-popover.mud-popover-open .mud-list .mud-list-item:last-child {
    border-radius: 0 0 8px 8px !important;
}

.mud-popover.mud-popover-open .mud-list .mud-list-item:only-child {
    border-radius: 8px !important;
}

/* ── Tab 2: Chat ── */
.cjb-demo-root .wc-chat-root {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 18rem);
    min-height: 400px;
}

.cjb-demo-root .wc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cjb-demo-root .wc-chat-date-sep {
    text-align: center;
    padding: 0.75rem 0 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 500;
}

.cjb-demo-root .wc-chat-msg-row {
    display: flex;
    margin-top: 0.75rem;
    gap: 8px;
    align-items: flex-end;
}

.cjb-demo-root .wc-chat-msg-row.msg-continue {
    margin-top: 2px;
}

.cjb-demo-root .wc-chat-msg-row.me {
    justify-content: flex-end;
}

.cjb-demo-root .wc-chat-avatar-slot {
    width: 28px;
    flex-shrink: 0;
}

.cjb-demo-root .wc-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
}

.cjb-demo-root .wc-chat-msg-content {
    max-width: 75%;
}

.cjb-demo-root .wc-chat-msg-sender {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}

.cjb-demo-root .wc-chat-sender-role {
    font-weight: 400;
    color: #94a3b8;
    margin-left: 0.5rem;
}

.cjb-demo-root .wc-chat-bubble {
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.cjb-demo-root .wc-chat-bubble.me {
    border-radius: 12px 12px 4px 12px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #f0f0ff;
}

.cjb-demo-root .wc-chat-bubble.other {
    border-radius: 12px 12px 12px 4px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.cjb-demo-root .wc-chat-msg-time {
    font-size: 0.625rem;
    color: #94a3b8;
    margin-top: 2px;
}

.cjb-demo-root .wc-chat-msg-row.me .wc-chat-msg-time {
    text-align: right;
}

.cjb-demo-root .wc-chat-empty {
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cjb-demo-root .wc-chat-input-wrap {
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    background: #fff;
    flex-shrink: 0;
}

.cjb-demo-root .wc-chat-input-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
}

.cjb-demo-root .wc-chat-input-field {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: #334155;
    padding: 0.375rem 0;
}

.cjb-demo-root .wc-chat-input-field::placeholder {
    color: #94a3b8;
}

.cjb-demo-root .wc-chat-no-convo {
    color: #94a3b8;
    font-size: 0.8125rem;
    text-align: center;
    padding: 0.5rem;
}

/* ── Tab 3: Tasks ── */
.cjb-demo-root .wc-tasks-root {
    padding: 1.25rem;
}

.cjb-demo-root .wc-tasks-section {
    margin-bottom: 1.5rem;
}

.cjb-demo-root .wc-tasks-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #334155;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cjb-demo-root .wc-task-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cjb-demo-root .wc-task-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.1s;
}

.cjb-demo-root .wc-task-row:last-child {
    border-bottom: none;
}

.cjb-demo-root .wc-task-row:hover {
    background: #f8fafc;
}

.cjb-demo-root .wc-task-row-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: #334155;
    flex: 1;
    min-width: 0;
}

.cjb-demo-root .wc-task-row-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.cjb-demo-root .wc-task-row-badges {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.cjb-demo-root .wc-task-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
}

.cjb-demo-root .wc-task-badge--recurring {
    color: #4f46e5;
    background: #eef2ff;
}

.cjb-demo-root .wc-task-badge--adhoc {
    color: #d97706;
    background: #fffbeb;
}

.cjb-demo-root .wc-task-badge--saturday {
    color: #0891b2;
    background: #ecfeff;
}

.cjb-demo-root .wc-task-badge--shift {
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
}

.cjb-demo-root .wc-task-badge--all-shifts {
    font-weight: 500;
    color: #059669;
    background: #ecfdf5;
}

.cjb-demo-root .wc-task-badge--inactive {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

/* Task row inline controls (shift selector, date picker) */
.cjb-demo-root .wc-task-row-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cjb-demo-root .wc-task-shift-select {
    width: 160px;
}

.cjb-demo-root .wc-task-date-pick {
    width: 180px;
}

/* Rounded borders on task inline controls */
.cjb-demo-root .wc-task-shift-select .mud-input-outlined-border,
.cjb-demo-root .wc-task-date-pick .mud-input-outlined-border {
    border-radius: 10px !important;
    border-color: #cbd5e1 !important;
}

.cjb-demo-root .wc-task-shift-select .mud-input.mud-input-outlined:hover .mud-input-outlined-border,
.cjb-demo-root .wc-task-date-pick .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #94a3b8 !important;
}

.cjb-demo-root .wc-task-shift-select .mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border,
.cjb-demo-root .wc-task-date-pick .mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #64748b !important;
}

/* Hide floating labels on inline task controls — placeholder is enough */
.cjb-demo-root .wc-task-shift-select .mud-input-label,
.cjb-demo-root .wc-task-date-pick .mud-input-label {
    display: none !important;
}

.cjb-demo-root .wc-task-shift-select .mud-input-outlined-border legend,
.cjb-demo-root .wc-task-date-pick .mud-input-outlined-border legend {
    display: none !important;
}

/* Task reference chip in chat bubbles (work center detail + main chat) */
.cjb-demo-root .chat-task-ref,
.cjb-demo-root .wc-chat-bubble .chat-task-ref {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    vertical-align: middle;
}

.cjb-demo-root .chat-task-ref:hover,
.cjb-demo-root .wc-chat-bubble .chat-task-ref:hover {
    background: rgba(99, 102, 241, 0.22);
    text-decoration: none;
}

.cjb-demo-root .wc-chat-bubble.me .chat-task-ref {
    background: rgba(255, 255, 255, 0.2);
    color: #e0e0ff;
}

.cjb-demo-root .wc-chat-bubble.me .chat-task-ref:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cjb-demo-root .chat-task-ref-icon {
    font-size: 14px !important;
    width: 14px;
    height: 14px;
}

/* Task completion button and completed row state */
.cjb-demo-root .wc-task-complete-btn {
    flex-shrink: 0;
}

.cjb-demo-root .wc-task-complete-icon {
    flex-shrink: 0;
    padding: 8px;
}

.cjb-demo-root .wc-task-row--completed .wc-task-row-title {
    text-decoration: line-through;
    opacity: 0.55;
}
