/*
 | Edinet global overrides
 | This file is loaded for all admin CRM pages.
 | Add your custom styles here.
 */

:root {
    --edinet-focus-ring: rgba(14, 144, 217, 0.22);
    --edinet-field-bg: #ffffff;
    --edinet-field-border: #d1d5db;
    --edinet-field-border-hover: #9ca3af;
    --edinet-field-text: #111827;
    --edinet-field-placeholder: #9ca3af;
    --edinet-label-text: #4b5563;
    --edinet-radius: 12px;
}

.edinet-powered-by__brand {
    color: var(--brand-color, rgb(14, 144, 217));
}

.edinet-wa-toggle,
.edinet-wa-confirm-btn {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0.35rem 0.7rem;
    transition: all 0.16s ease;
}

.edinet-wa-toggle:hover,
.edinet-wa-confirm-btn:hover {
    border-color: #60a5fa;
    color: #1d4ed8;
}

.edinet-wa-toggle.is-active,
.edinet-wa-confirm-btn.is-active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e3a8a;
}

.dark .edinet-wa-toggle,
.dark .edinet-wa-confirm-btn {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .edinet-wa-toggle:hover,
.dark .edinet-wa-confirm-btn:hover {
    border-color: #3b82f6;
    color: #bfdbfe;
}

.quote-quick-patient-whatsapp-toggle {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 21px;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.quote-quick-patient-whatsapp-toggle:hover {
    border-color: #86efac;
    background: #f0fdf4;
    color: #16a34a;
}

.quote-quick-patient-whatsapp-toggle.is-active {
    border-color: #22c55e;
    background: #dcfce7;
    color: #15803d;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.13);
}

.dark .quote-quick-patient-whatsapp-toggle {
    border-color: #334155;
    background: #111827;
    color: #64748b;
}

.dark .quote-quick-patient-whatsapp-toggle:hover,
.dark .quote-quick-patient-whatsapp-toggle.is-active {
    border-color: #22c55e;
    background: rgba(20, 83, 45, 0.55);
    color: #4ade80;
}

.quote-quick-patient-field--name {
    order: 1;
}

.quote-quick-patient-field--gender {
    order: 2;
}

.quote-quick-patient-field--profile {
    order: 3;
}

.quote-quick-patient-field--nationality {
    order: 4;
}

.quote-quick-patient-field--city {
    order: 5;
}

.quote-quick-patient-field--email {
    order: 6;
}

.quote-quick-patient-field--phone {
    order: 7;
}

.quote-quick-patient-field--age {
    order: 8;
}

.quote-quick-patient-field--birthday {
    order: 9;
}

.quote-quick-patient-field--notes {
    order: 10;
}

.quote-vsdb-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
}

.quote-vsdb-search-icon {
    z-index: 2;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.quote-vsdb-search-input {
    padding-left: 2.65rem !important;
}

.quote-vsdb-search-button {
    height: 44px;
    min-height: 44px;
    margin: 0;
    align-self: end;
}

.quote-vsdb-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .quote-vsdb-search-bar,
    .quote-vsdb-results-grid {
        grid-template-columns: 1fr;
    }

    .quote-vsdb-search-button {
        width: 100%;
    }
}

/* ---------------------- Configuration Layout ---------------------- */
.edinet-config-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem 1rem;
    align-items: start;
}

.edinet-config-field {
    min-width: 0;
    margin-bottom: 0 !important;
}

.edinet-config-field--wide {
    grid-column: 1 / -1;
}

@media (max-width: 1280px) {
    .edinet-config-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .edinet-config-grid {
        grid-template-columns: 1fr;
    }
}

/* Focused redesign for /admin/configuration/general/general */
.edinet-general-config-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.edinet-general-config-card {
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}

.edinet-general-config-card__head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
}

.edinet-general-config-card__title {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.edinet-general-config-card__info {
    font-size: 0.82rem;
    color: #64748b;
}

.edinet-general-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.9rem;
}

.edinet-general-config-page .edinet-config-field {
    border: 1px solid #e6edf6;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.65rem 0.75rem;
}

.edinet-general-config-page .edinet-config-field--wide {
    grid-column: 1 / -1;
}

.dark .edinet-general-config-card {
    border-color: #2b3a51;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.dark .edinet-general-config-page .edinet-config-field {
    border-color: #334155;
    background: #0b1220;
}

@media (max-width: 1280px) {
    .edinet-general-config-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .edinet-general-config-grid {
        grid-template-columns: 1fr;
    }
}

/* Quote Branding: iconized fields with safe placeholder spacing */
.edinet-config-grid input[name*="clinic_name"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 12a5 5 0 1 0 0-10a5 5 0 0 0 0 10Zm-8 9a8 8 0 1 1 16 0z'/%3E%3C/svg%3E");
}

.edinet-config-grid input[name*="clinic_contact_phone"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M6.6 10.8a15.4 15.4 0 0 0 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3c1.3.4 2.6.6 4 .6c.7 0 1.2.5 1.2 1.2V21c0 .7-.5 1.2-1.2 1.2C10.8 22.2 1.8 13.2 1.8 2.2C1.8 1.5 2.3 1 3 1h4.3c.7 0 1.2.5 1.2 1.2c0 1.4.2 2.7.6 4c.1.4 0 .9-.3 1.2z'/%3E%3C/svg%3E");
}

.edinet-config-grid input[name*="clinic_contact_email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4l-8 5L4 8V6l8 5l8-5z'/%3E%3C/svg%3E");
}

.edinet-config-grid textarea[name*="clinic_address"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7m0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5'/%3E%3C/svg%3E");
    background-position: 12px 12px;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-left: 2.35rem !important;
    padding-top: 0.62rem !important;
}

.edinet-config-grid input[name*="clinic_name"],
.edinet-config-grid input[name*="clinic_contact_phone"],
.edinet-config-grid input[name*="clinic_contact_email"] {
    background-position: 12px 50%;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-left: 2.35rem !important;
    line-height: 1.35rem;
}

/* Lead create: iconized profile fields */
.lead-create-iconized input[name="state"],
.lead-create-iconized input[name="city"],
.lead-create-iconized select[name="gender"] {
    background-position: 12px 50%;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-left: 2.35rem !important;
}

.lead-create-iconized select[name="gender"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 2a5 5 0 0 1 1 9.9V15h2v2h-2v2h-2v-2H9v-2h2v-3.1A5 5 0 1 1 12 2m0 2a3 3 0 1 0 0 6a3 3 0 0 0 0-6'/%3E%3C/svg%3E");
}

.lead-create-iconized input[name="state"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7m0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5'/%3E%3C/svg%3E");
}

.lead-create-iconized input[name="city"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M3 21h18v-2H3v2m2-3h3v-7H5v7m5 0h4V7h-4v11m6 0h3v-5h-3v5M5 10l7-5l7 5v2H5v-2z'/%3E%3C/svg%3E");
}

.lead-assigned-group-field {
    margin-top: 0.75rem;
}

.lead-assigned-group-select-wrap select[name="assigned_group_id"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M16 11a4 4 0 1 0-4-4a4 4 0 0 0 4 4m-8 0a3 3 0 1 0-3-3a3 3 0 0 0 3 3m8 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m-8 1c-2.33 0-7 1.17-7 3.5V19h6v-2c0-1.07.42-2.03 1.11-2.83A9.9 9.9 0 0 0 8 14'/%3E%3C/svg%3E");
    background-position: 12px 50%;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-left: 2.35rem !important;
}

.edinet-menu-svg-active {
    filter: brightness(0) invert(1) !important;
}

.ed-lab-case-form .ed-lab-case-autocomplete__input,
.ed-lab-case-form input[name="quantity"],
.ed-lab-case-form input[name="unit_price"],
.ed-lab-case-form input[name="due_at"],
.ed-lab-case-form select[name="status"],
.ed-lab-case-form select[name="priority"],
.ed-lab-case-form textarea[name="notes"] {
    background-position: 12px 50%;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-left: 2.35rem !important;
}

.ed-lab-case-form [data-ed-lab-case-patient-picker-toggle],
.ed-lab-case-form [data-ed-lab-case-draft-service-toggle] {
    cursor: pointer;
}

.ed-lab-case-form [data-ed-lab-case-patient-picker] [data-ed-lab-case-patient-picker-panel],
.ed-lab-case-form [data-ed-lab-case-service-picker] [data-ed-lab-case-service-picker-panel] {
    display: none;
}

.ed-lab-case-form [data-ed-lab-case-patient-picker][open] [data-ed-lab-case-patient-picker-panel],
.ed-lab-case-form [data-ed-lab-case-service-picker][open] [data-ed-lab-case-service-picker-panel] {
    display: block;
}

.ed-lab-case-form [data-ed-lab-case-draft-service-picker]:not([open]) [data-ed-lab-case-draft-service-panel],
.ed-lab-case-form [data-ed-lab-case-draft-service-picker]:not([open]) [data-ed-lab-case-service-picker-panel] {
    display: none !important;
    pointer-events: none !important;
}

.ed-lab-case-form [data-ed-lab-case-draft-service-picker][open] [data-ed-lab-case-draft-service-panel],
.ed-lab-case-form [data-ed-lab-case-draft-service-picker][open] [data-ed-lab-case-service-picker-panel] {
    display: block !important;
    pointer-events: auto !important;
}

.ed-lab-case-form [data-ed-lab-case-draft-service-panel].hidden,
.ed-lab-case-form [data-ed-lab-case-service-picker-panel].hidden,
.ed-lab-case-form [data-ed-lab-case-patient-picker-panel].hidden {
    display: none !important;
    pointer-events: none;
}

.ed-lab-case-form .ed-lab-case-autocomplete__input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M10 4a6 6 0 1 0 3.9 10.5l4.3 4.3l1.4-1.4l-4.3-4.3A6 6 0 0 0 10 4m0 2a4 4 0 1 1 0 8a4 4 0 0 1 0-8'/%3E%3C/svg%3E");
}

.ed-lab-case-form input[name="quantity"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 3h2v18H7zm8 0h2v18h-2zM3 7h18v2H3zm0 8h18v2H3z'/%3E%3C/svg%3E");
}

.ed-lab-case-form input[name="unit_price"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 2C8.1 2 5 3.8 5 6v12c0 2.2 3.1 4 7 4s7-1.8 7-4V6c0-2.2-3.1-4-7-4m0 2c3 0 5 .9 5 2s-2 2-5 2s-5-.9-5-2s2-2 5-2m0 14c-3 0-5-.9-5-2v-2c1.3.9 3.1 1.4 5 1.4s3.7-.5 5-1.4v2c0 1.1-2 2-5 2m0-6c-3 0-5-.9-5-2V8c1.3.9 3.1 1.4 5 1.4s3.7-.5 5-1.4v2c0 1.1-2 2-5 2'/%3E%3C/svg%3E");
}

.ed-lab-case-form input[name="due_at"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 2h2v2h6V2h2v2h3v18H4V4zm11 6H6v12h12z'/%3E%3C/svg%3E");
}

.ed-lab-case-form select[name="status"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='m10 17l-5-5l1.4-1.4l3.6 3.6l7.6-7.6L19 8z'/%3E%3C/svg%3E");
}

.ed-lab-case-form select[name="priority"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M6 3h10l-1 5l3 1l-1 5H6v7H4V3z'/%3E%3C/svg%3E");
}

.ed-lab-case-form textarea[name="notes"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M5 3h14a2 2 0 0 1 2 2v14l-4-4H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
    padding-top: 0.7rem !important;
}

.ed-lab-case-teeth-chart {
    display: grid;
    gap: 0.25rem;
}

.ed-lab-case-teeth-row {
    display: block;
}

.ed-lab-case-teeth-group {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 0;
}

.ed-lab-case-tooth {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ed-lab-case-tooth::before {
    content: "";
    position: absolute;
    inset: 4px 7px;
    background-image: url("/admin/custom/tooth-odonto-case.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.18s ease;
}

.ed-lab-case-tooth::after {
    content: "";
    position: absolute;
    inset: 4px 7px;
    background-color: var(--brand-color, #2563eb);
    -webkit-mask-image: url("/admin/custom/tooth-odonto-case-filled.svg");
    mask-image: url("/admin/custom/tooth-odonto-case-filled.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0;
    transition: all 0.18s ease;
}

.ed-lab-case-tooth__number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    z-index: 1;
    pointer-events: none;
    font-size: 0.74rem;
}

.ed-lab-case-form [data-ed-lab-case-row-service-picker] > summary {
    list-style: none;
    cursor: pointer;
}

.ed-lab-case-form [data-ed-lab-case-row-service-picker] > summary::-webkit-details-marker {
    display: none;
}

.ed-lab-case-tooth:hover,
.ed-lab-case-tooth.is-active {
    color: var(--brand-color, #2563eb);
}

.ed-lab-case-tooth.is-active::before {
    opacity: 0;
    transform: scale(1.03);
}

.ed-lab-case-tooth.is-active::after {
    opacity: 1;
}

.ed-lab-case-tooth:hover:not(.is-active) {
    transform: translateY(-1px);
}

.dark .ed-lab-case-tooth {
    color: #e5e7eb;
}

.dark .ed-lab-case-tooth::before {
    opacity: 0.9;
}

.dark .ed-lab-case-tooth.is-active {
    color: #dbeafe;
}

.dark .ed-lab-case-tooth.is-active::after {
    background-color: #2563eb;
}

.ed-lab-case-tooth.is-active .ed-lab-case-tooth__number {
    color: #ffffff;
}

.ed-lead-create-page .ed-lead-hero {
    padding: 1rem 1.1rem;
}

.ed-lead-create-page .ed-lead-attr-shell {
    overflow: hidden;
}

.ed-lead-create-page .ed-lead-attr-shell,
.ed-lead-create-page .ed-lead-layout__side {
    min-height: calc(100vh - 13.5rem);
}

.ed-lead-create-page .ed-lead-create-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
}

.ed-lead-create-page .ed-lead-create-card {
    border: 1px solid rgba(226, 232, 240, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.08),
        0 8px 22px rgba(15, 23, 42, 0.035),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    padding: 0.72rem 0.78rem;
    min-height: 86px;
}

.ed-lead-create-page .ed-lead-create-card--phone {
    align-self: start;
}

[data-patient-details-form] .ed-patient-create-card--phone {
    position: relative;
}

[data-patient-details-form] .ed-patient-identity-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
    margin-bottom: 0.65rem;
}

.ed-lead-create-page [data-patient-details-form] .ed-patient-details-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

[data-patient-details-form] .ed-patient-details-grid > .ed-lead-create-card {
    grid-column: span 2;
}

[data-patient-details-form] .ed-patient-details-grid > .ed-lead-create-card:nth-last-child(-n+2) {
    grid-column: span 3;
}

@media (max-width: 640px) {
    [data-patient-details-form] .ed-patient-identity-grid,
    .ed-lead-create-page [data-patient-details-form] .ed-patient-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    [data-patient-details-form] .ed-patient-details-grid > .ed-lead-create-card,
    [data-patient-details-form] .ed-patient-details-grid > .ed-lead-create-card:nth-last-child(-n+2) {
        grid-column: 1 / -1;
    }
}

[data-patient-details-form] .ed-lead-attr-shell,
[data-patient-details-form] .ed-lead-layout__side {
    min-height: 0;
}

.ed-lead-create-page [data-patient-details-form].ed-lead-layout {
    min-height: 0;
    align-items: start;
}

.ed-lead-create-page [data-patient-details-form] .ed-lead-layout__side {
    align-self: start;
}

[data-patient-details-form] [data-whatsapp-controls] {
    flex-wrap: nowrap;
    gap: 6px;
}

[data-patient-details-form] [data-whatsapp-controls] > span {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    line-height: 1.4;
}

[data-patient-details-form] [data-whatsapp-controls] > button {
    flex-shrink: 0;
}

[data-patient-details-form] [data-patient-whatsapp-link] {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ecfdf5;
    align-items: center;
    justify-content: center;
}

[data-patient-details-form] [data-patient-whatsapp-link]:not(.hidden) {
    display: inline-flex;
}

[data-patient-details-form] [data-patient-whatsapp-link]:hover {
    background: #d1fae5;
}

[data-patient-details-form] [data-whatsapp-field-wrap] {
    display: none !important;
}

[data-patient-details-form] .ed-patient-birth-combo {
    grid-template-columns: minmax(76px, 0.65fr) minmax(0, 1.35fr);
    gap: 10px;
}

[data-patient-details-form] input[name="age"] {
    padding-left: 34px !important;
    padding-right: 6px !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

[data-patient-details-form] input[name="age"]::-webkit-inner-spin-button,
[data-patient-details-form] input[name="age"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ed-lead-create-page .ed-lead-create-card--whatsapp {
    align-self: start;
}

.lead-quotes-table .quote-accepted-switch {
    min-width: 86px;
}

.lead-quotes-table .icon-whatsapp-share {
    display: inline-block;
    width: 1.725rem;
    height: 1.725rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNC45LDQzLjNsMi43LTkuOEM1LjksMzAuNiw1LDI3LjMsNSwyNEM1LDEzLjUsMTMuNSw1LDI0LDVjNS4xLDAsOS44LDIsMTMuNCw1LjZDNDEsMTQuMiw0MywxOC45LDQzLDI0IGMwLDEwLjUtOC41LDE5LTE5LDE5YzAsMCwwLDAsMCwwaDBjLTMuMiwwLTYuMy0wLjgtOS4xLTIuM0w0LjksNDMuM3oiPjwvcGF0aD48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNC45LDQzLjhjLTAuMSwwLTAuMy0wLjEtMC40LTAuMWMtMC4xLTAuMS0wLjItMC4zLTAuMS0wLjVMNywzMy41Yy0xLjYtMi45LTIuNS02LjItMi41LTkuNkM0LjUsMTMuMiwxMy4zLDQuNSwyNCw0LjVjNS4yLDAsMTAuMSwyLDEzLjgsNS43YzMuNywzLjcsNS43LDguNiw1LjcsMTMuOGMwLDEwLjctOC43LDE5LjUtMTkuNSwxOS41Yy0zLjIsMC02LjMtMC44LTkuMS0yLjMgTDUsNDMuOEM1LDQzLjgsNC45LDQzLjgsNC45LDQzLjh6Ij48L3BhdGg+PHBhdGggZmlsbD0iI2NmZDhkYyIgZD0iTTI0LDVjNS4xLDAsOS44LDIsMTMuNCw1LjZDNDEsMTQuMiw0MywxOC45LDQzLDI0YzAsMTAuNS04LjUsMTktMTksMTloMGMtMy4yLDAtNi4zLTAuOC05LjEtMi4zTDQuOSw0My4zIGwyLjctOS44QzUuOSwzMC42LDUsMjcuMyw1LDI0QzUsMTMuNSwxMy41LDUsMjQsNSBNMjQsNDNMMjQsNDNMMjQsNDMgTTI0LDQzTDI0LDQzTDI0LDQzIE0yNCw0TDI0LDRDMTMsNCw0LDEzLDQsMjQgYzAsMy40LDAuOCw2LjcsMi41LDkuNkwzLjksNDNjLTAuMSwwLjMsMCwwLjcsMC4zLDFjMC4yLDAuMiwwLjQsMC4zLDAuNywwLjNjMC4xLDAsMC4yLDAsMC4zLDBsOS43LTIuNWMyLjgsMS41LDYsMi4yLDkuMiwyLjIgYzExLDAsMjAtOSwyMC0yMGMwLTUuMy0yLjEtMTAuNC01LjgtMTQuMUMzNC40LDYuMSwyOS40LDQsMjQsNEwyNCw0eiI+PC9wYXRoPjxwYXRoIGZpbGw9IiM0MGMzNTEiIGQ9Ik0zNS4yLDEyLjhjLTMtMy02LjktNC42LTExLjItNC42QzE1LjMsOC4yLDguMiwxNS4zLDguMiwyNGMwLDMsMC44LDUuOSwyLjQsOC40TDExLDMzbC0xLjYsNS44bDYtMS42bDAuNiwwLjMgYzIuNCwxLjQsNS4yLDIuMiw4LDIuMmgwYzguNywwLDE1LjgtNy4xLDE1LjgtMTUuOEMzOS44LDE5LjgsMzguMiwxNS44LDM1LjIsMTIuOHoiPjwvcGF0aD48cGF0aCBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xOS4zLDE2Yy0wLjQtMC44LTAuNy0wLjgtMS4xLTAuOGMtMC4zLDAtMC42LDAtMC45LDBzLTAuOCwwLjEtMS4zLDAuNmMtMC40LDAuNS0xLjcsMS42LTEuNyw0IHMxLjcsNC42LDEuOSw0LjlzMy4zLDUuMyw4LjEsNy4yYzQsMS42LDQuOCwxLjMsNS43LDEuMmMwLjktMC4xLDIuOC0xLjEsMy4yLTIuM2MwLjQtMS4xLDAuNC0yLjEsMC4zLTIuM2MtMC4xLTAuMi0wLjQtMC4zLTAuOS0wLjYgcy0yLjgtMS40LTMuMi0xLjVjLTAuNC0wLjItMC44LTAuMi0xLjEsMC4yYy0wLjMsMC41LTEuMiwxLjUtMS41LDEuOWMtMC4zLDAuMy0wLjYsMC40LTEsMC4xYy0wLjUtMC4yLTItMC43LTMuOC0yLjQgYy0xLjQtMS4zLTIuNC0yLjgtMi42LTMuM2MtMC4zLTAuNSwwLTAuNywwLjItMWMwLjItMC4yLDAuNS0wLjYsMC43LTAuOGMwLjItMC4zLDAuMy0wLjUsMC41LTAuOGMwLjItMC4zLDAuMS0wLjYsMC0wLjggQzIwLjYsMTkuMywxOS43LDE3LDE5LjMsMTZ6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=");
}

.edinet-wa-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
}

.edinet-wa-modal.hidden {
    display: none;
}

.edinet-wa-modal__card {
    width: min(420px, 100%);
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 20px 35px rgba(2, 6, 23, 0.2);
}

.edinet-wa-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.edinet-wa-modal__text {
    margin: 0.5rem 0 0;
    color: #4b5563;
    font-size: 0.875rem;
}

.edinet-wa-modal__actions {
    margin-top: 0.95rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ed-lead-create-page .ed-lead-create-card--notes {
    grid-column: span 2;
}

.ed-lead-create-page .ed-lead-whatsapp-input {
    padding-left: 2.7rem !important;
}

.ed-lead-create-page .ed-lead-create-card .mb-2\.5,
.ed-lead-create-page .ed-lead-create-meta-card .mb-2\.5 {
    margin-bottom: 0 !important;
}

.ed-lead-create-page .ed-lead-create-card label,
.ed-lead-create-page .ed-lead-create-meta-card label {
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ed-lead-create-page .ed-lead-create-card input,
.ed-lead-create-page .ed-lead-create-card select,
.ed-lead-create-page .ed-lead-create-card textarea,
.ed-lead-create-page .ed-lead-create-meta-card input,
.ed-lead-create-page .ed-lead-create-meta-card select,
.ed-lead-create-page .ed-lead-create-meta-card textarea {
    border-radius: 10px;
    min-height: 44px;
    font-weight: 400;
}

.ed-lead-create-page .ed-lead-create-card textarea {
    min-height: 92px;
}

.ed-lead-create-page .ed-lead-layout__side .rounded-xl.border {
    border-color: rgba(226, 232, 240, 0.2) !important;
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.08),
        0 8px 22px rgba(15, 23, 42, 0.035),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.ed-lead-create-page .ed-lead-layout__side {
    margin-top: 1rem;
}

.ed-lead-create-page .attribute-title input,
.ed-lead-create-page .attribute-title textarea,
.ed-lead-create-page .attribute-description textarea {
    width: 100%;
}

.ed-lead-create-page .attribute-title input,
.ed-lead-create-page .attribute-phone input,
.ed-lead-create-page .attribute-email input,
.ed-lead-create-page .attribute-nationality input,
.ed-lead-create-page .attribute-gender select,
.ed-lead-create-page .attribute-state input,
.ed-lead-create-page .attribute-city input,
.ed-lead-create-page .attribute-zone input,
.ed-lead-create-page .attribute-lead_source_id select,
.ed-lead-create-page .attribute-user_id select,
.ed-lead-create-page .attribute-expected_close_date input,
.ed-lead-create-page .attribute-description textarea {
    background-position: 12px 50%;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.ed-lead-create-page .attribute-title input,
.ed-lead-create-page .attribute-phone input,
.ed-lead-create-page .attribute-email input,
.ed-lead-create-page .attribute-nationality input,
.ed-lead-create-page .attribute-gender select,
.ed-lead-create-page .attribute-state input,
.ed-lead-create-page .attribute-city input,
.ed-lead-create-page .attribute-zone input,
.ed-lead-create-page .attribute-lead_source_id select,
.ed-lead-create-page .attribute-user_id select,
.ed-lead-create-page .attribute-expected_close_date input {
    padding-left: 2.35rem !important;
}

.ed-lead-create-page .attribute-description textarea {
    background-position: 12px 12px;
    padding-left: 2.35rem !important;
    padding-top: 0.7rem !important;
}

.ed-lead-create-page .attribute-title input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M5 4h14v2H5zm0 7h14v2H5zm0 7h14v2H5z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-phone input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M6.6 10.8a15.4 15.4 0 0 0 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3c1.3.4 2.6.6 4 .6c.7 0 1.2.5 1.2 1.2V21c0 .7-.5 1.2-1.2 1.2C10.8 22.2 1.8 13.2 1.8 2.2C1.8 1.5 2.3 1 3 1h4.3c.7 0 1.2.5 1.2 1.2c0 1.4.2 2.7.6 4c.1.4 0 .9-.3 1.2z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-email input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4l-8 5L4 8V6l8 5l8-5z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-nationality input,
.ed-lead-create-page .attribute-state input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7m0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-city input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M3 21h18v-2H3v2m2-3h3v-7H5v7m5 0h4V7h-4v11m6 0h3v-5h-3v5M5 10l7-5l7 5v2H5v-2z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-zone input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-gender select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 2a5 5 0 0 1 1 9.9V15h2v2h-2v2h-2v-2H9v-2h2v-3.1A5 5 0 1 1 12 2m0 2a3 3 0 1 0 0 6a3 3 0 0 0 0-6'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-lead_source_id select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M11 2a1 1 0 0 1 2 0v1.07a8 8 0 0 1 6.93 6.93H21a1 1 0 1 1 0 2h-1.07a8 8 0 0 1-6.93 6.93V20a1 1 0 1 1-2 0v-1.07a8 8 0 0 1-6.93-6.93H3a1 1 0 1 1 0-2h1.07A8 8 0 0 1 11 3.07V2Zm1 3a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm3.5 5a1 1 0 0 1 0 2h-2.5v2.5a1 1 0 1 1-2 0V12H8.5a1 1 0 1 1 0-2H11V7.5a1 1 0 1 1 2 0V10h2.5Z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-user_id select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4.42 0-8 2.02-8 4.5V21h16v-2.5c0-2.48-3.58-4.5-8-4.5'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-expected_close_date input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2m11 8H6v10h12V10m0-2V6H6v2h12Z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .attribute-description textarea {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M5 4h14v2H5zm0 5h14v2H5zm0 5h10v2H5z'/%3E%3C/svg%3E");
}

.ed-lead-create-page .lead-assigned-group-field {
    margin-top: 0;
}

.dark .ed-lead-create-page .ed-lead-create-card,
.dark .ed-lead-create-page .ed-lead-layout__side .rounded-xl.border {
    border-color: rgba(51, 65, 85, 0.28) !important;
    background: linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.08),
        0 10px 24px rgba(2, 6, 23, 0.28),
        0 1px 0 rgba(148, 163, 184, 0.08) inset;
}

.dark .ed-lead-create-page .ed-lead-create-card label,
.dark .ed-lead-create-page .ed-lead-create-meta-card label {
    color: #93c5fd;
}

@media (max-width: 1440px) {
    .ed-lead-create-page .ed-lead-create-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ed-lead-create-page .ed-lead-create-card--notes {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .ed-lead-create-page .ed-lead-create-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ed-lead-create-page .ed-lead-create-card--notes {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .ed-lead-create-page .ed-lead-create-grid {
        grid-template-columns: 1fr;
    }

    .ed-lead-create-page .ed-lead-create-card--notes {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .ed-lead-create-page .ed-lead-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 1rem;
        align-items: stretch;
        min-height: calc(100vh - 13.5rem);
    }

    .ed-lead-create-page .ed-lead-layout__side {
        margin-top: 0;
        position: sticky;
        top: 1rem;
        align-self: stretch;
    }
}

@media (max-width: 1023px) {
    .ed-lead-create-page .ed-lead-attr-shell,
    .ed-lead-create-page .ed-lead-layout__side {
        min-height: 0;
    }
}

/* Lead View complete futuristic restyling */
.ed-lead-view-page {
    gap: 1rem;
}

.ed-lead-view-page .ed-lead-layout {
    display: block;
}

.ed-lead-view-page .ed-lead-layout__main,
.ed-lead-view-page .ed-lead-layout__side {
    min-width: 0;
}

.ed-lead-view-page .ed-lead-layout__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ed-lead-view-page .ed-lead-layout__side {
    margin-top: 1rem;
}

@media (min-width: 1280px) {
    .ed-lead-view-page .ed-lead-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 1rem;
        align-items: start;
    }

    .ed-lead-view-page .ed-lead-layout__side {
        margin-top: 0;
        position: sticky;
        top: 1rem;
    }
}

.ed-lead-view-page .ed-lead-stage-top {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.dark .ed-lead-view-page .ed-lead-stage-top {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ed-lead-view-page .ed-lead-hero {
    border: 1px solid #bae6fd;
    background:
        radial-gradient(1000px 210px at 100% -50%, rgba(14, 165, 233, 0.16), transparent 58%),
        radial-gradient(780px 180px at 0% -35%, rgba(6, 182, 212, 0.12), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(14, 116, 144, 0.08);
}

.dark .ed-lead-view-page .ed-lead-hero {
    border-color: rgba(14, 116, 144, 0.45);
    background:
        radial-gradient(1000px 210px at 100% -50%, rgba(14, 165, 233, 0.2), transparent 58%),
        radial-gradient(780px 180px at 0% -35%, rgba(6, 182, 212, 0.14), transparent 52%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.45);
}

.ed-lead-view-page .ed-lead-cockpit {
    align-items: start;
}

.ed-lead-view-page .ed-lead-summary {
    border-color: #cfe5ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dark .ed-lead-view-page .ed-lead-summary {
    border-color: #24364f;
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

.ed-lead-view-page .ed-lead-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.5rem 0.65rem;
}

.dark .ed-lead-view-page .ed-lead-summary-row {
    border-color: #334155;
    background: #0b1220;
}

.ed-lead-view-page .ed-lead-summary-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ed-lead-view-page .ed-lead-summary-value {
    color: #0f172a;
    font-size: 0.87rem;
    font-weight: 700;
    text-align: right;
}

.dark .ed-lead-view-page .ed-lead-summary-label {
    color: #93c5fd;
}

.dark .ed-lead-view-page .ed-lead-summary-value {
    color: #e2e8f0;
}

.ed-lead-view-page .ed-lead-attr-shell {
    overflow: hidden;
}

.ed-lead-view-page .ed-lead-workspace {
    border-color: #cfe5ff;
    background:
        radial-gradient(900px 150px at 100% -40%, rgba(14, 165, 233, 0.08), transparent 60%),
        #ffffff;
}

.ed-lead-view-page .ed-lead-comments-hub {
    border-color: #cfe5ff;
    background:
        radial-gradient(1000px 180px at 100% -35%, rgba(14, 165, 233, 0.12), transparent 60%),
        radial-gradient(760px 150px at 0% -30%, rgba(6, 182, 212, 0.1), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ed-lead-view-page .ed-lead-comments-hub__content {
    backdrop-filter: blur(2px);
}

.ed-lead-view-page .ed-lead-comments-hub__content > .relative.isolate > .flex.gap-2.overflow-x-auto {
    display: none;
}

.ed-lead-view-page .ed-lead-comments-hub__content > .relative.isolate {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ed-lead-view-page .ed-lead-comments-hub .icon-note {
    color: #0369a1;
}

.ed-comments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.2rem;
}

.ed-comments__open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.48rem 0.95rem;
}

.ed-comments__composer {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.6rem;
    overflow: hidden;
    transition: max-height 0.24s ease, opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease, padding 0.22s ease;
}

.ed-comments__composer.is-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

.ed-comments__composer.is-closed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.ed-comments__composer-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.ed-comments__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #075985;
    background: linear-gradient(180deg, #dbeafe 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
}

.ed-comments__avatar--sm {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
}

.ed-comments__composer-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.ed-comments__composer-mode {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: #64748b;
}

.ed-comments__textarea {
    width: 100%;
    min-height: 56px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 0.55rem 0.65rem 2.65rem 0.65rem;
    font-size: 0.84rem;
    resize: none;
    overflow: hidden;
}

.ed-comments__textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.ed-comments__input-wrap {
    position: relative;
}

.ed-comments__composer-actions {
    position: absolute;
    right: 0.45rem;
    bottom: 0.42rem;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    z-index: 2;
}

.ed-comments__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.16s ease;
}

.ed-comments__icon-btn:hover {
    border-color: #60a5fa;
    color: #1d4ed8;
    background: #eff6ff;
}

.ed-comments__icon-btn--primary {
    border-color: #2563eb;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.ed-comments__icon-btn--primary:hover {
    border-color: #1d4ed8;
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
}

.ed-comments__icon-btn--danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.ed-comments__icon-btn--danger:hover {
    border-color: #fca5a5;
    color: #991b1b;
    background: #fff1f2;
}

.ed-comments__icon-btn span {
    font-size: 0.95rem;
    line-height: 1;
}

.ed-comments__file {
    position: absolute;
    left: 0.5rem;
    bottom: 0.52rem;
    z-index: 2;
    font-size: 0.75rem;
    color: #0f766e;
    max-width: calc(100% - 150px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ed-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.ed-comments__item {
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.62rem 0.7rem;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.ed-comments__item:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ed-comments__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.ed-comments__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-comments__name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.ed-comments__time {
    margin-top: 0.1rem;
    font-size: 0.7rem;
    color: #64748b;
}

.ed-comments__reply-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.66rem;
    font-weight: 700;
}

.ed-comments__text {
    margin: 0;
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.25rem;
}

.ed-comments__files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.ed-comments__file-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ed-comments__file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
}

.ed-comments__buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.ed-comments__inline-reply {
    margin-top: 0.45rem;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 10px;
    padding: 0.5rem;
    overflow: hidden;
    transform-origin: top;
    animation: ed-comments-reply-open 0.2s ease;
}

.ed-comments__reply-textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 0.48rem 0.6rem;
    font-size: 0.8rem;
    resize: none;
    overflow: hidden;
}

.ed-comments__reply-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.ed-comments__inline-reply-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.32rem;
}

.ed-comments__inline-reply .ed-comments__file {
    position: static;
    max-width: 280px;
    margin-right: auto;
    line-height: 1.2;
}

.ed-comments__item--reply {
    border-color: #dbeafe;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.ed-lead-view-page .ed-lead-comments-hub {
    padding: 0.65rem !important;
}

.ed-lead-view-page .ed-lead-comments-hub > .mb-3 {
    margin-bottom: 0.45rem;
}

.ed-comments__empty {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

.ed-comments-viewer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ed-comments-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
}

.ed-comments-viewer__panel {
    position: relative;
    width: min(1100px, 96vw);
    max-height: 92vh;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
    overflow: hidden;
}

.ed-comments-viewer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0.8rem;
}

.ed-comments-viewer__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ed-comments-viewer__body {
    padding: 0.7rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.ed-comments-viewer__canvas-wrap {
    position: relative;
    width: 100%;
    max-height: calc(92vh - 100px);
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
}

.ed-comments-viewer__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.ed-comments-viewer__canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Lead comments: Facebook-like composer + feed */
.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 {
    padding: 0.75rem;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border {
    border: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 0.85rem;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border p {
    display: none;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid {
    display: block;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid > div {
    width: 100%;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid button {
    height: 48px !important;
    width: 100% !important;
    border-radius: 999px !important;
    border: 1px solid #dbeafe !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%) !important;
    color: #334155 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    padding: 0 0.95rem !important;
    font-size: 0 !important;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid button::before {
    content: "Write a comment...";
    font-size: 0.92rem;
    font-weight: 500;
    color: #64748b;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid button .icon-note {
    font-size: 1rem !important;
    color: #0ea5e9 !important;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 {
    gap: 0.6rem;
    align-items: flex-start;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .mt-2.flex {
    margin-top: 0.2rem;
    background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #0369a1 !important;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .flex.w-full.justify-between {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff !important;
    padding: 0.8rem 0.95rem;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .flex.w-full.justify-between .font-medium {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .flex.w-full.justify-between p {
    color: #334155;
}

.dark .ed-lead-view-page .ed-lead-workspace {
    border-color: #24364f;
    background:
        radial-gradient(900px 150px at 100% -40%, rgba(14, 165, 233, 0.14), transparent 60%),
        #0f172a;
}

.dark .ed-lead-view-page .ed-lead-comments-hub {
    border-color: #24364f;
    background:
        radial-gradient(1000px 180px at 100% -35%, rgba(14, 165, 233, 0.2), transparent 60%),
        radial-gradient(760px 150px at 0% -30%, rgba(6, 182, 212, 0.12), transparent 52%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.dark .ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid button {
    border-color: #334155 !important;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
}

.dark .ed-lead-view-page .ed-lead-comments-hub__activities .animate-\[on-fade_0\.5s_ease-in-out\].p-4 > .mb-4.rounded-lg.border .grid button::before {
    color: #94a3b8;
}

.dark .ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .mt-2.flex {
    border-color: #1e3a8a;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.35) 0%, rgba(30, 58, 138, 0.35) 100%);
    color: #bfdbfe !important;
}

.dark .ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .flex.w-full.justify-between {
    border-color: #334155;
    background: #0b1220 !important;
}

.dark .ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .flex.w-full.justify-between .font-medium {
    color: #f1f5f9;
}

.dark .ed-lead-view-page .ed-lead-comments-hub__activities .flex.flex-col.gap-4 > .flex.gap-2 > .flex.w-full.justify-between p {
    color: #cbd5e1;
}

.dark .ed-comments__composer {
    border-color: #334155;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.dark .ed-comments__open-btn {
    border-color: #1e3a8a;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #bfdbfe;
}

.dark .ed-comments__avatar {
    border-color: #1e3a8a;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.45) 0%, rgba(30, 58, 138, 0.45) 100%);
    color: #dbeafe;
}

.dark .ed-comments__composer-name {
    color: #e2e8f0;
}

.dark .ed-comments__composer-mode {
    color: #94a3b8;
}

.dark .ed-comments__textarea {
    border-color: #334155;
    background: #0b1220;
    color: #e2e8f0;
}

.dark .ed-comments__item {
    border-color: #334155;
    background: #0b1220;
}

.dark .ed-comments__inline-reply {
    border-color: #334155;
    background: #111827;
}

.dark .ed-comments__reply-textarea {
    border-color: #334155;
    background: #0b1220;
    color: #e2e8f0;
}

.dark .ed-comments__item--reply {
    background: linear-gradient(180deg, #182233 0%, #1b2638 100%);
    border-color: #334155;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.dark .ed-comments__reply-pill {
    border-color: #334155;
    background: #172554;
    color: #bfdbfe;
}


@keyframes ed-comments-reply-open {
    from {
        opacity: 0;
        transform: translateY(-4px) scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.dark .ed-comments__name {
    color: #f1f5f9;
}

.dark .ed-comments__time {
    color: #94a3b8;
}

.dark .ed-comments__text {
    color: #cbd5e1;
}

.dark .ed-comments__file-link {
    border-color: #1e3a8a;
    background: rgba(30, 64, 175, 0.2);
    color: #bfdbfe;
}

.dark .ed-comments-viewer__panel {
    border-color: #334155;
    background: #0f172a;
}

.dark .ed-comments-viewer__head {
    border-color: #334155;
}

.dark .ed-comments-viewer__body {
    background: linear-gradient(180deg, #0b1220 0%, #020617 100%);
}

.dark .ed-comments-viewer__canvas-wrap {
    border-color: #334155;
    background: #0b1220;
}

.dark .ed-comments__icon-btn {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .ed-comments__icon-btn:hover {
    border-color: #3b82f6;
    background: #172554;
    color: #dbeafe;
}

.dark .ed-comments__icon-btn--primary {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.dark .ed-comments__icon-btn--primary:hover {
    border-color: #2563eb;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.dark .ed-comments__icon-btn--danger {
    border-color: #7f1d1d;
    color: #fca5a5;
}

.ed-lead-view-page .ed-lead-attributes {
    padding: 1rem 1rem 1.1rem;
}

.ed-patient-view-page .ed-lead-attributes {
    padding: 1rem 1rem 1.1rem;
}

.ed-patient-view-page .ed-lead-layout {
    display: block;
}

.ed-patient-view-page .ed-lead-layout__main,
.ed-patient-view-page .ed-lead-layout__side {
    min-width: 0;
}

.ed-patient-view-page .ed-lead-layout__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ed-patient-view-page .ed-lead-layout__side {
    margin-top: 1rem;
}

@media (min-width: 1280px) {
    .ed-patient-view-page .ed-lead-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 1rem;
        align-items: start;
    }

    .ed-patient-view-page .ed-lead-layout__side {
        margin-top: 0;
        position: sticky;
        top: 1rem;
    }
}

.ed-lead-view-page .ed-lead-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.ed-lead-view-page .ed-lead-mini-card {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
    padding: 0.62rem 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ed-lead-view-page .ed-lead-mini-card__label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ed-lead-view-page .ed-lead-mini-card__value {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2rem;
}

.dark .ed-lead-view-page .ed-lead-mini-card {
    border-color: #334155;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.95) 100%);
}

.dark .ed-lead-view-page .ed-lead-mini-card__label {
    color: #93c5fd;
}

.dark .ed-lead-view-page .ed-lead-mini-card__value {
    color: #e2e8f0;
}

.ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
}

.ed-patient-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
}

.ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.62rem 0.72rem;
    min-height: 78px;
}

.ed-patient-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.62rem 0.72rem;
    min-height: 78px;
}

.ed-lead-view-page .ed-lead-attr-grid .label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ed-patient-view-page .ed-lead-attr-grid .label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ed-lead-view-page .ed-lead-attr-grid .font-medium {
    width: 100%;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25rem;
}

.ed-lead-view-page .ed-lead-phone-value {
    position: relative !important;
    min-height: 42px;
}

.ed-lead-view-page .ed-lead-phone-control {
    box-sizing: border-box;
    width: 100%;
    padding-right: 3.5rem;
}

.ed-lead-view-page .ed-lead-phone-whatsapp {
    position: absolute !important;
    z-index: 20;
    top: 50% !important;
    right: 0.1rem !important;
    left: auto !important;
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 12px;
    color: #16a34a;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ed-lead-view-page .ed-lead-phone-whatsapp .icon-edi-whatsapp {
    display: block;
    font-size: 30px !important;
    line-height: 1 !important;
}

.ed-lead-view-page .ed-lead-phone-whatsapp:hover {
    color: #15803d;
    background: #dcfce7;
    transform: translateY(-50%) scale(1.05);
}

.ed-lead-view-page .ed-lead-phone-whatsapp:focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.45);
    outline-offset: 2px;
}

.dark .ed-lead-view-page .ed-lead-phone-whatsapp {
    color: #4ade80;
}

.dark .ed-lead-view-page .ed-lead-phone-whatsapp:hover {
    color: #86efac;
    background: rgba(20, 83, 45, 0.55);
}

.ed-patient-view-page .ed-lead-attr-grid .font-medium {
    width: 100%;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25rem;
}

.ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-main {
    grid-column: span 4;
}

.ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-compact {
    grid-column: span 3;
}

.ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-notes {
    grid-column: 1 / -1;
    min-height: 74px;
    align-items: flex-start;
}

.ed-patient-view-page .ed-meeting-field-notes .font-medium {
    min-width: 0;
}

.ed-inline-notes-view {
    position: relative;
    min-height: 38px;
    padding: 0.55rem 2.3rem 0.55rem 0;
}

.ed-inline-notes-view span {
    display: block;
    min-height: 20px;
}

.ed-inline-notes-edit-trigger {
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
}

.ed-inline-notes-input {
    min-height: 38px;
    resize: none;
    overflow: hidden;
    line-height: 1.45;
}

.dark .ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid {
    border-color: #334155;
    background: #0b1220;
}

.dark .ed-patient-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid {
    border-color: #334155;
    background: #0b1220;
}

.dark .ed-lead-view-page .ed-lead-attr-grid .label {
    color: #93c5fd;
}

.dark .ed-patient-view-page .ed-lead-attr-grid .label {
    color: #93c5fd;
}

.dark .ed-lead-view-page .ed-lead-attr-grid .font-medium {
    color: #e2e8f0;
}

.dark .ed-patient-view-page .ed-lead-attr-grid .font-medium {
    color: #e2e8f0;
}

.ed-patient-profile-card__summary {
    min-width: 0;
}

.ed-patient-profile-card__contact {
    overflow-wrap: anywhere;
}

.ed-patient-tab {
    min-width: 0;
    justify-content: center;
}

.ed-patient-tab span {
    min-width: 0;
}

.ed-patient-view-page .ed-patient-static-card .font-medium {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding-left: 0.625rem;
}

.ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid.ed-lead-notes-card {
    order: 999;
    grid-column: span 3;
}

@media (max-width: 1440px) {
    .ed-lead-view-page .ed-lead-mini-grid,
    .ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .ed-patient-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid.ed-lead-notes-card {
        grid-column: span 2;
    }

    .ed-lead-view-page .ed-lead-mini-grid,
    .ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ed-patient-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-main,
    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-compact {
        grid-column: span 1;
    }

    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-notes {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    /* Patient profile mobile styling lives in patient-profile-ui.css. */

    .ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 > .grid.ed-lead-notes-card {
        grid-column: span 1;
    }

    .ed-lead-view-page .ed-lead-mini-grid,
    .ed-lead-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: 1fr !important;
    }

    .ed-patient-view-page .ed-lead-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: 1fr !important;
    }

    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 {
        grid-template-columns: 1fr !important;
    }

    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-main,
    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-compact,
    .ed-patient-view-page .ed-meeting-attr-grid > .flex.flex-col.gap-1 > .grid.ed-meeting-field-notes {
        grid-column: 1 / -1;
    }
}

.icon-cross2:before {
    content: "\e91c";
}

.edinet-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
}

.dark .edinet-card {
    border-color: #374151;
    background: #111827;
}

/* ---------------------- Global Button System ---------------------- */

.primary-button,
.secondary-button,
.transparent-button {
    border-radius: 12px;
    min-height: 40px;
    padding: 0.5rem 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.primary-button {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #ffffff;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.secondary-button {
    border-width: 1px;
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.secondary-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.transparent-button {
    border-width: 1px;
    border-color: transparent;
    background: transparent;
    color: #475569;
    box-shadow: none;
}

.transparent-button:hover {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.transparent-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.dark .primary-button {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.dark .primary-button:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.dark .secondary-button {
    border-color: #334155;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.5);
}

.dark .secondary-button:hover {
    border-color: #3b82f6;
    background: #172554;
    color: #bfdbfe;
}

.dark .transparent-button {
    color: #cbd5e1;
}

.dark .transparent-button:hover {
    border-color: #334155;
    background: #1e293b;
    color: #e2e8f0;
}

/* ---------------------- Roles Hidden Fields ---------------------- */
.ed-role-hidden-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ed-role-hidden-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ed-role-hidden-checkbox input:checked + span .block:first-child {
    color: #1d4ed8;
}

.ed-role-hidden-fields-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .ed-role-hidden-fields-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ed-role-hidden-fields-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.dark .ed-role-hidden-card:hover {
    border-color: #334155;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

/* ---------------------- AI Copilot ---------------------- */
.ed-ai-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border: 1px solid #93c5fd;
    border-radius: 16px;
    background: linear-gradient(160deg, #2563eb 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ed-ai-panel {
    position: fixed;
    right: 22px;
    bottom: 86px;
    z-index: 10060;
    width: min(430px, calc(100vw - 24px));
    height: min(72vh, 760px);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: none;
    overflow: hidden;
}

.dark .ed-ai-panel {
    background: #0b1220;
    border-color: #1e293b;
}

.ed-ai-panel.is-open {
    display: flex;
    flex-direction: column;
}

.ed-ai-head {
    padding: 12px 14px;
    background: radial-gradient(circle at 0% 0%, #22d3ee 0%, #2563eb 56%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ed-ai-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ed-ai-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

.ed-ai-head-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.ed-ai-body {
    flex: 1;
    overflow: auto;
    padding: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 28%);
}

.dark .ed-ai-body {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 28%);
}

.ed-ai-msg {
    max-width: 88%;
    margin-bottom: 10px;
    padding: 10px 11px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.ed-ai-msg.user {
    margin-left: auto;
    border: 1px solid #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
}

.ed-ai-msg.assistant {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #0f172a;
}

.dark .ed-ai-msg.assistant {
    border-color: #334155;
    background: #111827;
    color: #e2e8f0;
}

.ed-ai-actions {
    margin: 8px 0 12px;
    display: grid;
    gap: 8px;
}

.ed-ai-action-card {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
    padding: 9px;
}

/* Meetings calendar today reset button */
.meetings-calendar-today-btn {
    border: 0 !important;
    box-shadow: none !important;
}

.dark .ed-ai-action-card {
    border-color: #334155;
    background: #0f172a;
}

.ed-ai-action-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.dark .ed-ai-action-title {
    color: #e2e8f0;
}

.ed-ai-action-payload {
    margin-top: 4px;
    font-size: 11px;
    color: #475569;
    max-height: 120px;
    overflow: auto;
}

.dark .ed-ai-action-payload {
    color: #94a3b8;
}

.ed-ai-action-buttons {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.ed-ai-foot {
    border-top: 1px solid #e5e7eb;
    padding: 10px;
    background: #fff;
}

.dark .ed-ai-foot {
    border-color: #1f2937;
    background: #0b1220;
}

.ed-ai-mic-overlay {
    position: absolute;
    inset: 56px 0 70px 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.95));
    z-index: 2;
    pointer-events: none;
}

.ed-ai-mic-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(255, 255, 255, 0.9);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.18s ease;
}

.ed-ai-mic-close:hover {
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.ed-ai-mic-overlay.is-active {
    display: flex;
}

.ed-ai-mic-ring {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #93c5fd 0%, #3b82f6 55%, #2563eb 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
    animation: ed-ai-pulse 1.4s ease-in-out infinite;
}

.ed-ai-mic-dot {
    position: absolute;
    inset: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.3);
}

.ed-ai-mic-label {
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    letter-spacing: 0.02em;
}

.ed-ai-mic-transcript {
    max-width: 260px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    color: #1e3a8a;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
    min-height: 26px;
}

.ed-ai-mic-disclosure {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(30, 64, 175, 0.7);
}

.dark .ed-ai-mic-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(11, 18, 32, 0.95));
}

.dark .ed-ai-mic-close {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: #bfdbfe;
}

.dark .ed-ai-mic-ring {
    background: radial-gradient(circle at 30% 30%, #60a5fa 0%, #3b82f6 55%, #1d4ed8 100%);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.6);
}

.dark .ed-ai-mic-label {
    color: #bfdbfe;
}

.dark .ed-ai-mic-transcript {
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.35);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.4);
}

.dark .ed-ai-mic-disclosure {
    color: rgba(191, 219, 254, 0.7);
}

.ed-ai-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ed-ai-chip {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.ed-ai-input-wrap {
    display: flex;
    gap: 6px;
}

.ed-ai-mic {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eff6ff 60%, #dbeafe 100%);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.ed-ai-mic svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

.ed-ai-mic:hover {
    border-color: #93c5fd;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #dbeafe 55%, #bfdbfe 100%);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.ed-ai-mic.is-recording {
    border-color: #fca5a5;
    background: radial-gradient(circle at 30% 30%, #fff1f2 0%, #fecdd3 60%, #fca5a5 100%);
    color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.22);
}

.dark .ed-ai-mic {
    border-color: #334155;
    background: radial-gradient(circle at 30% 30%, #0f172a 0%, #111827 55%, #0b1220 100%);
    color: #bfdbfe;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.45);
}

.dark .ed-ai-mic:hover {
    border-color: #60a5fa;
    background: radial-gradient(circle at 30% 30%, #172554 0%, #1e293b 55%, #0f172a 100%);
    transform: translateY(-1px);
}

.dark .ed-ai-mic.is-recording {
    border-color: #ef4444;
    background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.35) 65%, rgba(127, 29, 29, 0.45) 100%);
    color: #fecaca;
}

@keyframes ed-ai-pulse {
    0% {
        transform: scale(0.92);
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.4);
    }
    100% {
        transform: scale(0.92);
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }
}

.ed-ai-input {
    flex: 1;
    min-height: 40px;
    max-height: 110px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 13px;
    resize: vertical;
}

.dark .ed-ai-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* ---------------------- Global Form System ---------------------- */

.edinet-form-shell {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 1.25rem;
}

.dark .edinet-form-shell {
    border-color: #374151;
    background: #0f172a;
}

/* Section blocks that wrap fields */
form .edinet-form-section,
form .rounded-lg,
form .rounded-xl {
    border-radius: 14px;
}

/* Labels */
form label,
form .edinet-label,
.form-container label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--edinet-label-text);
}

/* Inputs / selects / textareas */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="tel"],
form input[type="search"],
form select,
form textarea,
.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    border: 1px solid var(--edinet-field-border);
    border-radius: 10px;
    background: var(--edinet-field-bg);
    color: var(--edinet-field-text);
    font-size: 0.92rem;
    line-height: 1.3rem;
    padding: 0.62rem 0.82rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

form textarea,
.form-container textarea {
    min-height: 100px;
    resize: vertical;
}

form input::placeholder,
form textarea::placeholder,
.form-container input::placeholder,
.form-container textarea::placeholder {
    color: var(--edinet-field-placeholder);
}

/* Hover + focus */
form input:hover,
form select:hover,
form textarea:hover,
.form-container input:hover,
.form-container select:hover,
.form-container textarea:hover {
    border-color: var(--edinet-field-border-hover);
}

form input:focus,
form select:focus,
form textarea:focus,
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #0e90d9;
    box-shadow: 0 0 0 4px var(--edinet-focus-ring);
}

/* Better spacing between field groups */
form .edinet-field,
form .control-group,
form [class*="control-group"],
.form-container .edinet-field {
    margin-bottom: 0.9rem;
}

/* Optional icon-inside input wrapper */
.edinet-input-wrap {
    position: relative;
}

.edinet-input-wrap > i,
.edinet-input-wrap > .icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
    pointer-events: none;
}

.edinet-input-wrap > input,
.edinet-input-wrap > select {
    padding-left: 2.35rem !important;
}

.edinet-input-wrap > textarea {
    padding-left: 2.35rem !important;
    padding-top: 0.75rem !important;
}

.edinet-input-wrap--textarea > i {
    top: 0.95rem;
    transform: none;
}

/* Apple-like action buttons */
.edinet-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.edinet-patient-form-wrap {
    max-width: 1100px;
}

.edinet-patient-form-shell {
    max-width: 980px;
    background: #ffffff;
}

.edinet-patient-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.95rem 0.95rem;
    align-items: end;
}

.edinet-patient-grid .edinet-field {
    margin-bottom: 0;
}

.edinet-patient-grid .edinet-col-4 {
    grid-column: span 4 / span 4;
}

.edinet-patient-grid .edinet-col-2 {
    grid-column: span 2 / span 2;
}

.edinet-patient-grid .edinet-field--compact {
    min-width: 170px;
}

.edinet-btn-cancel {
    border: 1px solid #ef4444 !important;
    background: #ffffff !important;
    color: #ef4444 !important;
    border-radius: 10px !important;
    min-width: 140px;
    padding: 0.65rem 1rem !important;
    font-weight: 600;
}

.edinet-btn-cancel:hover {
    background: #fef2f2 !important;
}

.edinet-btn-save {
    border: 1px solid #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    min-width: 140px;
    padding: 0.65rem 1rem !important;
    font-weight: 600;
}

.edinet-btn-save:hover {
    background: #1d4ed8 !important;
}

.dark .edinet-btn-cancel {
    background: transparent !important;
    color: #f87171 !important;
    border-color: #ef4444 !important;
}

.dark .edinet-btn-cancel:hover {
    background: rgba(127, 29, 29, 0.22) !important;
}

.dark .edinet-btn-save {
    border-color: #3b82f6 !important;
    background: #2563eb !important;
}

/* Patient create/edit explicit overrides to avoid global form rule collisions */
.clinic-modern-form .clinic-modern-icon {
    z-index: 2;
    color: #94a3b8;
}

.clinic-modern-form .clinic-modern-input {
    height: 48px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding-left: 2.6rem !important;
    padding-right: 0.8rem !important;
}

.clinic-modern-form .clinic-modern-input::placeholder {
    color: #94a3b8 !important;
}

.clinic-modern-form .clinic-modern-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

.clinic-modern-btn-cancel,
.clinic-modern-btn-save {
    border-radius: 12px !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
}

.clinic-modern-btn-cancel {
    border-color: #ef4444 !important;
    background: #ffffff !important;
    color: #ef4444 !important;
}

.clinic-modern-btn-cancel:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.clinic-modern-btn-save {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
}

.clinic-modern-btn-save:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.dark .clinic-modern-form {
    background: #0f172a !important;
    border-color: #1f2937 !important;
}

.dark .clinic-modern-form label {
    color: #cbd5e1 !important;
}

.dark .clinic-modern-form .clinic-modern-icon {
    color: #94a3b8 !important;
}

.dark .clinic-modern-form .clinic-modern-input {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark .clinic-modern-form .clinic-modern-input::placeholder {
    color: #94a3b8 !important;
}

.dark .clinic-modern-form .clinic-modern-input:hover {
    border-color: #475569 !important;
}

.dark .clinic-modern-form .clinic-modern-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2) !important;
}

.dark .clinic-modern-btn-cancel {
    color: #fda4af !important;
    border-color: #fb7185 !important;
    background: transparent !important;
}

.dark .clinic-modern-btn-cancel:hover {
    background: rgba(190, 24, 93, 0.15) !important;
}

.dark .clinic-modern-btn-save {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

.dark .clinic-modern-btn-save:hover {
    background: #1d4ed8 !important;
}

/* Patient profile (show page) */
.clinic-profile-page {
    max-width: 94rem;
    margin-inline: auto;
}

.clinic-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem 1.2rem;
}

.clinic-profile-hero__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.clinic-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1rem;
}

.clinic-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.clinic-profile-subtitle {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.clinic-profile-actions {
    display: flex;
    gap: 0.6rem;
}

.clinic-profile-btn {
    min-width: 126px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.clinic-profile-card {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.clinic-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.clinic-profile-tab {
    border: 1px solid transparent;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    transition: all 0.15s ease;
}

.clinic-profile-tab:hover {
    color: #1e3a8a;
    background: #eff6ff;
}

.clinic-profile-tab--active {
    background: #e0ecff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.clinic-profile-body {
    padding: 1rem;
}

.clinic-profile-body-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.clinic-profile-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
}

.clinic-profile-note {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.clinic-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.clinic-profile-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.8rem;
}

.clinic-profile-item__label {
    color: #334155;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.clinic-profile-item__value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    width: 100%;
    border: 1px solid #d2dbe7;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 0.55rem 0.7rem;
}

.clinic-profile-item__value i {
    color: #64748b;
}

.dark .clinic-profile-hero {
    border-color: #334155;
    background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

.dark .clinic-profile-avatar {
    background: #1e3a8a;
    color: #dbeafe;
}

.dark .clinic-profile-name {
    color: #f8fafc;
}

.dark .clinic-profile-subtitle {
    color: #94a3b8;
}

.dark .clinic-profile-card {
    border-color: #334155;
    background: #0f172a;
}

.dark .clinic-profile-tabs {
    border-color: #334155;
    background: #0b1220;
}

.dark .clinic-profile-tab {
    color: #a8b5c7;
}

.dark .clinic-profile-tab:hover {
    background: #14233d;
    color: #bfdbfe;
}

.dark .clinic-profile-tab--active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #3b82f6;
}

.dark .clinic-profile-title {
    color: #f8fafc;
}

.dark .clinic-profile-note {
    color: #94a3b8;
}

.dark .clinic-profile-item {
    border-color: #334155;
    background: #111827;
}

.dark .clinic-profile-item__label {
    color: #cbd5e1;
}

.dark .clinic-profile-item__value {
    border-color: #334155;
    background: #0f172a;
    color: #e2e8f0;
}

.dark .clinic-profile-item__value i {
    color: #94a3b8;
}

.clinic-panel-form {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.85rem;
}

.clinic-panel-form textarea {
    margin-top: 0.55rem;
    min-height: 84px;
}

.clinic-table-wrap {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.clinic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.clinic-table thead th {
    text-align: left;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.7rem;
}

.clinic-table tbody td {
    border-bottom: 1px solid #eef2f7;
    padding: 0.7rem;
    color: #0f172a;
    vertical-align: top;
}

.clinic-table tbody tr:last-child td {
    border-bottom: 0;
}

.ed-leads-table-grid .row > :nth-child(2) {
    text-align: left;
    justify-content: flex-start;
}

.ed-leads-table-grid .row > :last-child {
    text-align: right;
    justify-content: flex-end;
}

@media (min-width: 1025px) {
    .ed-leads-table-grid .table-responsive > .row {
        grid-template-columns: 34px minmax(220px, 1.35fr) repeat(5, minmax(120px, 1fr)) 88px !important;
    }
}

.clinic-comments-list {
    display: grid;
    gap: 0.7rem;
}

.ed-lead-view-page [data-ed-lead-main-activities] > .relative.isolate > .flex.gap-2.overflow-x-auto {
    gap: 0.15rem;
    padding: 0.25rem 0.35rem 0;
}

.ed-lead-view-page [data-ed-lead-main-activities] [data-activity-type] {
    padding: 0.42rem 0.7rem !important;
    font-size: 1rem !important;
    line-height: 1.1rem;
    white-space: nowrap;
}

.ed-panoramex-toolbar {
    border: 1px solid #dbeafe !important;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    padding: 0.55rem 0.65rem !important;
}

.ed-panoramex-toolbar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.ed-panoramex-toolbar__eyebrow {
    margin: 0 0 0.22rem;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ed-panoramex-toolbar__title {
    margin: 0;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.15;
}

.ed-panoramex-toolbar__count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    border: 1px solid #bfdbfe;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.ed-panoramex-toolbar__count span {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ed-panoramex-feed {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem !important;
    align-items: start;
}

.ed-panoramex-gallery__item {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 156px;
    border: 1px solid #dbe7f5 !important;
    border-radius: 0.72rem !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ed-panoramex-gallery__item--image:hover .ed-panoramex-gallery__image {
    transform: scale(1.035);
}

.ed-panoramex-gallery__image,
.ed-panoramex-gallery__file {
    display: block;
    width: 100%;
    height: 82px;
}

.ed-panoramex-gallery__image {
    object-fit: cover;
    transition: transform 0.22s ease;
}

.ed-panoramex-gallery__file {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 35%),
        linear-gradient(180deg, #eff6ff, #e2e8f0);
}

.ed-panoramex-gallery__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem 0.48rem 0.45rem;
    height: calc(100% - 82px);
}

.ed-panoramex-gallery__name {
    margin: 0;
    color: #0f172a;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-panoramex-gallery__badge {
    display: inline-flex;
    align-self: flex-start;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.14rem 0.34rem;
    text-transform: uppercase;
}

.ed-panoramex-gallery__overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.54));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ed-panoramex-gallery__item--image:hover .ed-panoramex-gallery__overlay {
    opacity: 1;
}

.ed-panoramex-gallery__action {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    transition: transform 0.18s ease, background 0.18s ease;
}

.ed-panoramex-gallery__action:hover {
    transform: translateY(-1px) scale(1.04);
}

.ed-panoramex-gallery__action--primary {
    background: #2563eb;
    color: #fff;
}

.ed-panoramex-gallery__download {
    position: absolute;
    top: 0.32rem;
    right: 0.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.ed-panoramex-gallery__delete {
    position: absolute;
    top: 0.32rem;
    right: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #dc2626;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.dark .ed-panoramex-toolbar {
    border-color: #1e3a5f !important;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

.dark .ed-panoramex-toolbar__eyebrow,
.dark .ed-panoramex-toolbar__count span {
    color: #93c5fd;
}

.dark .ed-panoramex-toolbar__title,
.dark .ed-panoramex-toolbar__count {
    color: #e2e8f0;
}

.dark .ed-panoramex-toolbar__count {
    border-color: #1d4ed8;
    background: rgba(15, 23, 42, 0.75);
}

.dark .ed-panoramex-gallery__name {
    color: #e2e8f0 !important;
}

.dark .ed-panoramex-gallery__item {
    border-color: #334155 !important;
    background: linear-gradient(180deg, #111827, #0f172a);
}

.dark .ed-panoramex-gallery__file {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), transparent 35%),
        linear-gradient(180deg, #1e293b, #0f172a);
}

.dark .ed-panoramex-gallery__badge {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
}

.dark .ed-panoramex-gallery__download,
.dark .ed-panoramex-gallery__delete,
.dark .ed-panoramex-gallery__action {
    background: rgba(15, 23, 42, 0.92);
    color: #e2e8f0;
}

.ed-panoramex-toolbar .grid {
    display: flex !important;
    gap: 0.45rem !important;
}

.ed-panoramex-toolbar .grid > div {
    width: auto !important;
    flex: 0 0 auto;
}

.ed-panoramex-toolbar .grid > div > div > button,
.ed-panoramex-toolbar .grid > div > button {
    width: auto !important;
    min-width: 110px;
    height: 36px !important;
    padding: 0 0.85rem !important;
    border-radius: 0.7rem !important;
}

@media (max-width: 768px) {
    .ed-panoramex-toolbar__header {
        flex-direction: column;
    }

    .ed-panoramex-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ed-panoramex-gallery__item {
        height: 146px;
    }

    .ed-panoramex-gallery__image,
    .ed-panoramex-gallery__file {
        height: 78px;
    }
}

.clinic-comment-item {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.85rem;
}

.clinic-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.clinic-comment-head span {
    font-size: 0.82rem;
    color: #64748b;
}

.clinic-comment-item p {
    margin: 0 0 0.5rem 0;
    white-space: pre-wrap;
    color: #1e293b;
}

.dark .clinic-panel-form {
    border-color: #334155;
    background: #111827;
}

.dark .clinic-table-wrap {
    border-color: #334155;
    background: #0f172a;
}

.dark .clinic-table thead th {
    background: #111827;
    border-bottom-color: #334155;
    color: #cbd5e1;
}

.dark .clinic-table tbody td {
    border-bottom-color: #1f2937;
    color: #e2e8f0;
}

.dark .clinic-comment-item {
    border-color: #334155;
    background: #0f172a;
}

.dark .clinic-comment-head span {
    color: #94a3b8;
}

.dark .clinic-comment-item p {
    color: #e2e8f0;
}

.clinic-thread-composer {
    display: grid;
    gap: 0.65rem;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.9rem;
}

.clinic-thread-composer__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.clinic-thread-composer__head span {
    color: #64748b;
    font-size: 0.8rem;
}

.clinic-thread-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.edinet-file-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.35rem 0.45rem;
    min-height: 42px;
    max-width: min(100%, 520px);
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.edinet-file-upload:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.edinet-file-upload:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.edinet-file-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.edinet-file-upload__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
}

.edinet-file-upload__text {
    color: #64748b;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.clinic-comments-thread {
    gap: 0.9rem;
}

.clinic-thread-item {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 0.9rem;
    display: grid;
    gap: 0.55rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.clinic-thread-item--reply {
    margin-top: 0.7rem;
    margin-left: 1.2rem;
    border-color: #d4dcf5;
    background: #f8fbff;
}

.clinic-thread-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.clinic-thread-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.clinic-thread-item__meta span {
    font-size: 0.78rem;
    color: #64748b;
}

.clinic-thread-reply-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8 !important;
    border-radius: 999px;
    font-size: 0.74rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.15rem 0.5rem;
}

.clinic-thread-reply-badge i {
    font-size: 0.82rem;
    line-height: 1;
}

.clinic-thread-item__edited {
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155 !important;
}

.clinic-thread-item__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.clinic-thread-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.16s ease;
    text-decoration: none;
}

.clinic-thread-icon-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.clinic-thread-icon-btn--submit {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.clinic-thread-icon-btn--submit:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.clinic-thread-icon-btn--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.clinic-thread-icon-btn--danger:hover {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #b91c1c;
}

.clinic-thread-disclosure {
    position: relative;
}

.clinic-thread-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.clinic-thread-disclosure > summary::-webkit-details-marker {
    display: none;
}

.clinic-thread-form {
    margin-top: 0.4rem;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.7rem;
    min-width: 300px;
    display: grid;
    gap: 0.5rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.clinic-thread-form textarea {
    min-height: 88px;
}

.clinic-thread-form__footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.clinic-thread-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.83rem;
}

.clinic-thread-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #1d4ed8;
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    font-size: 0.82rem;
}

.clinic-thread-attachment--image {
    border-color: #93c5fd;
    background: #eff6ff;
}

.clinic-thread-attachment small {
    color: #64748b;
}

.clinic-thread-replies {
    margin-top: 0.15rem;
}

.clinic-thread-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.clinic-thread-edit-attachments {
    display: grid;
    gap: 0.35rem;
    border-top: 1px dashed #dbe3ee;
    margin-top: 0.4rem;
    padding-top: 0.5rem;
}

.clinic-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
}

.clinic-image-viewer.hidden {
    display: none !important;
}

.clinic-image-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(2px);
}

.clinic-image-viewer__panel {
    position: relative;
    z-index: 2;
    width: min(94vw, 1200px);
    height: min(92vh, 860px);
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    display: grid;
    grid-template-rows: auto 1fr;
}

.clinic-image-viewer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0.75rem;
}

.clinic-image-viewer__title {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.clinic-image-viewer__tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.clinic-image-viewer__counter {
    color: #64748b;
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.clinic-image-viewer__body {
    position: relative;
    background: #0b1220;
    overflow: auto;
    display: grid;
    place-items: center;
}

.clinic-image-viewer__img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.16s ease;
}

.clinic-image-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.clinic-image-viewer__nav:hover {
    background: rgba(30, 41, 59, 0.92);
}

.clinic-image-viewer__nav--left {
    left: 0.8rem;
}

.clinic-image-viewer__nav--right {
    right: 0.8rem;
}

.dark .clinic-thread-composer__head span {
    color: #94a3b8;
}

.dark .edinet-file-upload {
    border-color: #334155;
    background: #0f172a;
}

.dark .edinet-file-upload:hover {
    border-color: #3b82f6;
    background: #111827;
}

.dark .edinet-file-upload:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.dark .edinet-file-upload__button {
    border-color: #334155;
    background: #111827;
    color: #e2e8f0;
}

.dark .edinet-file-upload__text {
    color: #94a3b8;
}

.dark .clinic-thread-item {
    border-color: #334155;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.dark .clinic-thread-item--reply {
    border-color: #27416d;
    background: #102034;
}

.dark .clinic-thread-item__meta span {
    color: #94a3b8;
}

.dark .clinic-thread-reply-badge {
    border-color: #1d4ed8;
    background: #172554;
    color: #bfdbfe !important;
}

.dark .clinic-thread-item__edited {
    background: #1f2937;
    color: #cbd5e1 !important;
}

.dark .clinic-thread-form {
    border-color: #334155;
    background: #111827;
}

.dark .clinic-thread-icon-btn {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .clinic-thread-icon-btn:hover {
    border-color: #3b82f6;
    background: #172554;
    color: #bfdbfe;
}

.dark .clinic-thread-icon-btn--submit {
    border-color: #2563eb;
    background: #1e3a8a;
    color: #dbeafe;
}

.dark .clinic-thread-icon-btn--submit:hover {
    border-color: #3b82f6;
    background: #1d4ed8;
}

.dark .clinic-thread-icon-btn--danger {
    border-color: #7f1d1d;
    background: rgba(127, 29, 29, 0.22);
    color: #fda4af;
}

.dark .clinic-thread-icon-btn--danger:hover {
    border-color: #be123c;
    background: rgba(190, 24, 93, 0.2);
    color: #fecdd3;
}

.dark .clinic-thread-checkbox {
    color: #cbd5e1;
}

.dark .clinic-thread-attachment {
    border-color: #334155;
    background: #111827;
    color: #93c5fd;
}

.dark .clinic-thread-attachment--image {
    border-color: #1d4ed8;
    background: #172554;
}

.dark .clinic-thread-attachment small {
    color: #94a3b8;
}

.dark .clinic-thread-edit-attachments {
    border-top-color: #334155;
}

.dark .clinic-image-viewer__panel {
    border-color: #334155;
    background: #0f172a;
}

.dark .clinic-image-viewer__head {
    border-bottom-color: #334155;
}

.dark .clinic-image-viewer__title {
    color: #f3f4f6;
}

.dark .clinic-image-viewer__counter {
    color: #94a3b8;
}

/* Patients list table + CRUD actions */
.clinic-patient-name-link {
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}

.clinic-patient-name-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.clinic-patient-table .clinic-patient-name-link {
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}

.clinic-patient-table .clinic-patient-name-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.clinic-patient-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.clinic-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.16s ease;
    background: #ffffff;
}

.clinic-list-btn--view {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.clinic-list-btn--view:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.clinic-list-btn--edit {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f8fafc;
}

.clinic-list-btn--edit:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.clinic-list-btn--delete {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.clinic-list-btn--delete:hover {
    border-color: #fca5a5;
    background: #fee2e2;
}

.dark .clinic-patient-table .clinic-patient-name-link {
    color: #93c5fd;
}

.dark .clinic-patient-table .clinic-patient-name-link:hover {
    color: #bfdbfe;
}

.dark .clinic-patient-name-link {
    color: #93c5fd;
}

.dark .clinic-patient-name-link:hover {
    color: #bfdbfe;
}

.dark .clinic-list-btn {
    background: #0f172a;
}

.dark .clinic-list-btn--view {
    border-color: #2563eb;
    color: #bfdbfe;
    background: #172554;
}

.dark .clinic-list-btn--view:hover {
    border-color: #3b82f6;
    background: #1e3a8a;
}

.dark .clinic-list-btn--edit {
    border-color: #334155;
    color: #cbd5e1;
    background: #111827;
}

.dark .clinic-list-btn--edit:hover {
    border-color: #475569;
    background: #1f2937;
}

.dark .clinic-list-btn--delete {
    border-color: #7f1d1d;
    color: #fda4af;
    background: rgba(127, 29, 29, 0.22);
}

.dark .clinic-list-btn--delete:hover {
    border-color: #be123c;
    background: rgba(190, 24, 93, 0.2);
}

/* Treatment create/edit modern layout */
.treatment-modern-page {
    max-width: 1540px;
    gap: 0.8rem !important;
}

.treatment-modern-header,
.treatment-modern-card {
    border-radius: 12px;
}

.treatment-modern-header {
    min-height: 54px;
    border-color: #e0e7f0;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    padding: 0.5rem 0.72rem !important;
}

.treatment-modern-headline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.treatment-modern-subline {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.25;
}

.treatment-modern-card {
    border-color: #dbe3ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    padding: 1.25rem 1.25rem 1.1rem !important;
}

.treatment-modern-card .control-group {
    margin-bottom: 0 !important;
}

.treatment-form-tabs {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0.75rem 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.treatment-form-tabs--header {
    margin: 0;
    padding-left: 0.85rem;
    border-left: 1px solid #e2e8f0;
}

.treatment-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.treatment-card-head .treatment-section-head {
    margin-bottom: 0.75rem;
}

.treatment-card-head .treatment-form-tabs {
    margin: 0;
    padding-top: 0.15rem;
}

.treatment-form-tab {
    position: relative;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    border: 0;
    border-radius: 0;
    padding: 0 0 0.35rem;
    color: #64748b;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.16s ease;
}

.treatment-form-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 9999px;
    background: #2563eb;
    opacity: 0;
    transform: scaleX(0.35);
    transition: all 0.16s ease;
}

.treatment-form-tab i {
    font-size: 0.9rem;
    line-height: 1;
}

.treatment-form-tab:hover {
    color: #1d4ed8;
    background: transparent;
}

.treatment-form-tab.is-active {
    color: #1d4ed8;
    background: transparent;
    box-shadow: none;
}

.treatment-form-tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.treatment-form-panel[hidden] {
    display: none !important;
}

.treatment-section-head {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.treatment-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.treatment-section-note {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
}

.treatment-mini-title {
    margin: 0 0 0.85rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.treatment-attribute-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}


.treatment-attribute-grid > .control-group {
    margin-bottom: 0 !important;
}

.treatment-attribute-grid .attribute-name,
.treatment-attribute-grid .attribute-description {
    grid-column: span 1;
}

.treatment-attribute-grid .attribute-description textarea {
    min-height: 120px;
}

.treatment-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.treatment-pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    grid-template-areas:
        "settings prices"
        "options prices";
    align-items: start;
    gap: 1rem;
}

.treatment-pricing-layout > .treatment-pricing-grid {
    grid-area: settings;
}

.treatment-pricing-layout > .treatment-profile-summary {
    grid-area: prices;
    position: sticky;
    top: 1rem;
}

.treatment-pricing-layout > .treatment-options-section {
    grid-area: options;
}

.treatment-pricing-grid.treatment-pricing-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.treatment-pricing-grid.treatment-pricing-grid--model {
    grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr);
    align-items: start;
}

.treatment-pricing-model-help {
    display: none;
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.73rem;
    line-height: 1.35;
}

.js-treatment-pricing-block.is-fixed .treatment-pricing-model-help--fixed,
.js-treatment-pricing-block.is-options .treatment-pricing-model-help--options {
    display: block;
}

.treatment-pricing-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 44px;
    padding: 4px;
    border: 1px solid #cfd8e4;
    border-radius: 12px;
    background: #f8fafc;
}

.treatment-pricing-segment__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.treatment-pricing-segment__option:hover {
    color: #1d4ed8;
}

.treatment-pricing-segment__option.is-active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.treatment-pricing-guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.treatment-pricing-guide {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    min-width: 0;
    min-height: 66px;
    padding: 0.68rem 0.75rem;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.treatment-pricing-guide:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.treatment-pricing-guide.is-active {
    border-color: #60a5fa;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.treatment-pricing-guide__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

.treatment-pricing-guide.is-active .treatment-pricing-guide__icon {
    background: #dbeafe;
    color: #2563eb;
}

.treatment-pricing-guide strong {
    display: block;
    color: #0f172a;
    font-size: 0.83rem;
    font-weight: 750;
}

.treatment-pricing-guide small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.35;
}

.treatment-profile-summary {
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.treatment-profile-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 0;
}

.treatment-pricing-layout .treatment-profile-summary__head {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem;
}

.treatment-pricing-layout .treatment-profile-summary__head .secondary-button {
    width: 100%;
}

.treatment-profile-summary__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.treatment-profile-summary__columns span:last-child {
    text-align: right;
}

.treatment-profile-summary__title {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 750;
}

.treatment-profile-summary__subtitle {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.75rem;
}

.treatment-profile-summary__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 0 0.85rem 0.75rem;
    background: transparent;
}

.treatment-pricing-layout .treatment-profile-summary__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

.treatment-profile-summary__item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.treatment-profile-summary__item:nth-child(odd) {
    border-right: 0;
}

.treatment-profile-summary__item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.treatment-pricing-layout .treatment-profile-summary__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid #e7edf4;
}

.treatment-pricing-layout .treatment-profile-summary__item:last-child {
    border-bottom: 0;
}

.treatment-profile-summary__value {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.treatment-profile-summary__value small {
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 700;
}

.treatment-profile-summary__default {
    flex: none;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.treatment-profile-summary__price {
    flex: none;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.treatment-options-section {
    padding: 0.9rem 0 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
}

.treatment-options-section .treatment-options-toolbar {
    margin-bottom: 0.75rem;
}

.treatment-pricing-grid .control-group,
.treatment-pricing-grid .js-fixed-price-wrap {
    margin-bottom: 0 !important;
}

.treatment-pricing-grid .js-fixed-price-wrap {
    min-width: 0;
}

.treatment-modern-page .control-group > label,
.treatment-modern-page .control-group .required {
    color: #334155 !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.treatment-modern-page input[type="text"],
.treatment-modern-page input[type="number"],
.treatment-modern-page select,
.treatment-modern-page textarea {
    min-height: 44px;
    border-radius: 12px;
    border-color: #cfd8e4;
    background: #ffffff;
    transition: all 0.18s ease;
}

.treatment-modern-page select {
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.treatment-modern-page input[type="text"]:focus,
.treatment-modern-page input[type="number"]:focus,
.treatment-modern-page select:focus,
.treatment-modern-page textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.treatment-pricing-hint {
    border-radius: 12px;
    background: #f8fbff;
    border-color: #cfe0f9 !important;
}

.treatment-options-toolbar {
    margin-top: 0.15rem;
}

.treatment-option-add {
    min-width: 112px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 12px !important;
}

.treatment-option-add .icon-add {
    font-size: 1rem;
    line-height: 1;
}

.treatment-option-preset {
    min-width: 138px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
}

.treatment-option-input {
    min-height: 40px !important;
    border-radius: 10px !important;
}

.treatment-option-row {
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.js-treatment-pricing-block.is-fixed .js-pricing-options-wrap {
    display: none !important;
}

.js-treatment-pricing-block.is-options .js-pricing-options-wrap {
    display: block !important;
}

.js-treatment-pricing-block.is-options .js-fixed-price-wrap {
    display: none !important;
}

.js-treatment-pricing-block.is-fixed .js-fixed-price-wrap {
    display: block !important;
}

.dark .treatment-modern-card {
    border-color: #334155;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.dark .treatment-modern-header {
    border-color: #334155;
    background: #0f172a;
}

.dark .treatment-modern-subline {
    color: #9ca3af;
}

.dark .treatment-form-tabs {
    background: transparent;
}

.dark .treatment-form-tabs--header {
    border-left-color: #334155;
}

.dark .treatment-form-tab {
    color: #9ca3af;
    background: transparent;
}

.dark .treatment-form-tab:hover,
.dark .treatment-form-tab.is-active {
    color: #60a5fa;
    background: transparent;
}

.dark .treatment-section-title {
    color: #f3f4f6;
}

.dark .treatment-section-note {
    color: #9ca3af;
}

.dark .treatment-mini-title {
    color: #f3f4f6;
}

.dark .treatment-modern-page .control-group > label,
.dark .treatment-modern-page .control-group .required {
    color: #cbd5e1 !important;
}

.dark .treatment-modern-page input[type="text"],
.dark .treatment-modern-page input[type="number"],
.dark .treatment-modern-page select,
.dark .treatment-modern-page textarea {
    border-color: #334155;
    background: #0b1220;
    color: #e5e7eb;
}

.dark .treatment-modern-page select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.dark .treatment-pricing-segment {
    border-color: #334155;
    background: #0b1220;
}

.dark .treatment-pricing-segment__option {
    color: #94a3b8;
}

.dark .treatment-pricing-segment__option.is-active {
    background: #1e293b;
    color: #60a5fa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.dark .treatment-pricing-model-help {
    color: #94a3b8;
}

.dark .treatment-pricing-guide {
    border-color: #334155;
    background: #0b1220;
    color: #94a3b8;
}

.dark .treatment-pricing-guide:hover {
    border-color: #3b82f6;
    background: #111c2f;
}

.dark .treatment-pricing-guide.is-active {
    border-color: #3b82f6;
    background: #172554;
}

.dark .treatment-pricing-guide__icon {
    background: #1e293b;
    color: #94a3b8;
}

.dark .treatment-pricing-guide.is-active .treatment-pricing-guide__icon {
    background: #1e3a8a;
    color: #93c5fd;
}

.dark .treatment-pricing-guide strong {
    color: #f8fafc;
}

.dark .treatment-pricing-guide small {
    color: #94a3b8;
}

.dark .treatment-profile-summary {
    border-color: #334155;
    background: #0f172a;
}

.dark .treatment-profile-summary__head,
.dark .treatment-profile-summary__item,
.dark .treatment-profile-summary__item:nth-child(odd) {
    border-color: #243044;
}

.dark .treatment-profile-summary__columns {
    border-color: #334155;
    background: #172033;
    color: #94a3b8;
}

.dark .treatment-pricing-layout .treatment-profile-summary__item {
    border-color: #243044;
}

.dark .treatment-profile-summary__value small {
    color: #94a3b8;
}

.dark .treatment-profile-summary__grid {
    background: transparent;
}

.dark .treatment-profile-summary__item {
    background: transparent;
}

.dark .treatment-profile-summary__title,
.dark .treatment-profile-summary__price {
    color: #f8fafc;
}

.dark .treatment-profile-summary__subtitle {
    color: #94a3b8;
}

.dark .treatment-options-section {
    border-color: #334155;
    background: transparent;
}

.treatment-modern-page .clinic-select-arrow {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 2.5rem !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}

.dark .treatment-modern-page .clinic-select-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}

.dark .treatment-modern-page input[type="text"]:focus,
.dark .treatment-modern-page input[type="number"]:focus,
.dark .treatment-modern-page select:focus,
.dark .treatment-modern-page textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.dark .treatment-pricing-hint {
    background: #0b1628;
    border-color: #27416d !important;
}

.dark .treatment-option-row {
    border: 0 !important;
    background: transparent !important;
}

@media (min-width: 768px) {
    .treatment-attribute-grid,
    .treatment-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .treatment-attribute-grid .attribute-name,
    .treatment-attribute-grid .attribute-description {
        grid-column: span 2;
    }
}

@media (min-width: 1200px) {
    .treatment-attribute-grid,
    .treatment-pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .treatment-attribute-grid .attribute-name,
    .treatment-attribute-grid .attribute-description {
        grid-column: span 2;
    }
}

/* Treatments: translate manager */
.translate-manager {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 12px;
}

.translate-manager__head {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
}

.translate-manager__title-wrap {
    display: block;
}

.translate-manager__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.translate-manager__hint {
    font-size: 12px;
    color: #64748b;
}

.translate-manager__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.translate-manager__row {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.translate-manager__main {
    margin-top: 10px;
}

.translate-manager__main-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.translate-manager__main-input {
    width: 100%;
    max-width: none;
    min-height: 39px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
}

.translate-manager__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    min-height: 34px;
}

.translate-manager__lang-btn--main {
    background: #eef4ff;
    border-color: #c8d9ff;
}

.translate-manager__lang-btn--main i {
    color: #1d4ed8;
}

.translate-manager__lang-btn i {
    color: #1d4ed8;
    font-size: 13px;
}

.translate-manager__dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #facc15;
}

.translate-manager__dot.is-filled {
    background: #2563eb;
}

.translate-modal[hidden] {
    display: none !important;
}

.translate-modal {
    position: fixed;
    inset: 0;
    z-index: 10070;
}

.translate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.translate-modal__panel {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100% - 24px));
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.translate-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.translate-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.translate-modal__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.translate-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.translate-modal__close span {
    font-size: 20px;
    line-height: 1;
    color: #475569;
}

.translate-modal__body {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.translate-modal__options {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.translate-modal__option-row {
    border-radius: 8px;
}

.translate-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 14px 14px;
}

@media (max-width: 760px) {
    .translate-manager__row {
        grid-template-columns: 1fr;
    }

    .translate-manager__actions {
        flex-wrap: wrap;
    }
}

@media (min-width: 1536px) {
    .treatment-attribute-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .treatment-pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .treatment-pricing-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "settings"
            "prices"
            "options";
    }

    .treatment-pricing-layout > .treatment-profile-summary {
        position: static;
    }

    .treatment-pricing-grid.treatment-pricing-grid--model {
        grid-template-columns: 1fr;
    }

    .treatment-profile-summary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edinet-patient-grid .edinet-col-4 {
        grid-column: span 6 / span 6;
    }

    .edinet-patient-grid .edinet-col-2 {
        grid-column: span 3 / span 3;
    }
}

@media (max-width: 768px) {
    .treatment-modern-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .treatment-modern-header .secondary-button,
    .treatment-modern-header .primary-button {
        min-width: 130px;
    }

    .treatment-form-tabs {
        display: flex;
        width: auto;
    }

    .treatment-card-head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .treatment-card-head .treatment-form-tabs {
        align-self: flex-end;
        margin-inline: 0;
    }

    .treatment-form-tab {
        padding-inline: 0;
    }

    .treatment-option-row {
        grid-template-columns: 1fr !important;
    }

    .treatment-pricing-grid.treatment-pricing-grid--two,
    .treatment-pricing-grid.treatment-pricing-grid--model,
    .treatment-pricing-guides,
    .treatment-profile-summary__grid {
        grid-template-columns: 1fr;
    }

    .treatment-profile-summary__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .treatment-profile-summary__head .secondary-button {
        width: 100%;
    }

    .treatment-profile-summary__item,
    .treatment-profile-summary__item:nth-child(odd),
    .treatment-profile-summary__item:nth-last-child(-n + 2) {
        border: 0;
    }

    .treatment-profile-summary__item:last-child {
        border-bottom: 0;
    }

    .dark .treatment-profile-summary__item,
    .dark .treatment-profile-summary__item:nth-child(odd),
    .dark .treatment-profile-summary__item:nth-last-child(-n + 2) {
        border-color: #243044;
    }

    .treatment-options-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .treatment-option-preset,
    .treatment-option-add {
        width: 100%;
    }

    .edinet-patient-form-shell {
        padding: 1rem;
    }

    .edinet-patient-grid .edinet-col-4,
    .edinet-patient-grid .edinet-col-2 {
        grid-column: span 12 / span 12;
    }

    .edinet-patient-grid .edinet-field--compact {
        min-width: 0;
    }

    .edinet-form-actions {
        justify-content: stretch;
    }

    .edinet-btn-cancel,
    .edinet-btn-save {
        width: 100%;
    }

    .clinic-profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .clinic-profile-actions {
        width: 100%;
    }

    .clinic-profile-btn {
        flex: 1;
    }

    .clinic-profile-body-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .clinic-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode tokens */
.dark {
    --edinet-field-bg: #111827;
    --edinet-field-border: #374151;
    --edinet-field-border-hover: #4b5563;
    --edinet-field-text: #f3f4f6;
    --edinet-field-placeholder: #9ca3af;
    --edinet-label-text: #d1d5db;
    --edinet-focus-ring: rgba(14, 144, 217, 0.32);
}

/* Meetings calendar range selection preview */
.vuecal__event.clinic-calendar-selection,
.vuecal__event--foreground.clinic-calendar-selection {
    border: 1px dashed #2563eb !important;
    background: rgba(37, 99, 235, 0.16) !important;
}

.dark .vuecal__event.clinic-calendar-selection,
.dark .vuecal__event--foreground.clinic-calendar-selection {
    border-color: #60a5fa !important;
    background: rgba(30, 64, 175, 0.35) !important;
}

/* Meetings calendar drag-to-create visual helper */
.vuecal--drag-creating-event .vuecal__event.vuecal__event--resizing {
    border: 1px solid #38bdf8 !important;
    background: linear-gradient(180deg, rgba(186, 230, 253, 0.78), rgba(125, 211, 252, 0.6)) !important;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.18);
    overflow: visible !important;
}

.vuecal--drag-creating-event .vuecal__event.vuecal__event--resizing::after {
    content: "=";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #0ea5e9;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    line-height: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.25);
    pointer-events: none;
    z-index: 3;
}

.vuecal--drag-creating-event .vuecal__event.vuecal__event--resizing::after {
    bottom: -10px;
}

.dark .vuecal--drag-creating-event .vuecal__event.vuecal__event--resizing {
    border-color: #38bdf8 !important;
    background: linear-gradient(180deg, rgba(12, 74, 110, 0.72), rgba(8, 47, 73, 0.82)) !important;
    box-shadow: 0 10px 24px rgba(3, 105, 161, 0.35);
}

.dark .vuecal--drag-creating-event .vuecal__event.vuecal__event--resizing::after {
    border-color: #38bdf8;
    background: #082f49;
    color: #7dd3fc;
}

/* Settings > Marketing > Events modal */
.marketing-events-modal .box-shadow {
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
}

.marketing-events-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e6edf5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.marketing-events-modal-content {
    padding: 18px 20px 14px;
    background: #f8fafc;
}

.marketing-events-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.marketing-events-fields-grid > div {
    margin-bottom: 0;
}

.marketing-events-fields-grid > div:nth-child(2),
.marketing-events-fields-grid > div:nth-child(3) {
    grid-column: span 2 / span 2;
}

.marketing-events-modal-content label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #334155;
}

.marketing-events-input {
    border-radius: 12px !important;
    border-color: #c7d2e2 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    min-height: 42px;
    padding-left: 12px !important;
    padding-right: 12px !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.marketing-events-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.marketing-events-textarea {
    min-height: 104px;
    resize: vertical;
}

.marketing-events-modal-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid #e6edf5;
    background: #ffffff;
}

.marketing-events-save-btn {
    min-width: 136px;
    border-radius: 11px;
    padding: 10px 16px;
}

/* Flatpickr calendar picker styling */
.flatpickr-calendar {
    border: 1px solid #d7e3f2;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    z-index: 2147483600 !important;
}

.flatpickr-months {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.flatpickr-current-month {
    color: #0f172a;
    font-weight: 700;
}

.flatpickr-weekday {
    color: #64748b;
    font-weight: 600;
}

.flatpickr-day {
    border-radius: 10px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.flatpickr-day.today {
    border-color: #38bdf8;
}

.dark .marketing-events-modal .box-shadow {
    border-color: #334155;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

.dark .marketing-events-modal-header {
    border-bottom-color: #334155;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.dark .marketing-events-modal-content {
    background: #0b1220;
}

.dark .marketing-events-modal-content label {
    color: #cbd5e1;
}

.dark .marketing-events-input {
    border-color: #334155 !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.dark .marketing-events-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.dark .marketing-events-modal-footer {
    border-top-color: #334155;
    background: #0f172a;
}

.dark .flatpickr-calendar {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.dark .flatpickr-months {
    background: linear-gradient(180deg, #172036 0%, #0f172a 100%);
}

.dark .flatpickr-current-month,
.dark .flatpickr-weekday {
    color: #cbd5e1;
}

.dark .flatpickr-day {
    color: #cbd5e1;
}

.dark .flatpickr-day:hover {
    background: #1e293b;
    border-color: #334155;
}

.dark .flatpickr-day.today {
    border-color: #38bdf8;
}

.dark .flatpickr-day.selected,
.dark .flatpickr-day.startRange,
.dark .flatpickr-day.endRange {
    background: #0284c7;
    border-color: #0284c7;
    color: #f8fafc;
}

.ed-meeting-modal-form {
    padding: 14px 16px 12px !important;
}

.ed-meeting-modal-form .rounded-xl {
    overflow: visible;
}

.ed-meeting-modal-form .meeting-datetime-input,
.ed-meeting-modal-form select,
.ed-meeting-modal-form input[type="text"],
.ed-meeting-modal-form input[type="email"],
.ed-meeting-modal-form input[type="tel"] {
    min-height: 40px;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.ed-meeting-modal-form__notes {
    min-height: 84px;
    resize: vertical;
}

.ed-meeting-modal-form .ed-meeting-colors__swatch {
    width: 24px;
    height: 24px;
}

.ed-meeting-modal-form .ed-meeting-color-help__bubble {
    width: 220px;
}

/* Meetings event colors in vue-cal */
.vuecal__event.meeting-status-confirmed {
    background: #0ea5e9 !important;
    color: #ffffff !important;
}

.vuecal__event.meeting-status-checked_in {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.vuecal__event.meeting-status-finished {
    background: #059669 !important;
    color: #ffffff !important;
}

.vuecal__event.meeting-status-no_show {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.ed-meeting-colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.ed-meeting-color-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 40;
}

.ed-meeting-color-help__trigger {
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.16s ease;
}

.ed-meeting-color-help__trigger:hover {
    border-color: #60a5fa;
    color: #1d4ed8;
    background: #eff6ff;
}

.ed-meeting-color-help__bubble {
    position: absolute;
    left: 0;
    top: auto;
    bottom: calc(100% + 8px);
    transform: none;
    width: 320px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-size: 0.76rem;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
    z-index: 2147483605;
}

.ed-meeting-color-help__bubble::before {
    content: "";
    position: absolute;
    left: 18px;
    top: auto;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-right: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
    background: #ffffff;
    transform: rotate(45deg);
}

.ed-meeting-color-help:hover .ed-meeting-color-help__bubble,
.ed-meeting-color-help:focus-within .ed-meeting-color-help__bubble {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ed-meeting-colors__swatch {
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--meeting-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ed-meeting-colors__swatch:hover {
    transform: scale(1.06);
}

.ed-meeting-colors__swatch.is-active {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.dark .ed-meeting-colors__swatch.is-active {
    border-color: #e2e8f0;
}

.dark .ed-meeting-color-help__trigger {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .ed-meeting-color-help__trigger:hover {
    border-color: #3b82f6;
    color: #bfdbfe;
    background: #172554;
}

.dark .ed-meeting-color-help__bubble {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .ed-meeting-color-help__bubble::before {
    border-right-color: #334155;
    border-bottom-color: #334155;
    background: #0f172a;
}

.vuecal__event.meeting-color-1 { background: #7986cb !important; color: #ffffff !important; }
.vuecal__event.meeting-color-2 { background: #33b679 !important; color: #ffffff !important; }
.vuecal__event.meeting-color-3 { background: #8e24aa !important; color: #ffffff !important; }
.vuecal__event.meeting-color-4 { background: #e67c73 !important; color: #ffffff !important; }
.vuecal__event.meeting-color-5 { background: #f6c026 !important; color: #111827 !important; }
.vuecal__event.meeting-color-6 { background: #f4511e !important; color: #ffffff !important; }
.vuecal__event.meeting-color-7 { background: #039be5 !important; color: #ffffff !important; }
.vuecal__event.meeting-color-8 { background: #616161 !important; color: #ffffff !important; }
.vuecal__event.meeting-color-9 { background: #3f51b5 !important; color: #ffffff !important; }
.vuecal__event.meeting-color-10 { background: #0b8043 !important; color: #ffffff !important; }
.vuecal__event.meeting-color-11 { background: #d50000 !important; color: #ffffff !important; }

.vuecal__event-container--overlapped .vuecal__event {
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

@media (min-width: 641px) {
    .meetings-vuecal.meetings-vuecal--week {
        --meeting-event-accent: #0ea5e9;
        --meeting-event-bg: #e0f2fe;
        --meeting-event-text: #0f172a;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--meeting-event-text) !important;
        box-shadow: none !important;
        z-index: auto !important;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event:hover {
        z-index: 90 !important;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event.meeting-status-confirmed {
        --meeting-event-accent: #0ea5e9;
        --meeting-event-bg: #e0f2fe;
        --meeting-event-text: #075985;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event.meeting-status-checked_in {
        --meeting-event-accent: #f59e0b;
        --meeting-event-bg: #fef3c7;
        --meeting-event-text: #92400e;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event.meeting-status-finished {
        --meeting-event-accent: #059669;
        --meeting-event-bg: #d1fae5;
        --meeting-event-text: #065f46;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event.meeting-status-no_show {
        --meeting-event-accent: #ef4444;
        --meeting-event-bg: #fee2e2;
        --meeting-event-text: #991b1b;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event-content.meeting-event-card {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 100%;
        border: 1px solid rgba(148, 163, 184, 0.28) !important;
        border-left: 4px solid var(--meeting-event-accent) !important;
        border-radius: 7px !important;
        background: var(--meeting-event-bg) !important;
        color: var(--meeting-event-text) !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
        padding: 4px 26px 4px 7px !important;
        box-shadow: 0 3px 9px rgba(15, 23, 42, 0.09);
        text-align: left;
        transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event:hover .vuecal__event-content.meeting-event-card {
        border-color: rgba(15, 23, 42, 0.18) !important;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
        transform: translateY(-1px);
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-main,
    .meetings-vuecal.meetings-vuecal--week .meeting-event-meta {
        width: 100%;
        min-width: 0;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-title-wrap {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: center;
        gap: 4px;
        text-align: left;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-name {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: var(--meeting-event-text);
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1.05rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-meta {
        display: flex;
        align-items: center;
        gap: 3px;
        overflow: hidden;
        color: color-mix(in srgb, var(--meeting-event-text) 72%, #475569);
        font-size: 0.72rem;
        font-weight: 650;
        line-height: 0.9rem;
        white-space: nowrap;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-meta span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-status-icon {
        position: static;
        display: inline-flex;
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 999px;
        background: var(--meeting-event-accent);
        color: #ffffff;
        font-size: 10px;
        line-height: 1;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
        transform: none;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-create {
        position: absolute;
        top: 4px;
        right: 5px;
        z-index: 20;
        display: inline-flex;
        width: 16px;
        height: 16px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(14, 116, 144, 0.26);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: var(--meeting-event-accent);
        font-size: 11px;
        line-height: 1;
        opacity: 0.95;
        pointer-events: auto;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
        transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-create:hover {
        background: #ffffff;
        opacity: 1;
        transform: scale(1.06);
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-tooltip {
        position: absolute;
        left: 10px;
        bottom: calc(100% + 8px);
        z-index: 30;
        width: max-content;
        max-width: 260px;
        border: 1px solid #dbe3ef;
        border-radius: 10px;
        background: #ffffff;
        padding: 9px 10px;
        color: #334155;
        font-size: 0.76rem;
        font-weight: 600;
        line-height: 1.25;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 140ms ease, transform 140ms ease;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-tooltip::after {
        content: "";
        position: absolute;
        left: 16px;
        bottom: -6px;
        width: 10px;
        height: 10px;
        border-right: 1px solid #dbe3ef;
        border-bottom: 1px solid #dbe3ef;
        background: #ffffff;
        transform: rotate(45deg);
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-tooltip__patient {
        margin-bottom: 3px;
        color: #0f172a;
        font-size: 0.84rem;
        font-weight: 800;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event:hover .meeting-event-tooltip {
        opacity: 1;
        transform: translateY(0);
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event-container--overlapped .vuecal__event,
    .meetings-vuecal.meetings-vuecal--week .vuecal__event--overlapped {
        border-color: rgba(15, 23, 42, 0.16) !important;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__now-line {
        height: 2px;
        border: 0;
        background: #ef4444;
        box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.16), 0 2px 8px rgba(239, 68, 68, 0.22);
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__now-line::before {
        content: "";
        position: absolute;
        left: -5px;
        top: -4px;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #ef4444;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__time-cell {
        color: #94a3b8;
        font-size: 0.78rem;
    }
}


/* Meetings resize handle: show "=" on hover */
.vuecal__event .vuecal__event-resize-handle {
    height: 16px !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15) !important;
}

.vuecal__event .vuecal__event-resize-handle::before {
    content: "=";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -56%);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

@media (max-width: 768px) {
    .marketing-events-fields-grid {
        grid-template-columns: 1fr;
    }

    .marketing-events-fields-grid > div:nth-child(2),
    .marketing-events-fields-grid > div:nth-child(3) {
        grid-column: auto;
    }
}

/* Meetings settings compact field grouping */
.meeting-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.meeting-settings-grid .control-group {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .meeting-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .meeting-settings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .meeting-settings-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------------------- AI Copilot: Futuristic Restyle ---------------------- */
.ed-ai-launcher {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.65);
    background: conic-gradient(from 210deg, #0ea5e9, #2563eb, #22d3ee, #2563eb);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.4);
    animation: ed-ai-float 5s ease-in-out infinite;
}

.ed-ai-panel {
    width: min(520px, calc(100vw - 24px));
    height: min(78vh, 820px);
    border-radius: 22px;
    border: 1px solid rgba(148, 197, 255, 0.5);
    background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 45%),
        radial-gradient(circle at 90% 5%, rgba(37, 99, 235, 0.2), transparent 40%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 60%);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(191, 219, 254, 0.6) inset;
    backdrop-filter: blur(8px);
}

.dark .ed-ai-panel {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.2), transparent 45%),
        radial-gradient(circle at 90% 5%, rgba(59, 130, 246, 0.25), transparent 40%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 70%);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
        0 30px 75px rgba(2, 6, 23, 0.6),
        0 0 0 1px rgba(59, 130, 246, 0.25) inset;
}

.ed-ai-head {
    padding: 5px 10px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.8), transparent 55%),
        linear-gradient(120deg, #0ea5e9 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.ed-ai-title {
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ed-ai-subtitle {
    font-size: 11px;
    opacity: 0.9;
    letter-spacing: 0.04em;
}

.ed-ai-head-btn {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.ed-ai-body {
    padding: 16px;
    background:
        radial-gradient(circle at 15% 12%, rgba(191, 219, 254, 0.25), transparent 50%),
        linear-gradient(180deg, #f5f9ff 0%, #ffffff 40%, #ffffff 100%);
    position: relative;
}

.dark .ed-ai-body {
    background:
        radial-gradient(circle at 15% 12%, rgba(30, 64, 175, 0.35), transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 55%, #0b1220 100%);
}

.ed-ai-msg {
    border-radius: 16px;
    padding: 11px 12px;
    font-size: 13px;
    animation: ed-ai-rise 220ms ease-out;
}

.ed-ai-msg.user {
    border: 1px solid rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.9) 0%, rgba(191, 219, 254, 0.75) 100%);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.15);
}

.ed-ai-msg.assistant {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.dark .ed-ai-msg.assistant {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(51, 65, 85, 0.6);
}

.ed-ai-actions {
    gap: 10px;
}

.ed-ai-action-card {
    border-radius: 14px;
    border-color: rgba(59, 130, 246, 0.35);
    background:
        radial-gradient(circle at 10% 0%, rgba(191, 219, 254, 0.4), transparent 50%),
        #f8fbff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.dark .ed-ai-action-card {
    background:
        radial-gradient(circle at 10% 0%, rgba(30, 64, 175, 0.4), transparent 50%),
        #0f172a;
}

.ed-ai-foot {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #ffffff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -10px 20px rgba(15, 23, 42, 0.06);
}

.dark .ed-ai-foot {
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0.95) 0%, #0b1220 100%);
    border-top-color: rgba(51, 65, 85, 0.7);
}

.ed-ai-chip {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(219, 234, 254, 0.8);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ed-ai-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

.ed-ai-input {
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dark .ed-ai-input {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
}

.ed-ai-mic {
    border-radius: 14px;
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(191, 219, 254, 0.7) inset;
    animation: ed-ai-glow 2.6s ease-in-out infinite;
}

.ed-ai-mic.is-recording {
    animation: ed-ai-glow-recording 1.4s ease-in-out infinite;
}

.ed-ai-mic-overlay {
    backdrop-filter: blur(6px);
}

.ed-ai-mic-ring {
    animation: ed-ai-pulse 1.2s ease-in-out infinite;
    box-shadow:
        0 16px 36px rgba(37, 99, 235, 0.4),
        0 0 0 10px rgba(59, 130, 246, 0.08);
}

@keyframes ed-ai-rise {
    0% { transform: translateY(6px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes ed-ai-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes ed-ai-glow {
    0% { box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(191, 219, 254, 0.7) inset; }
    50% { box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28), 0 0 0 1px rgba(147, 197, 253, 0.9) inset; }
    100% { box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(191, 219, 254, 0.7) inset; }
}

@keyframes ed-ai-glow-recording {
    0% { box-shadow: 0 10px 22px rgba(248, 113, 113, 0.2), 0 0 0 1px rgba(252, 165, 165, 0.9) inset; }
    50% { box-shadow: 0 18px 34px rgba(248, 113, 113, 0.4), 0 0 0 1px rgba(254, 202, 202, 0.9) inset; }
    100% { box-shadow: 0 10px 22px rgba(248, 113, 113, 0.2), 0 0 0 1px rgba(252, 165, 165, 0.9) inset; }
}

.dark .sidebar-overlap-fix { box-shadow: 0 -1px 0 #111827 !important; }

/* Patient profile: compact quick treatment entry row */
.patient-treatment-entry-row > * {
    min-width: 0;
}

@media (min-width: 1200px) {
    .patient-treatment-entry-row {
        display: grid;
        grid-template-columns: minmax(360px, 2.3fr) minmax(170px, 1fr) minmax(220px, 1.2fr) minmax(180px, 0.9fr) auto;
        align-items: center;
        gap: 12px;
    }

    .patient-treatment-entry-row > .primary-button {
        width: auto !important;
        min-width: 140px;
        justify-self: end;
    }

    .patient-treatment-entry-row .v-field,
    .patient-treatment-entry-row .v-control-container,
.patient-treatment-entry-row .v-control {
        width: 100%;
    }
}

.edinet-whatsapp-icon-muted {
    filter: brightness(0) saturate(100%) invert(44%) sepia(11%) saturate(702%) hue-rotate(175deg) brightness(94%) contrast(89%);
}

.ed-ai-head {
    align-items: flex-start;
}

.ed-ai-head-profile {
    flex: 0 0 auto;
    align-self: flex-start;
}

.ed-ai-head-copy {
    min-width: 0;
    flex: 1;
}

.ed-ai-avatar-wrap {
    width: 50px;
    height: 50px;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(15, 23, 42, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ed-ai-avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ed-ai-panel.is-ai-typing .ed-ai-avatar-wrap {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 0 18px rgba(34, 211, 238, 0.45);
}

.ed-ai-reset-inline {
    width: 38px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.16s ease;
}

.ed-ai-reset-inline svg {
    width: 18px;
    height: 18px;
}

.ed-ai-reset-inline:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.dark .ed-ai-reset-inline {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .ed-ai-reset-inline:hover {
    border-color: #3b82f6;
    color: #bfdbfe;
    background: #172554;
}

.ed-lead-meetings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ed-lead-meetings__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ed-lead-meetings__empty {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 220px;
    border: 1px dashed #dbe3f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
    text-align: center;
    padding: 24px;
}

.ed-lead-meetings__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.ed-lead-meetings__card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ed-lead-meetings__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ed-lead-meetings__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ed-lead-meetings__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9999px;
    background: #eff6ff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.ed-lead-meetings__notes {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ed-lead-meetings__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ed-lead-meetings__status--scheduled {
    background: #e0f2fe;
    color: #0369a1;
}

.ed-lead-meetings__status--confirmed {
    background: #dcfce7;
    color: #15803d;
}

.ed-lead-meetings__status--completed {
    background: #e2e8f0;
    color: #334155;
}

.ed-lead-meetings__status--cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.ed-lead-meetings__icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.16s ease;
}

.ed-lead-meetings__icon-btn:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.ed-lead-meetings__icon-btn--danger:hover {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fef2f2;
}

.ed-lead-meeting-input {
    min-height: 44px;
}

/* Google Calendar settings: 50/50 connection cards */
.ed-google-sync-grid {
    align-items: start;
}

@media (min-width: 1024px) {
    .ed-google-sync-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.25rem;
    }
}

.ed-quote-settings-shell {
    display: grid;
    gap: 16px;
}

.ed-quote-settings-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    border: 1px solid #dbe3f1;
    border-radius: 20px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 144, 217, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
}

.ed-quote-settings-hero-copy {
    max-width: 760px;
}

.ed-quote-settings-kicker {
    margin-bottom: 8px;
    color: #0f6b93;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ed-quote-settings-title {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.ed-quote-settings-subtitle {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.ed-quote-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 16px;
}

.ed-quote-settings-column {
    display: grid;
    gap: 16px;
    align-content: start;
}

.ed-quote-settings-panel {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.ed-quote-settings-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.ed-quote-settings-panel-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.ed-quote-settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff7ff 0%, #dff1ff 100%);
    color: #0e90d9;
    font-size: 18px;
    flex-shrink: 0;
}

.ed-quote-settings-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ed-quote-settings-span-12 {
    grid-column: span 12;
}

.ed-quote-settings-span-6 {
    grid-column: span 6;
}

.ed-quote-settings-span-4 {
    grid-column: span 4;
}

.ed-quote-settings-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.ed-quote-settings-cta-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.ed-quote-settings-logo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.ed-quote-settings-logo-preview img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
}

@media (max-width: 1200px) {
    .ed-quote-settings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ed-quote-settings-span-6,
    .ed-quote-settings-span-4 {
        grid-column: span 12;
    }

    .ed-quote-settings-hero {
        padding: 18px;
    }

    .ed-quote-settings-title {
        font-size: 24px;
    }

    .ed-quote-settings-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ed-lead-nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.25rem;
}

.ed-lead-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 1rem;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.ed-lead-nav-arrow:hover {
    border-color: #38bdf8;
    color: #0369a1;
    background: #f0f9ff;
}

.ed-lead-nav-arrow.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.ed-datagrid-select-all-control {
    gap: 2px;
}

.ed-datagrid-select-all-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 20px;
    margin-left: -2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    line-height: 1;
    transition: color 0.16s ease, opacity 0.16s ease;
}

.ed-datagrid-select-all-trigger:hover {
    color: #475569;
}

.ed-datagrid-select-all-trigger .icon-down-arrow {
    font-size: 21px;
    line-height: 1;
}

.dark .ed-datagrid-select-all-trigger {
    color: #94a3b8;
}

.dark .ed-datagrid-select-all-trigger:hover {
    color: #e2e8f0;
}

.ed-datagrid-table--popover-open {
    overflow: visible !important;
}

.ed-datagrid-toolbar-title {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: block;
    max-width: 36%;
    transform: translate(-50%, -50%);
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.dark .ed-datagrid-toolbar-title {
    color: #ffffff;
}

@media (max-width: 900px) {
    .ed-datagrid-toolbar-title {
        position: static;
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 8px;
        transform: none;
        font-size: 18px;
    }
}

.ed-patient-birth-combo {
    display: grid;
    grid-template-columns: minmax(78px, 30%) minmax(0, 70%);
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.ed-patient-birth-combo--inline {
    grid-template-columns: minmax(82px, 30%) minmax(0, 70%);
    gap: 8px;
}

.ed-patient-birth-combo > * {
    min-width: 0;
}

.ed-patient-birth-combo .relative.flex.w-full.flex-col {
    min-width: 0;
}

.ed-patient-birth-combo input[type="number"],
.ed-patient-birth-combo input[type="date"],
.ed-patient-birth-combo input[data-patient-birthday-flatpickr] {
    min-width: 0;
}

.ed-patient-birth-combo .flatpickr-wrapper {
    display: block;
    width: 100%;
}

.ed-patient-birth-combo .ed-meeting-quick-patient-date,
.ed-patient-birth-combo .ed-meeting-quick-patient-date.flatpickr-input,
.ed-patient-birth-combo .ed-patient-birthday-flatpickr-alt {
    width: 100%;
    min-width: 0;
    padding-left: 3rem !important;
}

.ed-meeting-quick-patient-main-row .ed-patient-birth-combo {
    gap: 8px;
}

.ed-meeting-quick-patient-main-row .ed-patient-birth-combo .pointer-events-none.absolute.left-3 {
    left: 0.75rem;
}

.ed-meeting-quick-patient-main-row .ed-patient-birth-combo input[type="number"],
.ed-meeting-quick-patient-main-row .ed-patient-birth-combo .ed-meeting-quick-patient-date,
.ed-meeting-quick-patient-main-row .ed-patient-birth-combo .ed-patient-birthday-flatpickr-alt {
    padding-left: 2.5rem !important;
}

@media (min-width: 640px) {
    .ed-meeting-quick-patient-main-row {
        grid-template-columns: minmax(220px, 1fr) minmax(300px, 1fr) minmax(220px, 1fr);
    }
}

@media (max-width: 380px) {
    .ed-patient-birth-combo,
    .ed-patient-birth-combo--inline {
        grid-template-columns: 1fr;
    }
}

.ed-datagrid-alpha-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ed-datagrid-alpha-trigger:hover,
.ed-datagrid-alpha-trigger--active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.16);
}

.ed-datagrid-alpha-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 40;
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    transform-origin: top left;
}

.ed-datagrid-alpha-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.ed-datagrid-alpha-option,
.ed-datagrid-alpha-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.ed-datagrid-alpha-clear {
    min-height: 26px;
    padding: 0 10px;
}

.ed-datagrid-alpha-option:hover,
.ed-datagrid-alpha-clear:hover,
.ed-datagrid-alpha-option--active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.dark .ed-datagrid-alpha-trigger {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .ed-datagrid-alpha-trigger:hover,
.dark .ed-datagrid-alpha-trigger--active {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.dark .ed-datagrid-alpha-popover {
    border-color: #334155;
    background: #0f172a;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.dark .ed-datagrid-alpha-option,
.dark .ed-datagrid-alpha-clear {
    border-color: #334155;
    background: #111827;
    color: #cbd5e1;
}

.dark .ed-datagrid-alpha-option:hover,
.dark .ed-datagrid-alpha-clear:hover,
.dark .ed-datagrid-alpha-option--active {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.22);
    color: #bfdbfe;
}

/* ---------------------- Admin Login ---------------------- */
.ed-login-field .ed-icon-left {
    z-index: 1;
    pointer-events: none;
}

.ed-login-field .ed-login-input {
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
    line-height: 1.25rem;
}

.ed-login-field .ed-login-input::placeholder {
    color: #9ca3af;
}

.ed-login-field .ed-login-pass-toggle {
    z-index: 1;
}

/* ---------------------- Roles Matrix ---------------------- */
.ed-role-matrix-table {
    border-collapse: separate;
    border-spacing: 0;
}

.ed-role-matrix-sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #ffffff;
    box-shadow: 1px 0 0 #e5e7eb;
}

.dark .ed-role-matrix-sticky-col {
    background: #111827;
    box-shadow: 1px 0 0 #1f2937;
}

.ed-role-cell-not-set {
    border-color: #d1d5db !important;
    background: #ffffff !important;
}

.ed-role-cell-no {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.ed-role-cell-own {
    border-color: #fde68a !important;
    background: #fffbeb !important;
    color: #92400e !important;
}

.ed-role-cell-group {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.ed-role-cell-all {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

.dark .ed-role-cell-not-set {
    border-color: #374151 !important;
    background: #111827 !important;
    color: #d1d5db !important;
}

.dark .ed-role-cell-no {
    border-color: #7f1d1d !important;
    background: rgba(127, 29, 29, 0.22) !important;
    color: #fca5a5 !important;
}

.dark .ed-role-cell-own {
    border-color: #78350f !important;
    background: rgba(120, 53, 15, 0.24) !important;
    color: #fcd34d !important;
}

.dark .ed-role-cell-group {
    border-color: #1d4ed8 !important;
    background: rgba(29, 78, 216, 0.18) !important;
    color: #93c5fd !important;
}

.dark .ed-role-cell-all {
    border-color: #166534 !important;
    background: rgba(22, 101, 52, 0.22) !important;
    color: #86efac !important;
}

/* ---------------------- Quick Create ---------------------- */
.ed-header-action-button {
    display: inline-flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.ed-header-action-button::before,
.ed-header-action-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.quick-create-plus-icon {
    transform-origin: center center !important;
    animation: quick-create-plus-spin 4s linear infinite !important;
    transition: transform 180ms ease;
    will-change: transform;
}

.dropdown-is-active .quick-create-plus-icon {
    animation: none !important;
    transform: rotate(45deg) !important;
}

.ed-quick-create-dropdown {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.ed-quick-create-link {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.ed-quick-create-link > div {
    align-items: center;
    min-width: 0;
}

.ed-quick-create-item i {
    color: #475569 !important;
}

.ed-quick-create-item span {
    color: #1f2937;
    line-height: 1.2;
}

.dark .ed-quick-create-dropdown {
    border-color: #334155;
    background: #111827;
}

.dark .ed-quick-create-item i,
.dark .ed-quick-create-item span {
    color: #e2e8f0 !important;
}

.meetings-calendar-toolbar__doctor-trigger {
    border-color: #bae6fd !important;
    background: #f0f9ff !important;
    color: #075985 !important;
}

.meetings-calendar-toolbar__doctor-menu {
    transform-origin: top left;
}

.meetings-calendar-toolbar__doctor-trigger:hover {
    border-color: #7dd3fc !important;
    background: #e0f2fe !important;
}

.meetings-calendar-toolbar__doctor-trigger i {
    color: #0284c7;
}

.dark .meetings-calendar-toolbar__doctor-trigger {
    border-color: #0c4a6e !important;
    background: #082f49 !important;
    color: #e0f2fe !important;
}

.dark .meetings-calendar-toolbar__doctor-trigger:hover {
    background: #0c4a6e !important;
}

.dark .meetings-calendar-toolbar__doctor-trigger i {
    color: #7dd3fc;
}

@media (max-width: 640px) {
    .ed-quick-create-dropdown {
        position: fixed !important;
        top: calc(58px + env(safe-area-inset-top)) !important;
        right: auto !important;
        left: 50% !important;
        z-index: 2147482550 !important;
        width: min(236px, calc(100vw - 32px)) !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: translateX(-50%);
        transform-origin: top center;
    }

    .ed-quick-create-menu {
        padding: 10px !important;
    }

    .ed-quick-create-grid {
        gap: 8px !important;
    }

    .ed-quick-create-item {
        border-radius: 10px !important;
        padding: 0 !important;
    }

    .ed-quick-create-link {
        min-height: 72px;
        border-radius: 10px;
        padding: 8px 6px;
    }

    .ed-quick-create-link > div {
        gap: 6px !important;
    }

    .ed-quick-create-item i {
        font-size: 1.35rem !important;
        line-height: 1;
    }

    .ed-quick-create-item span {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.92rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@keyframes quick-create-plus-spin {
    0% {
        transform: rotate(0deg);
    }

    6.25% {
        transform: rotate(45deg);
    }

    12.5% {
        transform: rotate(180deg);
    }

    18.75% {
        transform: rotate(315deg);
    }

    25%,
    100% {
        transform: rotate(360deg);
    }
}
.patient-treatment-plan-details > summary::-webkit-details-marker {
    display: none;
}

.patient-treatment-plan-close-label {
    display: none;
}

.patient-treatment-plan-chevron {
    transition: transform 160ms ease;
}

.patient-treatment-plan-details[open] .patient-treatment-plan-open-label {
    display: none;
}

.patient-treatment-plan-details[open] .patient-treatment-plan-close-label {
    display: inline;
}

.patient-treatment-plan-details[open] .patient-treatment-plan-chevron {
    transform: rotate(180deg);
}

.ed-notification-dropdown {
    border-radius: 16px !important;
}

.ed-notification-dropdown > div:first-child {
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%) !important;
}

.ed-notification-dropdown > div:first-child > p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a !important;
    font-size: 0.95rem !important;
}

.ed-notification-dropdown > div:first-child > p::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.ed-notification-dropdown [data-notification-list] {
    background: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}

.ed-notification-dropdown [data-notification-list]::-webkit-scrollbar {
    width: 8px;
}

.ed-notification-dropdown [data-notification-list]::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.ed-notification-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-bottom: 1px solid #e8eef6;
    background: #ffffff;
    padding: 13px 14px;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.ed-notification-item:hover {
    background: #f8fbff;
    box-shadow: inset 3px 0 0 #bfdbfe;
}

.ed-notification-item.is-unread {
    background: #f0f7ff;
    box-shadow: inset 3px 0 0 #3b82f6;
}

.ed-notification-item__link {
    display: grid;
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    color: inherit;
}

.ed-notification-item__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 1rem;
}

.ed-notification-item.is-unread .ed-notification-item__icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.ed-notification-item__content {
    display: block;
    min-width: 0;
}

.ed-notification-item__title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.ed-notification-item__title {
    min-width: 0;
    overflow: hidden;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ed-notification-item__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.ed-notification-item__message {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2rem;
}

.ed-notification-item__time {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1rem;
}

.ed-notification-item__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.ed-notification-item__action {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    color: #64748b;
    font-size: 1rem;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ed-notification-item__action:hover {
    transform: translateY(-1px);
}

.ed-notification-item__action--read:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.ed-notification-item__action--delete {
    color: #94a3b8;
}

.ed-notification-item__action--delete:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
}

.dark .ed-notification-dropdown > div:first-child {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
}

.dark .ed-notification-dropdown [data-notification-list] {
    background: #0f172a;
}

.dark .ed-notification-item {
    border-bottom-color: #1f2937;
    background: #111827;
}

.dark .ed-notification-item:hover {
    background: #0f172a;
}

.dark .ed-notification-item.is-unread {
    background: rgba(30, 64, 175, 0.18);
}

.dark .ed-notification-item__icon {
    background: rgba(14, 165, 233, 0.16);
    color: #7dd3fc;
}

.dark .ed-notification-item__title {
    color: #f8fafc;
}

.dark .ed-notification-item__message {
    color: #cbd5e1;
}

.dark .ed-notification-item__time {
    color: #94a3b8;
}

.dark .ed-notification-item__action {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.dark .ed-notification-item__action--read:hover {
    border-color: #1d4ed8;
    background: rgba(30, 64, 175, 0.25);
    color: #bfdbfe;
}

.dark .ed-notification-item__action--delete:hover {
    border-color: #7f1d1d;
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

/* Header notifications */
@media (max-width: 640px) {
    .ed-notification-dropdown {
        position: fixed !important;
        top: calc(64px + env(safe-area-inset-top)) !important;
        right: max(8px, env(safe-area-inset-right)) !important;
        left: max(8px, env(safe-area-inset-left)) !important;
        z-index: 2147482600 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        max-height: calc(100dvh - 76px - env(safe-area-inset-top));
        border-radius: 14px !important;
        transform-origin: top right;
    }

    .ed-notification-dropdown > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .ed-notification-dropdown > div:first-child > p {
        min-width: 0;
        padding-top: 5px;
    }

    .ed-notification-dropdown > div:first-child > div {
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .ed-notification-dropdown > div:first-child button {
        white-space: nowrap;
    }

    .ed-notification-dropdown [data-notification-list] {
        max-height: calc(100dvh - 146px - env(safe-area-inset-top)) !important;
    }

    .ed-notification-item,
    .ed-notification-dropdown [data-notification-list] > .flex {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
    }

    .ed-notification-item__link,
    .ed-notification-dropdown [data-notification-list] a {
        min-width: 0;
    }

    .ed-notification-item__link {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 9px;
    }

    .ed-notification-item__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .ed-notification-item__actions {
        gap: 5px;
    }

    .ed-notification-dropdown [data-notification-list] p {
        overflow-wrap: anywhere;
    }

    .ed-notification-dropdown [data-notification-list] p.truncate {
        max-width: 100%;
    }

    .ed-notification-item__action,
    .ed-notification-dropdown [data-notification-list] form button {
        width: 30px;
        height: 30px;
    }
}

/* ---------------- Meeting status assistant ---------------- */
.ed-meeting-status-assistant {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 2147482500;
    width: min(340px, calc(100vw - 24px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 180ms ease, transform 220ms ease;
}

.ed-meeting-status-assistant.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ed-meeting-status-assistant__card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16), 0 3px 10px rgba(37, 99, 235, 0.07);
    color: #172033;
    backdrop-filter: blur(16px);
}

.ed-meeting-status-assistant__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 8px;
}

.ed-meeting-status-assistant__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.ed-meeting-status-assistant__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 16px;
}

.is-ending .ed-meeting-status-assistant__icon {
    background: #ecfdf5;
    color: #059669;
}

.ed-meeting-status-assistant__eyebrow {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.ed-meeting-status-assistant__heading h3 {
    overflow: hidden;
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ed-meeting-status-assistant__close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ed-meeting-status-assistant__close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(5deg);
}

.ed-meeting-status-assistant__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 12px 9px;
}

.ed-meeting-status-assistant__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 3px 7px;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
}

.ed-meeting-status-assistant__question {
    margin: 0;
    border-top: 1px solid #eef2f7;
    padding: 9px 12px 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.ed-meeting-status-assistant__error {
    margin: 0 12px 8px;
    border-radius: 8px;
    background: #fef2f2;
    padding: 7px 9px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}

.ed-meeting-status-assistant__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 12px 10px;
}

.ed-meeting-status-assistant__action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 11px;
    font-weight: 700;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.ed-meeting-status-assistant__action:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ed-meeting-status-assistant__action:disabled {
    cursor: wait;
    opacity: 0.65;
}

.ed-meeting-status-assistant__action.is-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

.ed-meeting-status-assistant__action.is-danger {
    border-color: #fecaca;
    background: #fff;
    color: #dc2626;
}

.ed-meeting-status-assistant__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #eef2f7;
    padding: 8px 12px 10px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
}

.ed-meeting-status-assistant__footer a {
    color: #2563eb;
    text-decoration: none;
}

.ed-meeting-status-assistant__footer a:hover {
    text-decoration: underline;
}

.ed-meeting-status-assistant__footer button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
}

.ed-meeting-status-assistant__footer button:hover {
    color: #2563eb;
}

.dark .ed-meeting-status-assistant__card {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
}

.dark .ed-meeting-status-assistant__heading h3,
.dark .ed-meeting-status-assistant__question {
    color: #f8fafc;
}

.dark .ed-meeting-status-assistant__meta span {
    border-color: #334155;
    background: #111827;
    color: #cbd5e1;
}

.dark .ed-meeting-status-assistant__question,
.dark .ed-meeting-status-assistant__footer {
    border-color: #243044;
}

.dark .ed-meeting-status-assistant__close:hover {
    background: #1e293b;
    color: #fff;
}

@media (max-width: 640px) {
    .ed-meeting-status-assistant {
        left: auto;
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        width: min(350px, calc(100vw - 20px));
        max-width: none;
    }

    .ed-meeting-status-assistant__card {
        max-height: min(360px, calc(100dvh - 84px));
        overflow-y: auto;
        border-radius: 12px;
    }

    .ed-meeting-status-assistant__header {
        gap: 8px;
        padding: 10px 10px 7px;
    }

    .ed-meeting-status-assistant__heading {
        gap: 8px;
    }

    .ed-meeting-status-assistant__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .ed-meeting-status-assistant__heading h3 {
        display: -webkit-box;
        font-size: 16px;
        line-height: 1.35;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ed-meeting-status-assistant__eyebrow {
        font-size: 10.5px;
    }

    .ed-meeting-status-assistant__meta {
        padding: 0 10px 8px;
    }

    .ed-meeting-status-assistant__meta span {
        max-width: 100%;
        min-width: 0;
        font-size: 10.75px;
        overflow-wrap: anywhere;
    }

    .ed-meeting-status-assistant__question {
        padding: 8px 10px 7px;
        font-size: 13px;
        line-height: 1.4;
    }

    .ed-meeting-status-assistant__error {
        margin-right: 10px;
        margin-left: 10px;
    }

    .ed-meeting-status-assistant__actions {
        gap: 7px;
        padding: 0 10px 9px;
    }

    .ed-meeting-status-assistant__action {
        min-width: 0;
        min-height: 36px;
        font-size: 12px;
        white-space: normal;
        line-height: 1.2;
    }

    .ed-meeting-status-assistant__footer {
        flex-wrap: wrap;
        padding: 8px 10px 9px;
        font-size: 11px;
    }

    .ed-meeting-status-assistant__footer button {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .ed-meeting-status-assistant__actions {
        grid-template-columns: 1fr;
    }
}

/* Meetings list responsive toolbar */
.meetings-table-toolbar__reset {
    width: 42px !important;
    min-width: 42px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 9px !important;
    padding: 0 !important;
    font-size: 22px !important;
}

@media (min-width: 641px) {
    .meetings-table-toolbar__inner {
        display: grid !important;
        grid-template-columns: minmax(320px, auto) auto minmax(180px, 1fr) auto;
        gap: 12px !important;
        align-items: center;
        min-height: 42px;
    }

    .meetings-table-toolbar__filters {
        grid-column: 1;
        min-width: 0;
    }

    .meetings-table-toolbar__status {
        grid-column: 2;
        min-width: 0;
    }

    .meetings-table-toolbar__title {
        position: static !important;
        grid-column: 3;
        grid-row: 1;
        width: auto !important;
        min-width: 0;
        align-self: center;
        transform: none !important;
        text-align: center;
    }

    .meetings-table-toolbar__actions {
        grid-column: 4;
        justify-self: end;
    }

    .meetings-table-toolbar.is-status-open .meetings-table-toolbar__title {
        display: none;
    }
}

@media (max-width: 640px) {
    .meetings-table-toolbar {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .meetings-table-toolbar__inner {
        display: grid !important;
        grid-template-columns: minmax(90px, auto) minmax(78px, 1fr) minmax(118px, auto);
        gap: 10px !important;
        align-items: center;
    }

    .meetings-table-toolbar__title {
        position: static !important;
        grid-column: 1 / -1;
        order: 0 !important;
        width: 100% !important;
        transform: none !important;
        text-align: center;
        font-size: 1.25rem !important;
        line-height: 1.55rem !important;
    }

    .meetings-table-toolbar__filters {
        grid-column: 1 / -1;
        order: 1 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px !important;
        width: 100%;
    }

    .meetings-table-toolbar__search {
        min-width: 0;
        max-width: none !important;
    }

    .meetings-table-toolbar__search input {
        min-height: 38px;
        font-size: 0.9rem;
    }

    .meetings-table-toolbar__filter-button {
        min-height: 38px;
        justify-content: center;
        border-radius: 8px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        white-space: nowrap;
    }

    .meetings-table-toolbar__status {
        grid-column: 1;
        grid-row: 3;
        position: relative;
        min-width: 0;
        width: max-content;
        max-width: 100%;
        overflow: visible;
    }

    .meetings-table-toolbar__status > button {
        flex: 0 0 auto;
        min-height: 38px;
        max-width: 142px;
        border-radius: 8px !important;
        font-size: 0.85rem !important;
    }

    .meetings-table-toolbar__status-clear {
        display: inline-flex !important;
        width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.12);
        color: currentColor;
        font-size: 16px;
        font-weight: 800;
        line-height: 1;
    }

    .meetings-table-toolbar__reset {
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
        width: 44px !important;
        min-width: 44px !important;
        height: 40px !important;
        min-height: 40px !important;
        border-radius: 8px !important;
        padding: 0 !important;
        font-size: 22px !important;
    }

    .meetings-table-toolbar__status-list {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 30;
        display: grid !important;
        width: min(320px, calc(100vw - 48px));
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        border: 1px solid #dbeafe;
        border-radius: 12px;
        background: #ffffff;
        padding: 10px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
        overflow: visible;
        transform-origin: top left;
    }

    .meetings-table-toolbar__status-list button {
        justify-content: center;
        min-height: 38px;
        width: 100%;
        min-width: 0;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }

    .dark .meetings-table-toolbar__status-list {
        border-color: #334155;
        background: #111827;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    }

    .meetings-table-toolbar__actions {
        order: 2 !important;
        display: contents !important;
    }

    .meetings-table-toolbar__view-toggle {
        grid-column: 2;
        grid-row: 3;
        height: 38px !important;
        justify-self: center;
    }

    .meetings-table-toolbar__view-toggle button {
        width: 36px !important;
        height: 34px !important;
    }

    .meetings-table-toolbar__new {
        grid-column: 3;
        grid-row: 3;
        justify-self: end;
        justify-content: center;
        min-width: 0 !important;
        min-height: 38px !important;
        width: auto;
        border-radius: 9px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 0.86rem !important;
    }

    .meetings-calendar-toolbar {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    .meetings-calendar-toolbar > .flex {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px !important;
        align-items: center;
    }

    .meetings-calendar-toolbar > .flex > * {
        min-width: 0;
    }

    .meetings-calendar-toolbar__total,
    .meetings-calendar-toolbar__nav,
    .meetings-calendar-toolbar__controls {
        width: 100%;
    }

    .meetings-calendar-toolbar__total {
        display: none !important;
    }

    .meetings-calendar-toolbar__total i {
        font-size: 0.8rem !important;
    }

    .meetings-calendar-toolbar__total .text-2xl {
        font-size: 1rem !important;
    }

    .meetings-calendar-toolbar__total .text-xs {
        max-width: none;
        overflow: hidden;
        font-size: 0.62rem !important;
        line-height: 0.72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meetings-calendar-toolbar__nav {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: auto 26px 26px minmax(0, 1fr);
        justify-content: stretch;
        min-height: 32px;
        padding: 3px 5px !important;
    }

    .meetings-calendar-toolbar__nav button {
        min-width: 0;
    }

    .meetings-calendar-toolbar__nav button:first-child {
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 0.76rem !important;
    }

    .meetings-calendar-toolbar__nav > span {
        min-width: 0;
        overflow: hidden;
        font-size: 0.86rem !important;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meetings-calendar-toolbar__controls {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px !important;
    }

    .meetings-calendar-toolbar__view-mode {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .meetings-calendar-toolbar__view-mode button {
        min-width: 0;
        padding: 4px 5px !important;
        font-size: 0.84rem !important;
        text-align: center;
    }

    .meetings-calendar-toolbar__doctor,
    .meetings-calendar-toolbar__doctor > button,
    .meetings-calendar-toolbar__filter {
        width: 100%;
    }

    .meetings-calendar-toolbar__doctor > button,
    .meetings-calendar-toolbar__filter {
        min-height: 34px;
        justify-content: center;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .meetings-calendar-toolbar__doctor > button {
        border-radius: 10px !important;
        border-color: #bae6fd !important;
        background: #f0f9ff !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .meetings-calendar-toolbar__filter {
        gap: 0 !important;
        border-radius: 10px !important;
        border-color: #bfdbfe !important;
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
    }

    .meetings-calendar-toolbar__filter span {
        display: none;
    }

    .meetings-calendar-toolbar__filter i {
        font-size: 1.05rem !important;
    }

    .meetings-calendar-toolbar__doctor > div:last-child {
        right: auto !important;
        left: 0 !important;
        width: min(280px, calc(100vw - 48px)) !important;
    }

    .meetings-calendar-toolbar__switcher {
        justify-self: end;
        height: 34px !important;
    }

    .meetings-calendar-toolbar__switcher button {
        width: 36px !important;
        height: 30px !important;
    }

    .meetings-calendar-toolbar__new {
        justify-self: start;
        min-height: 34px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 0.86rem !important;
    }

    .meetings-calendar-filters-panel {
        left: max(12px, env(safe-area-inset-left)) !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        width: auto !important;
        max-width: none !important;
    }

    .meetings-day-board {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .meetings-vuecal.meetings-vuecal--doctors {
        display: none !important;
    }

    .meetings-mobile-doctors-agenda__chips {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
        overflow-x: auto;
        padding: 2px 2px 4px;
        scrollbar-width: none;
    }

    .meetings-mobile-doctors-agenda__chips::-webkit-scrollbar {
        display: none;
    }

    .meetings-mobile-doctors-agenda__chip {
        display: inline-flex;
        min-width: max-content;
        align-items: center;
        gap: 7px;
        border: 1px solid #dbe3ef;
        border-radius: 999px;
        background: #ffffff;
        padding: 5px 9px 5px 5px;
        color: #334155;
        font-size: 0.8rem;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
        transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
    }

    .meetings-mobile-doctors-agenda__chip.is-active {
        border-color: #2563eb;
        color: #1d4ed8;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
    }

    .meetings-mobile-doctors-agenda__avatar {
        display: inline-flex;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 800;
    }

    .meetings-mobile-doctors-agenda__name {
        max-width: 116px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meetings-mobile-doctors-agenda__count {
        display: inline-flex;
        min-width: 22px;
        height: 22px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .meetings-day-board > .min-h-\[calc\(100vh-240px\)\] {
        min-height: auto !important;
    }

    .meetings-day-board .max-h-\[calc\(100vh-312px\)\] {
        display: flex;
        max-height: none !important;
        flex-direction: column;
        gap: 8px;
        overflow: visible !important;
    }

    .meetings-day-board__head {
        display: none !important;
    }

    .meetings-day-board__row {
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) 30px !important;
        width: 100% !important;
        min-height: 0 !important;
        overflow: hidden;
        border: 1px solid #dbe3ef !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .meetings-day-board__cell {
        min-width: 0 !important;
        padding: 12px !important;
    }

    .meetings-day-board__cell--end,
    .meetings-day-board__cell--status,
    .meetings-day-board__cell--notes {
        display: none !important;
    }

    .meetings-day-board__cell--start {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .meetings-day-board__cell--patient {
        display: flex;
        align-items: center;
    }

    .meetings-day-board__cell--doctor {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #e2e8f0;
        background: #f8fafc;
        padding: 8px 4px !important;
    }

    .meetings-day-board__cell--doctor p {
        max-height: 92px;
        overflow: hidden;
        color: #64748b !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }

    .meetings-day-board__time {
        font-size: 1.12rem !important;
        line-height: 1.2rem !important;
        letter-spacing: 0 !important;
    }

    .meetings-day-board__mobile-end {
        display: block !important;
        font-size: 1rem !important;
        line-height: 1.1rem !important;
    }

    .meetings-day-board__duration {
        margin-top: 5px !important;
        font-size: 0.72rem !important;
        line-height: 0.95rem !important;
        white-space: nowrap;
    }

    .meetings-day-board__cell--patient > div {
        width: 100%;
        min-width: 0;
        align-items: center !important;
        gap: 10px !important;
    }

    .meetings-day-board__avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.76rem !important;
    }

    .meetings-day-board__patient-name {
        display: -webkit-box;
        max-width: 100%;
        overflow: hidden;
        font-size: 0.98rem !important;
        line-height: 1.15rem !important;
        white-space: normal !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .meetings-day-board__phone {
        margin-top: 5px !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        font-size: 0.78rem !important;
        line-height: 1rem !important;
    }

    .meetings-day-board__phone span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meetings-vuecal.vuecal--month-view .vuecal__title-bar {
        min-height: 38px;
    }

    .meetings-vuecal.vuecal--month-view .vuecal__title {
        font-size: 1.05rem;
        line-height: 1.35rem;
    }

    .meetings-vuecal.vuecal--month-view .vuecal__cell {
        min-height: 76px;
    }

    .meetings-vuecal.vuecal--month-view .vuecal__weekday {
        font-size: 0.82rem;
    }

    .meetings-vuecal .meeting-month-cell-date {
        position: absolute;
        top: 5px;
        right: 5px;
        min-width: 24px;
        height: 22px;
        padding: 0 6px;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #d8f2ff;
        color: #0369a1;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
        cursor: pointer;
    }

    .meetings-vuecal.vuecal--month-view .vuecal__cell-events {
        display: none !important;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event,
    .meetings-vuecal.vuecal--week .vuecal__event,
    .meetings-vuecal.vuecal--week-view .vuecal__event {
        min-width: 20px !important;
        border-radius: 5px !important;
        overflow: visible !important;
    }

    .meetings-vuecal.meetings-vuecal--week [class*="no-event"],
    .meetings-vuecal.meetings-vuecal--week [class*="no_events"],
    .meetings-vuecal.meetings-vuecal--week [class*="no-events"],
    .meetings-vuecal.meetings-vuecal--week .vuecal__no-event,
    .meetings-vuecal.meetings-vuecal--week .vuecal__no-events,
    .meetings-vuecal.vuecal--week [class*="no-event"],
    .meetings-vuecal.vuecal--week [class*="no_events"],
    .meetings-vuecal.vuecal--week [class*="no-events"],
    .meetings-vuecal.vuecal--week .vuecal__no-event,
    .meetings-vuecal.vuecal--week .vuecal__no-events,
    .meetings-vuecal.vuecal--week-view [class*="no-event"],
    .meetings-vuecal.vuecal--week-view [class*="no_events"],
    .meetings-vuecal.vuecal--week-view [class*="no-events"],
    .meetings-vuecal.vuecal--week-view .vuecal__no-event,
    .meetings-vuecal.vuecal--week-view .vuecal__no-events {
        display: none !important;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event-content,
    .meetings-vuecal.vuecal--week .vuecal__event-content,
    .meetings-vuecal.vuecal--week-view .vuecal__event-content {
        display: flex;
        min-height: 100%;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    .meetings-vuecal.meetings-vuecal--week .vuecal__event-title,
    .meetings-vuecal.meetings-vuecal--week .vuecal__event-time,
    .meetings-vuecal.meetings-vuecal--week .meeting-event-name,
    .meetings-vuecal.meetings-vuecal--week .meeting-event-title-wrap,
    .meetings-vuecal.meetings-vuecal--week .meeting-event-tooltip,
    .meetings-vuecal.vuecal--week .vuecal__event-title,
    .meetings-vuecal.vuecal--week .vuecal__event-time,
    .meetings-vuecal.vuecal--week .meeting-event-name,
    .meetings-vuecal.vuecal--week .meeting-event-title-wrap,
    .meetings-vuecal.vuecal--week .meeting-event-tooltip,
    .meetings-vuecal.vuecal--week-view .vuecal__event-title,
    .meetings-vuecal.vuecal--week-view .vuecal__event-time,
    .meetings-vuecal.vuecal--week-view .meeting-event-name,
    .meetings-vuecal.vuecal--week-view .meeting-event-title-wrap,
    .meetings-vuecal.vuecal--week-view .meeting-event-tooltip {
        display: none !important;
    }

    .meetings-vuecal.meetings-vuecal--week .meeting-event-status-icon,
    .meetings-vuecal.vuecal--week .meeting-event-status-icon,
    .meetings-vuecal.vuecal--week-view .meeting-event-status-icon {
        position: static;
        width: 16px;
        height: 16px;
        background: rgba(255, 255, 255, 0.88);
        font-size: 13px;
        transform: none;
    }
}

@media (max-width: 380px) {
    .meetings-table-toolbar__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .meetings-table-toolbar__filters {
        grid-template-columns: 1fr;
    }

    .meetings-table-toolbar__filter-button {
        width: 100%;
    }

    .meetings-table-toolbar__status {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
    }

    .meetings-table-toolbar__status > button {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .meetings-table-toolbar__actions {
        display: contents !important;
    }

    .meetings-table-toolbar__view-toggle {
        grid-column: 1;
        grid-row: 4;
        justify-self: start;
    }

    .meetings-table-toolbar__new {
        grid-column: 2;
        grid-row: 4;
        justify-self: end;
    }

    .meetings-table-toolbar__status-list {
        width: 100%;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .meeting-detail-drawer {
        background: rgba(15, 23, 42, 0.34) !important;
    }

    .meeting-detail-drawer__panel {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        border-left: 0 !important;
        background: #f8fafc !important;
    }

    .meeting-detail-drawer__header {
        display: none !important;
        min-height: 56px;
        align-items: center;
        padding: max(8px, env(safe-area-inset-top)) 14px 8px !important;
        background: #ffffff;
    }

    .meeting-detail-drawer__close {
        display: inline-flex !important;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: 12px !important;
        font-size: 1.55rem !important;
    }

    .meeting-detail-drawer__body {
        padding: calc(10px + env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom)) !important;
    }

    .meeting-detail-patient,
    .meeting-detail-card {
        border-radius: 14px !important;
        padding: 12px !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
    }

    .meeting-detail-patient__identity {
        align-items: center !important;
    }

    .meeting-detail-patient__avatar {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.92rem !important;
    }

    .meeting-detail-patient__name-row {
        align-items: center !important;
    }

    .meeting-detail-patient__close {
        display: inline-flex !important;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        margin-top: -5px;
        margin-right: -4px;
        font-size: 1.25rem !important;
    }

    .meeting-detail-patient__phone {
        display: flex !important;
    }

    .meeting-detail-patient__id {
        display: none !important;
    }

    .meeting-detail-status {
        margin-top: 12px !important;
        border-radius: 12px !important;
        overflow: visible !important;
    }

    .meeting-detail-status__button {
        min-height: 38px;
        border-radius: 12px 12px 0 0 !important;
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
    }

    .meeting-detail-status__menu {
        border-radius: 14px !important;
    }

    .meeting-detail-tabs__button {
        min-height: 40px;
        padding: 9px 10px !important;
        font-size: 0.84rem !important;
    }

    .meeting-detail-actions {
        margin-top: 12px !important;
        gap: 10px !important;
    }

    .meeting-detail-actions__button {
        min-height: 40px;
        border-radius: 11px !important;
        padding: 8px 12px !important;
    }

    .meeting-detail-stats {
        margin-top: 12px !important;
        padding: 10px 8px !important;
        border-radius: 13px !important;
    }

    .meeting-detail-stats p:first-child {
        font-size: 0.94rem !important;
    }

    .meeting-detail-stats p:last-child {
        font-size: 0.68rem !important;
    }

    .meeting-detail-sections {
        margin-top: 12px !important;
    }

    .meeting-detail-sections > * + * {
        margin-top: 12px !important;
    }

    .meeting-detail-card__title {
        margin-bottom: 10px !important;
        font-size: 0.84rem !important;
    }

    .meeting-detail-card__title > span:first-child {
        width: 30px !important;
        height: 30px !important;
        border-radius: 10px !important;
    }

    .meeting-detail-card__row {
        gap: 10px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .meeting-detail-card__icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
    }

    .meeting-detail-card__row p:first-child {
        font-size: 0.66rem !important;
        letter-spacing: 0 !important;
    }

    .meeting-detail-card__row p:last-child {
        font-size: 0.84rem !important;
        line-height: 1.25rem !important;
    }

    .meeting-detail-drawer__footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px);
    }

    .meeting-detail-drawer__patient-link {
        min-height: 44px;
        border-radius: 12px !important;
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
    }
}
/* Meetings table quick status filters */
.meeting-quick-status-enter-active,
.meeting-quick-status-leave-active {
    overflow: hidden;
    transition: opacity 160ms ease, transform 160ms ease, max-width 180ms ease;
}

.meeting-quick-status-enter,
.meeting-quick-status-enter-from,
.meeting-quick-status-leave-to {
    max-width: 0;
    opacity: 0;
    transform: translateX(-12px);
}

.meeting-quick-status-leave,
.meeting-quick-status-enter-to,
.meeting-quick-status-leave-from {
    max-width: 560px;
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 641px) {
    .meetings-day-board--doctors {
        display: none;
    }
}

/* Per-treatment arch selection for groups covering both arches. */
.group-treatment-arches { display: inline-flex; flex-shrink: 0; gap: 3px; }
.group-treatment-arches[hidden] { display: none; }
.group-treatment-arch-button { min-width: 60px; padding: 0 7px; white-space: nowrap; height: 32px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #64748b; font-size: 12px; font-weight: 600; line-height: 1; }
.group-treatment-arch-button[aria-pressed="true"] { color: #fff; background: #2563eb; border-color: #2563eb; }
.group-treatment-arch-button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.dark .group-treatment-arch-button[aria-pressed="false"] { background: #111827; color: #cbd5e1; border-color: #475569; }

/* Compact treatment group setup. */
.treatment-group-editor .treatment-group-intro { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.treatment-group-intro-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #eff6ff; color: #2563eb; font-size: 19px; }
.treatment-group-intro-title { color: #1e293b; font-size: 15px; font-weight: 600; line-height: 21px; }
.treatment-group-intro-description { margin-top: 2px; color: #64748b; font-size: 12px; line-height: 17px; }
.treatment-group-fields { margin-bottom: 12px; }
.treatment-group-editor .treatment-group-fields label, .treatment-group-search-label { display: block; margin-bottom: 5px; color: #475569; font-size: 12px; font-weight: 500; line-height: 16px; }
.treatment-group-editor #treatment-group-name, .treatment-group-editor #group-treatments-search { height: 36px; min-height: 36px; margin-bottom: 0; padding-top: 6px; padding-bottom: 6px; border-radius: 8px; font-size: 13px; }
.treatment-group-search { margin-bottom: 10px; }
#group-treatments-search::-webkit-search-cancel-button { display: none; }
.dark .treatment-group-intro { border-color: #263244; }
.dark .treatment-group-intro-icon { background: #172c48; color: #93c5fd; }
.dark .treatment-group-intro-title { color: #f1f5f9; }
.dark .treatment-group-intro-description { color: #94a3b8; }
.dark .treatment-group-editor .treatment-group-fields label, .dark .treatment-group-search-label { color: #cbd5e1; }

.group-arch-selection-help { margin: 0 0 8px; color: #64748b; font-size: 12px; line-height: 17px; }
.group-arch-selection-help[hidden] { display: none; }
.dark .group-arch-selection-help { color: #94a3b8; }

.group-treatment-arch-quantities { display: inline-flex; flex-shrink: 0; gap: 6px; }
.group-treatment-arch-quantities > label { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #64748b; font-size: 10px; font-weight: 600; white-space: nowrap; }
.group-treatment-arch-quantity { width: 58px; height: 30px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; text-align: center; font-size: 13px; font-weight: 600; }
.group-treatment-shared-quantity[hidden], .group-treatment-arch-quantities[hidden], .group-treatment-arch-quantities > label[hidden] { display: none; }
.dark .group-treatment-arch-quantities > label { color: #cbd5e1; }
.dark .group-treatment-arch-quantity { border-color: #475569; background: #111827; color: #f1f5f9; }

/* Selected treatments, split by dental arch. */
.group-selected-arches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.group-selected-arch { min-width: 0; padding: 9px; border: 1px solid #dbeafe; border-radius: 9px; background: #fff; }
.group-selected-arch-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: #1d4ed8; font-size: 12px; font-weight: 600; }
.group-selected-arch-heading > span:last-child { border-radius: 12px; background: #eff6ff; padding: 1px 6px; font-size: 10px; }
.group-selected-arch-item { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 12px; }
.group-selected-arch-name { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #334155; }
.group-selected-arch-amount { flex-shrink: 0; color: #1d4ed8; font-weight: 600; }
.group-selected-arch-remove { flex-shrink: 0; border: 0; border-radius: 4px; padding: 0 4px; color: #94a3b8; font-size: 17px; }
.group-selected-arch-remove:hover { background: #fef2f2; color: #dc2626; }
.group-selected-arch-empty { margin: 0; padding: 5px 0; color: #94a3b8; font-size: 11px; }
.group-selected-arch-pending { grid-column: 1 / -1; color: #b45309; font-size: 12px; }
.dark .group-selected-arch { border-color: #263854; background: #111827; }
.dark .group-selected-arch-heading, .dark .group-selected-arch-amount { color: #93c5fd; }
.dark .group-selected-arch-heading > span:last-child { background: #172c48; }
.dark .group-selected-arch-name { color: #cbd5e1; }
.dark .group-selected-arch-item { border-color: #263244; }

.treatment-group-fields .treatment-group-search { margin-bottom: 0; }

/* Keep arch buttons and quantities in the same columns for every row. */
.treatment-group-editor { container-type: inline-size; --group-arch-width: 132px; --group-quantities-width: 126px; }
.group-treatment-row, .group-treatment-columns { display: grid; grid-template-columns: minmax(0, 1fr) var(--group-arch-width) var(--group-quantities-width); column-gap: 10px; }
.group-treatment-columns { align-items: center; margin-bottom: 7px; padding: 0 26px; }
.group-treatment-arch-heading { text-align: center; font-size: 11px; font-weight: 600; color: #64748b; }
.group-treatment-selected-count { text-align: right; }
.group-treatment-row { min-height: 68px; align-items: end; padding-top: 9px; padding-bottom: 9px; }
.group-treatment-row > .group-treatment-main { grid-column: 1; align-self: center; align-items: center; }
.group-treatment-row .group-treatment-checkbox { margin-top: 0; }
.group-treatment-row .group-treatment-arches { grid-column: 2; grid-row: 1; gap: 4px; }
.group-treatment-row .group-treatment-arch-button { flex: 1; min-width: 0; height: 32px; padding: 0 5px; }
.group-treatment-row .group-treatment-shared-quantity, .group-treatment-row .group-treatment-arch-quantities { grid-column: 3; grid-row: 1; }
.group-treatment-row .group-treatment-shared-quantity { justify-content: flex-end; height: 32px; margin: 0; }
.group-treatment-row .group-treatment-quantity { width: 60px; height: 32px; min-height: 32px; }
.group-treatment-row .group-treatment-arch-quantities { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.group-treatment-row [data-group-quantity-arch="upper"] { grid-column: 1; }
.group-treatment-row [data-group-quantity-arch="lower"] { grid-column: 2; }
.group-treatment-row .group-treatment-arch-quantity { width: 100%; height: 32px; min-height: 32px; padding: 4px 6px; }
.group-treatment-row .group-treatment-arch-quantities[hidden] { display: none; }
.dark .group-treatment-arch-heading { color: #94a3b8; }
@container (max-width: 650px) {
    .group-treatment-row, .group-treatment-columns { --group-arch-width: 116px; --group-quantities-width: 126px; column-gap: 7px; }
    .group-treatment-row .group-treatment-quantity { width: 60px; }
    .group-treatment-row .group-treatment-arch-button { font-size: 11px; }
}
@container (max-width: 420px) {
    .group-treatment-row > .group-treatment-main { grid-column: 1 / -1; grid-row: 1; margin-bottom: 7px; }
    .group-treatment-row .group-treatment-arches, .group-treatment-row .group-treatment-shared-quantity, .group-treatment-row .group-treatment-arch-quantities { grid-row: 2; }
    .group-treatment-columns > span:first-child { font-size: 10px; }
    .group-treatment-selected-count { font-size: 10px; }
}
.group-treatment-row > .group-treatment-main { grid-row: 1; align-self: end; height: 32px; margin: 0; }
.group-treatment-row .group-treatment-arch-quantities > label { margin: 0; padding: 0; line-height: 12px; }
.group-treatment-row .group-treatment-arch-quantities > label > span { line-height: 12px; }

.group-treatment-main { display: flex; align-items: center; gap: 7px; min-width: 0; }
.group-treatment-main > label { margin: 0; }
.group-treatment-drag-handle { flex-shrink: 0; width: 18px; height: 28px; border: 0; border-radius: 4px; color: #94a3b8; background: transparent; cursor: grab; font-size: 20px; line-height: 1; }
.group-treatment-drag-handle:hover, .group-treatment-drag-handle:focus-visible { background: #eff6ff; color: #2563eb; outline: 2px solid #bfdbfe; }
.group-treatment-row.is-dragging { opacity: .45; }
.group-treatment-row[data-drop-position="before"] { box-shadow: inset 0 2px #3b82f6; }
.group-treatment-row[data-drop-position="after"] { box-shadow: inset 0 -2px #3b82f6; }
.group-treatment-row.hidden { display: none; }

.group-treatment-row .group-treatment-checkbox[hidden] { display: none; }
.group-treatment-order-number { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 25px; height: 25px; padding: 0 4px; border: 1px solid #dbeafe; border-radius: 6px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dark .group-treatment-order-number { background: #172c48; border-color: #263854; color: #93c5fd; }

.treatment-group-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 12px; }
#group-treatment-language { width: 100%; height: 36px; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #334155; font-size: 12px; }
.group-treatment-row .group-treatment-arch-button { font-size: 17px; }
.group-treatment-row [data-group-treatment-arch="general"] { font-size: 12px; }
.group-selected-arch[data-selected-arch="general"] { grid-column: 1 / -1; }
.dark #group-treatment-language { border-color: #374151; background: #111827; color: #e2e8f0; }
@container (max-width: 600px) {
    .treatment-group-field-grid { grid-template-columns: minmax(0, 1fr) 115px; gap: 10px; }
    .treatment-group-field-grid .treatment-group-search { grid-column: 1; grid-row: 2; }
    .treatment-group-field-grid .treatment-group-language { grid-column: 2; grid-row: 1; }
    .treatment-group-field-grid > div:first-child { grid-column: 1; }
    .treatment-group-field-grid .treatment-group-search { grid-column: 1 / -1; }
}

/* Compact group editor and accessible pointer/keyboard ordering. */
.treatment-groups-page { font-family: Inter, Arial, sans-serif; align-items: start; grid-template-columns: minmax(0, 1fr); }
.treatment-groups-page > * { min-width: 0; }
.group-treatment-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; color: #64748b; font-size: 11px; }
#group-application-filter { height: 30px; max-width: 175px; padding: 4px 26px 4px 9px; border: 1px solid #dbe3ee; border-radius: 7px; background-color: #fff; color: #334155; font-size: 12px; }
.group-treatment-filter-bar > span { margin-left: auto; }
#group-show-selected { padding: 5px 8px; border: 1px solid #dbe3ee; border-radius: 7px; background: white; color: #64748b; font-size: 11px; }
#group-show-selected[aria-pressed="true"] { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
.group-treatment-filter-bar :focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
#group-treatments-list { padding: 7px; max-height: 440px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.group-treatment-row { border-radius: 10px; padding: 8px; min-height: 62px; align-items: center; }
.group-treatment-row.is-selected { border-color: #dbeafe; background: #f8fbff; }
.group-treatment-row > .group-treatment-main { height: auto; align-self: center; }
.group-treatment-display-name { white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 18px; }
.group-treatment-drag-handle { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 48px; height: 36px; padding: 2px; border: 1px solid transparent; border-radius: 7px; touch-action: none; user-select: none; }
.group-treatment-drag-handle svg { flex-shrink: 0; }
.group-treatment-drag-handle:active { cursor: grabbing; }
.group-treatment-main .group-treatment-drag-handle { width: 18px; padding: 0; }
.group-treatment-main .group-treatment-order-number { width: 30px; min-width: 30px; height: 30px; padding: 0 2px; text-align: center; outline: none; }
.group-treatment-order-number:focus { border-color: #60a5fa; box-shadow: 0 0 0 2px #dbeafe; background: #fff; }
.group-treatment-columns { padding: 0 16px; }
.group-treatment-order-status { margin: 7px 0 0; color: #2563eb; font-size: 11px; line-height: 16px; }
.group-treatment-order-status:empty { display: none; }
body.group-treatment-reordering, body.group-treatment-reordering * { cursor: grabbing !important; user-select: none !important; }
.group-treatment-drag-preview { position: fixed; z-index: 2147483647; max-width: min(340px, calc(100vw - 32px)); padding: 10px 13px; border: 1px solid #93c5fd; border-radius: 9px; background: #fff; color: #1e3a8a; box-shadow: 0 8px 24px #0f172a26; font: 600 12px/18px Inter, Arial, sans-serif; pointer-events: none; }
.treatment-group-library-table { max-height: 720px; overflow: auto; }
.treatment-group-library table { width: 100%; table-layout: fixed; }
.treatment-group-library th:last-child, .treatment-group-library td:last-child { width: 104px; }
.treatment-group-library td { padding: 12px; vertical-align: top; overflow-wrap: anywhere; }
.group-saved-treatments { margin-top: 7px; color: #64748b; font-size: 11px; }
.group-saved-treatments summary { cursor: pointer; color: #476c82; }
.group-saved-treatments summary span { margin-left: 6px; color: #94a3b8; }
.group-saved-treatments[open] summary span { display: none; }
.group-saved-treatments ol { margin: 8px 0 0; padding-left: 20px; max-height: 210px; overflow: auto; list-style: decimal; }
.group-saved-treatments li { padding: 3px 0; line-height: 16px; }
.dark #group-application-filter, .dark #group-show-selected, .dark .group-treatment-drag-preview { background-color: #111827; border-color: #334155; color: #cbd5e1; }
.dark .group-treatment-row.is-selected { border-color: #263854; background: #172033; }
@media (min-width: 1280px) { .treatment-groups-page { grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr); } }
@container (max-width: 420px) {
    .group-treatment-row > .group-treatment-main { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; height: auto; }
    .group-treatment-row .group-treatment-arches { grid-column: 1 / 3; grid-row: 2; justify-self: end; width: 116px; }
    .group-treatment-row .group-treatment-shared-quantity, .group-treatment-row .group-treatment-arch-quantities { grid-column: 3; grid-row: 2; }
    .group-treatment-columns { display: none; }
    .group-treatment-filter-bar > span { margin-left: 0; }
}

.quote-odontogram-back { position: absolute; top: 12px; left: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; color: #334155; font-size: 12px; font-weight: 500; line-height: 18px; }
.quote-odontogram-back:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.quote-odontogram-back:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.quote-back-dialog { width: min(360px, calc(100vw - 32px)); margin: auto; padding: 22px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #1e293b; box-shadow: 0 20px 60px #0f172a33; }
.quote-back-dialog::backdrop { background: #0f172a66; }
.quote-save-group-dialog { width: min(400px, calc(100vw - 32px)); margin: auto; padding: 22px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #1e293b; box-shadow: 0 20px 60px #0f172a33; }
.quote-save-group-dialog::backdrop { background: #0f172a66; }
.dark .quote-save-group-dialog { border-color: #334155; background: #111827; color: #e2e8f0; }
.quote-back-dialog h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.quote-back-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dark .quote-odontogram-back, .dark .quote-back-dialog { border-color: #334155; background: #111827; color: #e2e8f0; }
@media (max-width: 640px) {
    [data-tour="quotes-odontogram"]:has(.quote-odontogram-back) { padding-top: 52px; }
}

/* Shared treatment-group picker: full-height drawer entering from the right. */
.quote-group-overlay { position: fixed; inset: 0; z-index: 2147483200; display: flex; justify-content: flex-end; background: #0f172a70; backdrop-filter: blur(3px); }
.quote-group-drawer { --qg-surface: #fff; --qg-bg: #f6f8fc; --qg-border: #e2e8f0; --qg-text: #17233b; --qg-muted: #64748b; display: flex; flex-direction: column; width: min(1120px, 92vw); height: 100%; height: 100dvh; overflow: hidden; background: var(--qg-surface); color: var(--qg-text); box-shadow: -16px 0 60px #0f172a26; }
.quote-group-drawer-header { flex-shrink: 0; padding: 18px 24px; border-bottom: 1px solid var(--qg-border); }
.quote-group-icon-button { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--qg-border); border-radius: 10px; color: var(--qg-muted); background: var(--qg-surface); cursor: pointer; }
.quote-group-icon-button:hover { background: var(--qg-bg); color: var(--qg-text); }
.quote-group-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--qg-border); border-radius: 10px; color: var(--qg-muted); background: var(--qg-bg); }
.quote-group-search:focus-within { border-color: #7697ea; box-shadow: 0 0 0 3px #7697ea20; }
.quote-group-search input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: var(--qg-text); font-size: 13px; outline: none; box-shadow: none; }
.quote-group-filters { display: flex; flex-shrink: 0; gap: 12px; }
.quote-group-filters button { display: flex; align-items: center; gap: 7px; padding: 12px 2px 14px; border-bottom: 2px solid transparent; color: var(--qg-muted); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.quote-group-filters button[aria-pressed="true"] { border-bottom-color: #4778db; color: #3768cd; }
.quote-group-filters button span { padding: 1px 7px; border-radius: 5px; background: var(--qg-bg); font-size: 11px; }
.quote-group-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 30px; background: var(--qg-bg); }
.quote-group-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.quote-group-card { position: relative; min-width: 0; border: 1px solid var(--qg-border); border-radius: 12px; background: var(--qg-surface); transition: border-color .15s, box-shadow .15s; }
.quote-group-card:hover { border-color: #9bb4e7; box-shadow: 0 3px 12px #0f172a08; }
.quote-group-card.is-selected { border-color: #4778db; box-shadow: 0 0 0 1px #4778db; }
.quote-group-card-select { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 10px 12px; text-align: left; color: inherit; cursor: pointer; border-radius: inherit; }
.quote-group-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.quote-group-type { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 5px; background: #eef2f7; color: #586980; font-size: 10px; font-weight: 700; }
.quote-group-type.is-quote { color: #476abb; background: #edf2ff; }
.quote-group-type svg { width: 14px; height: 14px; }
.quote-group-check { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border: 1px solid #cbd5e1; border-radius: 6px; color: #fff; font-size: 12px; }
.is-selected .quote-group-check { background: #4778db; border-color: #4778db; }
.quote-group-card-name { display: block; margin: 0; min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.quote-group-card-details { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; padding-right: 30px; color: var(--qg-muted); font-size: 11px; }
.quote-group-language { padding: 1px 5px; border: 1px solid var(--qg-border); border-radius: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.quote-group-delete { position: absolute; bottom: 5px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: #94a3b8; cursor: pointer; }
.quote-group-delete:hover { color: #dc2626; background: #fef2f2; }
.quote-group-delete:disabled { cursor: wait; opacity: .4; }
.quote-group-drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 30px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--qg-border); background: var(--qg-surface); }
.quote-group-selection-summary { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.quote-group-selection-summary strong { font-weight: 600; }
.quote-group-selection-summary button { width: fit-content; font-size: 11px; color: var(--qg-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote-group-footer-actions { display: flex; gap: 10px; }
.quote-group-primary, .quote-group-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--qg-border); border-radius: 9px; background: var(--qg-surface); color: var(--qg-text); font-size: 12px; font-weight: 600; cursor: pointer; }
.quote-group-primary { border-color: #4778db; background: #4778db; color: #fff; }
.quote-group-primary:hover:not(:disabled) { background: #3566ca; }
.quote-group-primary:disabled { opacity: .45; cursor: not-allowed; }
.quote-group-empty { padding: 70px 12px; text-align: center; color: var(--qg-muted); font-size: 13px; }
.quote-group-empty p { margin: 8px 0 20px; }
.quote-group-drawer button:focus-visible { outline: 2px solid #7697ea; outline-offset: 3px; }
.quote-group-drawer-enter-active, .quote-group-drawer-leave-active { transition: opacity .22s ease; }
.quote-group-drawer-enter-active .quote-group-drawer, .quote-group-drawer-leave-active .quote-group-drawer { transition: transform .22s ease; }
.quote-group-drawer-enter-from, .quote-group-drawer-leave-to { opacity: 0; }
.quote-group-drawer-enter-from .quote-group-drawer, .quote-group-drawer-leave-to .quote-group-drawer { transform: translateX(100%); }
.dark .quote-group-drawer { --qg-surface: #111827; --qg-bg: #0d1422; --qg-border: #2c384c; --qg-text: #e2e8f0; --qg-muted: #94a3b8; }
.dark .quote-group-type { background: #253145; color: #cbd5e1; }
.dark .quote-group-type.is-quote { background: #1d2b48; color: #a3bfff; }
@media (max-width: 700px) {
    .quote-group-drawer { width: 100%; }
    .quote-group-drawer-header { padding: 14px 16px; }
    .quote-group-drawer-body { padding: 18px 16px; }
    .quote-group-card-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .quote-group-filters { gap: 0 10px; }
    .quote-group-filters button { font-size: 11px; gap: 4px; }
    .quote-group-drawer-footer { flex-wrap: wrap; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); }
    .quote-group-footer-actions { width: 100%; }
    .quote-group-footer-actions .quote-group-primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .quote-group-drawer-enter-active, .quote-group-drawer-leave-active, .quote-group-drawer-enter-active .quote-group-drawer, .quote-group-drawer-leave-active .quote-group-drawer { transition: none; }
}


.quote-group-toolbar { display: grid; grid-template-columns: minmax(140px, 1fr) auto 146px 38px; align-items: center; gap: 14px; }
.quote-group-toolbar .quote-group-search { min-width: 0; border-radius: 9px; }
.quote-group-toolbar .quote-group-search input { height: 40px; }
.quote-group-toolbar .quote-group-filters { gap: 2px; padding: 3px; border: 1px solid var(--qg-border); border-radius: 9px; background: var(--qg-bg); }
.quote-group-toolbar .quote-group-filters button { justify-content: center; gap: 5px; min-height: 34px; padding: 7px 9px; border: 0; border-radius: 6px; font-size: 12px; }
.quote-group-toolbar .quote-group-filters button[aria-pressed="true"] { background: var(--qg-surface); color: #3768cd; box-shadow: 0 1px 4px #0f172a12; }
.quote-group-toolbar .quote-group-filters button span { padding: 1px 5px; background: transparent; font-size: 10px; }
.quote-group-language-select { width: 100%; height: 42px; padding: 0 28px 0 12px; border: 1px solid var(--qg-border); border-radius: 9px; background-color: var(--qg-surface); color: var(--qg-text); font-size: 12px; cursor: pointer; }
.quote-group-language-select:focus-visible { outline: 2px solid #7697ea; outline-offset: 2px; }
.quote-group-search input[type="search"], .quote-group-search input[type="search"]:focus { border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent; }
@media (max-width: 1000px) {
    .quote-group-toolbar { grid-template-columns: minmax(0, 1fr) 130px 38px; gap: 10px; }
    .quote-group-toolbar .quote-group-filters { grid-column: 1 / -1; grid-row: 2; }
    .quote-group-toolbar .quote-group-filters button { flex: 1; }
}
@media (max-width: 380px) {
    .quote-group-toolbar { grid-template-columns: minmax(0, 1fr) 105px 34px; gap: 7px; }
    .quote-group-toolbar .quote-group-icon-button { width: 34px; }
    .quote-group-toolbar .quote-group-filters button { padding: 7px 4px; font-size: 11px; }
}

/* Quote finishing: focus on price and payments; disclose secondary settings. */
.quote-checkout { --qc-surface: #fff; --qc-bg: #f9fafb; --qc-border: #e5e7eb; --qc-text: #111827; --qc-muted: #6b7280; --qc-accent: var(--brand-color, #42697d); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.65fr); align-items: start; gap: 14px; width: 100%; max-width: none; margin: 8px 0 0; color: var(--qc-text); }
.quote-checkout-main { display: contents; }
.quote-checkout-card { min-width: 0; border: 1px solid var(--qc-border); border-radius: 12px; background: var(--qc-surface); }
.quote-checkout-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; }
.quote-checkout-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quote-checkout-title h3, .quote-checkout-price-top h3 { margin: 0; font-size: 14px; font-weight: 600; }
.quote-checkout-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #eff4ff; color: var(--qc-accent); font-size: 15px; font-weight: 600; }
.quote-checkout-status { padding: 4px 9px; border-radius: 6px; background: var(--qc-bg); color: var(--qc-muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.quote-checkout-status.is-complete { background: #eaf8f1; color: #248564; }
.quote-checkout-status.is-pending { background: #fff6e9; color: #aa742c; }
.quote-checkout-payment-list { display: grid; gap: 8px; padding: 0 16px; }
.quote-checkout-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) 95px 24px; align-items: center; gap: 10px; }
.quote-checkout-step-number { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--qc-border); border-radius: 50%; color: var(--qc-muted); font-size: 10px; }
.quote-checkout .quote-checkout-input { width: 100%; min-width: 0; height: 40px; padding: 9px 11px; border: 1px solid var(--qc-border); border-radius: 8px; background: var(--qc-surface); color: var(--qc-text); font-size: 12px; line-height: 20px; outline: none; }
.quote-checkout .quote-checkout-input:focus { border-color: #83a4eb; box-shadow: 0 0 0 3px #4776da12; }
.quote-checkout .quote-checkout-input::placeholder { color: #9aa7b8; font-weight: 400; }
.quote-checkout-money { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 11px; border: 1px solid var(--qc-border); border-radius: 8px; color: var(--qc-muted); font-size: 12px; }
.quote-checkout .quote-checkout-money input { width: 100%; min-width: 0; height: 36px; padding: 0; border: none !important; background: transparent; box-shadow: none !important; color: var(--qc-text); text-align: right; font-size: 13px; font-weight: 600; outline: none !important; }
.quote-checkout-money:focus-within { border-color: #83a4eb; box-shadow: 0 0 0 3px #4776da12; }
.quote-checkout-remove { display: grid; place-items: center; width: 24px; height: 30px; border-radius: 5px; color: #9ba6b7; cursor: pointer; }
.quote-checkout-remove:hover { color: #dc5656; background: #fff1f2; }
.quote-checkout-payment-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.quote-checkout-text-button { color: var(--qc-accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.quote-checkout-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.quote-checkout-small-button { min-height: 30px; padding: 5px 9px; border: 1px solid var(--qc-border); border-radius: 6px; background: var(--qc-surface); color: var(--qc-muted); font-size: 11px; cursor: pointer; }
.quote-checkout-small-button:hover:not(:disabled) { border-color: #9bb5eb; color: var(--qc-accent); }
.quote-checkout-small-button:disabled { cursor: default; opacity: .4; }
.quote-checkout-payment-footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--qc-border); color: var(--qc-muted); background: var(--qc-bg); border-radius: 0 0 12px 12px; font-size: 11px; }
.quote-checkout-payment-footer strong { margin-left: 6px; color: var(--qc-text); font-weight: 600; }
.quote-checkout-progress { height: 3px; margin: 0 12px; overflow: hidden; background: var(--qc-border); }
.quote-checkout-progress > span { display: block; height: 100%; border-radius: 2px; background: #50b394; transition: width .2s ease; }
.quote-checkout-progress > span.is-over { background: #d99454; }
.quote-checkout-details > summary { display: flex; align-items: center; gap: 8px; padding: 16px; cursor: pointer; list-style: none; }
.quote-checkout-details summary::-webkit-details-marker, .quote-checkout-offer-details summary::-webkit-details-marker { display: none; }
.quote-checkout-details .quote-checkout-title > svg { color: var(--qc-muted); }
.quote-checkout-detail-state { margin-left: auto; color: var(--qc-muted); font-size: 11px; font-weight: 400; }
.quote-checkout-chevron { flex-shrink: 0; color: var(--qc-muted); transition: transform .15s; }
.quote-checkout-details[open] > summary > .quote-checkout-chevron, .quote-checkout-offer-details[open] > summary > .quote-checkout-chevron { transform: rotate(180deg); }
.quote-checkout-details-body { padding: 0 16px 16px; }
.quote-checkout-template-tools { display: flex; align-items: center; min-width: 0; width: 160px; margin-left: auto; cursor: default; }
.quote-checkout-template-tools > div { width: 100%; min-width: 0; }
.quote-checkout-details > summary > .quote-checkout-detail-state { margin-left: 0; white-space: nowrap; }
.quote-checkout-details > summary > .quote-checkout-title { flex-shrink: 0; }
@media (max-width: 640px) {
    .quote-checkout-details > summary > .quote-checkout-detail-state { display: none; }
}
.quote-checkout .quote-checkout-description { height: auto; min-height: 130px; resize: vertical; line-height: 1.7; }
.quote-checkout-price { padding: 18px; box-shadow: none; }
.quote-checkout-price-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--qc-border); }
.quote-checkout-currency { padding: 3px 7px; border: 1px solid var(--qc-border); border-radius: 5px; color: var(--qc-muted); font-size: 11px; }
.quote-checkout-modes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--qc-border); border-radius: 8px; background: var(--qc-bg); }
.quote-checkout-modes button { flex: 1; padding: 8px 10px; border-radius: 5px; color: var(--qc-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.quote-checkout-modes button[aria-pressed="true"] { background: var(--qc-accent); color: #fff; box-shadow: none; }
.quote-checkout-offer, .quote-checkout-total-display { display: block; margin: 16px 0 12px; }
.quote-checkout-offer > span, .quote-checkout-total-display > span { display: block; color: var(--qc-muted); font-size: 11px; }
.quote-checkout-offer > div { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 8px; background: var(--qc-surface); }
.quote-checkout .quote-checkout-offer input { width: 100%; min-width: 0; height: 44px; padding: 4px 0; border: 0 !important; border-radius: 0; outline: none !important; box-shadow: none !important; background: transparent; color: var(--qc-text); font-size: 22px; font-weight: 600; letter-spacing: normal; text-align: right; }
.quote-checkout-offer > div:focus-within { border-color: var(--qc-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--qc-accent) 12%, transparent); }
.quote-checkout-offer > div > span { color: var(--qc-muted); font-size: 17px; }
.quote-checkout-total-display strong { display: block; margin-top: 7px; font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.quote-checkout-price-breakdown { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; color: var(--qc-muted); font-size: 12px; }
.quote-checkout-saving { color: #248564; }
.quote-checkout-price-hint { margin: 8px 0 4px; color: var(--qc-muted); font-size: 11px; line-height: 1.6; }
.quote-checkout-offer-details { margin-top: 18px; border-top: 1px solid var(--qc-border); }
.quote-checkout-offer-details > summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; color: var(--qc-muted); font-size: 12px; cursor: pointer; list-style: none; }
.quote-checkout-offer-details > summary > .quote-checkout-chevron { margin-left: auto; }
.quote-checkout-offer-details-body { display: grid; gap: 14px; padding: 0 0 15px; }
.quote-checkout-field { display: grid; gap: 7px; }
.quote-checkout-field > span { color: var(--qc-muted); font-size: 11px; }
.quote-checkout-toggle { display: flex; align-items: center; gap: 10px; position: relative; color: var(--qc-text); font-size: 12px; cursor: pointer; }
.quote-checkout-toggle > span:first-child { flex: 1; }
.quote-checkout-toggle small { margin-left: 5px; color: var(--qc-muted); font-size: 11px; }
.quote-checkout-toggle input { position: static; flex-shrink: 0; width: 16px; height: 16px; opacity: 1; accent-color: var(--qc-accent); cursor: pointer; }
.quote-checkout-fiscal-net { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 7px; background: var(--qc-bg); font-size: 11px; }
.quote-checkout-discount { display: grid; grid-template-columns: 1fr 80px 60px; align-items: center; gap: 8px; color: var(--qc-muted); font-size: 11px; }
.quote-checkout-review-button { display: flex; align-items: center; width: 100%; gap: 7px; padding: 2px 0 12px; color: var(--qc-muted); font-size: 11px; cursor: pointer; }
.quote-checkout-review-button > span { margin-left: auto; }
.quote-checkout-review { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; border-radius: 8px; background: var(--qc-bg); }
.quote-checkout-review > div { display: grid; gap: 3px; font-size: 11px; line-height: 1.6; }
.quote-checkout-review strong { font-weight: 600; }
.quote-checkout-review span { color: var(--qc-muted); }
.quote-checkout-review .has-warning { color: #b77935; }
.quote-checkout-save { padding-top: 15px; border-top: 1px solid var(--qc-border); }
.quote-checkout-payable { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 13px; font-size: 12px; }
.quote-checkout-save-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; font-size: 13px; }
.quote-alternative-notice { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--qc-border, #e5e7eb); color: var(--qc-muted, #62788b); }
.quote-checkout .quote-alternative-notice > .quote-alternative-transition { display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:11px; }
.quote-alternative-transition strong { color:var(--qc-text, #1e293b);font-weight:600; }
.quote-checkout .quote-alternative-notice > p { margin: 0 0 6px; font-size: 10px; font-weight: 400; line-height: 1.4; }
.quote-alternative-ai-reminder { display: flex; align-items: flex-start; gap: 5px; }
.quote-alternative-ai-reminder svg { flex-shrink: 0; width: 12px; height: 12px; margin-top: 1px; color: var(--qc-accent, #42697c); }
.quote-checkout .quote-alternative-save-button { justify-content: center; width: 100%; min-height: 32px; margin-top: 3px; padding: 6px 10px; border-radius: 7px; box-shadow: none; font-size: 11px; font-weight: 500; }
.patient-quote-checkbox { width: 16px; height: 16px; vertical-align: middle; accent-color: #42697c; cursor: pointer; }
.patient-quote-checkbox:disabled { cursor: wait; }
.patient-quote-selected { background: #f0f7fc; }
.patient-quote-mobile-details { display: none; }
.quote-offer-tier.patient-quote-package-tag { white-space: normal; }
@media (max-width: 767px) {
    .patient-quote-desktop-detail { display: none; }
    .patient-quote-mobile-details { display: block; }
}
.quote-offer-tier { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; white-space: nowrap; }
.quote-offer-tier[data-tier="premium"] { background: #eaf2f7; color: #42697c; }
.quote-offer-tier[data-tier="gold"] { background: #fff7dd; color: #956b15; }
.dark .quote-offer-tier { background: #253244; color: #cbd5e1; }
.dark .quote-offer-tier[data-tier="premium"] { background: #1a3446; color: #a1c6dd; }
.dark .quote-offer-tier[data-tier="gold"] { background: #3c321c; color: #efcb70; }
.dark .patient-quote-selected { background: #192b3a; }
.quote-checkout button:focus-visible, .quote-checkout summary:focus-visible { outline: 2px solid #83a4eb; outline-offset: 3px; }
.dark .quote-checkout { --qc-surface: #111827; --qc-bg: #0d1422; --qc-border: #2c384c; --qc-text: #e2e8f0; --qc-muted: #94a3b8; }
.dark .quote-checkout-modes { background: #0d1422; }
.dark .quote-checkout-status.is-complete { background: #12372b; color: #78c6a9; }
.dark .quote-checkout-status.is-pending { background: #392b19; color: #e3b67a; }
@media (max-width: 1250px) {
    .quote-checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .quote-checkout-main { display: grid; gap: 12px; min-width: 0; }
    .quote-checkout-price { grid-column: 2; grid-row: 1; }
}
@media (max-width: 1000px) {
    .quote-checkout { grid-template-columns: minmax(0, 1fr); }
    .quote-checkout-main { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .quote-checkout-price { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
    .quote-checkout-main { grid-template-columns: minmax(0, 1fr); }
    .quote-checkout-payment-row { grid-template-columns: minmax(0, 1fr) 88px 22px; gap: 6px; }
    .quote-checkout-title h3 { font-size: 13px; }
    .quote-checkout-status { white-space: normal; text-align: right; }
}

.quote-checkout-balance { padding: 0 16px 12px; text-align: right; }

.quote-checkout-template-tools > span { color: var(--qc-muted); font-size: 11px; }

.quote-checkout-price-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.quote-checkout-price-left { display: flex; flex-direction: column; min-width: 0; }
.quote-checkout-price-right { display: flex; flex-direction: column; min-width: 0; padding-left: 20px; border-left: 1px solid var(--qc-border); }
.quote-checkout-price-right .quote-checkout-offer-details { margin-top: 0; border-top: 0; }
.quote-checkout-price-right .quote-checkout-offer-details > summary { padding-top: 4px; }
.quote-checkout-price-right .quote-checkout-save { margin-top: auto; }
.quote-checkout-price-right .quote-checkout-review-button { padding-top: 10px; }
.quote-checkout-price-right .quote-checkout-review { flex-shrink: 0; }
@media (max-width: 640px) {
    .quote-checkout-price-columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .quote-checkout-price-right { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--qc-border); }
}

.quote-checkout-promotion-heading { display: flex; align-items: center; gap: 8px; padding: 4px 0 14px; color: var(--qc-muted); font-size: 12px; }

/* Explicit quote-pricing workflow using the existing app controls. */
.quote-price-step { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--qc-text); font-size: 12px; font-weight: 600; line-height: 1.5; }
.quote-price-step > span { display: grid; place-items: center; flex-shrink: 0; width: 21px; height: 21px; border-radius: 5px; background: var(--qc-bg); border: 1px solid var(--qc-border); color: var(--qc-muted); font-size: 10px; }
.quote-checkout-offer > .quote-price-step { display: flex; color: var(--qc-text); font-size: 12px; }
.quote-checkout-modes button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 5px; }
.quote-checkout-modes button strong { font-size: 12px; font-weight: 600; }
.quote-checkout-modes button small { font-size: 10px; font-weight: 400; opacity: .8; }
.quote-checkout-price .quote-checkout-offer { margin-top: 22px; }
.quote-checkout-price .quote-checkout-price-breakdown { margin: 9px 0; }
.quote-checkout-price .quote-checkout-price-hint { margin: 12px 0 0; line-height: 1.6; }
.quote-checkout-price .quote-checkout-payable { align-items: center; margin-bottom: 12px; color: var(--qc-text); }
.quote-checkout-payable strong { font-size: 20px; font-weight: 600; }
.quote-price-save-hint { margin: -4px 0 12px; color: var(--qc-muted); font-size: 11px; line-height: 1.6; }
.quote-checkout .quote-price-fiscal { gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--qc-border); font-size: 11px; line-height: 1.5; }
.quote-checkout .quote-price-fiscal > span { flex: 1; }
.quote-checkout .quote-checkout-fiscal-net { display: block; padding: 10px 12px; }
.quote-checkout-fiscal-net > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.quote-checkout-fiscal-net small { display: block; margin-top: 5px; color: var(--qc-muted); font-size: 10px; line-height: 1.6; }
.quote-checkout-price-right .quote-checkout-review-button { margin-bottom: 8px; }
.quote-checkout-price-right .quote-checkout-save { margin-top: 8px; }

.quote-group-card-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; min-width: 0; }
.quote-group-card-heading .quote-group-language { flex-shrink: 0; align-self: center; }
.quote-group-created-date { color: var(--qg-muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
.crm-footer {
    padding-block: 4px;
    overflow: clip;
}

/* A persistent yellow rock hand, with a two-second solo before the name returns. */
.crm-developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    min-height: 30px;
}

.crm-developer-credit__animation {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    height: 30px;
    overflow: clip;
    contain: paint;
}

.crm-developer-credit__hand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    background: transparent;
    transform-origin: 50% 80%;
    animation: crm-credit-rock 10s ease-in-out infinite;
}

.crm-developer-credit__hand svg {
    display: block;
    width: 20px;
    height: 23px;
    overflow: visible;
    filter: drop-shadow(0 2px 4px #facc1559);
}

.crm-developer-credit__name {
    font-weight: 700;
    letter-spacing: .01em;
    animation: crm-credit-name 10s ease-in-out infinite;
}

@keyframes crm-credit-rock {
    0%, 4%, 8%, 12%, 16% { transform: translate(45px, 0) rotate(-32deg) scale(1.12); }
    2%, 6%, 10%, 14%, 18% { transform: translate(45px, -4px) rotate(32deg) scale(1.2); }
    20% { transform: translateX(45px) rotate(0) scale(1.12); }
    24%, 40%, 56%, 72%, 88%, 96% { transform: translate(0, 0) rotate(-8deg) scale(1); }
    32%, 48%, 64%, 80% { transform: translate(0, -3px) rotate(8deg) scale(1.06); }
    100% { transform: translate(45px, 0) rotate(-32deg) scale(1.12); }
}

@keyframes crm-credit-name {
    0%, 20% { opacity: 0; transform: translateY(5px); }
    24%, 96% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(5px); }
}


/* WhatsApp inbox navigation icon. */
.icon-whatsapp-inbox::before{content:"";display:inline-block;width:22px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.3-1.3A10 10 0 1 0 12 2m0 2a8 8 0 1 1-4.3 14.7l-.4-.2-2.6.6.6-2.5-.3-.5A8 8 0 0 1 12 4m-3.4 3c-.3 0-.6.1-.8.4-.3.4-.8 1-.8 2.1s.8 2.2 1 2.4c.1.2 1.7 2.7 4.2 3.7 2.1.9 2.6.7 3.1.7.5-.1 1.6-.7 1.8-1.3.2-.6.2-1.1.1-1.2s-.3-.2-.6-.4l-1.8-.8c-.2-.1-.4-.1-.6.2l-.8 1c-.1.1-.3.2-.6.1-.3-.2-1.2-.5-2.2-1.4-.8-.7-1.3-1.5-1.5-1.8-.1-.3 0-.4.1-.6l.5-.5.3-.5c.1-.1 0-.3 0-.4l-.8-1.9c-.2-.4-.4-.4-.6-.4z'/%3E%3C/svg%3E") center/contain no-repeat}

/* Tablets use the touch navigation in both portrait and landscape. */
@media (max-width: 1199px), (min-width: 768px) and (any-pointer: coarse) {
    .ed-app-header {
        min-height: 64px;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    }
    .ed-app-brand { min-width: 0; flex: 1; }
    .ed-app-brand > a { min-width: 0; overflow: hidden; }
    .ed-app-brand > a img { max-width: 160px; max-height: 40px; object-fit: contain; }
    .ed-header-desktop-tools, .sidebar-overlap-fix { display: none !important; }
    .ed-header-mobile-tool, .ed-mobile-nav { display: block !important; }
    .ed-mobile-nav-toggle { display: inline-flex !important; }
    .ed-header-actions { flex-shrink: 0; gap: 4px; }
    .ed-header-action-button, .ed-mobile-search-toggle, .ed-mobile-nav-toggle {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    .ed-app-content { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)) !important; }
    .ed-app-main { min-height: calc(100dvh - 64px); }
    .ed-mobile-search-panel { top: 10px; }
    .ed-mobile-search-panel input { min-height: 44px; font-size: 16px; }
    .ed-mobile-search-panel > .icon-cross-large { top: 0; min-width: 44px; min-height: 44px; justify-content: center; }
    .ed-mobile-search-panel > .icon-search { top: 10px; }
    .ed-mobile-search-panel > div { top: 48px; max-height: calc(100dvh - 88px); overscroll-behavior: contain; }
    .ed-mobile-nav > .fixed:not(.inset-0) {
        width: min(320px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px);
        margin: 0 !important;
        height: 100dvh;
        border-radius: 0 20px 20px 0;
        overflow: hidden;
    }
    .ed-mobile-nav-content { min-height: 0; overflow: hidden; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .ed-mobile-nav-body { height: 100%; min-height: 0; display: flex; flex-direction: column; }
    .ed-mobile-nav-scroll { min-height: 0; flex: 1; overscroll-behavior: contain; }
    .ed-mobile-nav-scroll > nav { padding-bottom: 16px; }
    .ed-mobile-nav-footer { position: static; flex-shrink: 0; }
    .ed-mobile-nav .menu-link, .ed-mobile-nav .submenu-link { min-height: 44px; }
    .ed-mobile-nav .menu-link > div { min-width: 0; }
    .ed-mobile-nav .menu-link p { white-space: normal; overflow-wrap: anywhere; }
    .ed-mobile-nav .menu-link span, .ed-mobile-nav .menu-link img { flex-shrink: 0; }
    .ed-mobile-nav .submenu-link { white-space: normal; overflow-wrap: anywhere; }
    .ed-mobile-nav .menu-item button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 599px) {
    .ed-app-header { gap: 4px; padding-inline: 8px; }
    .ed-app-brand > a img { max-width: 90px; }
    .ed-header-actions { gap: 0; }
    .ed-header-actions .ed-header-action-button { min-width: 36px; width: 36px; }
}

/* Keep the touch app bar shallow so the appointment feed has more room. */
@media (max-width:1199px), (min-width:768px) and (any-pointer:coarse) {
 .ed-app-header{min-height:48px;padding-block:2px}
 .ed-app-brand > a img{max-height:32px}
 .ed-app-main{min-height:calc(100dvh - 48px);padding-top:4px}
 .ed-mobile-search-panel{top:2px}
}

/* In tablet landscape, move app controls into a vertical rail. */
@media (min-width:768px) and (min-height:400px) and (orientation:landscape) and (max-width:1199px), (min-width:768px) and (min-height:400px) and (orientation:landscape) and (any-pointer:coarse) {
 .ed-app-header{
  position:fixed;inset-block:0;inset-inline-start:0;
  width:calc(64px + env(safe-area-inset-left));height:100dvh;min-height:0;
  flex-direction:column;justify-content:flex-start;gap:12px;
  padding:12px 8px max(12px,env(safe-area-inset-bottom));
  padding-inline-start:max(8px,env(safe-area-inset-left));
  border-bottom:0;border-inline-end:1px solid #e2e8f0;
 }
 .dark .ed-app-header{border-inline-end-color:#334155}
 .ed-app-brand{flex:none;width:100%;flex-direction:column-reverse;gap:12px}
 .ed-app-brand>a{display:flex;align-items:center;justify-content:center;width:48px;min-height:32px;overflow:visible}
 .ed-app-brand > a img{max-width:48px;max-height:28px}
 .ed-header-actions{width:100%;min-height:0;flex:1;flex-direction:column;gap:8px}
 .ed-header-actions>*{flex-shrink:0}
 .ed-app-header .ed-header-actions>*{width:44px;display:flex!important;align-items:center;justify-content:center}
 .ed-app-header .ed-header-actions .ed-header-action-button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
 .ed-app-header .ed-header-actions>.ed-header-create{position:absolute;top:50%;inset-inline-start:calc(50% - 22px);transform:translateY(-50%)}
 .ed-header-actions>.ed-header-theme{order:10;margin-top:auto}
 .ed-header-actions>.ed-header-notifications{order:11}
 .ed-header-actions>.ed-header-profile{order:12}
 .ed-header-actions>.ed-header-profile>div>button{width:44px;height:44px}
 .ed-app-main{margin-inline-start:calc(64px + env(safe-area-inset-left));min-height:100dvh}
 .ed-mobile-search-panel{
  position:fixed;top:12px;left:auto;right:auto;
  inset-inline-start:calc(76px + env(safe-area-inset-left));
  width:min(560px,calc(100vw - 88px - env(safe-area-inset-left)));
  transform:none;padding-inline:0;
 }
 .ed-mobile-search-panel>.icon-search{inset-inline-start:12px}
 .ed-mobile-search-panel>.icon-cross-large{inset-inline-end:4px}
 .ed-mobile-search-panel>div{inset-inline:0;max-height:calc(100dvh - 76px)}
 .ed-app-header .ed-header-dropdown>div>.absolute{
  top:0!important;left:auto!important;right:auto!important;
  inset-inline-start:calc(100% + 16px)!important;
  margin-top:0!important;max-width:calc(100vw - 88px)!important;
  max-height:calc(100dvh - 24px);overflow-y:auto;
 }
 .ed-app-header .ed-header-dropdown>div>.ed-profile-dropdown{top:auto!important;bottom:0}
 .ed-app-header .ed-header-dropdown>div>.ed-notification-dropdown{
  position:fixed;top:12px!important;
  inset-inline-start:calc(76px + env(safe-area-inset-left))!important;
  max-height:calc(100dvh - 24px)!important;
 }
}

/* Browser bars can leave smaller Android tablets with a short landscape viewport. */
@media (min-width:768px) and (min-height:400px) and (max-height:599px) and (orientation:landscape) and (max-width:1199px), (min-width:768px) and (min-height:400px) and (max-height:599px) and (orientation:landscape) and (any-pointer:coarse) {
 .ed-app-header{gap:8px;padding-block:8px}
 .ed-app-brand,.ed-header-actions{gap:4px}
 .ed-app-brand{gap:0}
 .ed-app-brand>a{min-height:24px}
 .ed-app-brand>a img{max-height:20px}
 .ed-app-header .ed-header-dropdown>div>.ed-quick-create-dropdown{
  position:fixed;top:auto!important;bottom:12px;
  inset-inline-start:calc(76px + env(safe-area-inset-left))!important;
  max-height:calc(100dvh - 24px);
 }
}

.quote-copy-dialog{width:min(400px,calc(100vw - 32px));padding:22px;margin:auto;border:1px solid #dfe6ef;border-radius:16px;background:#fff;color:#1e293b;box-shadow:0 24px 80px #0f172a33}
.quote-copy-dialog::backdrop{background:#0f172a66}
.quote-copy-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
.quote-copy-dialog__header h3{margin:0;font-size:16px;font-weight:650}
.quote-copy-dialog__header p{margin:5px 0 0;font-size:12px;color:#64748b}
.quote-copy-dialog__header>button{font-size:24px;line-height:20px;padding:2px 5px;color:#64748b}
.quote-copy-dialog>label{display:block;margin-bottom:7px;font-size:12px;color:#64748b}
.quote-copy-dialog>select{width:100%;min-height:44px;padding:9px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#f8fafc;font-size:13px}
.quote-copy-dialog__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.dark .quote-copy-dialog{background:#111c2e;border-color:#334155;color:#e2e8f0}
.dark .quote-copy-dialog>select{background:#19273c;border-color:#334155}

.quote-save-split{display:flex;align-items:stretch;width:100%;border-radius:9px;overflow:hidden}
.quote-save-split>.quote-checkout-save-button{flex:1;min-width:0;border-radius:9px 0 0 9px}
.quote-save-split>.quote-save-split__copy{display:flex;align-items:center;justify-content:center;flex:0 0 46px;min-height:42px;padding:0;border-left:1px solid #ffffff55;border-radius:0 9px 9px 0}
.quote-save-split>.quote-save-split__copy:hover{filter:brightness(.94)}
.quote-save-split>button:focus-visible{outline:2px solid #fff;outline-offset:-4px}

/* Action notifications retain readable text at tablet and phone widths. */
.ed-flash.ed-flash--action { display: grid; grid-template-columns: 24px minmax(0,1fr) 30px; width: min(680px,92vw); max-width: 92vw; gap: 12px; padding: 14px; border-radius: 12px; container-type: inline-size; container-name: action-flash; }
.ed-flash--action > .ed-flash-body { display: flex; flex: 1; min-width: 0; align-items: center; gap: 16px; }
.ed-flash--action .ed-flash-copy { flex: 1 1 220px; max-width: none; min-width: 0; }
.ed-flash--action .ed-flash-copy > p { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.ed-flash--action .ed-flash-copy > p:first-child { font-size: 14px; }
.ed-flash--action .ed-flash-copy > p:last-child { color: #64748b; font-size: 13px; }
.ed-flash--action > button[aria-label="Mbyll njoftimin"] { margin: 0; width: 30px; height: 30px; flex-shrink: 0; align-items: center; justify-content: center; padding: 3px; }
.ed-flash--action .ed-flash-actions > div > button { white-space: nowrap; }
@container action-flash (max-width: 560px) {
    .ed-flash--action > .ed-flash-body { flex-direction: column; align-items: stretch; gap: 12px; }
    .ed-flash--action .ed-flash-copy { flex-basis: auto; }
    .ed-flash--action .ed-flash-actions { width: 100%; padding-left: 0; }
    .ed-flash--action .ed-flash-actions > .border-l { display: none; }
    .ed-flash--action .ed-flash-actions > div { width: 100%; margin-left: 0; }
    .ed-flash--action .ed-flash-actions > div > button { width: 100%; justify-content: center; white-space: normal; }
}
