/* Doctor owner self-service panel */
.doctor-owner-panel {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #f7fafc;
    font-family: Georgia, "Times New Roman", serif;
}

.doctor-owner-heading {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #1a365d;
}

.doctor-owner-text {
    margin: 0 0 1rem;
    color: #4a5568;
    line-height: 1.5;
}

.doctor-owner-admin-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    color: #744210;
    background: #fefcbf;
    border-radius: 4px;
    vertical-align: middle;
}

.doctor-owner-fieldset {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.doctor-owner-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.doctor-owner-label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #2d3748;
    font-family: system-ui, -apple-system, sans-serif;
}

.doctor-owner-input,
.doctor-owner-textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    background: #fff;
}

.doctor-owner-textarea[dir="rtl"] {
    text-align: right;
}

.doctor-owner-btn {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

.doctor-owner-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.doctor-owner-btn-primary {
    background: #2b6cb0;
}

.doctor-owner-btn-primary:hover {
    background: #2c5282;
    color: #fff;
}

.doctor-owner-btn-secondary {
    background: #edf2f7;
    color: #2d3748;
    margin-top: 0.25rem;
}

.doctor-owner-btn-secondary:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.doctor-owner-btn-whatsapp {
    background: #25d366;
}

.doctor-owner-btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

.doctor-owner-hint {
    margin: 0.5rem 0 0;
    color: #718096;
    font-size: 0.8rem;
    font-family: system-ui, -apple-system, sans-serif;
}

/* **[HIGHLIGHT-ADDED]** Theme color pickers */
.doctor-owner-theme-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.doctor-owner-color {
    display: block;
    width: 3rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.doctor-owner-theme-reset {
    margin-left: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: #1565c0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.doctor-horaires-editor {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

.doctor-horaires-editor th,
.doctor-horaires-editor td {
    border-bottom: 1px solid #edf2f7;
}

.doctor-horaires-editor tr:last-child td {
    border-bottom: none;
}

.doctor-time-picker select {
    font-family: system-ui, -apple-system, sans-serif;
}

.doctor-owner-message.is-error {
    color: #c53030;
}

.doctor-owner-message.is-success {
    color: #276749;
}

.doctor-owner-edit-form.is-busy,
.doctor-owner-unlock-form.is-busy {
    opacity: 0.85;
}

/* **[HIGHLIGHT-ADDED]** Custom FAQ repeater */
.doctor-owner-faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.75rem 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.doctor-owner-faq-count {
    font-weight: 700;
    color: #2b6cb0;
}

.doctor-owner-faq-count-label {
    color: #718096;
    font-size: 0.85rem;
}

.doctor-owner-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.doctor-owner-faq-row {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.doctor-owner-faq-row:focus-within {
    border-color: #90cdf4;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.doctor-owner-faq-row-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.doctor-owner-faq-lang-label {
    margin-bottom: 0;
    min-width: 9rem;
}

.doctor-owner-faq-row-actions {
    display: flex;
    gap: 0.35rem;
}

.doctor-owner-faq-row-actions .doctor-owner-btn {
    padding: 0.35rem 0.55rem;
    min-width: 2rem;
    line-height: 1;
}

.doctor-owner-faq-row[dir="rtl"] .doctor-owner-faq-question,
.doctor-owner-faq-row[dir="rtl"] .doctor-owner-faq-answer {
    text-align: right;
}

.doctor-owner-faq-error {
    margin-top: 0.75rem;
}

/* **[HIGHLIGHT-ADDED]** Bulk FAQ import panel */
.doctor-owner-faq-bulk {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    background: #fff;
    font-family: system-ui, -apple-system, sans-serif;
}

.doctor-owner-faq-bulk-summary {
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.doctor-owner-faq-bulk[open] .doctor-owner-faq-bulk-summary {
    margin-bottom: 0.5rem;
}

/* **[HIGHLIGHT-ADDED]** Bulk import help copy */
.doctor-owner-faq-bulk-help {
    margin: 0 0 0.75rem;
}

.doctor-owner-faq-bulk-intro {
    margin-top: 0;
}

.doctor-owner-faq-bulk-formats {
    margin: 0.35rem 0 0.5rem;
    padding-left: 1.15rem;
    color: #4a5568;
    font-size: 0.82rem;
    line-height: 1.55;
}

.doctor-owner-faq-bulk-formats li {
    margin-bottom: 0.35rem;
}

.doctor-owner-faq-bulk-formats code {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #edf2f7;
    font-size: 0.78rem;
    word-break: break-word;
}

.doctor-owner-faq-bulk-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
}

.doctor-owner-faq-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.doctor-owner-faq-bulk-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
}

.doctor-owner-faq-bulk-status {
    color: #276749 !important;
    margin-top: 0.5rem !important;
}

@media (max-width: 640px) {
    .doctor-owner-panel {
        padding: 1rem;
    }

    .doctor-owner-faq-row-header {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-owner-faq-row-actions {
        justify-content: flex-end;
    }

    .doctor-owner-faq-bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* **[HIGHLIGHT-ADDED]** Avant/Après gallery repeater (mirrors FAQ layout). */
.doctor-owner-ba-wrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.doctor-owner-ba-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
}

.doctor-owner-ba-count {
    font-weight: 700;
}

.doctor-owner-ba-count-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.doctor-owner-ba-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-owner-ba-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.doctor-owner-ba-row:focus-within {
    border-color: #94a3b8;
    background: #fff;
}

.doctor-owner-ba-row-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.doctor-owner-ba-service-label {
    flex: 1;
    margin-bottom: 0;
}

.doctor-owner-ba-row-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.doctor-owner-ba-row-actions .doctor-owner-btn {
    min-width: 36px;
    padding: 4px 8px;
}

.doctor-owner-ba-error {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .doctor-owner-ba-row-header {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-owner-ba-row-actions {
        justify-content: flex-end;
    }
}

/* **[HIGHLIGHT-ADDED]** Clinic offering cards repeater. */
.doctor-owner-co-wrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.doctor-owner-co-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
}

.doctor-owner-co-count {
    font-weight: 700;
}

.doctor-owner-co-count-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.doctor-owner-co-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-owner-co-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.doctor-owner-co-row:focus-within {
    border-color: #94a3b8;
    background: #fff;
}

.doctor-owner-co-row-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.doctor-owner-co-title-label {
    flex: 1;
    margin-bottom: 0;
}

.doctor-owner-co-row-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.doctor-owner-co-row-actions .doctor-owner-btn {
    min-width: 36px;
    padding: 4px 8px;
}

.doctor-owner-co-error {
    margin-top: 8px;
}

/* **[HIGHLIGHT-ADDED]** Manual JSON import for clinic offerings. */
.doctor-owner-co-bulk {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.doctor-owner-co-bulk-summary {
    cursor: pointer;
    font-weight: 600;
    color: #334155;
}

.doctor-owner-co-bulk-example {
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.doctor-owner-co-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.doctor-owner-co-bulk-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.doctor-owner-co-bulk-status {
    margin-top: 8px;
}

/* **[HIGHLIGHT-ADDED]** Mobile owner panel disclosure + sticky clearance + focus. */
.doctor-owner-panel-disclosure {
    margin: 16px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px 12px;
}

.doctor-owner-panel-summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 4px;
    min-height: 44px;
}

.doctor-owner-panel-summary::-webkit-details-marker {
    display: none;
}

.doctor-owner-panel .doctor-owner-btn,
.doctor-owner-panel button {
    min-height: 44px;
}

.doctor-owner-panel :focus-visible {
    outline: 2px solid #0d47a1;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .doctor-owner-panel {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 600px) {
    .doctor-owner-co-row-header {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-owner-co-row-actions {
        justify-content: flex-end;
    }
}
