/* ============================================================
   39. q2K CONTACT EDITOR
   UPDATED EDIT SCREEN
   ============================================================ */

.contact-editor {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 20px;

    background:
        rgba(255,255,255,.92);

    border:
        1px solid rgba(157,126,43,.58);

    border-radius: 22px;

    box-shadow:
        0 8px 22px rgba(0,0,0,.18);
}


/* ============================================================
   EDITOR HEADER
   ============================================================ */

.editor-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
    margin-bottom: 12px;
}


.editor-heading {
    flex: 1;
}


.editor-label {
    margin-bottom: 3px;

    color: #725b11;

    font-size: 15px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .5px;
}


.editor-name {
    color: #181818;

    font-size: clamp(25px, 3vw, 34px);
    font-weight: 600;

    line-height: 1.1;
}


/* ============================================================
   EDITOR PHOTO
   Larger touch target for iPad
   ============================================================ */

.editor-photo-area {
    width: 145px;
    flex: 0 0 145px;

    text-align: center;
}


.editor-photo {
    width: 110px;
    height: 130px;

    margin: 0 auto 7px;

    font-size: 27px;
}


.photo-upload-label {
    display: block;

    width: 100%;

    padding: 8px 5px;

    color: #725b11;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


.photo-upload-label span {
    display: block;

    margin-bottom: 4px;
}


.photo-upload-label input {
    display: block;

    width: 100%;
    min-height: 38px;

    padding: 5px;

    font-size: 11px;

    cursor: pointer;
}


.photo-note {
    display: block;

    margin-top: 3px;

    color: #666;

    font-size: 9px;
}


/* ============================================================
   EDITOR SECTIONS
   ============================================================ */

.editor-section {
    margin: 0;

    padding: 9px 0;

    border-top:
        1px solid #d5c78f;
}


.editor-section h2 {
    margin: 0 0 6px;

    color: #725b11;

    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   EDITOR FIELD SYSTEM
   ============================================================ */

.editor-grid {
    display: grid;

    gap: 8px 10px;

    margin-bottom: 7px;

    align-items: end;
}


.editor-grid:last-child {
    margin-bottom: 0;
}


.editor-field {
    min-width: 0;
}


.editor-field label {
    display: block;

    margin: 0 0 2px;

    font-size: 11px;
    font-weight: 600;
}


.editor-field input,
.editor-field select {
    width: 100%;

    min-height: 30px;

    padding: 5px 7px;
}


/* ============================================================
   NAME
   First | MI | Last | Suffix
   ============================================================ */

.name-grid {
    grid-template-columns:
        minmax(150px, 1.2fr)
        55px
        minmax(170px, 1.35fr)
        75px;
}


/* ============================================================
   IDENTITY
   Preferred | DOB | Sex | Relationship
   ============================================================ */

.identity-grid {
    grid-template-columns:
        1.1fr
        145px
        70px
        1.25fr;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
    grid-template-columns:
        155px
        155px
        170px;
}


.email-grid {
    grid-template-columns:
        1fr
        1fr;
}


/* ============================================================
   ADDRESS
   ============================================================ */

.address-line-grid {
    grid-template-columns:
        1.4fr
        1fr;
}


.location-grid {
    grid-template-columns:
        minmax(170px, 1.5fr)
        75px
        100px
        90px;
}


/* ============================================================
   WORK
   ============================================================ */

.work-grid {
    grid-template-columns:
        1.3fr
        1fr
        1fr;
}


.work-contact-grid {
    grid-template-columns:
        170px
        minmax(220px, 1fr);
}


/* ============================================================
   BOTTOM
   LEFT = MISC.
   RIGHT = NOTES
   ============================================================ */

.editor-bottom {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 24px;

    align-items: start;
}


.editor-bottom-column {
    min-width: 0;
}


.editor-misc .editor-field {
    margin-bottom: 7px;
}


.status-field {
    max-width: 150px;
}


/* ============================================================
   LIST OPTIONS
   ============================================================ */

.editor-checks {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 9px;
}


.editor-check {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin: 0;

    font-size: 11px;
    font-weight: 500;
}


.editor-check input {
    width: auto;

    min-height: 0;

    margin: 0;
}


/* ============================================================
   NOTES
   ============================================================ */

.editor-notes {
    display: block;

    width: 100%;

    min-height: 155px;
    height: 155px;

    padding: 8px;

    resize: vertical;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.editor-actions {
    margin: 12px 0 0;
}


.delete-contact {
    margin-left: auto;
}


/* ============================================================
   TABLET / iPAD
   ============================================================ */

@media (max-width: 800px) {

    .contact-editor {
        padding: 14px;
    }


    .editor-photo-area {
        width: 125px;
        flex-basis: 125px;
    }


    .photo-upload-label {
        padding: 10px 5px;
    }


    .photo-upload-label input {
        min-height: 44px;
    }


    .name-grid {
        grid-template-columns:
            1fr
            55px
            1fr
            70px;
    }


    .identity-grid {
        grid-template-columns:
            1fr
            145px
            70px;
    }


    .relationship-field {
        grid-column: 1 / -1;
    }


    .contact-grid {
        grid-template-columns:
            1fr
            1fr
            1fr;
    }


    .location-grid {
        grid-template-columns:
            1.5fr
            75px
            100px
            90px;
    }


    .editor-bottom {
        grid-template-columns:
            1fr
            1fr;

        gap: 14px;
    }
}


/* ============================================================
   PHONE
   ============================================================ */

@media (max-width: 560px) {

    .editor-top {
        gap: 8px;
    }


    .editor-name {
        font-size: 24px;
    }


    .editor-photo-area {
        width: 105px;
        flex-basis: 105px;
    }


    .editor-photo {
        width: 90px;
        height: 105px;
    }


    .name-grid {
        grid-template-columns:
            1fr
            55px;
    }


    .last-name {
        grid-column: 1;
    }


    .identity-grid,
    .contact-grid,
    .email-grid,
    .address-line-grid,
    .location-grid,
    .work-grid,
    .work-contact-grid,
    .editor-bottom {
        grid-template-columns: 1fr;
    }


    .relationship-field {
        grid-column: auto;
    }


    .delete-contact {
        margin-left: 0;
    }
}


/* ============================================================
   q2K ADMIN NAVIGATION
   SHARED ADMIN BUTTON BAR
   ============================================================ */

.q2k-admin-nav {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    align-items: center;

    margin: 10px 0;

}


.q2k-admin-nav a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 30px;

    padding: 6px 12px;

    background: #171717;

    border: 1px solid rgba(226,197,47,.65);

    border-radius: 18px;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    text-decoration: none;

}


.q2k-admin-nav a:hover {

    background: #b9931e;

    color: #ffffff;

}
