/* /Components/Goals/OrgGoalBabystepsPanel.razor.rz.scp.css */
/* ============================================
   ORG GOAL BABYSTEPS PANEL - PRODUCTION READY
   Clean, modern look with smooth scrolling
   ============================================ */

/* ============================================
   ROOT CONTAINER
   ============================================ */

.org-detail-root[b-e72tdu5tva] {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================
   HEADER - Progress indicators
   ============================================ */

.org-detail-header[b-e72tdu5tva] {
    flex-shrink: 0;    
}

/* ============================================
   SCROLLABLE TASK LIST
   ============================================ */

.org-detail-scroll[b-e72tdu5tva] {
    flex: 1;    
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 420px;  
    
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

    /* Ensure nested MudPaper components don't add gray */
    .org-detail-scroll[b-e72tdu5tva]  .mud-paper {
        background-color: transparent !important;
    }

/* Empty state styling */
.org-empty-state[b-e72tdu5tva] {
    padding: 32px 16px;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.org-detail-scroll[b-e72tdu5tva]::-webkit-scrollbar {
    width: 8px;
}

.org-detail-scroll[b-e72tdu5tva]::-webkit-scrollbar-track {
    background: transparent;
}

.org-detail-scroll[b-e72tdu5tva]::-webkit-scrollbar-thumb {
    background: var(--mud-palette-divider);
    border-radius: 4px;
}

    .org-detail-scroll[b-e72tdu5tva]::-webkit-scrollbar-thumb:hover {
        background: var(--mud-palette-divider-light);
    }

/* ============================================
   TASK ITEMS - Override spacing
   ============================================ */

/* Tasks should have consistent spacing */
.org-detail-scroll[b-e72tdu5tva]  .bs-item {
    margin-bottom: 8px;
}

    .org-detail-scroll[b-e72tdu5tva]  .bs-item:last-child {
        margin-bottom: 0;
    }

/* ============================================
   RESPONSIVE - MOBILE & TABLET
   ============================================ */

@media (max-width: 959px) {
    .org-detail-scroll[b-e72tdu5tva] {
        max-height: 380px;
    }

    .org-detail-header[b-e72tdu5tva] {
        padding: 8px 10px;
    }
}

@media (max-width: 600px) {
    .org-detail-scroll[b-e72tdu5tva] {
        max-height: 320px;
        padding: 6px;
    }

    .org-detail-header[b-e72tdu5tva] {
        padding: 6px 8px;
    }
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.org-detail-scroll .py-6[b-e72tdu5tva] {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus management for scrollable area */
.org-detail-scroll:focus[b-e72tdu5tva] {
    outline: 2px solid rgba(33, 150, 243, 0.5);
    outline-offset: -2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .org-detail-scroll[b-e72tdu5tva] {
        scroll-behavior: auto;
    }
}

/* ============================================
   THEME-SPECIFIC ADJUSTMENTS
   ============================================ */

/* Light theme */
.aktheme .org-detail-header[b-e72tdu5tva] {
    
}

.aktheme .org-detail-scroll[b-e72tdu5tva] {
    
}

/* Dark theme would go here if needed */
/* /Components/Goals/OrgGoalRowComponent.razor.rz.scp.css */
/* ============================================
   ORG GOAL ROW COMPONENT - PRODUCTION READY
   Smooth animations, no flicker
   ============================================ */

.org-goal-row[b-ppp66tb87z] {
    margin-bottom: 14px;
}

.org-goal-detail[b-ppp66tb87z] {
    height: 100%;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid var(--mud-palette-divider);
}

/* ============================================
   SHELL CONTAINER
   ============================================ */

.org-row-shell[b-ppp66tb87z] {
    background: transparent !important;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    width: 100%;
    /* Smooth height transition - prevents flicker */
    transition: all 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

    .org-row-shell.is-collapsed[b-ppp66tb87z] {
        min-height: 170px;
    }

    .org-row-shell.is-expanded[b-ppp66tb87z] {
        /* Let content determine height */
    }

/* ============================================
   FLEX LAYOUT - Proper structure
   ============================================ */

.org-row-flex[b-ppp66tb87z] {
    display: flex;
    width: 100%;
    align-items: flex-start; /* Top-aligned */
}

/* ============================================
   LEFT COLUMN - Goal Card
   ============================================ */

.org-left[b-ppp66tb87z] {
    flex: 0 0 50%;
    max-width: 50%;
    align-self: flex-start;
    /* Smooth transition when expanding */
    transition: flex-basis 250ms cubic-bezier(0.4, 0.0, 0.2, 1), max-width 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* When expanded, left stays at 50% */
.org-row-shell.is-expanded .org-left[b-ppp66tb87z] {
    flex: 0 0 50%;
    max-width: 50%;
}

/* ============================================
   RIGHT COLUMN - Baby Steps Panel
   ============================================ */

.org-right[b-ppp66tb87z] {
    flex: 0 0 50%;
    max-width: 50%;
    border-left: 1px solid var(--mud-palette-divider);
    overflow: hidden;
    align-self: flex-start;
    /* Smooth slide-in animation - key to preventing flicker */
    transition: flex-basis 250ms cubic-bezier(0.4, 0.0, 0.2, 1), max-width 250ms cubic-bezier(0.4, 0.0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0.0, 0.2, 1), transform 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

    /* Hidden state - fully collapsed */
    .org-right.hide[b-ppp66tb87z] {
        flex-basis: 0 !important;
        max-width: 0 !important;
        opacity: 0;
        border-left: none;
        pointer-events: none;
        overflow: hidden;
        /* Slide out to the right */
        transform: translateX(20px);
    }

        .org-right.hide .org-right-inner[b-ppp66tb87z] {
            padding: 0 !important;
            max-height: 0 !important;
            overflow: hidden !important;
        }

    /* Revealed state - slides in from right */
    .org-right.reveal[b-ppp66tb87z] {
        flex-basis: 50%;
        max-width: 50%;
        opacity: 1;
        pointer-events: auto;
        /* Slide in from right */
        transform: translateX(0);
    }

/* ============================================
   INNER CONTENT CONTAINER
   ============================================ */

.org-right-inner[b-ppp66tb87z] {
    padding: 10px;
    max-height: 520px;
    overflow: hidden;
    /* Prevent layout shift during animation */
    will-change: padding, max-height;
}

    /* Scrollable area inside */
    .org-right-inner .org-detail-scroll[b-ppp66tb87z] {
        max-height: 480px;
        overflow-y: auto;
    }

/* ============================================
   MOBILE / TABLET - Stack vertically
   ============================================ */

@media (max-width: 959px) {
    .org-row-flex[b-ppp66tb87z] {
        flex-direction: column;
    }

    .org-left[b-ppp66tb87z] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .org-right[b-ppp66tb87z] {
        flex: 0 0 100%;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid var(--mud-palette-divider);
        transform: translateY(-20px); /* Slide down instead of right */
    }

        .org-right.hide[b-ppp66tb87z] {
            max-height: 0 !important;
            opacity: 0;
            overflow: hidden;
            border-top: none;
            transform: translateY(-20px);
        }

        .org-right.reveal[b-ppp66tb87z] {
            transform: translateY(0);
        }

        .org-right.hide .org-right-inner[b-ppp66tb87z] {
            padding: 0 !important;
        }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Use GPU acceleration for smooth animations */
.org-right[b-ppp66tb87z] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

    /* Prevent text/content from rendering during animation */
    .org-right.hide *[b-ppp66tb87z] {
        visibility: hidden;
    }

    .org-right.reveal *[b-ppp66tb87z] {
        visibility: visible;
    }

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion support - no animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .org-row-shell[b-ppp66tb87z],
    .org-left[b-ppp66tb87z],
    .org-right[b-ppp66tb87z] {
        transition: none !important;
        transform: none !important;
    }

        .org-right.hide[b-ppp66tb87z] {
            transform: none !important;
        }

        .org-right.reveal[b-ppp66tb87z] {
            transform: none !important;
        }
}

/* ============================================
   THEME ADJUSTMENTS
   ============================================ */

.aktheme .org-row-shell[b-ppp66tb87z] {
    box-shadow: var(--tw-card-box-shadow);
}
/* /Components/Notes/DisplayNote.razor.rz.scp.css */
/* WhatsApp-Style Chat Container */
.wp-note-container[b-9wsoa63fn3] {
    display: flex;
    margin-bottom: 12px;
    width: 100%;
    padding: 0 8px;
}

/* Current user messages - align right */
.wp-current-user-container[b-9wsoa63fn3] {
    justify-content: flex-end;
}

/* Other users messages - align left */
.wp-other-user-container[b-9wsoa63fn3] {
    justify-content: flex-start;
}

/* Message Bubble Base */
.wp-message-bubble[b-9wsoa63fn3] {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    word-wrap: break-word;
}

/* Current user bubble - blue/green tint (right side) */
.wp-current-user-bubble[b-9wsoa63fn3] {
    background-color: #dcf8c6; /* WhatsApp green */
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Other user bubble - gray tint (left side) */
.wp-other-user-bubble[b-9wsoa63fn3] {
    background-color: #ffffff;
    margin-right: auto;
    border-bottom-left-radius: 2px;
    border: 1px solid #e5e5e5;
}

/* Author name styling */
.wp-author-name[b-9wsoa63fn3] {
    font-weight: 600;
    font-size: 13px;
    color: #3b4a54;
    margin-bottom: 4px;
}

/* Message text */
.wp-user-comment-note[b-9wsoa63fn3] {
    font-size: 14px;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 2px;
    white-space: pre-wrap;
}

/* Timestamp styling */
.timestamp[b-9wsoa63fn3] {
    font-size: 11px;
    color: #667781;
    text-align: right;
    margin-top: 4px;
    display: block;
}

/* Image attachment thumbnail container */
.imgThubCrp[b-9wsoa63fn3] {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.ImgThumbCont[b-9wsoa63fn3] {
    max-width: 100%;
    position: relative;
}

.attachment-image[b-9wsoa63fn3] {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

    .attachment-image:hover[b-9wsoa63fn3] {
        opacity: 0.9;
    }

/* File attachment button */
.NoteComment-file[b-9wsoa63fn3] {
    margin-bottom: 8px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .wp-current-user-bubble[b-9wsoa63fn3] {
        background-color: #005c4b; /* Darker green for dark mode */
    }

    .wp-other-user-bubble[b-9wsoa63fn3] {
        background-color: #1f2c34;
        border-color: #2a3942;
    }

    .wp-user-comment-note[b-9wsoa63fn3] {
        color: #e9edef;
    }

    .wp-author-name[b-9wsoa63fn3] {
        color: #8696a0;
    }

    .timestamp[b-9wsoa63fn3] {
        color: #8696a0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-message-bubble[b-9wsoa63fn3] {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .wp-message-bubble[b-9wsoa63fn3] {
        max-width: 90%;
    }
}
/* /Components/TaskActionsDialog/TaskItemComponent.razor.rz.scp.css */
/* ============================================
   TASK ITEM COMPONENT - PRODUCTION READY
   Clean zebra striping with overdue accents
   ============================================ */

/* ============================================
   BASE ITEM STYLES
   ============================================ */

.bs-item[b-p4tin82opd] {
    cursor: pointer;
    position: relative;

}

    /* ============================================
   ZEBRA STRIPING - Theme-aware
   ============================================ */

    /* Even rows */
    .bs-zebra-even[b-p4tin82opd] {
        
    }

    /* Odd rows - slightly different shade */
    .bs-zebra-odd[b-p4tin82opd] {
        
    }

    /* ============================================
   STATUS-BASED STYLES
   ============================================ */

    /* Open tasks - default state */
    .bs-open[b-p4tin82opd] {
        /* Uses zebra pattern above */
    }

    /* Completed tasks - muted appearance */
    .bs-done[b-p4tin82opd] {
        
        
    }

        .bs-done *[b-p4tin82opd] {
            
        }

    /* ============================================
   OVERDUE ACCENT - CRITICAL FEATURE
   ============================================ */

    .bs-overdue[b-p4tin82opd] {
        
    }

        /* Overdue accent bar */
        .bs-overdue .bs-accent[b-p4tin82opd] {
            background-color: #dc3545 !important;
            width: 2px !important;
        }

        /* Make overdue VERY obvious on hover */
        .bs-overdue:hover[b-p4tin82opd] {
            border-left-color: #c82333;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
        }

    /* ============================================
   HOVER STATES
   ============================================ */

    .bs-open:hover[b-p4tin82opd] {

        border-color: rgba(33, 150, 243, 0.6);
        
    }

    /* Expanded state (hover + description showing) */
    .bs-expanded[b-p4tin82opd] {
        border-color: rgba(33, 150, 243, 0.4);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    /* Don't expand completed items */
    .bs-done:hover[b-p4tin82opd] {
        transform: none;
        box-shadow: none;
    }

/* ============================================
   LEFT ACCENT BAR - Status indicator
   ============================================ */

.bs-accent[b-p4tin82opd] {
    width: 3px;
    height: 24px;
    border-radius: 2px;
    background-color: rgba(33, 150, 243, 0.6);
    transition: all 150ms ease;
}



/* On hover, make accent more prominent */
.bs-open:hover .bs-accent[b-p4tin82opd] {

    width: 4px;
}

.bs-expanded .bs-accent[b-p4tin82opd] {

    width: 4px;
}

/* ============================================
   CHECKBOX / CHECK ICON STYLES
   ============================================ */

.bs-check-btn[b-p4tin82opd] {
    opacity: 0.7;
    transition: opacity 150ms ease, transform 150ms ease;
}

    .bs-check-btn:hover[b-p4tin82opd] {
        opacity: 1;
        transform: scale(1.1);
    }

.bs-check-done[b-p4tin82opd] {
    color: rgba(76, 175, 80, 0.9);
    font-size: 28px;
}

/* ============================================
   FIRE ICON - Hot tasks
   ============================================ */

.bs-fire[b-p4tin82opd] {
    animation: flicker-b-p4tin82opd 1.5s ease-in-out infinite;
}

@keyframes flicker-b-p4tin82opd {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* ============================================
   HOT TOOLTIP - Enhanced info display
   ============================================ */

.hot-tooltip-paper[b-p4tin82opd] {
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    max-width: 300px;
}

    .hot-tooltip-paper .mud-text[b-p4tin82opd] {
        color: white !important;
    }

    .hot-tooltip-paper .mud-divider[b-p4tin82opd] {
        border-color: rgba(255, 255, 255, 0.2);
    }

/* ============================================
   SPACING & LAYOUT
   ============================================ */

.bs-item:first-child[b-p4tin82opd] {
    margin-top: 0;
}

.bs-item:last-child[b-p4tin82opd] {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE - Tablet & Mobile
   ============================================ */

@media (max-width: 960px) {
    /* Tablet - slightly larger tap targets */
    .bs-item[b-p4tin82opd] {
        padding: 14px;
        margin-bottom: 10px;
    }

    .bs-check-btn[b-p4tin82opd] {
        /* Larger touch target */
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    /* Mobile - compact but still tappable */
    .bs-item[b-p4tin82opd] {
        padding: 10px;
        margin-bottom: 6px;
    }

        .bs-overdue[b-p4tin82opd] {
            padding-left: 6px;
        }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus indicator for keyboard navigation */
.bs-item:focus-visible[b-p4tin82opd] {
    outline: 2px solid rgba(33, 150, 243, 0.8);
    outline-offset: 2px;
}

.bs-overdue:focus-visible[b-p4tin82opd] {
    outline-color: #dc3545;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bs-item[b-p4tin82opd] {
        border-width: 2px;
    }

    .bs-accent[b-p4tin82opd] {
        width: 4px;
    }

    .bs-overdue[b-p4tin82opd] {
        border-left-width: 5px;
        padding-left: 7px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bs-item[b-p4tin82opd],
    .bs-accent[b-p4tin82opd],
    .bs-check-btn[b-p4tin82opd],
    .bs-fire[b-p4tin82opd] {
        transition: none;
        animation: none;
    }
}

/* ============================================
   THEME-SPECIFIC OVERRIDES
   ============================================ */

/* Light theme (Adult) - subtle zebra */
.aktheme .bs-zebra-even[b-p4tin82opd] {

}

.aktheme .bs-zebra-odd[b-p4tin82opd] {

}

/* Dark theme would go here when needed */
/* You can add theme2-car specific overrides if needed */
/* /Components/TaskActionsDialog/TaskTemplateCardComponent.razor.rz.scp.css */
/* ============================================
   TASK TEMPLATE CARD - Matches TaskItemComponent style
   ============================================ */

/* ============================================
   BASE CARD STYLES
   ============================================ */

.template-card[b-46jue37a4n] {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-divider);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    background-color: var(--mud-palette-surface);
    overflow: hidden;
}

    /* ============================================
   ZEBRA STRIPING - Matches TaskItem pattern
   ============================================ */

    .template-card.template-zebra-even[b-46jue37a4n] {
        background-color: var(--mud-palette-surface);
    }

    .template-card.template-zebra-odd[b-46jue37a4n] {
        background-color: var(--mud-palette-surface);
        opacity: 0.95;
    }

    /* ============================================
   STATUS STATES
   ============================================ */

    /* Deleted templates - muted appearance */
    .template-card.template-deleted[b-46jue37a4n] {
        opacity: 0.6;
        cursor: not-allowed;
    }

        .template-card.template-deleted *[b-46jue37a4n] {
            pointer-events: none;
        }

    /* Busy/syncing state */
    .template-card.template-busy[b-46jue37a4n] {
        opacity: 0.8;
    }

    /* ============================================
   HOVER STATES
   ============================================ */

    .template-card:hover:not(.template-deleted):not(.template-busy)[b-46jue37a4n] {
        background-color: rgba(33, 150, 243, 0.08);
        border-color: rgba(33, 150, 243, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

/* ============================================
   CARD SECTIONS
   ============================================ */

/* Left status strip */
.template-card-status[b-46jue37a4n] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.02);
    border-right: 1px solid var(--mud-palette-divider);
}

.template-status-icon[b-46jue37a4n] {
    font-size: 24px;
}

    .template-status-icon.active[b-46jue37a4n] {
        color: rgba(33, 150, 243, 0.7);
    }

    .template-status-icon.deleted[b-46jue37a4n] {
        color: rgba(220, 53, 69, 0.7);
    }

/* Main content area */
.template-card-content[b-46jue37a4n] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 12px;
    min-width: 0; /* Allow text truncation */
}

/* Date badge */
.template-card-date[b-46jue37a4n] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.04);
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

/* Title and description */
.template-card-info[b-46jue37a4n] {
    flex: 1;
    min-width: 0; /* Allow text truncation */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.template-card-title[b-46jue37a4n] {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-card-description[b-46jue37a4n] {
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Instance counters */
.template-card-counters[b-46jue37a4n] {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Action buttons */
.template-card-actions[b-46jue37a4n] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

@media (max-width: 960px) {
    /* Tablet - stack info vertically */
    .template-card-content[b-46jue37a4n] {
        flex-wrap: wrap;
        padding: 10px;
    }

    .template-card-info[b-46jue37a4n] {
        flex-basis: 100%;
        order: 1;
    }

    .template-card-date[b-46jue37a4n] {
        order: 2;
    }

    .template-card-counters[b-46jue37a4n] {
        order: 3;
    }

    .template-card-actions[b-46jue37a4n] {
        order: 4;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    /* Mobile - more compact */
    .template-card-content[b-46jue37a4n] {
        padding: 8px;
        gap: 8px;
    }

    .template-card-status[b-46jue37a4n] {
        width: 40px;
    }

    .template-status-icon[b-46jue37a4n] {
        font-size: 20px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus indicator for keyboard navigation */
.template-card:focus-visible[b-46jue37a4n] {
    outline: 2px solid rgba(33, 150, 243, 0.8);
    outline-offset: 2px;
}

.template-card.template-deleted:focus-visible[b-46jue37a4n] {
    outline-color: rgba(220, 53, 69, 0.8);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .template-card[b-46jue37a4n] {
        border-width: 2px;
    }

    .template-card-status[b-46jue37a4n] {
        border-right-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .template-card[b-46jue37a4n] {
        transition: none;
    }
}

/* ============================================
   THEME-SPECIFIC OVERRIDES
   ============================================ */

/* Light theme - subtle zebra */
.aktheme .template-card.template-zebra-even[b-46jue37a4n] {
    background-color: rgba(255, 255, 255, 0.9);
}

.aktheme .template-card.template-zebra-odd[b-46jue37a4n] {
    background-color: rgba(0, 0, 0, 0.02);
}
/* /Components/TaskActionsDialog/Templateaddoreditcomponent.razor.rz.scp.css */
/* ============================================
   TEMPLATE EDITOR COMPONENT - SCOPED STYLES
   Clean, professional form styling
   ============================================ */

/* ============================================
   FORM CONTAINER
   ============================================ */

.template-editor-form[b-x787uwrwjm] {
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
}

/* ============================================
   TITLE
   ============================================ */

.template-editor-title[b-x787uwrwjm] {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 8px;
}

/* ============================================
   DATE PICKER - FIXED POSITIONING
   ============================================ */

.template-editor-datepicker[b-x787uwrwjm] {
    /* NO absurd margin! */
    /* Date picker dropdown will use proper z-index instead */
    position: relative;
}

    /* Ensure date picker dropdown appears above form elements */
    .template-editor-datepicker[b-x787uwrwjm]  .mud-picker-content {
        z-index: 1300; /* Above dialog content but below dialog backdrop */
    }

/* ============================================
   ACTION BUTTONS
   ============================================ */

.template-editor-actions[b-x787uwrwjm] {
    padding-top: 8px;
    gap: 8px;
}

/* ============================================
   FORM FIELD IMPROVEMENTS
   ============================================ */

/* Add subtle focus glow to all fields */
.template-editor-form[b-x787uwrwjm]  .mud-input-outlined:focus-within {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* Make helper text more subtle */
.template-editor-form[b-x787uwrwjm]  .mud-input-helper-text {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

/* Character counter styling */
.template-editor-form[b-x787uwrwjm]  .mud-input-counter {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE - TABLET OPTIMIZATION
   ============================================ */

@media (max-width: 960px) {
    .template-editor-form[b-x787uwrwjm] {
        padding: 14px;
    }

    /* Stack buttons on narrow tablets */
    .template-editor-actions[b-x787uwrwjm] {
        flex-direction: column;
        align-items: stretch;
    }

        .template-editor-actions[b-x787uwrwjm]  .mud-button {
            width: 100%;
        }
}

@media (max-width: 600px) {
    .template-editor-form[b-x787uwrwjm] {
        padding: 12px;
    }

    .template-editor-title[b-x787uwrwjm] {
        font-size: 1.1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
.template-editor-form[b-x787uwrwjm]  .mud-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .template-editor-form[b-x787uwrwjm]  * {
        transition: none !important;
        animation: none !important;
    }
}
/* /Pages/Goals/Detail/GoalDetailDialog.razor.rz.scp.css */
/* ============================================
   GOAL DETAIL DIALOG - PRODUCTION READY
   Clean, minimal styles that work WITH the theme system
   ============================================ */

/* ============================================
   DIALOG CONTAINER - Fixed height with flex
   ============================================ */

.editGoalDialogRefMaster[b-1yruqsgxvi] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    /* Dialog content - fixed height container */
    .editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-dialog-content {
        height: 75vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0; /* Remove default padding - tabs will handle spacing */
    }

/* ============================================
   TAB SYSTEM - Clean hierarchy
   ============================================ */

/* Main container for tabs */
.Scroll-Cont-fix-HF-Master[b-1yruqsgxvi] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent;
}

/* Sticky tabs at top */
.sticky-tabs-ak[b-1yruqsgxvi] {
    flex-shrink: 0;
    background-color: transparent;
    margin-bottom: 0;
    padding-top: 8px;
}

/* MudBlazor tabs structure */
.Scroll-Cont-fix-HF-Master[b-1yruqsgxvi]  .mud-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.Scroll-Cont-fix-HF-Master[b-1yruqsgxvi]  .mud-tabs-panels {
    flex: 1;
    overflow: hidden;
    background-color: transparent;
}

.Scroll-Cont-fix-HF-Master[b-1yruqsgxvi]  .mud-tab-panel {
    height: 100%;
    overflow: hidden;
    padding: 0;
    background-color: transparent;
}

/* ============================================
   TAB CONTENT PANELS - Consistent structure
   ============================================ */

/* Basic Info Tab */
.GoalbasicInfoTab[b-1yruqsgxvi] {
    height: 100%;
    overflow: auto;
    background-color: transparent;
}

.panel-scrollbar[b-1yruqsgxvi] {
    height: 100%;
    overflow: auto;
    padding: 16px;
    background-color: transparent;
}

.goal-detailHeight-h[b-1yruqsgxvi] {
    height: 100%;
    background-color: transparent;
}

/* Steps Tab - Special layout with sticky quick-add */
.steps-panel[b-1yruqsgxvi] {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent;
}

.steps-sticky[b-1yruqsgxvi] {
    margin-top: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;    
    border-bottom: 1px solid var(--mud-palette-divider);
}

.steps-scroll[b-1yruqsgxvi] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background-color: transparent;
}


/* ============================================
   ADMIN TAB - Fixed layout (no phantom scroll)
   ============================================ */

/* Main admin container - NO fixed height */
.admin-panel-container[b-1yruqsgxvi] {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    min-height: 0; /* Allow natural height */
}

/* Loading state */
.admin-loading[b-1yruqsgxvi] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
}

/* Header with sync button */
.admin-header[b-1yruqsgxvi] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

/* Nested tabs styling */
.admin-nested-tabs[b-1yruqsgxvi] {
    flex: 1;
    min-height: 0;
}

/* VIEW TAB - Scrollable list */
.admin-view-scroll[b-1yruqsgxvi] {
    max-height: calc(75vh - 180px); /* Dialog height minus header/tabs */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

/* Template cards spacing */
.admin-template-card[b-1yruqsgxvi] {
    margin-bottom: 8px;
}

    .admin-template-card:last-child[b-1yruqsgxvi] {
        margin-bottom: 0;
    }

/* Empty state */
.admin-empty-state[b-1yruqsgxvi] {
    padding: 48px 16px;
}

/* ADD-EDIT TAB - Natural height (no scroll) */
.admin-form-container[b-1yruqsgxvi] {
    padding: 8px 0;
    /* NO fixed height - form determines height */
    /* NO overflow - let content flow naturally */
}

/* Override MudTabs defaults for nested admin tabs */
.admin-nested-tabs[b-1yruqsgxvi]  .mud-tabs-panels {
    padding: 0;
    background-color: transparent;
}

.admin-nested-tabs[b-1yruqsgxvi]  .mud-tab-panel {
    padding: 0;
    background-color: transparent;
}

/* Scrollbar styling for view tab */
.admin-view-scroll[b-1yruqsgxvi]::-webkit-scrollbar {
    width: 8px;
}

.admin-view-scroll[b-1yruqsgxvi]::-webkit-scrollbar-track {
    background: transparent;
}

.admin-view-scroll[b-1yruqsgxvi]::-webkit-scrollbar-thumb {
    background: var(--mud-palette-divider);
    border-radius: 4px;
}

    .admin-view-scroll[b-1yruqsgxvi]::-webkit-scrollbar-thumb:hover {
        background: var(--mud-palette-divider-light);
    }

/* ============================================
   FORCE TRANSPARENCY - Let theme colors show
   ============================================ */

/* Remove ALL gray backgrounds from MudBlazor components */
.editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-grid,
.editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-grid-item,
.editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-paper {
    background-color: transparent !important;
}

/* Except for cards and specific components that SHOULD have backgrounds */
.editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-card {
    background-color: var(--mud-palette-surface) !important;
}

/* ============================================
   SCROLLBAR STYLING - Consistent across tabs
   ============================================ */

.panel-scrollbar[b-1yruqsgxvi]::-webkit-scrollbar,
.steps-scroll[b-1yruqsgxvi]::-webkit-scrollbar,
.GoalbasicInfoTab[b-1yruqsgxvi]::-webkit-scrollbar {
    width: 8px;
}

.panel-scrollbar[b-1yruqsgxvi]::-webkit-scrollbar-track,
.steps-scroll[b-1yruqsgxvi]::-webkit-scrollbar-track,
.GoalbasicInfoTab[b-1yruqsgxvi]::-webkit-scrollbar-track {
    background: transparent;
}

.panel-scrollbar[b-1yruqsgxvi]::-webkit-scrollbar-thumb,
.steps-scroll[b-1yruqsgxvi]::-webkit-scrollbar-thumb,
.GoalbasicInfoTab[b-1yruqsgxvi]::-webkit-scrollbar-thumb {
    background: var(--mud-palette-divider);
    border-radius: 4px;
}

    .panel-scrollbar[b-1yruqsgxvi]::-webkit-scrollbar-thumb:hover,
    .steps-scroll[b-1yruqsgxvi]::-webkit-scrollbar-thumb:hover,
    .GoalbasicInfoTab[b-1yruqsgxvi]::-webkit-scrollbar-thumb:hover {
        background: var(--mud-palette-divider-light);
    }

/* ============================================
   RESPONSIVE - Tablet optimized
   ============================================ */

@media (max-width: 960px) {
    .editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-dialog-content {
        height: 80vh; /* Slightly taller on tablet for better use of screen */
    }

    .steps-sticky[b-1yruqsgxvi] {
        padding: 8px 12px;
    }

    .steps-scroll[b-1yruqsgxvi] {
        padding: 12px;
    }

    .panel-scrollbar[b-1yruqsgxvi] {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-dialog-content {
        height: 85vh; /* Even taller on phone */
    }

    .steps-sticky[b-1yruqsgxvi] {
        padding: 6px 8px;
    }

    .steps-scroll[b-1yruqsgxvi] {
        padding: 8px;
    }

    .panel-scrollbar[b-1yruqsgxvi] {
        padding: 8px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus indicators for keyboard navigation */
.editGoalDialogRefMaster[b-1yruqsgxvi]  .mud-tab:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .editGoalDialogRefMaster *[b-1yruqsgxvi] {
        transition: none !important;
        animation: none !important;
    }
}
/* /Pages/Goals/GoalOverviewPage.razor.rz.scp.css */
.goals-grid[b-jccrdcqidv] {
    width: 100%;
}

.goals-row[b-jccrdcqidv] {
    margin-top: 14px;
}

/* Optional: keep private row consistent with the org rows */
.goals-cell > *[b-jccrdcqidv] {
    width: 100%;
}
