/* /css/crm.css */

/* Kanban Board Styling */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem; /* For scrollbar */
    min-height: calc(100vh - 200px); /* Adjust as needed */
}

.kanban-column {
    flex: 0 0 320px; /* Fixed width for columns */
    background-color: #f1f5f9; /* slate-100 */
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #475569; /* slate-600 */
    border-bottom: 2px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-cards {
    padding: 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
    space-y: 0.75rem;
}

.kanban-card {
    background-color: white;
    border-radius: 0.375rem;
    padding: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
    cursor: grab;
    transition: box-shadow 0.2s;
}
.kanban-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.kanban-card-title {
    font-weight: 600;
    color: #1e293b; /* slate-800 */
    margin-bottom: 0.25rem;
}
.kanban-card-meta {
    font-size: 0.75rem;
    color: #64748b; /* slate-500 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kanban-card-assignee {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
}

/* Priority & Status Badges */
.status-badge, .priority-badge {
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

/* Statuses */
.status-new, .status-open { color: #fff; background-color: #3b82f6; } /* blue-500 */
.status-in-progress { color: #fff; background-color: #f59e0b; } /* amber-500 */
.status-awaiting-reply, .status-pending { color: #1f2937; background-color: #fde047; } /* yellow-300 */
.status-resolved, .status-completed { color: #fff; background-color: #16a34a; } /* green-600 */
.status-in-stock { color: #059669; background-color: #d1fae5; } /* green-700/green-100 */
.status-low-stock { color: #b45309; background-color: #fef3c7; } /* amber-700/amber-100 */
.status-out-of-stock { color: #b91c1c; background-color: #fee2e2; } /* red-700/red-100 */

/* Priorities */
.priority-high { color: #dc2626; } /* red-600 */
.priority-medium { color: #f59e0b; } /* amber-500 */
.priority-low { color: #6b7280; } /* gray-500 */

/* Facilities Grid Styling */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.facility-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.facility-card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
.facility-card-body {
    padding: 1rem;
    flex-grow: 1;
}
.facility-card-footer {
    padding: 0.75rem 1rem;
    background-color: #f9fafb; /* gray-50 */
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #4b5563; /* gray-600 */
    display: flex;
    justify-content: space-between;
}