/* src/sections/QuickQuoteSummary/QuickQuoteSummary.css */

.quick-quote-container .card {
    padding: 40px;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-metric-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(29, 78, 216, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Reverted min-height */
    min-height: 150px; 
}

.summary-metric-card .label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}

.summary-metric-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.settings-panel {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    /* Reverted min-height and display properties */
    min-height: auto; /* Allow height to be determined by content */
    display: block; /* Revert to block display */
}

.settings-panel h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

.settings-panel .form-group {
    margin-bottom: 15px;
}

.settings-panel .form-group:last-child {
    margin-bottom: 0;
}

.settings-panel .label {
    font-size: 0.9rem;
}

.settings-panel .input-field {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.add-item-dropdown-container {
    position: relative;
}

.add-item-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 50;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    display: none; /* Hidden by default */
}

.add-item-dropdown-menu.show {
    display: block;
}

.add-item-dropdown-menu .dropdown-item {
     display: block;
     width: 100%;
     padding: 10px 15px;
     text-align: left;
     border: none;
     background: none;
     cursor: pointer;
     font-size: 15px;
     color: #374151;
}

.add-item-dropdown-menu .dropdown-item:hover {
    background-color: #f3f4f6;
}

#qqEstimateTableBody .input-field {
    padding: 6px 10px;
    font-size: 0.95rem;
}

#qqEstimateTableBody .btn-red {
    padding: 6px 10px;
    font-size: 0.85em;
}

/* Style for the 'Type' column content */
#qqEstimateTableBody td:nth-child(2) { /* Selects the second column (Type) */
    text-align: center; /* Center the text content */
}
#qqEstimateTableBody td:nth-child(2) span {
    display: block; /* Ensure the span behaves like a block for centering */
    width: 100%; /* Take full width of its cell */
}


/* Dark Theme Adjustments */
body.dark-theme .settings-panel {
    background: #2d3748;
}
body.dark-theme .add-item-dropdown-menu {
    background-color: #2d3748;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
body.dark-theme .add-item-dropdown-menu .dropdown-item {
    color: #e2e8f0;
}
body.dark-theme .add-item-dropdown-menu .dropdown-item:hover {
    background-color: #4a5568;
}

/* Dark theme for table body text */
body.dark-theme #qqEstimateTableBody input.input-field {
    background-color: #4a5568;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark-theme #qqEstimateTableBody span.font-semibold {
    color: #e2e8f0; /* Ensure type text is visible in dark mode */
}

/* Dark theme for summary metric cards (including the new subtotal card) */
body.dark-theme .summary-metric-card {
    background: linear-gradient(135deg, #2a4365 0%, #2c5282 100%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
