/* =========================
   QUOTE EDIT
   ========================= */

#quoteEditModal {
    max-width: 520px;
    margin-top: 22px;
}

#quoteEditForm {
    width: 100%;
}

#quoteEditModal .form-group {
    margin-bottom: 18px;
}

#quoteEditModal .form-group input,
#quoteEditModal .form-group textarea {
    width: 100%;
}

#quoteEditModal textarea {
    min-height: 100px;
}

#quoteEditModal .item-modal-actions {
    margin-top: 22px;
}

@media (max-width: 800px) {

    #quoteEditModal {
        max-width: 100%;
    }

}

/* =========================
   QUOTE EDIT PANEL
   ========================= */

#quoteEditModal {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 1200;

    align-items: center;
    justify-content: center;

    max-width: none;
    margin: 0;
    padding: 25px;

    background: rgba(0, 0, 0, 0.72);

    border: none;
    border-radius: 0;
}

#quoteEditModal.open {
    display: flex;
}


.quote-edit-panel {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;

    background: var(--surface);

    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);

    border-radius: 12px;

    padding: 24px;
}

.quote-edit-header .modal-label {
    margin-bottom: 10px;
}

.quote-edit-header h2 {
    margin-bottom: 6px;
}


.quote-edit-panel {
    position: relative;
}

.quote-edit-header {
    margin-bottom: 25px;
    padding-top: 8px;
    
}


#closeQuoteEdit,
#closeQuoteAccept {
    position: absolute;
    top: 18px;
    right: 18px;
}

.quote-edit-reference {
    display: flex;
    align-items: baseline;
    gap: 5px;

    margin-top: 4px;
    margin-bottom: 22px;
}

.quote-edit-reference span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.quote-edit-reference strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   ACCEPT QUOTE PANEL
   ========================= */

#quoteAcceptModal {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 1200;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, 0.72);
}

#quoteAcceptModal.open {
    display: flex;
}

#quoteAcceptModal .quote-edit-panel {
    width: min(520px, 100%);
}

#quoteAcceptModal .form-group {
    margin-bottom: 18px;
}

#quoteAcceptModal .form-group input[type="text"] {
    width: 100%;
}

/* =========================
   QUOTE CARD ACTIONS
   ========================= */

.quote-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid var(--border);
}

.quote-card-actions button {
    min-width: 78px;

    padding: 9px 14px;

    border-radius: 7px;

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

    cursor: pointer;
}

.quote-accept-button {
    background: var(--accent);
    color: #fff;

    border: 1px solid var(--accent);
}

.quote-edit-button {
    background: transparent;
    color: var(--text);

    border: 1px solid var(--border);
}

.quote-delete-button {
    background: transparent;
    color: var(--muted);

    border: 1px solid var(--border);
}

.quote-card-actions button:hover {
    filter: brightness(1.08);
}
