.portal-info-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #D4D3D3;
}

/* LEFT */
.portal-info-row .label {
    color: #D4D3D3;
    font-size: 14px;
}

/* CENTER ICON */
.portal-info-row .edit-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-info-row .edit-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-info-row .edit-btn:hover {
    opacity: 1;
}

.portal-info-row .icon-edit {
    display: block;
}

/* RIGHT VALUE */
.portal-info-row .value {
    text-align: right;
}

.portal-info-row .display {
    display: inline-block;
    white-space: normal;
    color: #051727;
}

/* EDIT STATE */
.portal-info-row .edit-input,
.portal-info-row .actions {
    display: none;
}

.portal-info-row.editing .display {
    display: none;
}

.portal-info-row.password-row.editing .display {
    display: inline-block;
}

.portal-info-row.editing .value {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    text-align: left;
}

.portal-info-row.editing .edit-input {
    display: block;
    flex: 1;
    min-width: 0;
}

.portal-info-row.editing .actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/*
=========================
PASSWORD BOX
=========================
*/
.portal-password-edit {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
}

.portal-password-edit.active {
    display: block;
}

.portal-password-edit .actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

/*
=========================
INPUT BASE
=========================
*/
.portal-info-row input,
.portal-info-row textarea,
.portal-password-edit input {
    width: 100%;
    background: #fff;
    border: 1px solid #0E8766;
    border-radius: 0;
    padding: 8px 10px;
    font-size: 14px;
    color: #051727;
    outline: none;
    box-shadow: none;
}

.portal-password-edit input{
    margin-bottom:10px;
}

/*
=========================
PLACEHOLDER
=========================
*/
.portal-info-row input::placeholder,
.portal-info-row textarea::placeholder,
.portal-password-edit input::placeholder {
    color: #A9A8A8;
    opacity: 1;
}

/*
=========================
FOCUS
=========================
*/
.portal-info-row input:focus,
.portal-info-row textarea:focus,
.portal-password-edit input:focus {
    border-color: #0E8766;
    outline: none;
    box-shadow: none;
}

/*
=========================
TEXTAREA
=========================
*/
.portal-info-row textarea.edit-input {
    min-height: 90px;
    resize: vertical;
}

/*
=========================
AUTOFILL FIX (CHROME)
=========================
*/
.portal-info-row input:-webkit-autofill,
.portal-password-edit input:-webkit-autofill,
.portal-info-row textarea:-webkit-autofill,
.portal-password-edit textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #051727 !important;
}

/*
=========================
AUTOFILL FIX (FIREFOX)
=========================
*/
.portal-info-row input:-moz-autofill,
.portal-password-edit input:-moz-autofill,
.portal-info-row textarea:-moz-autofill,
.portal-password-edit textarea:-moz-autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
    -moz-text-fill-color: #051727 !important;
}

/*
=========================
BUTTONS
=========================
*/
.portal-info-row .actions button,
.portal-password-edit .actions button {
    background: #0E8766;
    border: none;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.portal-info-row .actions .cancel,
.portal-password-edit .actions .cancel-pass {
    background: #ccc;
    color: #333;
}

/*
=========================
MOBILE
=========================
*/
@media (max-width: 768px) {
    .portal-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .portal-info-row .edit-trigger,
    .portal-info-row .value {
        text-align: left;
        justify-content: flex-start;
    }

    .portal-info-row.editing .value {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-info-row.editing .actions {
        justify-content: flex-start;
    }
}