/* ========================================
   Kanban Board
   ======================================== */
#kanban-board {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}
.kanban-column {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 1rem;
    min-height: 500px;
    width: 300px;
}
.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}
.column-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
}
.column-count {
    background: var(--color-background);
    color: var(--color-text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.column-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100px;
}
.deal-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    cursor: move;
    transition: all 0.2s;
}
.deal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.deal-card.sortable-ghost {
    opacity: 0.4;
    background: var(--color-background);
}
.deal-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.deal-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.deal-customer {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.deal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.deal-probability {
    background: var(--color-background);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.kanban-card {
    position: relative;
}
.card-edit {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--color-text-muted);
    background: var(--color-background);
    text-decoration: none;
    opacity: 0;
    transition: all 0.2s ease;
}
.kanban-card:hover .card-edit {
    opacity: 1;
}
.card-edit:hover {
    color: var(--color-primary);
    background: rgba(67, 97, 238, 0.1);
}
/* ========================================
   Card Components
   ======================================== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}
.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header h3::before {
    font-size: 1.25rem;
    opacity: 0.8;
}
.card-body {
    padding: 0;
}
/* Services Summary Styling */
.card-body .ggrid > div {
    padding: 1.5rem 1rem;
    background: var(--color-background);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.card-body .ggrid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}
.card-body .ggrid > div h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}
.card-body .ggrid > div .text-muted {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* ========================================
   Table Summary
   ======================================== */
.table-summary {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.summary-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}
.summary-unit {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
@media (max-width: 768px) {
    .table-summary {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* ========================================
   Image Picker - Variant Image Selection
   ======================================== */
.image-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}
.image-picker-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--color-border);
    transition: all 0.2s ease;
    background: var(--color-background);
    display: block;
}
.image-picker-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}
/* Hide the radio button */
.image-picker-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* Selected state via radio :checked */
.image-picker-item:has(input:checked) {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}
.image-picker-item .checkmark {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}
.image-picker-item .checkmark::before {
    content: '✓';
}
.image-picker-item:has(input:checked) .checkmark {
    display: flex;
}
.image-picker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-picker-empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
}
.hint {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}