/* Layout shell shared by the Patient, Doctor and Admin web apps (AppShell.razor).
   Linked from each app's index.html as _content/LandaDoc.Frontend.Shared/landadoc-shell.css. */

:root {
    --ld-primary: #2563EB;
    --ld-primary-soft: #EEF4FF;
    --ld-bg: #F5F7FB;
    --ld-surface: #FFFFFF;
    --ld-border: #E5E7EB;
    --ld-text: #1E293B;
    --ld-text-muted: #64748B;
    --ld-danger: #DC2626;
    --ld-sidebar-width: 240px;
    --ld-topbar-height: 60px;
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--ld-bg);
    color: var(--ld-text);
}

.ld-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */

.ld-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--ld-sidebar-width);
    background: var(--ld-surface);
    border-right: 1px solid var(--ld-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1200;
    transition: transform 0.2s ease;
}

.ld-brand {
    display: flex;
    align-items: center;
    height: var(--ld-topbar-height);
    padding: 0 20px;
    border-bottom: 1px solid var(--ld-border);
    font-size: 18px;
    font-weight: 800;
    color: var(--ld-text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.ld-brand img {
    display: block;
    height: 46px;
    width: auto;
}

.ld-brand small {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

.ld-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px;
}

.ld-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ld-nav-item:hover {
    background: #F3F5F9;
    color: var(--ld-text);
}

.ld-nav-item.active {
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
    font-weight: 600;
}

.ld-nav-item .ld-nav-icon {
    color: inherit;
}

.ld-nav-text {
    flex: 1;
}

.ld-nav-badge + .ld-nav-badge {
    margin-left: 4px;
}

/* Waiting on someone else, not urgent: amber */
.ld-nav-badge.ld-nav-badge-soft {
    background: #F59E0B;
}

.ld-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ld-danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ld-sidebar-user {
    margin: 0 12px;
    padding: 16px 0;
    border-top: 1px solid var(--ld-border);
}

.ld-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 12px;
}

.ld-avatar {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-user-text {
    min-width: 0;
}

.ld-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-user-email {
    font-size: 11px;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--ld-danger);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.ld-logout:hover {
    background: #FEF2F2;
}

/* ── Main column ─────────────────────────────────────────────────── */

.ld-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--ld-sidebar-width);
    display: flex;
    flex-direction: column;
}

.ld-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    height: var(--ld-topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    background: var(--ld-surface);
    border-bottom: 1px solid var(--ld-border);
}

.ld-topbar-spacer {
    flex: 1;
}

.ld-icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--ld-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.ld-icon-button:hover {
    background: #F3F5F9;
    color: var(--ld-text);
}

.ld-bell-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ld-danger);
    border: 2px solid var(--ld-surface);
}

/* Admin bell: number of doctors waiting for approval, and a shake when a new one arrives */
.ld-bell-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ld-danger);
    border: 2px solid var(--ld-surface);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.ld-bell-ringing .mud-icon-root {
    animation: ld-bell-ring 0.8s ease-in-out 2;
    transform-origin: 50% 10%;
}

@keyframes ld-bell-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(18deg); }
    30% { transform: rotate(-16deg); }
    45% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ld-bell-ringing .mud-icon-root { animation: none; }
}

.ld-bell-menu-title {
    padding: 10px 16px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ld-text);
}

.ld-bell-menu-empty {
    padding: 4px 16px 12px;
    font-size: 13px;
    color: var(--ld-text-muted);
}

.ld-bell-menu-name {
    font-weight: 600;
}

.ld-bell-menu-meta {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-menu-button {
    display: none;
}

/* ── Reports: Daily / Weekly / Monthly picker and sections (ReportPeriodPicker, ReportSectionView) ── */

.ld-period {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    margin-bottom: 20px;
}

.ld-period-tabs {
    display: inline-flex;
    padding: 3px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
}

.ld-period-tab {
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 7px;
    background: none;
    color: var(--ld-text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ld-period-tab.active {
    background: var(--ld-primary);
    color: #FFFFFF;
}

.ld-period-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-period-date .ld-input {
    width: 160px;
}

.ld-period-print {
    margin-bottom: 12px;
    font-weight: 600;
}

.ld-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid var(--ld-border);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ld-text);
}

.ld-report-note {
    padding: 10px 20px 0;
    font-size: 12.5px;
}

.ld-report-total td {
    font-weight: 700;
    background: #F8F9FB;
}

/* "Contact support": opens the support team's WhatsApp */
.ld-support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ld-support:hover {
    background: #1EBE5A;
}

@media (max-width: 600px) {
    .ld-support {
        padding: 8px;
    }

    .ld-support-text {
        display: none;
    }
}

.ld-lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    background: var(--ld-bg);
}

.ld-lang button {
    border: none;
    background: none;
    padding: 4px 10px;
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ld-text-muted);
    cursor: pointer;
}

.ld-lang button.active {
    background: var(--ld-surface);
    color: var(--ld-primary);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.ld-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.ld-backdrop {
    display: none;
}

/* ── Cards and tables inside pages ───────────────────────────────── */

.ld-content .mud-paper:not(.mud-popover):not(.mud-appbar),
.ld-content .landadoc-card {
    border: 1px solid var(--ld-border);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

.ld-content .mud-table-head .mud-table-cell {
    color: var(--ld-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ld-content h4.mud-typography-h4 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Page building blocks (Doctor app's Patients, Payments, Workplace, Documents, Services) ── */

.ld-page {
    max-width: 1100px;
    margin: 0 auto;
}

.ld-page-narrow {
    max-width: 720px;
}

.ld-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 20px;
}

/* Buttons on the right of a page title, e.g. Print and PDF */
.ld-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ld-text);
    letter-spacing: -0.01em;
}

.ld-card {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.ld-card + .ld-card {
    margin-top: 20px;
}

.ld-card-body {
    padding: 20px;
}

.ld-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ld-stat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ld-stat-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-tint-blue { background: #EEF4FF; color: #2563EB; }
.ld-tint-green { background: #ECFDF3; color: #16A34A; }
.ld-tint-amber { background: #FFFBEB; color: #D97706; }
.ld-tint-purple { background: #F5F3FF; color: #7C3AED; }

.ld-stat-label {
    font-size: 12.5px;
    color: var(--ld-text-muted);
    margin-bottom: 4px;
}

.ld-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--ld-text);
    line-height: 1.2;
}

.ld-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ld-table th {
    text-align: left;
    padding: 12px 16px;
    background: #FAFBFC;
    border-bottom: 1px solid var(--ld-border);
    color: var(--ld-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ld-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #EEF0F4;
    color: var(--ld-text);
    vertical-align: middle;
}

.ld-table tr:last-child td {
    border-bottom: none;
}

.ld-table .ld-num {
    text-align: right;
    white-space: nowrap;
}

.ld-table-wrap {
    overflow-x: auto;
}

.ld-muted {
    color: var(--ld-text-muted);
}

.ld-empty {
    padding: 32px 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ld-text-muted);
}

.ld-person {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ld-person-avatar {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form fields: label above an input, with an optional icon at the right */
.ld-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.ld-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ld-field-full {
    grid-column: 1 / -1;
}

.ld-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ld-text);
}

.ld-input-wrap {
    position: relative;
}

.ld-input,
.ld-textarea,
.ld-select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    background: var(--ld-surface);
    color: var(--ld-text);
    font: inherit;
    font-size: 13.5px;
}

.ld-input-wrap .ld-input {
    padding-right: 38px;
}

.ld-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    display: flex;
}

.ld-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}

.ld-input:focus,
.ld-textarea:focus,
.ld-select:focus {
    outline: none;
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ld-input:disabled {
    background: #F8F9FB;
    color: var(--ld-text-muted);
    cursor: not-allowed;
}

.ld-input.invalid {
    border-color: var(--ld-danger);
}

.ld-field-error {
    font-size: 12px;
    color: var(--ld-danger);
}

.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    background: var(--ld-surface);
    color: var(--ld-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.ld-btn:hover:not(:disabled) {
    border-color: #CBD2DC;
    background: #F8F9FB;
}

.ld-btn-primary {
    border-color: var(--ld-primary);
    background: var(--ld-primary);
    color: white;
}

.ld-btn-primary:hover:not(:disabled) {
    border-color: #1D4ED8;
    background: #1D4ED8;
}

.ld-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.ld-btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.ld-icon-action {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--ld-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ld-icon-action:hover {
    background: #F3F5F9;
    color: var(--ld-text);
}

.ld-icon-action.danger:hover {
    background: #FEF2F2;
    color: var(--ld-danger);
}

.ld-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 700px) {
    .ld-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Appointment status badge (agenda, dashboard) ─────────────── */

.status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.status-pill.status-confirmed { background: #DCFCE7; color: #15803D; }
.status-pill.status-pending { background: #FEF3C7; color: #B45309; }
.status-pill.status-completed { background: #DBEAFE; color: #1D4ED8; }
.status-pill.status-rescheduled { background: #EDE9FE; color: #6D28D9; }
.status-pill.status-cancelled { background: #F3F4F6; color: #6B7280; }
.status-pill.status-failed { background: #FEE2E2; color: #B91C1C; }
.status-pill.status-refunded { background: #EDE9FE; color: #6D28D9; }

/* ── Phones and small tablets: the sidebar slides in from the left ─ */

@media (max-width: 960px) {
    .ld-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .ld-nav-open .ld-sidebar {
        transform: none;
        box-shadow: 0 10px 40px rgba(16, 24, 40, 0.2);
    }

    .ld-nav-open .ld-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 1150;
    }

    .ld-main {
        margin-left: 0;
    }

    .ld-menu-button {
        display: inline-flex;
    }

    .ld-topbar {
        padding: 0 12px;
    }

    .ld-content {
        padding: 16px;
    }
}

/* ── "Are you still there?" prompt (Components/IdleSessionGuard.razor) ── */

.ld-idle-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000; /* above MudBlazor popovers and the mobile sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

.ld-idle-dialog {
    width: 100%;
    max-width: 380px;
    padding: 26px 24px 22px;
    border-radius: 14px;
    background: var(--ld-surface);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.ld-idle-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-idle-dialog h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ld-text);
}

.ld-idle-dialog p {
    margin: 0 0 20px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ld-text-muted);
}

.ld-idle-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ld-idle-actions .ld-btn {
    flex: 1;
}

/* ── Printing (Components/PrintButton.razor, or the browser's Ctrl+P) ─────
   Only the page content goes on paper, under a header with the user's name and the date.
   Mark anything that shouldn't print with .ld-no-print, and paper-only content with
   .ld-print-only. */

.ld-print-header,
.ld-print-only {
    display: none;
}

@media print {
    @page {
        margin: 14mm 12mm;
    }

    html, body {
        background: #FFFFFF;
    }

    /* Keep the coloured status pills and tints instead of printing them blank */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ld-sidebar,
    .ld-topbar,
    .ld-backdrop,
    .ld-idle-backdrop,
    .ld-no-print,
    .mud-snackbar-provider,
    .mud-overlay,
    .mud-popover-provider,
    #blazor-error-ui,
    .ld-content .ld-btn,
    .ld-content .ld-icon-action,
    .ld-content .mud-button-root {
        display: none !important;
    }

    .ld-print-only {
        display: block;
    }

    .ld-print-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 10px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--ld-border);
        font-size: 11.5px;
        color: var(--ld-text-muted);
    }

    .ld-print-header img {
        height: 38px;
        width: auto;
    }

    .ld-print-meta {
        text-align: right;
    }

    .ld-print-user {
        font-size: 13px;
        font-weight: 700;
        color: var(--ld-text);
    }

    .ld-main {
        margin-left: 0;
    }

    .ld-content,
    .ld-page {
        max-width: none;
        padding: 0;
    }

    .ld-card,
    .ld-content .mud-paper:not(.mud-popover):not(.mud-appbar) {
        box-shadow: none !important;
    }

    /* Wide tables wrap onto the page instead of scrolling */
    .ld-table-wrap,
    .ld-content .mud-table-container {
        overflow: visible !important;
    }

    /* Repeat the column titles on every page and don't split a row across two */
    thead {
        display: table-header-group;
    }

    tr {
        break-inside: avoid;
    }

    .ld-content a {
        color: inherit;
        text-decoration: none;
    }
}

/* ── Password rules checklist (Components/PasswordRequirements.razor) ── */

.ld-pw-rules {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3px 16px;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-pw-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ld-pw-rules li.met {
    color: #15803D;
}

/* ── Notifications list (Components/NotificationList.razor) ─────────── */

.ld-notif-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ld-notif-counts {
    font-size: 13.5px;
    color: var(--ld-text-muted);
}

.ld-notif-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ld-notif-size {
    width: 110px;
}

.ld-notif-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
}

/* ── Profile photos (PhotoPicker, and wherever a doctor or patient is pictured) ── */

/* Round frame: the photo when there is one, otherwise the icon or initials inside */
.ld-photo {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ld-primary-soft);
    color: var(--ld-primary);
}

.ld-photo-lg {
    width: 84px;
    height: 84px;
}

.ld-photo-missing {
    box-shadow: 0 0 0 2px var(--ld-danger);
}

/* Drop into any avatar circle: fills it, cropped to the circle */
.ld-photo img,
img.ld-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.ld-photo-picker {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ld-photo-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ld-photo-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ld-text);
}

.ld-photo-tag {
    margin-left: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ld-text-muted);
}

.ld-photo-hint {
    font-size: 12.5px;
    color: var(--ld-text-muted);
}

.ld-photo-hint-missing {
    color: var(--ld-danger);
}

.ld-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The file input is invisible over its label button */
.ld-photo-pick {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ld-photo-pick.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.ld-photo-pick .ld-photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* PhoneField: calling code next to the number, stacked on narrow screens */
.ld-phone-field {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) 3fr;
    gap: 12px;
    align-items: start;
}

.ld-phone-dial {
    display: inline-block;
    min-width: 48px;
    font-weight: 700;
    color: var(--ld-primary, #1565C0);
}

@media (max-width: 480px) {
    .ld-phone-field {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Doctor app: establishments an assistant works at */
.ld-place-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-place-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: var(--ld-surface);
    font-size: 13px;
    cursor: pointer;
}

.ld-place-option.on {
    border-color: var(--ld-primary);
    background: var(--ld-primary-soft);
    color: #1E40AF;
    font-weight: 600;
}

.ld-place-option small {
    color: var(--ld-text-muted);
    font-weight: 400;
}

.ld-place-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 4px 4px 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ld-primary-soft);
    color: #1E40AF;
    font-size: 12px;
    font-weight: 600;
}

/* Where the appointment is: the establishment chosen when booking */
.appt-place-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1.5px solid #F59E0B;
    border-radius: 10px;
    background: linear-gradient(90deg, #FFFBEB, #FEF3C7);
    color: #92400E;
}

.appt-place-name {
    font-weight: 800;
    font-size: 15px;
}

.appt-place-address {
    font-size: 13px;
    color: #78350F;
}
