/* ============================================================
   ASSOCIATOR EDIT
   MASTER DASHBOARD STYLE
   ============================================================ */

.assoc-edit-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #172033;
    box-sizing: border-box;
}

.assoc-edit-page *,
.assoc-edit-page *::before,
.assoc-edit-page *::after {
    box-sizing: border-box;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.assoc-edit-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin: 0 0 16px 2px;
    padding: 0;

    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.assoc-edit-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .18s ease;
}

.assoc-edit-breadcrumb a:hover {
    color: #2563eb;
}

.assoc-edit-breadcrumb span {
    color: #cbd5e1;
    font-size: 14px;
}

.assoc-edit-breadcrumb strong {
    color: #334155;
    font-weight: 700;
}


/* ============================================================
   HERO NAVY
   ============================================================ */

.assoc-edit-hero {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 170px;

    margin: 0 0 22px;
    padding: 30px 32px;

    overflow: hidden;

    border: 1px solid #172554;
    border-radius: 16px;

    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(37, 99, 235, .28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #0f172a 55%,
            #172554 100%
        );

    box-shadow:
        0 10px 28px rgba(15, 23, 42, .14);
}

.assoc-edit-hero::before {
    content: "";

    position: absolute;

    top: -100px;
    right: 100px;

    width: 230px;
    height: 230px;

    border: 1px solid rgba(96, 165, 250, .08);
    border-radius: 50%;

    pointer-events: none;
}

.assoc-edit-hero::after {
    content: "";

    position: absolute;

    right: -85px;
    bottom: -115px;

    width: 285px;
    height: 285px;

    border: 1px solid rgba(96, 165, 250, .09);
    border-radius: 50%;

    pointer-events: none;
}

.assoc-edit-hero-content {
    position: relative;
    z-index: 2;
}


/* ============================================================
   HERO LABEL
   ============================================================ */

.assoc-edit-label {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 10px;
    padding: 5px 11px;

    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 6px;

    background: rgba(37, 99, 235, .18);

    color: #60a5fa;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: .1em;
}

.assoc-edit-hero h2 {
    margin: 0;

    color: #ffffff;

    font-size: 29px;
    font-weight: 800;
    line-height: 1.15;

    letter-spacing: -.025em;
}

.assoc-edit-hero p {
    margin: 8px 0 0;

    color: #cbd5e1;

    font-size: 13px;
    line-height: 1.5;
}


/* ============================================================
   FORM CARD
   ============================================================ */

.assoc-edit-card {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;

    padding: 26px;

    border: 1px solid #dfe6ef;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 4px 16px rgba(15, 23, 42, .035);

    overflow: hidden;
}


/* GARIS BIRU HORIZONTAL DI ATAS */

.assoc-edit-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #2563eb;
}


/* ============================================================
   SECTION HEADING
   ============================================================ */

.assoc-edit-section-heading {
    margin: 0 0 23px;
}

.assoc-edit-section-heading > span {
    display: block;

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: .1em;
}

.assoc-edit-section-heading h3 {
    margin: 0;

    color: #172033;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.assoc-edit-section-heading p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 12px;
    line-height: 1.45;
}


/* ============================================================
   FORM GRID
   ============================================================ */

.assoc-edit-form-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 22px;
    row-gap: 20px;

    width: 100%;
}


/* ============================================================
   FORM GROUP
   ============================================================ */

.assoc-edit-form-group {
    min-width: 0;
}

.assoc-edit-form-group label {
    display: block;

    margin: 0 0 7px;

    color: #334155;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.assoc-edit-form-group input,
.assoc-edit-form-group select {
    display: block;

    width: 100%;
    height: 43px;

    margin: 0;
    padding: 0 12px;

    border: 1px solid #d7e0ea;
    border-radius: 8px;

    outline: none;

    background: #ffffff;
    color: #1e293b;

    font-family: inherit;
    font-size: 12px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.assoc-edit-form-group input:hover,
.assoc-edit-form-group select:hover {
    border-color: #c3cfdd;
}

.assoc-edit-form-group input:focus,
.assoc-edit-form-group select:focus {
    border-color: #60a5fa;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .07);
}


/* ============================================================
   READONLY KODE
   ============================================================ */

.assoc-edit-form-group input.readonly {
    background: #f8fafc;

    color: #64748b;

    cursor: not-allowed;
}

.assoc-edit-form-group input.readonly:focus {
    border-color: #d7e0ea;

    background: #f8fafc;

    box-shadow: none;
}


/* ============================================================
   HELPER TEXT
   ============================================================ */

.assoc-edit-form-group small {
    display: block;

    margin: 6px 0 0;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.45;
}


/* ============================================================
   ACTION AREA
   ============================================================ */

.assoc-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #edf1f5;
}


/* ============================================================
   BATAL
   ============================================================ */

.assoc-edit-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 41px;

    padding: 0 17px;

    border: 1px solid #dbe2ea;
    border-radius: 8px;

    background: #ffffff;
    color: #475569;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.assoc-edit-btn-secondary:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    color: #1e293b;
}


/* ============================================================
   SIMPAN
   ============================================================ */

.assoc-edit-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 41px;

    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #1d4ed8;
    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(29, 78, 216, .18);

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.assoc-edit-btn-primary:hover {
    background: #1e40af;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(29, 78, 216, .22);
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.assoc-edit-empty {
    padding: 36px 24px;

    border: 1px dashed #d8e1eb;
    border-radius: 14px;

    background: #ffffff;

    text-align: center;
}

.assoc-edit-empty h3 {
    margin: 0;

    color: #334155;

    font-size: 16px;
    font-weight: 800;
}

.assoc-edit-empty p {
    margin: 7px 0 17px;

    color: #94a3b8;

    font-size: 12px;
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 800px) {

    .assoc-edit-form-grid {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .assoc-edit-breadcrumb {
        font-size: 11px;
    }

    .assoc-edit-hero {
        min-height: auto;

        padding: 24px;

        border-radius: 13px;
    }

    .assoc-edit-hero h2 {
        font-size: 25px;
    }

    .assoc-edit-hero p {
        font-size: 12px;
    }

    .assoc-edit-card {
        padding: 20px;

        border-radius: 12px;
    }

    .assoc-edit-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .assoc-edit-btn-secondary,
    .assoc-edit-btn-primary {
        width: 100%;
    }

}


/* ============================================================
   VERY SMALL SCREEN
   ============================================================ */

@media (max-width: 400px) {

    .assoc-edit-hero {
        padding: 20px;
    }

    .assoc-edit-card {
        padding: 17px;
    }

}


/* ============================================================
   DARK MODE OVERRIDES FOR ASSOCIATOR EDIT PAGE
   ============================================================ */

html.theme-dark .assoc-edit-page {
    color: #cbd5e1;
}

html.theme-dark .assoc-edit-breadcrumb a {
    color: #94a3b8;
}

html.theme-dark .assoc-edit-breadcrumb a:hover {
    color: #60a5fa;
}

html.theme-dark .assoc-edit-breadcrumb strong {
    color: #f1f5f9;
}

html.theme-dark .assoc-edit-hero {
    background: radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.28), transparent 40%), linear-gradient(135deg, #0b1329 0%, #151d38 55%, #1c284e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .assoc-edit-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .assoc-edit-section-heading span {
    color: #818cf8 !important;
}

html.theme-dark .assoc-edit-section-heading h3 {
    color: #ffffff !important;
}

html.theme-dark .assoc-edit-section-heading p {
    color: #94a3b8 !important;
}

html.theme-dark .assoc-edit-form-group label {
    color: #cbd5e1 !important;
}

html.theme-dark .assoc-edit-form-group input,
html.theme-dark .assoc-edit-form-group select {
    background: #182854 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #ffffff !important;
}

html.theme-dark .assoc-edit-form-group input:hover,
html.theme-dark .assoc-edit-form-group select:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: #1e3066 !important;
}

html.theme-dark .assoc-edit-form-group input:focus,
html.theme-dark .assoc-edit-form-group select:focus {
    background: #1e3066 !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}

html.theme-dark .assoc-edit-form-group input.readonly {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .assoc-edit-form-group small {
    color: #94a3b8 !important;
}

html.theme-dark .assoc-edit-actions {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .assoc-edit-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .assoc-edit-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

html.theme-dark .assoc-edit-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
}

html.theme-dark .assoc-edit-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}