﻿/* =========================================================
   PATIENT PROFILE - FINAL CSS
   Cleaned and deduplicated for Syncfusion 31
   ========================================================= */

/* =========================
   PREFERENCE PICKER
========================= */

.week-picker {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    max-width: 560px;
}

.week-head,
.week-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 0.55rem;
    align-items: center;
}

.week-head {
    margin-bottom: 0.5rem;
}

.week-row {
    padding: 0.35rem 0;
}

.wh-col {
    font-weight: 950;
    color: #0f172a;
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.85;
}

.week-day {
    font-weight: 950;
    color: #0f172a;
    font-size: 0.86rem;
    opacity: 0.9;
}

.slot {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(15, 23, 42, 0.02);
    padding: 0.5rem 0.6rem;
    font-weight: 850;
    color: #334155;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

    .slot:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    }

    .slot.on {
        background: rgba(255, 127, 0, 0.1);
        border-color: rgba(255, 127, 0, 0.35);
        color: #0f172a;
    }

.week-foot {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.pref-summary-box {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    font-weight: 800;
    color: #334155;
    line-height: 1.35;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.avail-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.months-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.muted-label {
    color: #64748b;
    font-weight: 900;
    font-size: 0.85rem;
}

.pref-summary {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pref-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 0;
}

.pref-label {
    font-weight: 900;
    color: #0f172a;
}

.pref-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pref-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 127, 0, 0.12);
    border: 1px solid rgba(255, 127, 0, 0.35);
    font-weight: 800;
    font-size: 0.85rem;
}

.pref-pill-soft {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* =========================
   PROVIDER CHIPS
========================= */

.provider-chip-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.provider-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 0.55rem 0.65rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.provider-chip-name {
    font-weight: 900;
    color: #0f172a;
}

.card-span {
    grid-column: 1 / -1;
}

/* =========================
   TIMELINE / ACTIVITY
========================= */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.t-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0.85rem;
    align-items: start;
}

.t-rail {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 127, 0, 0.35);
    border: 2px solid rgba(255, 127, 0, 0.65);
    box-shadow: 0 6px 18px rgba(255, 127, 0, 0.18);
    z-index: 2;
}

.t-line {
    position: absolute;
    top: 14px;
    bottom: -18px;
    width: 2px;
    background: linear-gradient( to bottom, rgba(226, 232, 240, 0.35), rgba(226, 232, 240, 0.95) );
    z-index: 1;
}

.t-item:last-child .t-line {
    display: none;
}

.t-body {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.t-top {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.t-title {
    font-weight: 900;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.2;
}

.t-date {
    color: #64748b;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
}

.t-sub {
    margin-top: 0.25rem;
    color: #334155;
    font-weight: 800;
    font-size: 0.9rem;
}

.t-desc {
    margin-top: 0.35rem;
    color: #475569;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: break-word;
}

.t-meta {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.t-by {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.activity-card {
    padding-top: 0.25rem;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
}

.pill-soft {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(15, 23, 42, 0.03);
    color: #334155;
    white-space: nowrap;
}

.tab-hdr {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================
   NOTES
========================= */

.notes-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
    padding-top: 0.75rem;
}

.section-title {
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.notes-editor {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.editor-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.75rem;
}

.ghost-button {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.75);
    color: #334155;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-weight: 850;
}

.notes-feed {
    padding: 0.25rem 0;
}

.note-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 460px;
    overflow: auto;
    padding-right: 0.35rem;
}

.note-item {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.note-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    background: rgba(15, 23, 42, 0.02);
}

.note-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-pic-sm {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.note-user-name {
    font-weight: 950;
    color: #0f172a;
    line-height: 1.1;
}

.note-user-time {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
}

.note-item-body {
    padding: 0.75rem;
    font-weight: 700;
    color: #334155;
    word-break: break-word;
}

.icon-danger {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(254, 202, 202, 0.9);
    background: rgba(254, 242, 242, 0.9);
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 1px dashed rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

/* =========================
   FORM INPUTS
========================= */

.form-input {
    width: 100%;
    min-height: 38px;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 750;
    color: #0f172a;
    outline: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    appearance: none;
    -webkit-appearance: none;
}

    .form-input:focus {
        border-color: rgba(255, 127, 0, 0.55);
        box-shadow: 0 14px 30px rgba(255, 127, 0, 0.1);
    }

/* =========================
   TABS
========================= */

.activity-tabs .e-tab-header {
    border-bottom: 0 !important;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem !important;
    background: transparent !important;
}

.activity-tabs .e-toolbar-items {
    gap: 0.5rem !important;
    padding: 0 !important;
}

.activity-tabs .e-toolbar-item {
    border-radius: 999px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: rgba(15, 23, 42, 0.02) !important;
    overflow: hidden;
    margin: 0 !important;
}

    .activity-tabs .e-toolbar-item.e-active {
        background: rgba(255, 127, 0, 0.1) !important;
        border-color: rgba(255, 127, 0, 0.35) !important;
    }

.activity-tabs .e-tab-wrap {
    padding: 0.1rem 0.9rem !important;
}

.activity-tabs .e-tab-text,
.activity-tabs .e-toolbar-item .e-tab-text,
.activity-tabs .e-tab-header .e-toolbar-item .e-tab-text {
    font-weight: 900 !important;
    color: #0f172a !important;
}

.activity-tabs .e-indicator,
.activity-tabs .e-ink-bar {
    display: none !important;
}

/* =========================
   DIALOG
========================= */

.confirm-dialog .danger-btn {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
}

/* =========================
   PROVIDER ROW COLORS
========================= */

.prov-assigned-hdr td {
    background: rgb(217, 238, 229) !important;
    color: rgb(58, 148, 139) !important;
    font-weight: 900 !important;
}

.prov-office-hdr td {
    background: #000 !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.prov-role-doc td {
    background: rgb(223, 223, 223) !important;
    color: rgb(38, 38, 38) !important;
    font-weight: 900 !important;
}

.prov-role-hyg td {
    background: rgb(217, 238, 229) !important;
    color: rgb(58, 148, 139) !important;
    font-weight: 900 !important;
}

/* =========================
   MISC
========================= */

.contact-edit .kv + .kv {
    margin-top: 0.65rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

/* =========================
   SYNCFUSION 31 - PATIENT PROFILE FIXES
========================= */

.week-picker,
.pref-summary-box,
.provider-chip,
.t-body,
.notes-editor,
.note-item,
.empty-state {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05) !important;
}

.prov-assigned-hdr td,
.prov-office-hdr td,
.prov-role-doc td,
.prov-role-hyg td {
    font-weight: 900 !important;
}

.patient-profile-page .e-grid,
.patient-profile-shell .e-grid,
.profile-grid-card .e-grid {
    border-radius: 16px !important;
}

    .patient-profile-page .e-grid .e-rowcell,
    .patient-profile-shell .e-grid .e-rowcell,
    .profile-grid-card .e-grid .e-rowcell {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

.patient-profile-page .e-dialog,
.patient-profile-shell .e-dialog {
    border-radius: 22px !important;
}

.patient-profile-page .e-upload,
.patient-profile-shell .e-upload {
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.82) !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .card-span {
        grid-column: auto;
    }

    .notes-shell {
        grid-template-columns: 1fr;
    }

    .note-list {
        max-height: none;
    }

    .t-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .t-date {
        white-space: normal;
    }

    .pref-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
