﻿.ailment-register-page {
    display: grid;
    gap: 14px;
}

.ailment-register-page__header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.register-card {
    border: 1px solid #d6deed;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.field {
    display: grid;
    gap: 6px;
}

.field--wide {
    grid-column: span 2;
}

.field span {
    font-size: 0.84rem;
    color: #22314f;
    font-weight: 600;
}

.field select,
.field input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #bfcce3;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.92rem;
}

.field input.is-readonly {
    background: #f3f6fc;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save,
.btn-cancel {
    border: 1px solid #264b8f;
    background: #2f66cc;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancel {
    border-color: #b8c6de;
    background: #fff;
    color: #2b3c5b;
}

#msg {
    font-size: 0.84rem;
    color: #1f6c2f;
}

#msg.is-error {
    color: #b02323;
}

.register-note {
    margin: 10px 0 0;
    color: #4a5a77;
    font-size: 0.86rem;
}

.confirm-dialog {
    border: none;
    padding: 0;
    border-radius: 12px;
    max-width: 560px;
    width: calc(100% - 24px);
}

.confirm-dialog::backdrop {
    background: rgba(12, 23, 44, 0.45);
}

.confirm-dialog__card {
    margin: 0;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.confirm-dialog__card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
    border: 1px solid #d8e1f1;
    padding: 6px;
    font-size: 0.88rem;
}

.confirm-table th {
    text-align: left;
    width: 44%;
    background: #f7f9fe;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 920px) {
    .register-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .register-card {
        padding: 10px;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .field--wide {
        grid-column: span 1;
    }

    .actions {
        justify-content: space-between;
    }

    .confirm-actions {
        justify-content: space-between;
    }
}
