﻿/* â”€â”€ Portal Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-body {
    background: #f5f7fa;
    min-height: 100vh;
    font-family: var(--font-base, system-ui, sans-serif);
}

/* â”€â”€ Portal Main â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.portal-content {
    width: 100%;
    padding: 2rem 2.5rem;
}

@media (max-width: 768px) {
    .portal-content { padding: 1rem 1rem; }
}

/* â”€â”€ Page Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.portal-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .2rem;
}

.portal-page-subtitle {
    color: #6b7280;
    font-size: .875rem;
    margin: 0;
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.portal-search-bar {
    margin-bottom: .75rem;
}

.portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #6b7280;
    font-size: .8rem;
    text-decoration: none;
    margin-bottom: .35rem;
}

.portal-back-link:hover { color: #28a84b; }

/* â”€â”€ Stat Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.portal-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.portal-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: .35rem;
}

.portal-stat-label {
    font-size: .8rem;
    color: #6b7280;
    font-weight: 500;
}

/* â”€â”€ Sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .portal-grid-2 { grid-template-columns: 1fr; }
}

.portal-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.portal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.portal-section-link {
    font-size: .8rem;
    color: #28a84b;
    text-decoration: none;
    font-weight: 500;
}

.portal-section-link:hover { text-decoration: underline; }

/* â”€â”€ Lists â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-list { display: flex; flex-direction: column; gap: .5rem; }

.portal-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.portal-list-item:last-child { border-bottom: none; }

.portal-list-item-title { font-weight: 500; font-size: .9rem; color: #111827; }
.portal-list-item-meta { font-size: .78rem; color: #9ca3af; margin-top: .1rem; }

/* â”€â”€ Job Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-job-list { display: flex; flex-direction: column; gap: .6rem; }

.portal-job-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.portal-job-date {
    text-align: center;
    min-width: 38px;
    flex-shrink: 0;
}

.portal-job-day { font-size: 1.2rem; font-weight: 700; color: #111827; line-height: 1; }
.portal-job-month { font-size: .65rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; }

.portal-job-info { flex: 1; min-width: 0; }
.portal-job-title { font-weight: 500; font-size: .9rem; color: #111827; }
.portal-job-meta { font-size: .78rem; color: #9ca3af; }

/* â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.portal-table th {
    background: #f9fafb;
    padding: .7rem 1rem;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.portal-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover td { background: #fafafa; }

.portal-table tfoot td {
    padding: .65rem 1rem;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.portal-total-row td { background: #f9fafb; }

/* Clickable table rows */
.portal-table tbody tr[data-clickable] { cursor: pointer; }
.portal-table tbody tr[data-clickable]:hover td { background: #f0fdf4; }

/* â”€â”€ Filters â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.portal-filter-tab {
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all .15s;
}

.portal-filter-tab:hover { border-color: #9ca3af; color: #374151; }
.portal-filter-tab.active { background: #28a84b; color: #fff; border-color: #28a84b; }

/* â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.portal-badge-lg { font-size: .8rem; padding: .35rem .85rem; }

.portal-badge-pending    { background: #fef9c3; color: #a16207; }
.portal-badge-reviewed   { background: #dbeafe; color: #1d4ed8; }
.portal-badge-converted  { background: #dcfce7; color: #15803d; }
.portal-badge-declined   { background: #f3f4f6; color: #6b7280; }
.portal-badge-sent       { background: #dbeafe; color: #1d4ed8; }
.portal-badge-draft      { background: #f3f4f6; color: #6b7280; }
.portal-badge-accepted   { background: #dcfce7; color: #15803d; }
.portal-badge-rejected   { background: #fee2e2; color: #b91c1c; }
.portal-badge-expired    { background: #f3f4f6; color: #6b7280; }
.portal-badge-scheduled  { background: #dbeafe; color: #1d4ed8; }
.portal-badge-inprogress { background: #fef9c3; color: #a16207; }
.portal-badge-completed  { background: #dcfce7; color: #15803d; }
.portal-badge-cancelled  { background: #f3f4f6; color: #6b7280; }
.portal-badge-invoiced   { background: #dbeafe; color: #1d4ed8; }
.portal-badge-paid       { background: #dcfce7; color: #15803d; }
.portal-badge-overdue    { background: #fee2e2; color: #b91c1c; }
.portal-badge-notinvoiced{ background: #f3f4f6; color: #6b7280; }

/* â”€â”€ Meta â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-meta { font-size: .78rem; color: #9ca3af; }

/* â”€â”€ Quote detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-action-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #eff6f3;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.portal-action-buttons { display: flex; gap: .75rem; flex-shrink: 0; }

.portal-quote-meta {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .5rem;
}

.portal-quote-meta .portal-meta-row { display: flex; flex-direction: column; gap: .15rem; }
.portal-meta-label { font-size: .7rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; }

.portal-notes-text { color: #374151; font-size: .875rem; line-height: 1.6; white-space: pre-wrap; }
.portal-notes-small { font-size: .8rem; color: #6b7280; }

/* â”€â”€ Checklist progress â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-checklist-progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: #6b7280;
}

.portal-progress-bar {
    width: 60px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.portal-progress-fill { height: 100%; background: #28a84b; border-radius: 2px; }

/* â”€â”€ Empty states â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
    color: #9ca3af;
    text-align: center;
}

.portal-empty svg { opacity: .4; }
.portal-empty p { margin: 0; font-size: .875rem; }
.portal-empty-lg { padding: 4rem 1rem; }

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
    max-width: 700px;
}

.portal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

/* â”€â”€ Auth pages (reuse existing .auth-* classes from site.css) â”€â”€â”€â”€â”€â”€ */
.auth-footer {
    text-align: center;
    font-size: .8rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* â”€â”€ Auth Split Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-auth-split {
    display: flex;
    min-height: 100vh;
}

.portal-auth-panel {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(155deg, #145a2e 0%, #28a84b 55%, #3abf60 100%);
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portal-auth-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}

.portal-auth-panel::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.portal-auth-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    letter-spacing: -.01em;
}

.auth-panel-logo-wrap { display: flex; align-items: center; }
.auth-panel-logo { height: auto; max-width: 220px; object-fit: contain; width: 100%; filter: brightness(0) invert(1); }

.portal-auth-headline {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.portal-auth-tagline {
    font-size: .875rem;
    opacity: .8;
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.portal-auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    position: relative;
    z-index: 1;
}

.portal-auth-features li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .875rem;
    opacity: .9;
}

.portal-auth-features li::before {
    content: 'âœ“';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    font-size: .65rem;
    font-weight: 800;
    flex-shrink: 0;
}

.portal-auth-powered {
    font-size: .75rem;
    opacity: .5;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.portal-auth-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #f7f9fb;
}

.portal-auth-form-card {
    width: 100%;
    max-width: 420px;
}

.portal-auth-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .35rem;
}

.portal-auth-form-subtitle {
    color: #6b7280;
    font-size: .9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.portal-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 1rem;
    color: #d1d5db;
    font-size: .8rem;
}
.portal-auth-divider::before, .portal-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.portal-auth-divider span { color: #9ca3af; white-space: nowrap; }

/* Invite state icons */
.portal-auth-state-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.portal-auth-state-success { background: #dcfce7; color: #15803d; }
.portal-auth-state-error   { background: #fee2e2; color: #b91c1c; }

/* Invited-by badge */
.portal-auth-invited-by {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: .75rem 1rem;
}
.portal-auth-invited-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #28a84b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.portal-auth-invited-label { font-size: .72rem; color: #9ca3af; font-weight: 500; }
.portal-auth-invited-company { font-size: .9rem; font-weight: 600; color: #111827; }

@media (max-width: 768px) {
    .portal-auth-split { flex-direction: column; }
    .portal-auth-panel { width: 100%; padding: 2rem 1.5rem; min-height: auto; justify-content: flex-start; }
    .portal-auth-brand { margin-bottom: 1.5rem; }
    .portal-auth-headline { font-size: 1.25rem; margin-bottom: .75rem; }
    .portal-auth-tagline { display: none; }
    .portal-auth-features { display: none; }
    .portal-auth-powered { display: none; }
    .portal-auth-form-wrap { padding: 1.5rem 1rem; background: #fff; }
}

/* â”€â”€ Request Form Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portal-request-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .portal-request-layout { grid-template-columns: 1fr; }
    .portal-request-tips-col { order: -1; }
}

.portal-request-form-col {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.portal-form-section {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.portal-form-section:last-child { border-bottom: none; }

.portal-form-section-title {
    font-size: .8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.portal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1.25rem 1.75rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Radio cards for property mode */
.portal-radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1rem;
}

.portal-radio-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: .85rem 1rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: block;
}

.portal-radio-card:hover { border-color: #9ca3af; background: #fafafa; }
.portal-radio-card.active { border-color: #28a84b; background: #f0fdf4; }

.portal-radio-input { display: none; }

.portal-radio-label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.portal-radio-icon {
    color: #6b7280;
    margin-top: 1px;
    flex-shrink: 0;
}
.portal-radio-card.active .portal-radio-icon { color: #28a84b; }

.portal-radio-title { font-size: .875rem; font-weight: 600; color: #111827; }
.portal-radio-desc  { font-size: .75rem; color: #9ca3af; margin-top: .1rem; }

.portal-property-panel { }

.portal-toggle-check .form-check-input { width: 1.1em; height: 1.1em; margin-top: .2em; }

/* Tips sidebar */
.portal-tips-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.portal-tips-title {
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.portal-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.portal-tips-list li {
    font-size: .8rem;
    color: #6b7280;
    padding-left: 1.1rem;
    position: relative;
}
.portal-tips-list li::before {
    content: 'Â·';
    position: absolute;
    left: 0;
    color: #28a84b;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.portal-steps-list {
    padding-left: 1.2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.portal-steps-list li { font-size: .8rem; color: #6b7280; }

/* â”€â”€ Portal Job Cards â”€â”€ */
.portal-jobs-list { display: flex; flex-direction: column; gap: 16px; }
.portal-job-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.portal-job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.portal-job-title { font-weight: 600; font-size: 15px; color: #111827; }

/* â”€â”€ Lightbox â”€â”€ */
@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: lightboxFadeIn 320ms ease; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox-inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: -36px; right: 0; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.lightbox-caption { color: #d1d5db; font-size: 13px; text-align: center; }

/* â”€â”€ Request photo thumbnail strip â”€â”€ */
.req-photo-strip { display: flex; align-items: center; gap: 4px; }
.req-photo-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; border: 1px solid #e5e7eb; cursor: pointer; transition: opacity .15s, transform .15s; }
.req-photo-thumb:hover { opacity: .85; transform: scale(1.08); }
.req-photo-more { font-size: 11px; font-weight: 600; color: #6b7280; background: #f3f4f6; border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
@media (min-width: 769px) {
  .req-photo-thumb { width: 64px; height: 48px; border-radius: 6px; }
}

/* â”€â”€ Request / Job Detail two-column grid â”€â”€ */
.portal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}
.portal-detail-main { display: flex; flex-direction: column; gap: 1.25rem; }
.portal-detail-side  { display: flex; flex-direction: column; gap: 1rem; }

.portal-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: .5rem;
}
.portal-meta-row:last-child { border-bottom: none; }

/* Upload form inside portal cards */
.photo-upload-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 900px) {
    .portal-detail-grid { grid-template-columns: 1fr; }
    .portal-detail-side { order: -1; }
}

/* â”€â”€ Drawer â”€â”€ */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 1040; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: -460px; width: 440px; height: 100vh; background: #fff; border-left: 1px solid #e5e7eb; z-index: 1050; display: flex; flex-direction: column; transition: right .25s cubic-bezier(.4,0,.2,1); box-shadow: -4px 0 24px rgba(0,0,0,.08); }
.drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.5rem; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.drawer-title { font-size: 1rem; font-weight: 600; color: #111827; line-height: 1.4; }
.drawer-subtitle { font-size: .78rem; color: #9ca3af; margin-top: .2rem; }
.drawer-close { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 2px 6px; font-size: 16px; line-height: 1; border-radius: 4px; }
.drawer-close:hover { background: #f3f4f6; color: #374151; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.drawer-footer { padding: 1rem 1.5rem; border-top: 1px solid #f3f4f6; display: flex; gap: .75rem; flex-shrink: 0; flex-wrap: wrap; }
.drawer-section-label { font-size: .7rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin: 1rem 0 .5rem; }
.drawer-section-label:first-child { margin-top: 0; }
.drawer-row { display: flex; justify-content: space-between; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid #f9fafb; gap: .75rem; }
.drawer-row:last-child { border-bottom: none; }
.drawer-label { font-size: .72rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; padding-top: .1rem; }
.drawer-value { font-size: .875rem; color: #374151; text-align: right; }
.drawer-desc { font-size: .875rem; color: #374151; line-height: 1.6; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #f3f4f6; white-space: pre-wrap; }

@media (max-width: 480px) {
    .drawer { width: 100%; right: -100%; }
}

/* â”€â”€ Responsive: hide non-essential columns on phones â”€â”€ */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }

    /* Tables: fit width â€” no horizontal scroll */
    .portal-table-wrap {
        overflow: visible;
    }
    .portal-table {
        min-width: 0;
        width: 100%;
    }

    /* Page header: stack title + button on narrow screens */
    .portal-page-header {
        flex-direction: column;
        gap: .75rem;
    }
    .portal-page-header .btn {
        align-self: flex-start;
    }

    /* Filter tabs: wrap cleanly */
    .portal-filter-bar,
    .portal-filter-tab-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Stat grid: use 2 cols instead of 4 */
    .portal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Detail grid: single column */
    .portal-detail-grid {
        grid-template-columns: 1fr !important;
    }

    /* Portal navbar: tighter padding */
    .portal-nav {
        padding: .5rem .75rem;
    }
}
