﻿/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: white;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 48px 24px 48px 0px;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 32px;
}

/* Floor Plan */
.floor-plan-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.floor-plan-image {
    max-width: 100%;
    height: 140px;
}

.materials-empty-image {
    max-width: 100%;
    height: 40px;
}

/* materials Section */
.materials-section {
    margin-top: 48px;
    display: flex;
    width: 100%;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    width: 100%;
}

.materials-grid {
    display: grid;
    max-width: 100%;
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.materials-card {
    background: #eeedee !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.materials-card-selected {
    background: #eeedee !important;
    border-radius: 16px !important;
    border: 2px solid #00707A !important;
    box-shadow: none !important;
    width: 100%;
    position: relative;
}

.materials-card .mud-card-content {
    padding: 24px !important;
}

/* Keep catalogue and custom category cards aligned, including the remove action. */
.category-card-item { display: flex; }
.category-card { display: flex; flex-direction: column; }
.category-card .mud-card-media { flex-shrink: 0; }
.category-card-content { display: flex; flex-direction: column; flex: 1; }
.category-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
.category-card-heading .mud-typography { min-width: 0; overflow-wrap: anywhere; }
.category-card-heading .mud-button-root { flex-shrink: 0; }
.category-card-price { margin-top: auto; }

.materials-header {
    display: flex;
}

.materials-header > div:first-child {
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

/* Icon buttons should stay together on the right */
.materials-header .mud-icon-button {
    flex-shrink: 0;
}

.materials-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.materials-title {
    font-size: 20px;
    font-weight: 600;
    color: #006B9E;
}

.add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5 !important;
}

.add-card:hover {
    background: #eeeeee !important;
}

.add-card .mud-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .main-content {
        padding: 24px;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }
}
