.weu-crud-form {
    display: grid;
    gap: 18px;
}

.weu-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.weu-field input[type="text"],
.weu-field input[type="email"],
.weu-field input[type="number"],
.weu-field input[type="tel"],
.weu-field input[type="url"],
.weu-field input[type="date"],
.weu-field textarea,
.weu-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    box-sizing: border-box;
}

.weu-choice-group {
    display: grid;
    gap: 8px;
}

.weu-choice-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400 !important;
}

.weu-choice-item input {
    margin: 0;
}

.weu-crud-submit {
    background: #111827;
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.weu-required {
    color: #c62828;
}

.weu-crud-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.weu-crud-success {
    background: #ecfdf5;
    color: #065f46;
}

.weu-crud-error {
    background: #fef2f2;
    color: #991b1b;
}

.weu-crud-empty {
    background: #f8fafc;
    color: #334155;
}

.weu-crud-list {
    display: grid;
    gap: 10px;
}

.weu-record-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.weu-record-trigger {
    background: transparent;
    border: 0;
    padding: 0;
    color: #1d4ed8;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
}

.weu-pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 20px 0 0;
}

.weu-pagination a,
.weu-pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
}

.weu-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
}

.weu-modal.is-open {
    display: block;
}

.weu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.weu-modal-dialog {
    position: relative;
    width: min(720px, calc(100% - 32px));
    margin: 5vh auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
}

.weu-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.weu-record-full h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.weu-record-full .weu-record-row {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.weu-record-full .weu-record-row:last-child {
    border-bottom: 0;
}

body.weu-modal-open {
    overflow: hidden;
}
