/* Base styles for the rz-* class names the pages share with the original Radzen components.
   Loaded before app.css, which refines them within form cards. */

.rz-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.rz-form-field-label {
    color: #343d4e;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.rz-textbox,
.rz-textarea {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    color: #1f2533;
    display: block;
    font: inherit;
    font-size: .94rem;
    min-height: 40px;
    outline: none;
    padding: .5rem .85rem;
    width: 100%;
}

.rz-textarea {
    min-height: 96px;
    resize: vertical;
}

.rz-textbox:focus,
.rz-textarea:focus {
    border-color: #0f3a5f;
    box-shadow: 0 0 0 3px rgba(15, 58, 95, .14);
}

.rz-textbox[aria-invalid="true"],
.rz-textarea[aria-invalid="true"] {
    border-color: #c62828;
}

input[type="checkbox"].rz-checkbox-box,
input[type="radio"].rz-radio {
    accent-color: #0f3a5f;
    cursor: pointer;
    flex: none;
    height: 18px;
    margin: 0;
    width: 18px;
}

.rz-ms-2 {
    margin-left: .5rem;
}

.rz-button {
    align-items: center;
    background: #0f3a5f;
    border: 1px solid #0f3a5f;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .4rem;
    justify-content: center;
    min-height: 38px;
    padding: .45rem 1rem;
    text-decoration: none;
    transition: background .15s ease;
}

.rz-button:hover {
    background: #0a2a45;
    color: #fff;
}

.rz-button:disabled {
    cursor: default;
    opacity: .6;
}

.rz-button-secondary,
.rz-button-light {
    background: #fff;
    color: #0f3a5f;
}

.rz-button-light {
    border-color: #dfe3ea;
}

.rz-button-secondary:hover,
.rz-button-light:hover {
    background: #eef4fb;
    color: #0f3a5f;
}

.rz-button-danger {
    background: #b3261e;
    border-color: #b3261e;
}

.rz-button-danger:hover {
    background: #8c1d18;
}

.rz-button-sm {
    font-size: .82rem;
    min-height: 32px;
    padding: .3rem .75rem;
}

.rz-card {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.rz-alert {
    border-radius: 8px;
    font-size: .9rem;
    padding: .65rem .9rem;
}

.rz-alert-success {
    background: #e8f5e9;
    color: #1b5e20;
}

.rz-alert-danger {
    background: #fdecea;
    color: #8c1d18;
}

.rz-muted {
    color: #60717b;
    font-size: .875rem;
}

.rz-grid {
    border-collapse: collapse;
    width: 100%;
}

.rz-grid th,
.rz-grid td {
    border-bottom: 1px solid #e6ecf1;
    padding: .7rem .75rem;
    text-align: left;
    vertical-align: middle;
}

.rz-grid th {
    color: #3f5059;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rz-grid th button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-transform: inherit;
}
