﻿/* Teacher inline profile */
.id-teacher-inline-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    padding: 14px;
    border-radius: 12px;
    line-height: 1.9;
}

.id-teacher-inline-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: baseline;
}

.id-teacher-field {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 10px;
    max-width: 100%;
}

.id-teacher-field__label { opacity: 0.7; white-space: nowrap; }
.id-teacher-field__sep { opacity: 0.45; }
.id-teacher-field__value { font-weight: 600; opacity: 0.95; }

.id-teacher-inline-contacts {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.id-teacher-contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    text-decoration: none;
    font-size: 13px;
}

/* Teachers table map-first page */
.id-teachers-wrapper {
    --id-surface: #ffffff;
    --id-border: #e8e9ed;
    --id-text: #1f2937;
    --id-muted: #6b7280;
    --id-brand: #d1ad61;

    max-width: 1500px;
    margin: 0 auto;
    padding: 14px;
    direction: rtl;
    color: var(--id-text);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.id-teachers-map-shell,
.id-teachers-filter-bar,
.id-teachers-table-panel {
    background: var(--id-surface);
    border: 1px solid var(--id-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.id-teachers-map-shell {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 14px;
    position: sticky;
    top: 14px;
}

.id-teachers-search-bar {
    grid-column: 2;
    grid-row: 1;
    padding: 12px;
    margin: 0;
}

.id-teachers-layout {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
}

.id-teachers-layout--single .id-teachers-table-panel {
    padding: 12px;
    min-height: 72vh;
}

.id-teachers-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.id-teachers-map-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.id-teachers-map-header p {
    margin: 4px 0 0;
    color: var(--id-muted);
    font-size: 13px;
    line-height: 1.7;
}

.id-teachers-map-header button {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--id-border);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.id-teachers-map {
    max-height: 820px;
    border: 1px solid #ece2cf;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(120% 100% at 20% 0%, #fff9eb 0%, #f5efdf 60%, #eee4cf 100%);
}

.id-teachers-map svg {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    user-select: none;
}

.id-teachers-map svg:active {
    cursor: grabbing;
}

.id-map-label {
    font-size: 14px;
    font-weight: 700;
    fill: #1f2937;
    pointer-events: none;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
}

.id-teachers-map #provinces [id] {
    cursor: pointer;
    transition: 0.2s ease;
}

.id-teachers-map #provinces [id]:hover,
.id-teachers-map #provinces [id].is-active {
    fill: var(--id-brand) !important;
    stroke: #fff !important;
}

.id-teachers-selected-city {
    margin-top: 10px;
}

.id-teachers-selected-city label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}

.id-teachers-selected-city input,
.id-teachers-global-search input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--id-border);
    border-radius: 10px;
    background: #fff;
}

.id-teachers-global-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.id-teachers-global-search button {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    color: #fff;
    background: var(--id-brand);
    cursor: pointer;
}

.id-teachers-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--id-border);
    border-radius: 12px;
    direction: ltr;
    scrollbar-gutter: stable;
}

.id-teachers-table-native {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: #fff;
    table-layout: fixed;
    direction: rtl;
}

/* Force real table behavior (prevent theme responsive-table overrides) */
.id-teachers-table-native,
.id-teachers-table-native thead,
.id-teachers-table-native tbody,
.id-teachers-table-native tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.id-teachers-table-native thead {
    display: table-header-group;
}

.id-teachers-table-native tbody {
    display: table-row-group;
}

.id-teachers-table-native tr {
    display: table-row !important;
}

.id-teachers-table-native th,
.id-teachers-table-native td {
    display: table-cell !important;
    float: none !important;
    width: auto !important;
    position: static !important;
    clear: none !important;
}

.id-teachers-table-native thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    padding: 13px 12px;
    border-bottom: 1px solid var(--id-border);
    white-space: nowrap;
    vertical-align: middle;
    letter-spacing: 0.1px;
}

.id-teachers-table-native tbody td {
    padding: 8px 10px;
    vertical-align: middle;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
}

.id-teachers-table-native tbody td:first-child {
    border-right: 1px solid #eef1f5;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.id-teachers-table-native tbody td:last-child {
    border-left: 1px solid #eef1f5;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.id-teachers-table-native tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.id-teachers-table-native tbody tr:hover td {
    background: #f8fafc;
}

.id-doctor-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    width: 100%;
}

.id-doctor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f6f8;
    border: 1px solid var(--id-border);
}

.id-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.id-doctor-meta { min-width: 0; }
.id-doctor-meta strong,
.id-doctor-meta p {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.id-doctor-meta strong { font-size: 14px; }

.id-doctor-meta p {
    color: var(--id-muted);
    margin-top: 2px;
    font-size: 12px;
}

.id-row-service,
.id-row-association,
.id-row-medical,
.id-col-service,
.id-col-association,
.id-col-medical {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    border: 1px solid var(--id-border);
    border-radius: 9px;
    background: #fafbfc;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.id-col-association {
    overflow: visible;
}

.id-association-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.id-association-badge.is-member {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.id-association-badge.is-not-member {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.id-contact-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.id-row-contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 36px;
}

.id-col-contact {
    min-width: 140px;
    white-space: normal;
}

.id-contact-link {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid #eadfc8;
    color: #7c5a1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.id-contact-link svg { width: 16px; height: 16px; }
.id-contact-link svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px;
    max-height: 16px;
    display: block;
}

.id-contact-empty {
    color: var(--id-muted);
    font-size: 12px;
}

.id-table-pagination {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* keep icons compact in all themes */
.id-teachers-table-native svg {
    width: 16px !important;
    height: 16px !important;
}

.id-pagination-info {
    font-size: 12px;
    color: var(--id-muted);
}

.id-pagination-controls {
    display: flex;
    gap: 6px;
}

.id-pagination-controls button {
    height: 34px;
    border: 1px solid var(--id-border);
    background: #fff;
    border-radius: 9px;
    padding: 0 10px;
    cursor: pointer;
}

.id-pagination-controls button:disabled {
    opacity: 0.45;
    cursor: default;
}

.id-teachers-feedback {
    margin-top: 8px;
    border: 1px dashed var(--id-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    color: var(--id-muted);
    display: none;
}

.id-teachers-feedback.is-visible {
    display: block;
}

@media (max-width: 1220px) {
    .id-teachers-table-panel {
        overflow-x: auto;
    }
}

@media (max-width: 980px) {
    .id-teachers-wrapper {
        grid-template-columns: 1fr;
    }

    .id-teachers-map-shell,
    .id-teachers-search-bar,
    .id-teachers-layout {
        grid-column: 1;
        grid-row: auto;
    }

    .id-teachers-map-shell {
        position: static;
    }

    .id-teachers-map {
        min-height: 52vh;
        max-height: none;
    }

    .id-teachers-table-native {
        min-width: 820px;
    }

    .id-map-label {
        font-size: 12px;
    }
}

@media (max-width: 720px) {
    .id-teachers-wrapper { padding: 10px; }
    .id-teachers-map-header { flex-direction: column; }
    .id-teachers-global-search { grid-template-columns: 1fr; }
    .id-teachers-map { min-height: 46vh; }
}

/* VIP resume + members table */
.id-vip-resume-box {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.id-vip-resume-head {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
}

.id-vip-resume-head img {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
}

.id-vip-resume-head h1 {
    margin: 0 0 6px;
    font-size: 22px;
}

.id-vip-resume-head p {
    margin: 0;
    color: #4b5563;
}

.id-vip-section h3 {
    margin: 0 0 8px;
}

.id-vip-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.id-vip-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.id-vip-table th,
.id-vip-table td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: right;
}

.id-vip-table th {
    background: #f9fafb;
}

.id-vip-filters {
    margin-bottom: 10px;
}

.id-vip-filters input {
    width: 100%;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 10px;
}
