h1:focus {
    outline: none;
}

/* ── Admin stat cards ────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.stat-label {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #1a2e44;
    margin-bottom: 0.35rem;
}

.stat-card small {
    font-size: 0.75rem !important;
    color: #6c757d;
    display: block;
}

/* ── Modal overlay ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.modal-box-lg {
    max-width: 760px;
}

.modal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    gap: 1rem;
}

.modal-box-header > div:first-child {
    min-width: 0;
    flex: 1;
}

.modal-box-header h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-box-header small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.modal-box-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.modal-box-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ── Extra small button ──────────────────────────────────── */
.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* ── JEN Dashboard Shell ─────────────────────────────────── */
.jen-shell {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Sidebar */
.jen-sidebar {
    width: 220px;
    min-width: 220px;
    background: #1a2e44;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    width: 38px;
    height: auto;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.sidebar-subtitle {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-item.active {
    background: #f97316;
    color: #fff;
    font-weight: 600;
}

.nav-item .bi {
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    background: transparent !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.15s;
}

.btn-logout:hover {
    background: #334155 !important;
    color: #fff !important;
    border-color: #334155 !important;
}

.btn-logout[type="submit"] {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.btn-logout[type="submit"]:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* Main area */
.jen-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}

.jen-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.topbar-user {
    font-size: 0.88rem;
    color: #495057;
    font-weight: 500;
}

/* Content card */
.content-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
}

/* Filter bar */
.filter-bar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.filter-select {
    min-width: 170px;
}

/* BDA Table */
.bda-table thead tr {
    background: #ff8c00 !important;
    color: #fff !important;
}

.bda-table thead th {
    font-size: 0.82rem;
    font-weight: 600;
    border: none !important;
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
    background: #ff8c00 !important;
    color: #fff !important;
}

.bda-table tbody tr:nth-child(odd) {
    background: #2d2d2d08;
}

.bda-table tbody td {
    font-size: 0.82rem;
    padding: 0.6rem 0.9rem;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.bda-table tfoot td {
    padding: 0.65rem 0.9rem;
    font-size: 0.84rem;
}

.work-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-width: 300px;
}

/* Progress pill */
.progress-pill {
    height: 6px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 2px;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.3s;
}

.progress-fill-green  { background: #22c55e; }
.progress-fill-orange { background: #f97316; }
.progress-fill-red    { background: #ef4444; }

/* Remarks cell — clamp to 3 lines */
.remarks-cell {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    max-width: 240px;
    color: #495057;
}

/* ── Login Page ──────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    padding: 1.5rem;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 90px;
    height: auto;
    margin-bottom: 0.85rem;
    drop-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.org-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 0.1rem;
}

.org-name-en {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.app-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #1a3a5c;
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.login-card .btn-primary {
    background-color: #1a3a5c;
    border-color: #1a3a5c;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background-color 0.2s;
}

/* ── Settings sub-nav ────────────────────────────────────── */
.settings-subnav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.settings-tab {
    padding: 0.7rem 1.1rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.settings-tab:hover {
    background: rgba(0,0,0,0.04);
    color: #1a2e44;
}

.settings-tab.active {
    color: #f97316;
    border-bottom-color: #f97316;
    font-weight: 600;
    background: #fff;
}

/* ── Remarks styles ──────────────────────────────────────── */
.remarks-scroll {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 4px;
}

.remarks-scroll::-webkit-scrollbar { width: 4px; }
.remarks-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.remarks-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.remark-entry {
    background: #f8f9fa;
    border-left: 3px solid #0d6efd;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 0.75rem;
}

.remark-static {
    background: #fff8e1;
    border-left: 3px solid #f97316;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 0.75rem;
}

.remark-meta {
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.remark-content {
    font-size: 0.85rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}

.remark-add-box {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.login-card .btn-primary:hover {
    background-color: #245280;
    border-color: #245280;
}

.login-footer {
    font-size: 0.75rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ── Ref Dropdown Panels (Settings) ─────────────────────── */
.ref-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.ref-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.ref-trigger:hover {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.ref-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 520px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.ref-panel::-webkit-scrollbar { width: 5px; }
.ref-panel::-webkit-scrollbar-track { background: #f1f1f1; }
.ref-panel::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.ref-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.83rem;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.1s;
}

.ref-row:last-child { border-bottom: none; }
.ref-row:hover { background: #fafafa; }

.ref-edit-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #fff9f0;
    border-bottom: 1px solid #f4f4f4;
}

.ref-add-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: #f8f9fa;
    border-top: 1px dashed #dee2e6;
}

.ref-add-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.5rem 0.85rem;
    border: none;
    border-top: 1px dashed #dee2e6;
    background: transparent;
    font-size: 0.82rem;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.ref-add-trigger:hover {
    background: #fdf6f0;
    color: #f97316;
}

/* ── Works Stat Cards ────────────────────────────────────── */
.wstat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wstat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.wstat-icon-blue   { background: #e8f0fe; color: #2563eb; }
.wstat-icon-orange { background: #fff3e0; color: #f97316; }
.wstat-icon-green  { background: #e8f8f0; color: #16a34a; }
.wstat-icon-red    { background: #fee2e2; color: #dc2626; }

.wstat-label {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wstat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a2e44;
}

.wstat-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

/* ── Works Filter Bar ────────────────────────────────────── */
.works-filter-bar {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    padding: 0.28rem 0.6rem;
}

.filter-group-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569 !important;
    white-space: nowrap;
}

.filter-select-sm {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 1.4rem 0 0.15rem;
    font-size: 0.82rem;
    min-width: 70px;
    background-color: transparent !important;
    cursor: pointer;
    color: #1e293b !important;
    appearance: auto;
    -webkit-appearance: auto;
    font-family: inherit;
}

.filter-select-sm:focus {
    outline: 2px solid #f97316 !important;
}

.filter-daterange {
    display: flex;
    align-items: center;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    padding: 0.28rem 0.7rem;
    font-size: 0.82rem;
    color: #1e293b !important;
}

.filter-date-input {
    border: none !important;
    outline: none !important;
    font-size: 0.82rem;
    color: #1e293b !important;
    background: transparent !important;
    width: 110px;
}

.filter-date-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.btn-filter-reset {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    padding: 0.32rem 0.75rem;
    font-size: 0.82rem;
    color: #475569 !important;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-filter-reset:hover {
    background: #ffead5 !important;
    border-color: #f97316 !important;
    color: #f97316 !important;
}

/* ── Works Table Styles ──────────────────────────────────── */
.work-name-cell {
    font-size: 0.87rem;
    line-height: 1.35;
    color: #1a2e44;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 300px;
}

.work-fileno {
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.badge-annual {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #cff4fc;
    color: #055160;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
}

.status-pill-ongoing   { background: #fff3cd; color: #92400e; }
.status-pill-completed { background: #d1fae5; color: #065f46; }
.status-pill-stalled   { background: #fee2e2; color: #991b1b; }
.status-pill-cancelled { background: #f3f4f6; color: #374151; }

.eng-name {
    font-size: 0.83rem;
    color: #374151;
}

.remark-preview {
    font-size: 0.82rem;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    max-width: 240px;
}

.btn-read-more {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    margin-top: 0.15rem;
}

.btn-read-more:hover { text-decoration: underline; }

/* Action buttons */
.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
}

.action-btn-view  { border-color: #2563eb; color: #2563eb; }
.action-btn-view:hover  { background: #2563eb; color: #fff; }
.action-btn-chat  { border-color: #6c757d; color: #6c757d; }
.action-btn-chat:hover  { background: #6c757d; color: #fff; }
.action-btn-edit  { border-color: #16a34a; color: #16a34a; }
.action-btn-edit:hover  { background: #16a34a; color: #fff; }
.action-btn-delete  { border-color: #dc2626; color: #dc2626; }
.action-btn-delete:hover  { background: #dc2626; color: #fff; }

/* ── Inline remark edit button ───────────────────────────── */
.btn-remark-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #2563eb;
    background: transparent;
    color: #2563eb;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.btn-remark-edit:hover { opacity: 1; background: #eff6ff; }

/* ── User Management Table ───────────────────────────────── */
.um-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.um-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2e44;
}

.um-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1a2e44;
}

.um-username {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.1rem;
    font-family: monospace;
}

.um-mobile {
    font-size: 0.85rem;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.um-row-inactive td {
    opacity: 0.45;
}

/* Role pills */
.um-role-pill {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.um-role-admin   { background: #fee2e2; color: #991b1b; }
.um-role-xen     { background: #ede9fe; color: #5b21b6; }
.um-role-aen     { background: #dbeafe; color: #1d4ed8; }
.um-role-jen     { background: #dcfce7; color: #15803d; }

/* Action buttons */
.um-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}

.um-btn-edit  { border-color: #2563eb; color: #2563eb; }
.um-btn-edit:hover  { background: #2563eb; color: #fff; }
.um-btn-delete  { border-color: #dc2626; color: #dc2626; }
.um-btn-delete:hover  { background: #dc2626; color: #fff; }

/* ── Settings Accordion Panels ──────────────────────────── */
.settings-panel-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
}

.settings-panel-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    border-bottom: 1px solid transparent;
}

.settings-panel-trigger:hover {
    background: #fdf6f0;
}

.settings-panel-trigger[aria-expanded="true"],
.settings-panel-card:has(.settings-panel-body) .settings-panel-trigger {
    border-bottom-color: #e9ecef;
    background: #fdf6f0;
}

.settings-panel-body {
    border-top: 1px solid #e9ecef;
}

/* ── Work Detail Modal ───────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.2rem;
}

.detail-grid.detail-grid-1col {
    grid-template-columns: 1fr;
}

.detail-label {
    font-size: 0.73rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}

.detail-val {
    font-size: 0.88rem;
    color: #1a2e44;
    font-weight: 500;
    word-break: break-word;
}

.detail-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #f4ebe3;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.detail-section-title:first-child { margin-top: 0; }
