@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Khula:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Khula', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f8f9fa;
    padding: 2rem;
    color: #1a1a1a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 2rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand-logo {
    height: 28px;
    width: auto;
}

.nav-brand-sep {
    width: 1px;
    height: 20px;
    background: #d1d5db;
}

.nav-brand-app {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.welcome {
    margin-bottom: 2rem;
}

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.welcome-sub {
    font-size: 15px;
    color: #6b7280;
}

.directory-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    height: 38px;
    padding: 0 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    border-color: #005596;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
}

.filter-select {
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.filter-select:focus {
    border-color: #005596;
}

.directory {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.directory-header,
.directory-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
}

.directory-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.directory-row {
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
}

.directory-row-wrap:last-child .directory-row:not(.is-active) {
    border-bottom: none;
}

.directory-row-wrap:last-child .directory-detail {
    border-bottom: none;
}

.directory-row:hover {
    background: #f9fafb;
}

.directory-name {
    font-weight: 500;
    color: #1a1a1a;
}

.directory-city {
    color: #6b7280;
}

.directory-role {
    color: #374151;
}

.directory-row.is-active {
    background: #f0f6ff;
    border-bottom-color: transparent;
}

.directory-row.is-active .directory-name {
    color: #005596;
}

/* Expanded detail panel */

.directory-detail {
    display: none;
    align-items: flex-start;
}

.directory-detail.is-open {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #f0f6ff;
    border-bottom: 1px solid #e5e7eb;
}

.detail-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.detail-title {
    font-size: 13px;
    color: #005596;
    font-weight: 500;
    margin-bottom: 0.875rem;
}

.detail-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1.5rem;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.detail-value {
    font-size: 14px;
    color: #1a1a1a;
}

.detail-empty {
    color: #9ca3af;
    font-style: italic;
}
