/* Key Manager — Partner Portal 2026 V2.8 brand alignment */

/* Login page (matches PartnerPortal Index.cshtml) */
.ps-login-page {
    --ps-red: #e30613;
    --ps-navy: #270d46;
    --ps-turquoise: #87c1c9;
    --ps-lime: #cdd500;
    --ps-grey: #6f6f6e;
    margin: 0;
    font-family: Montserrat, system-ui, sans-serif;
    color: var(--ps-navy, #270d46);
    background:
        radial-gradient(circle at 12% 18%, rgba(135, 193, 201, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(205, 213, 0, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #270d46 0%, #1c0934 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.ps-login-shell {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.ps-login-grid { width: 100%; max-width: 1100px; max-height: 100%; }

.ps-login-hero { color: #fff; padding: 1.5rem 1rem; }
.ps-login-logo { max-width: 240px; margin-bottom: 1.5rem; }

.ps-login-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ps-lime, #cdd500);
    background: rgba(205, 213, 0, 0.12);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ps-login-hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.ps-login-accent { color: var(--ps-lime, #cdd500); }

.ps-login-hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 460px;
    margin: 0 0 1.75rem;
}

.ps-login-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.ps-login-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.ps-login-bullets i { color: var(--ps-turquoise, #87c1c9); font-size: 1.05rem; }

.ps-login-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.75rem 1.5rem 1.25rem;
    box-shadow: 0 30px 80px -25px rgba(0, 0, 0, 0.55), 0 12px 24px -12px rgba(39, 13, 70, 0.45);
    max-width: 520px;
    max-height: calc(100dvh - 1.5rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ps-login-card-header h2 {
    font-weight: 800;
    font-size: 1.55rem;
    margin: 0 0 0.35rem;
    color: var(--ps-navy, #270d46);
}

.ps-login-card-header p { margin: 0; color: var(--ps-grey, #6f6f6e); font-size: 0.92rem; }
.ps-login-card-header { margin-bottom: 1rem; flex-shrink: 0; }

.ps-login-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ece8e1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ps-grey, #6f6f6e);
    flex-shrink: 0;
}

.ps-login-error {
    background: rgba(227, 6, 19, 0.08);
    border: 1px solid rgba(227, 6, 19, 0.25);
    color: #b40510;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.ps-link {
    color: var(--ps-navy, #270d46);
    font-weight: 600;
    text-decoration: none;
}

.ps-link:hover { color: var(--ps-red, #e30613); text-decoration: underline; }

.ps-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 144px);
    justify-content: center;
    gap: 0.75rem;
}

.ps-user-grid > form {
    display: flex;
    width: 144px;
}

.ps-user-tile {
    width: 100%;
    height: 162px;
    color: var(--ps-navy, #270d46);
    border: 2px solid #ececf2;
    border-radius: 16px;
    padding: 1rem 0.75rem;
    background: #f4f6fa;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.ps-user-tile:hover {
    border-color: var(--ps-navy, #270d46);
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.ps-user-tile .ps-home-avatar {
    margin: 0 auto 0.25rem;
    background: var(--ps-red, #e30613);
    color: #fff;
    flex-shrink: 0;
}

.ps-user-tile .fw-bold,
.ps-user-tile .small {
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.ps-user-tile .fw-bold {
    -webkit-line-clamp: 2;
    line-height: 1.2;
}

.ps-user-tile .small {
    -webkit-line-clamp: 1;
}

.ps-login-card .ps-user-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: start;
    align-content: start;
}

.ps-login-card .ps-user-grid > form {
    width: 100%;
    min-width: 0;
}

.ps-login-card .ps-user-tile {
    height: 132px;
    padding: 0.75rem 0.5rem;
    border-radius: 14px;
    gap: 0.2rem;
}

.ps-login-card .ps-user-tile .ps-home-avatar {
    width: 40px;
    height: 40px;
    font-size: 12px;
    margin-bottom: 0.2rem;
}

.ps-login-card .ps-user-tile .fw-bold {
    font-size: 0.82rem;
}

.ps-login-card .ps-user-tile .small {
    font-size: 0.72rem;
}

.ps-pin-display {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: 800;
    color: var(--ps-navy, #270d46);
    margin-bottom: 1rem;
}

.ps-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 280px;
    margin: 0 auto;
}

.ps-key {
    min-height: 56px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ps-navy, #270d46);
    -webkit-text-fill-color: var(--ps-navy, #270d46);
    border: 2px solid #ececf2;
    border-radius: 12px;
    background: #f4f6fa;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.ps-key:active,
.ps-key:focus {
    color: var(--ps-navy, #270d46);
    -webkit-text-fill-color: var(--ps-navy, #270d46);
}

.ps-key-enter {
    background: var(--ps-red, #e30613);
    color: #fff;
    -webkit-text-fill-color: #fff;
    border-color: var(--ps-red, #e30613);
}

.ps-key-enter:hover,
.ps-key-enter:active,
.ps-key-enter:focus {
    background: var(--ps-navy, #270d46);
    border-color: var(--ps-navy, #270d46);
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.ps-key-enter i {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Map legacy v3 classes → Partner Portal look */
.v3-page-title {
    margin: 0;
    font-size: 28px;
    letter-spacing: -1px;
    color: var(--ps-navy, #270d46);
    font-weight: 800;
}

.v3-panel {
    background: white;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid var(--ps-line, #ececf2);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.v3-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.v3-panel-header h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--ps-navy, #270d46);
    font-weight: 800;
}

.v3-stat-card {
    background: white;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--ps-line, #ececf2);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.v3-stat-value {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.v3-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v3-stat-card.issued .v3-stat-value { color: #f39c12; }
.v3-stat-card.overdue .v3-stat-value { color: var(--ps-red, #e30613); }
.v3-stat-card.lost .v3-stat-value { color: var(--ps-red, #e30613); }
.v3-stat-card.available .v3-stat-value { color: #9ca700; }

.btn-v3-primary,
.btn-v3-success,
.btn-v3-danger,
.btn-v3-blue,
.btn-v3-checkin,
.btn-v3-checkout {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font: 800 14px Montserrat, sans-serif;
    color: #fff;
}

.btn-v3-primary { background: var(--ps-red, #e30613); }
.btn-v3-primary:hover { background: var(--ps-navy, #270d46); color: #fff; }

.btn-v3-checkin { background: var(--ps-red, #e30613); color: #fff; }
.btn-v3-checkin:hover,
.btn-v3-checkin:focus-visible,
.btn-v3-checkin:active {
    background: var(--ps-navy, #270d46);
    color: #fff;
}

.btn-v3-checkout { background: var(--ps-navy, #270d46); color: #fff; }
.btn-v3-checkout:hover,
.btn-v3-checkout:focus-visible,
.btn-v3-checkout:active {
    background: var(--ps-turquoise, #87c1c9);
    color: var(--ps-navy, #270d46);
}
.btn-v3-success { background: #9ca700; }
.btn-v3-danger { background: var(--ps-red, #e30613); }
.btn-v3-blue {
    background: var(--ps-lime, #cdd500);
    color: var(--ps-navy, #270d46);
}

.btn-v3-blue:hover {
    background: var(--ps-navy, #270d46);
    border-color: var(--ps-navy, #270d46);
    color: #fff;
}

.btn-v3-outline {
    border: 2px solid var(--ps-navy, #270d46);
    border-radius: 999px;
    padding: 10px 18px;
    font: 800 14px Montserrat, sans-serif;
    color: var(--ps-navy, #270d46);
    background: #fff;
}

.btn-v3-outline:hover {
    background: var(--ps-navy, #270d46);
    color: #fff;
}

.v3-key-tile {
    background: #fafbfd;
    border: 1px solid #f0f1f4;
    border-radius: 20px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s;
}

.v3-key-tile:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.v3-key-tile.available { border-color: #9ca700; }
.v3-key-tile.issued { border-color: #f39c12; }
.v3-key-tile.overdue { border-color: var(--ps-red, #e30613); }
.v3-key-tile.lost { border-color: var(--ps-red, #e30613); background: #fff8f8; }
.v3-key-tile.notfound { border-style: dashed; opacity: 0.85; }

.v3-key-number { font-size: 1.5rem; font-weight: 900; color: var(--ps-navy, #270d46); letter-spacing: -1px; }
.v3-key-tile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.v3-key-tile-body { flex: 1; font-size: 0.9rem; margin-bottom: 0.75rem; }

.v3-key-status-meta {
    margin-top: 0.35rem;
    line-height: 1.35;
}

.v3-key-status-meta-sep {
    margin: 0 0.2rem;
    opacity: 0.65;
}
.v3-key-tile-actions { display: grid; gap: 0.35rem; }

.v3-status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.v3-status-badge.available { background: #eef5d0; color: #5a6600; }
.v3-status-badge.issued { background: #fff3cd; color: #856404; }
.v3-status-badge.overdue { background: #fde8ea; color: #b40510; animation: ps-pulse 2s infinite; }
.v3-status-badge.lost { background: #fde8ea; color: #b40510; }
.v3-status-badge.inactive { background: #ececf2; color: #666; }
.v3-status-badge.returned { background: #e3f4f6; color: #2a6b74; }
.v3-status-badge.default { background: #ececf2; color: #666; }

@keyframes ps-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.v3-activity-feed { display: grid; gap: 0.75rem; }

.v3-activity-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fafbfd;
    border: 1px solid #f0f1f4;
}

.v3-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ps-red, #e30613);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v3-admin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid var(--ps-line, #ececf2);
    border-radius: 24px;
    text-decoration: none;
    color: var(--ps-navy, #270d46);
    font-weight: 700;
    min-height: 140px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s;
}

.v3-admin-card:hover {
    transform: translateY(-3px);
    color: var(--ps-red, #e30613);
}

.v3-admin-card i { font-size: 2rem; color: var(--ps-red, #e30613); }

.v3-bar { height: 24px; background: #f0f1f4; border-radius: 999px; overflow: hidden; }
.v3-bar-fill { height: 100%; background: linear-gradient(90deg, var(--ps-navy, #270d46), var(--ps-turquoise, #87c1c9)); border-radius: 999px; }

.v3-offline-badge {
    display: inline-block;
    background: #f39c12;
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.v3-toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(420px, calc(100vw - 2rem));
}

.ps-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 0.95rem 1.25rem;
    margin-bottom: 1rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 10px 28px rgba(39, 13, 70, 0.08);
}

.ps-alert-banner.alert-dismissible {
    padding-right: 1.25rem;
}

.ps-alert-banner .btn-close {
    position: static;
    flex-shrink: 0;
    align-self: center;
    margin: 0 0 0 0.5rem;
    padding: 0.45rem;
    opacity: 0.55;
    background-size: 0.75rem;
}

.v3-toast-container .ps-alert-banner {
    margin-bottom: 0;
    animation: ps-alert-in 0.28s ease-out;
}

.ps-alert-icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    margin-top: 0.05rem;
}

.ps-alert-content {
    flex: 1;
    min-width: 0;
    padding-right: 0.35rem;
}

.ps-alert-banner .btn-close:hover {
    opacity: 0.85;
}

.alert-success.ps-alert-banner {
    background: linear-gradient(135deg, #f8faf0 0%, #eef5d0 100%);
    border-color: rgba(156, 167, 0, 0.28);
    color: var(--ps-navy, #270d46);
}

.alert-success.ps-alert-banner .ps-alert-icon {
    color: #7a8800;
}

.alert-danger.ps-alert-banner {
    background: linear-gradient(135deg, #fff6f7 0%, #fde8ea 100%);
    border-color: rgba(227, 6, 19, 0.22);
    color: #9a0812;
}

.alert-danger.ps-alert-banner .ps-alert-icon {
    color: var(--ps-red, #e30613);
}

.alert-warning.ps-alert-banner {
    background: linear-gradient(135deg, #fffdf2 0%, #fff6dd 100%);
    border-color: rgba(243, 156, 18, 0.28);
    color: #7a5200;
}

.alert-warning.ps-alert-banner .ps-alert-icon {
    color: #c97800;
}

.alert-info.ps-alert-banner {
    background: linear-gradient(135deg, #f4fbfc 0%, #e3f4f6 100%);
    border-color: rgba(135, 193, 201, 0.45);
    color: var(--ps-navy, #270d46);
}

.alert-info.ps-alert-banner .ps-alert-icon {
    color: #2a6b74;
}

@keyframes ps-alert-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audit timeline (key details) */
.v3-panel--timeline {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.v3-timeline-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    background: #f4f6fa;
    border: 1px solid #ececf2;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.v3-timeline-scroll {
    max-height: min(72vh, 760px);
    overflow-y: auto;
    padding-right: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.v3-timeline-scroll::-webkit-scrollbar { width: 6px; }
.v3-timeline-scroll::-webkit-scrollbar-thumb {
    background: #d8dae3;
    border-radius: 999px;
}

.v3-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 2rem;
}

.v3-timeline::before {
    content: "";
    position: absolute;
    left: 0.68rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg, #ececf2 0%, #dfe2ea 50%, #ececf2 100%);
    border-radius: 999px;
}

.v3-timeline-empty {
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    background: #fafbfd;
    border: 1px dashed #dfe2ea;
    border-radius: 16px;
}

.v3-timeline-item {
    position: relative;
    margin-bottom: 0.85rem;
}

.v3-timeline-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: -0.15rem 0 0.85rem;
    padding: 0.15rem 0;
}

.v3-timeline-gap::before,
.v3-timeline-gap::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dfe2ea 20%, #dfe2ea 80%, transparent);
    border-radius: 999px;
}

.v3-timeline-gap .v3-timeline-duration {
    flex-shrink: 0;
}

.v3-timeline-marker {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #fff;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ececf2;
    background: var(--ps-navy, #270d46);
}

.v3-timeline-item--checkout .v3-timeline-marker { background: #f39c12; }
.v3-timeline-item--checkin .v3-timeline-marker,
.v3-timeline-item--return .v3-timeline-marker,
.v3-timeline-item--found .v3-timeline-marker,
.v3-timeline-item--available .v3-timeline-marker { background: #9ca700; }
.v3-timeline-item--returned .v3-timeline-marker { background: #2a6b74; }
.v3-timeline-item--lost .v3-timeline-marker { background: var(--ps-red, #e30613); }
.v3-timeline-item--inactive .v3-timeline-marker { background: #6f6f6e; }

.v3-timeline-card {
    background: #fafbfd;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 14px rgba(39, 13, 70, 0.04);
}

.v3-timeline-item--checkout .v3-timeline-card {
    background: #fff9f0;
    border-color: rgba(243, 156, 18, 0.22);
}

.v3-timeline-item--checkin .v3-timeline-card,
.v3-timeline-item--return .v3-timeline-card,
.v3-timeline-item--found .v3-timeline-card,
.v3-timeline-item--available .v3-timeline-card {
    background: #f8faf0;
    border-color: rgba(156, 167, 0, 0.22);
}

.v3-timeline-item--returned .v3-timeline-card {
    background: #f2f9fa;
    border-color: rgba(42, 107, 116, 0.22);
}

.v3-timeline-item--lost .v3-timeline-card {
    background: #fff6f7;
    border-color: rgba(227, 6, 19, 0.18);
}

.v3-timeline-item--inactive .v3-timeline-card {
    background: #f6f6f6;
    border-color: rgba(111, 111, 110, 0.2);
}

.v3-timeline-item--default .v3-timeline-card {
    background: #f8f6fb;
    border-color: rgba(39, 13, 70, 0.14);
}

.v3-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.v3-timeline-action {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ps-navy, #270d46);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.v3-timeline-when {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
}

.v3-timeline-when-sep {
    margin: 0 0.25rem;
    color: #b8bcc8;
}

.v3-timeline-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.v3-timeline-status-arrow {
    font-size: 0.75rem;
    color: #b8bcc8;
}

.v3-timeline-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #5a6600;
    background: #eef5d0;
    border: 1px solid rgba(156, 167, 0, 0.28);
    white-space: nowrap;
}

.v3-timeline-duration i {
    font-size: 0.72rem;
}

.v3-timeline-details {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
}

.v3-timeline-detail {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
}

.v3-timeline-detail dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.v3-timeline-detail dt i {
    color: var(--ps-navy, #270d46);
    font-size: 0.82rem;
}

.v3-timeline-detail dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ps-navy, #270d46);
    word-break: break-word;
}

.v3-timeline-by {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
    padding-top: 0.15rem;
    border-top: 1px solid #eef0f4;
}

.v3-timeline-by i {
    color: var(--ps-navy, #270d46);
}

.v3-timeline-notes {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
    border: 1px dashed #d8dae3;
    border-radius: 12px;
}

.v3-timeline-notes-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.35rem;
}

.v3-timeline-notes-label i {
    color: var(--ps-navy, #270d46);
    font-size: 0.82rem;
}

.v3-timeline-notes-text {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ps-navy, #270d46);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .v3-timeline-detail {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .v3-timeline-scroll {
        max-height: none;
    }
}

.ps-modal { border-radius: 22px; border: 0; overflow: hidden; }
.ps-input { border-radius: 12px; border: 2px solid #e5e1da; background: #f3f1ee; }
.ps-input:focus { border-color: var(--ps-navy, #270d46); box-shadow: 0 0 0 4px rgba(39, 13, 70, 0.12); }

.ps-holder-type-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.ps-holder-type-group--locations {
    grid-template-columns: repeat(2, 1fr);
}

.ps-holder-type-btn {
    border: 2px solid #ececf2;
    border-radius: 12px;
    padding: 0.7rem 0.45rem;
    background: #f4f6fa;
    font: 700 0.82rem Montserrat, system-ui, sans-serif;
    color: var(--ps-navy, #270d46);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ps-holder-type-btn:hover {
    border-color: var(--ps-navy, #270d46);
    background: #fff;
}

.ps-holder-type-btn.active {
    border-color: var(--ps-navy, #270d46);
    background: var(--ps-navy, #270d46);
    color: #fff;
}

.ps-holder-user-preview {
    padding: 0.85rem 1rem;
    background: #f4f6fa;
    border: 1px solid #ececf2;
    border-radius: 12px;
    font-size: 0.95rem;
}

.v3-search-bar .form-control {
    border-radius: 999px;
    border: 1px solid var(--ps-line, #ececf2);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.v3-search-type-toggle .btn-v3-outline {
    min-width: 132px;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.v3-search-type-toggle .btn-check:not(:checked) + .btn-v3-outline {
    opacity: 0.65;
    border-color: #c8cad4;
    color: #666;
    background: #f8f8fa;
}

.v3-search-type-toggle .btn-check:checked + .btn-v3-outline {
    opacity: 1;
    background: var(--ps-red, #e30613);
    border-color: var(--ps-red, #e30613);
    color: #fff;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
}

.v3-search-type-toggle .btn-check:checked + .btn-v3-outline:hover {
    background: var(--ps-navy, #270d46);
    border-color: var(--ps-navy, #270d46);
    color: #fff;
}

.ps-portal-page-hero {
    background: linear-gradient(135deg, var(--ps-navy, #270d46), #34145d);
    border-radius: 34px;
    padding: 32px;
    color: white;
    margin-bottom: 24px;
}

@media (max-width: 991.98px) {
    .ps-login-card .ps-user-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .ps-login-hero { text-align: center; }
    .ps-login-hero p { margin-left: auto; margin-right: auto; }
    .ps-login-bullets { display: inline-block; text-align: left; }
    .ps-login-card { padding: 1.5rem 1.25rem 1rem; }
    .ps-login-card .ps-user-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ps-login-card .ps-user-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ps-login-card .ps-user-tile {
        height: 120px;
    }
}
