/* Global dialog styles */
.styled-dialog, .FluentDialog {
    min-width: 600px;
    max-width: 900px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #fff;
    position: relative;
}

.dialog-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.dialog-content {
    margin-bottom: 8px;
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

.dialog-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    z-index: 10;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}

    .dialog-close-btn:hover {
        color: #222;
    }

/* Compact labels and inputs */
.tight-label .fluent-text-field-label,
.tight-label .fluent-select-label,
.tight-label .fluent-combobox-label,
.tight-label label {
    margin-bottom: 0px !important;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-align: right;
    justify-self: end;
}

.tight-label .fluent-text-field-input,
.tight-label .fluent-select-input,
.tight-label .fluent-combobox-input,
.tight-label input {
    margin-top: 0 !important;
    font-size: 1.1rem;
    min-height: 36px;
    padding: 8px 12px;
}

/* --- GRID LAYOUT FOR FLUENT FIELDS --- */
.dialog-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2px 2px;
    align-items: center;
    width: 100%;
}

.dialog-grid-row {
    grid-column: 1 / -1;
}

/* Make Fluent fields use grid for label/input */
.dialog-grid .fluent-text-field,
.dialog-grid .fluent-select,
.dialog-grid .fluent-combobox {
    display: contents;
}

.dialog-grid .fluent-text-field-label,
.dialog-grid .fluent-select-label,
.dialog-grid .fluent-combobox-label {
    grid-column: 1;
    justify-self: end;
    text-align: right;
    font-weight: 500;
    color: #222;
    margin-right: 12px;
    min-width: 0;
}

.dialog-grid .fluent-text-field-input,
.dialog-grid .fluent-select-input,
.dialog-grid .fluent-combobox-input {
    grid-column: 2;
    min-width: 0;
    font-size: 1.1rem;
    min-height: 36px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}
