.catend-wrap,
.catend-list-wrap {
    font-family: inherit;
    max-width: 100%;
}

.catend-form {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    padding: 28px;
}

.catend-form h3,
.catend-list-wrap h3 {
    margin: 0 0 22px;
}

.catend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.catend-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.catend-full {
    grid-column: auto;
}

.catend-field label {
    font-size: 14px;
    font-weight: 700;
}

.catend-field input,
.catend-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #fff;
    padding: 10px 13px;
    font: inherit;
    box-sizing: border-box;
}

.catend-field input:focus,
.catend-field select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.catend-button {
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-top: 20px;
    min-height: 48px;
    padding: 10px 22px;
}

.catend-button:hover {
    filter: brightness(.94);
}

.catend-alert {
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 13px 15px;
}

.catend-success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #146c2e;
}

.catend-error {
    background: #fff1f1;
    border: 1px solid #efb4b4;
    color: #a51616;
}

.catend-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.catend-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.catend-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.catend-table th,
.catend-table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.catend-table th {
    background: #f7f8fa;
    font-weight: 700;
}

@media (max-width: 680px) {
    .catend-grid {
        grid-template-columns: 1fr;
    }

    .catend-full {
        grid-column: auto;
    }

    .catend-form {
        padding: 20px;
    }
}


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

.catend-modal[hidden] {
    display: none !important;
}

.catend-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .58);
    padding: 20px;
    opacity: 0;
    transition: opacity .18s ease;
}

.catend-modal.is-visible {
    opacity: 1;
}

.catend-modal-dialog {
    position: relative;
    width: min(420px, 100%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    padding: 34px 28px 28px;
    text-align: center;
    transform: translateY(12px) scale(.98);
    transition: transform .18s ease;
}

.catend-modal.is-visible .catend-modal-dialog {
    transform: translateY(0) scale(1);
}

.catend-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.catend-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.catend-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 38px;
    font-weight: 700;
}

.catend-modal-dialog h3 {
    margin: 0 0 22px;
    color: #172033;
    font-size: 23px;
    line-height: 1.3;
}

.catend-modal-button {
    min-width: 120px;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 24px;
}

.catend-modal-button:hover {
    filter: brightness(.94);
}

.catend-form-message {
    margin-top: 14px;
    border-radius: 8px;
    padding: 12px 14px;
}

.catend-form-message[hidden] {
    display: none !important;
}

.catend-form-message.is-error {
    border: 1px solid #efb4b4;
    background: #fff1f1;
    color: #a51616;
}

.catend-button:disabled {
    cursor: wait;
    opacity: .7;
}
