/* ============================================================
   account.css — Account pages
   Form tiles, section titles, details, permissions, badges,
   accordions, user quote.
   ============================================================ */

.formtile-tile {
    max-width: 720px;
    margin: 1rem auto;
    padding: 1.2rem 1.8rem;
    background: var(--primary-background);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.formtile-longtext {
    min-height: 250px;
}

.account-tile {
    max-width: 720px;
    margin: 0.5rem auto;
    padding: 0.8rem 0.8rem;
    background: var(--primary-background);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.account-section-title {
    display: inline-flex;
    align-items: center;
    justify-content: -between;
    gap: 0.4rem;
    color: #3f51b5;
    font-size: 1rem;
    font-weight: 600;
}

.account-section-title .material-symbols-outlined {
    font-size: 1.2rem;
}

.account-section-title.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.header-left {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
} 

.header-left .material-symbols-outlined {
    font-size: 1.2rem;
}

.notification {
    /* position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 0.4rem; */
    position: absolute;
    top: -6px;
    left: 100%;

    display: flex;
    align-items: center;
    gap: 5px;
}


.badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #c43d3d;
    color: white;
    font-size: 0.6rem;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    white-space: nowrap
}

.badge.none {
    background: #757575
}

.badge.pending {
    display: inline-flex;
    align-items: center;
    color: var(--primary-pending-event);
    background-color: #ffeedb;
    /* gap: 0.1rem; */
    min-width: 0;
}

.badge.pending .material-symbols-outlined {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.account-details {
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-row .label {
    color: var(--primary-textarea);
}

.detail-row .value {
    font-weight: 500;
}

.detail-user {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #e8f0fe;
    color: #1a3fb4;
    font-size: 0.7rem;

    
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.detail-section {
    font-size: 0.75rem;
    color: var(--primary-textarea);
    list-style: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 0.2rem 0.8rem 0.8rem 0.8rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.detail-section-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.permission {
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.permission.granted {
    color: #39813c;
}

.permission.granted .material-symbols-outlined {
    color: #4caf50;
}

.permission.denied {
    color: #999;
}

.permission.denied .material-symbols-outlined {
    color: #b0b0b0;
}

.role-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.role-request-text {
    margin: 0;
    color: #666;
}

.role-request.hidden {
    display: none;
}

.user-quote {
    position: relative;
    margin: 0;
    padding: 1rem 1.25rem;

    border-left: 4px solid var(--primary-fg);
    border-radius: 8px;
    background: #f9fafb;

    font-style: italic;
    color: #374151;
    font-size: 0.7rem;
    line-height: 1.5;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-word;
    scrollbar-width: thin;
    white-space: pre-line;
}

.user-quote::-webkit-scrollbar {
    width: 6px;
}

.user-quote a {
    color: var(--primary-link);
    font-style: normal;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}

.user-quote a:hover {
    color: var(--primary-link--hover);
}

.user-quote a:active {
    color: var(--primary-link--active);
}

.user-quote::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.non-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .user-quote {
        max-height: 150px;
    }
}

@media (max-width: 350px) {
    .detail-row {
        flex-direction: column;
        align-items: center;
    }
}

