
.cdm-wrap,
.cdm-front-wrap {
    margin-top: 18px;
}

.cdm-page-head {
    margin-bottom: 18px;
}

.cdm-wrap h1,
.cdm-front-head h2 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.cdm-subtitle,
.cdm-front-head p,
.cdm-front-note {
    margin: 0;
    color: #5f6b7a;
    font-size: 14px;
}

.cdm-grid {
    display: grid;
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
    gap: 22px;
    margin-top: 20px;
    align-items: start;
}

.cdm-card,
.cdm-front-card {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 18px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(20, 35, 60, 0.06);
    margin-bottom: 22px;
}

.cdm-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 34px;
    border-radius: 22px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #0f172a 0%, #123c67 50%, #135e96 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.cdm-hero-kicker {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cdm-hero-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 36px;
    line-height: 1.15;
}

.cdm-hero-content p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 16px;
    max-width: 700px;
}

.cdm-card-head,
.cdm-front-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.cdm-card-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.cdm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #135e96;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cdm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cdm-field-full {
    grid-column: 1 / -1;
}

.cdm-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #1f2937;
}

.cdm-field label span {
    color: #c62828;
}

.cdm-field input,
.cdm-field textarea,
.cdm-field select,
.cdm-search-form input[type="search"],
.cdm-search-form select {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 48px;
    box-shadow: none;
    background: #fff;
}

.cdm-field textarea {
    min-height: 110px;
    resize: vertical;
}

.cdm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.cdm-btn,
.cdm-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #135e96;
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.cdm-btn:hover,
.cdm-nav-btn:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.cdm-btn-light {
    background: #ffffff;
    color: #123c67 !important;
}

.cdm-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.cdm-search-form input[type="search"] {
    min-width: 280px;
    flex: 1 1 280px;
}

.cdm-search-form select {
    width: auto;
    min-width: 160px;
}

.cdm-public-search-form {
    margin-bottom: 20px;
}

.cdm-table-wrap {
    overflow-x: auto;
}

.cdm-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.cdm-table thead th {
    background: #f8fafc;
    font-weight: 700;
    text-align: left;
}

.cdm-table td,
.cdm-table th {
    padding: 15px 14px;
    vertical-align: top;
    border-bottom: 1px solid #eef2f7;
}

.cdm-table tbody tr:hover {
    background: #fbfdff;
}

.cdm-table small {
    color: #6b7280;
}

.cdm-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cdm-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.cdm-status-approved {
    background: #e8f7ee;
    color: #1d7f45;
}

.cdm-status-blocked {
    background: #fdeceb;
    color: #c0392b;
}

.cdm-status-pending {
    background: #fff4dd;
    color: #946200;
}

.cdm-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eaf6ff;
    color: #135e96;
    border: 1px solid #cfe7fb;
}

.cdm-front-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cdm-front-note {
    margin-top: 14px;
}

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

    .cdm-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 782px) {
    .cdm-form-grid {
        grid-template-columns: 1fr;
    }

    .cdm-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cdm-search-form select {
        width: 100%;
    }

    .cdm-card-head,
    .cdm-front-head {
        flex-direction: column;
    }

    .cdm-hero-content h2 {
        font-size: 28px;
    }

    .cdm-hero-card {
        padding: 24px;
    }
}
