/* UnityReal - Developers page (developers-page.js) */
#dev-hub {
    margin-top: 0.5rem;
}
.dh-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.dh-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e2e8f0);
}
.dh-kpi span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #64748b);
}
.dh-kpi b {
    font-size: 1.15rem;
    color: var(--text-primary, #0f172a);
}
.dh-kpi small,
.dh-name small {
    font-size: 0.74rem;
    color: var(--text-muted, #64748b);
    font-weight: 400;
}
.dh-bad {
    color: #dc2626 !important;
}
.dh-alert {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.dh-alert a {
    color: inherit;
    font-weight: 600;
}
.dh-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.9rem;
}
.dh-chips,
.dh-views {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.dh-chip {
    border: 1px solid var(--border-light, #cbd5e1);
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #475569);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    cursor: pointer;
}
.dh-chip.on {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.dh-search {
    flex: 1 1 220px;
    max-width: 320px;
}
.dh-sort {
    width: auto;
}
.dh-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
}
.dh-name > span {
    display: flex;
    flex-direction: column;
}
.dh-logo {
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    flex-shrink: 0;
}
.dh-logo-ph {
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    border: none;
}
.dh-tag {
    display: inline-block;
    font-size: 0.68rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    margin: 0.1rem 0.2rem 0 0;
}
.dh-tags {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
}
.dh-score {
    display: inline-block;
    min-width: 2.2rem;
    text-align: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}
.dh-score-good {
    background: #16a34a;
}
.dh-score-mid {
    background: #d97706;
}
.dh-score-bad {
    background: #dc2626;
}
.dh-score-na {
    background: #94a3b8;
    font-weight: 500;
}
.dh-contact-name {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
}
.dh-contact-btns {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.15rem;
}
.dh-mini {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-light, #cbd5e1);
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #475569);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}
.dh-mini:hover {
    background: #eef2ff;
}
.dh-wa {
    color: #16a34a;
}
.dh-archived {
    opacity: 0.6;
}
.dh-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted, #64748b);
}
.dh-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
}
.dh-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
}
.dh-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.dh-card-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.dh-card-top > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.dh-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.8rem 0 0.5rem;
}
.dh-card-grid span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
}
.dh-mobile {
    display: none;
}
.dh-mlist {
    display: flex;
    flex-direction: column;
}
.dh-mrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}
@media (max-width: 760px) {
    .dh-desktop {
        display: none;
    }
    .dh-mobile {
        display: block;
    }
    .dh-views {
        display: none;
    }
    .dh-search {
        max-width: none;
    }
}

/* profile modal */
#dev-profile-modal .modal {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
}
.dh-modal-body {
    overflow-y: auto;
    padding: 0 1.4rem 1.4rem;
    max-height: calc(90vh - 70px);
}
.dh-tabs {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    background: var(--bg-card, #fff);
    z-index: 2;
}
.dh-tab {
    border: none;
    background: transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary, #475569);
    font-size: 0.85rem;
}
.dh-tab.on {
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
}
.dh-tab em {
    font-style: normal;
    background: #4f46e5;
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    padding: 0 0.4rem;
    margin-left: 0.15rem;
}
.dh-pane h4 {
    margin: 1.1rem 0 0.5rem;
}
.dh-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
@media (max-width: 760px) {
    .dh-two {
        grid-template-columns: 1fr;
    }
}
.dh-dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.35rem 0.6rem;
    font-size: 0.88rem;
}
.dh-dl dt {
    color: var(--text-muted, #64748b);
}
.dh-dl dd {
    margin: 0;
    word-break: break-word;
}
.dh-map {
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light, #e2e8f0);
}
.dh-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}
.dh-head p {
    margin: 0;
}
.dh-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dh-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 10px;
    font-size: 0.88rem;
}
.dh-item > div:last-child {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}
.dh-due {
    border-color: #f59e0b;
    background: #fffbeb;
}
.dh-pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0.4rem 0 0;
    font-size: 0.84rem;
}
.dh-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.7rem;
    margin: 0.5rem 0 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: var(--bg-secondary, #f8fafc);
}
.dh-f {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
}
.dh-wide,
.dh-form-actions {
    grid-column: 1 / -1;
}
.dh-letter {
    font-family: inherit;
    line-height: 1.5;
}
.dh-logo-edit {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.dh-suggest {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}
body.dark-mode .dh-tab.on,
body.dark-mode .dh-mini:hover {
    background: #312e81;
    color: #e0e7ff;
}
body.dark-mode .dh-alert,
body.dark-mode .dh-due {
    background: #422006;
    color: #fde68a;
}
.dh-table td {
    vertical-align: middle;
}
.dh-table td:first-child {
    min-width: 200px;
}
.dh-table td small {
    display: block;
}
.dh-table td:nth-child(n + 2) {
    white-space: nowrap;
}
#dev-profile-modal .data-table td {
    vertical-align: middle;
}
#dev-profile-modal .data-table td:nth-child(n + 3) {
    white-space: nowrap;
}
.dh-table th,
.dh-table td {
    padding: 0.6rem 0.65rem;
}
.dh-table .dh-contact-name,
.dh-table td .text-muted {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dh-table-wrap-fix {
    overflow-x: auto;
}
