/* Service Item Edit Dialog Styles */

.service-item-dialog .dialog-title-content,
.meter-change-dialog .dialog-title-content {
    font-weight: bold;
    font-size: 1.2rem;
}

.service-item-dialog-body,
.meter-change-dialog-body {
    padding: 1rem;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
}

.expand-collapse-toolbar {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

/* Panel Section Styles */
.panel-section-wrapper {
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.panel-header:hover {
    background-color: #ebebeb;
}

.panel-title {
    font-weight: 600;
    color: #333;
}

.panel-section {
    padding: 1.5rem;
    background-color: #ffffff;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row.mt-3 {
    margin-top: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.col-md-4 {
    max-width: 33.333%;
}

.form-group.col-md-6 {
    max-width: 50%;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    white-space: nowrap;
}

.form-control {
    width: 100%;
}

.dialog-footer-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Grid subtitle */
.so-section-subtitle {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.so-empty-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Smooth scrolling */
.service-item-dialog-body::-webkit-scrollbar,
.meter-change-dialog-body::-webkit-scrollbar {
    width: 8px;
}

.service-item-dialog-body::-webkit-scrollbar-track,
.meter-change-dialog-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.service-item-dialog-body::-webkit-scrollbar-thumb,
.meter-change-dialog-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.service-item-dialog-body::-webkit-scrollbar-thumb:hover,
.meter-change-dialog-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-group.col-md-4,
    .form-group.col-md-6 {
        max-width: 100%;
    }
}


