/* 
CHANGELOG: deals_kanban_fullview.css
Created: March 25, 2025
Author: Claude
Purpose: Show all kanban stages simultaneously in one view
Route: /crm/deals/pipeline
Blueprint: deals_routes_blueprint.py
Template: deals_kanban_board.html

This CSS adjusts the kanban board layout to display all stages at once,
providing a complete overview of the pipeline status without scrolling.
Each column automatically adjusts its width to fit on screen.

IMPORTANT: All class names are prefixed with "deals_fullview_" to ensure
CSS selector uniqueness and prevent conflicts with other stylesheets.
*/

/* Full-width container */
.deals_fullview_container {
    width: 95%;
    max-width: 95%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Flexbox layout for kanban container */
.deals_fullview_kanban_container {
    display: flex;
    width: 95%;
    margin: 0 auto;
    gap: 03px; /* Space between columns */
}

/* Auto-sizing stage columns */
.deals_fullview_stage {
    flex: 1; /* Equal width columns */
    min-width: 0; /* Allow columns to shrink below content size */
    max-width: none; /* Remove any max-width constraints */
    margin-right: 0; /* Remove default margin */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Stage header styling */
.deals_fullview_stage_header {
    padding: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
}

/* Compact stage title */
.deals_fullview_stage_title {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card container with vertical scrolling */
.deals_fullview_cards {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 8px;
}

/* Compact card styling */
.deals_fullview_card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Card title with ellipsis for overflow */
.deals_fullview_card_title {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Company name styling */
.deals_fullview_card_company {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card footer layout */
.deals_fullview_card_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Value display */
.deals_fullview_card_value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact badge */
.deals_fullview_badge {
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    font-size: 0.75rem;
    min-width: 35px;
    text-align: center;
}

/* Media queries for different screen sizes */
@media (max-width: 1400px) {
    /* Further compact cards on medium screens */
    .deals_fullview_card {
        padding: 6px;
    }
    
    .deals_fullview_card_title, 
    .deals_fullview_card_company {
        font-size: 0.8rem;
    }
    
    .deals_fullview_card_footer {
        font-size: 0.75rem;
    }
}

@media (max-width: 1100px) {
    /* Stack value and badge on smaller screens */
    .deals_fullview_card_footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deals_fullview_badge {
        margin-top: 4px;
    }
}

/* Zoom controls for adjusting card density */
.deals_fullview_zoom_controls {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
}

.deals_fullview_zoom_button {
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.deals_fullview_zoom_button:hover {
    background-color: #e9ecef;
}

/* Card density variations */
.deals_fullview_container.compact .deals_fullview_card {
    padding: 4px;
    margin-bottom: 4px;
}

.deals_fullview_container.compact .deals_fullview_card_title {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.deals_fullview_container.compact .deals_fullview_card_company {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.deals_fullview_container.comfortable .deals_fullview_card {
    padding: 12px;
    margin-bottom: 12px;
}
/* Add these styles to your deals_kanban_fullview.css file */
.deals_fullview_card {
    cursor: grab;
}

.deals_fullview_card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.deals_fullview_cards.dragover {
    background-color: rgba(0, 0, 0, 0.05);
}
