@import "src/variables";
@import "@synerty/peek-plugin-base-js/src/styles/_variables";

:host {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;

    .settings-card {
        min-height: 0;
        overflow-y: auto;
        min-width: 600px;

        .card-title {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .title-buttons {
                display: flex;
                gap: $general_padding_1;
            }
        }

        .form-container {
            margin-top: $general_margin_2;

            nz-form-item {
                margin-bottom: $general_margin_2;
            }

            .coord-section {
                margin-bottom: $general_margin_2;

                h4 {
                    margin-bottom: $general_margin_1;
                    font-weight: 500;
                }

                .coord-group {
                    display: flex;
                    flex-wrap: wrap;
                    gap: $general_margin_2;

                    nz-form-item {
                        flex: 1 1 calc(50% - #{$general_margin_2});
                        min-width: 250px;
                    }
                }
            }

            .status-label {
                margin-left: $general_margin_1;
                font-weight: 500;
            }
        }
    }
}

nz-form-label {
    min-width: 220px;
}

.grid-sizes-table {
    margin-bottom: $general_margin_2;

    nz-input-number {
        width: 100%;
    }

    th,
    td {
        text-align: center;
    }

    .action-button-th {
        width: 60px;
        text-align: center;
    }

    .action-button {
        width: 60px;
        text-align: center;
        vertical-align: middle;
    }
}
