* {
    margin: 0;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 0;
}

/* Blazor special */
#blazor-error-ui {
    display: none;
}

/* App Container */
.page-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.mono{
    font-family: Monaco, 'Cascadia Code', 'Roboto Mono', monospace;;
}

.btn-add {
    background-color: limegreen;
}

.btn-delete {
    background-color: indianred;
}

.help-box {
    margin: 0 0 8px 0;
    color: grey;
    font-size: smaller;
    font-style: italic;
    user-select: none;
}

.structure-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.field-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.field-row > label {
    min-width: 110px;
    color: #444;
}

.field-row input[type="text"] {
    flex-grow: 1;
}

.inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.narrow {
    max-width: 100px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1px 2px;
    background-color: #fff;
}

.chip-input {
    width: 48px;
}

.structure-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
}

.structure-table td,
.structure-table th {
    border: 1px solid #ccc;
    padding: 2px 4px;
    text-align: left;
}

.structure-table select,
.structure-table input[type="text"] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

h5 {
    margin: 12px 0 4px 0;
}

.link-button {
    background: none;
    border: none;
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit; /* наследует шрифт от родителя */
}
.link-button:hover {
    color: #0050a3;
    text-decoration: underline;
}
.link-button:active {
    color: #003366;
}
.link-button:focus {
    outline: 1px solid #0066cc;
    outline-offset: 2px;
}

.invalid-instruction{
    text-decoration: crimson wavy underline;
}

/* Responsive Design */
@media (max-width: 850px) {
    .page-container {
        width: 100%;
        height: auto;
        flex: 1;
        min-height: 0;
        padding: 8px;
        gap: 8px;
    }
}