:root{--em-teal:#008f95;--em-teal-dark:#00767c;--em-navy:#13284a;--em-bg:#f4f8f9;--em-border:#dfe9eb;--em-muted:#6b7a8c}
body.page .entry-title,body.page .site-header,body.page .site-footer{display:none!important}
body.page{margin:0;background:var(--em-bg)}
.emmamed-manager-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr;background:var(--em-bg);font-family:Inter,Arial,sans-serif;color:var(--em-navy)}
.emmamed-manager-sidebar{background:#fff;border-right:1px solid var(--em-border);padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;box-sizing:border-box}
.emmamed-manager-logo{padding:6px 10px 28px}.emmamed-manager-logo strong{font-size:23px;letter-spacing:1px;color:var(--em-teal)}.emmamed-manager-logo span{display:block;font-size:12px;color:var(--em-muted);margin-top:4px}
.emmamed-manager-sidebar nav{display:flex;flex-direction:column;gap:6px}.emmamed-manager-sidebar nav a{display:flex;gap:12px;align-items:center;text-decoration:none;color:#314159;padding:12px 14px;border-radius:10px;font-weight:600}.emmamed-manager-sidebar nav a b{width:22px;text-align:center;color:var(--em-teal)}.emmamed-manager-sidebar nav a:hover,.emmamed-manager-sidebar nav a.active{background:#eaf7f7;color:var(--em-teal-dark)}
.emmamed-manager-sidebar-bottom{margin-top:auto;display:grid;gap:8px}.emmamed-manager-sidebar-bottom a{text-decoration:none;color:var(--em-muted);font-size:14px;padding:8px 12px}
.emmamed-manager-main{padding:28px 36px 60px;min-width:0}.emmamed-manager-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.emmamed-manager-top h1{font-size:18px;margin:0}.emmamed-manager-top p{font-size:13px;color:var(--em-muted);margin:5px 0 0}.emmamed-user{background:#fff;border:1px solid var(--em-border);padding:9px 14px;border-radius:20px;font-size:13px}
.emmamed-page-head{margin-bottom:22px}.emmamed-page-head h2{font-size:28px;margin:0 0 6px}.emmamed-page-head p{margin:0;color:var(--em-muted)}.emmamed-flex{display:flex;justify-content:space-between;align-items:center;gap:20px}
.emmamed-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.emmamed-stat-grid a{background:#fff;border:1px solid var(--em-border);border-radius:16px;padding:22px;text-decoration:none;color:var(--em-navy);box-shadow:0 4px 18px rgba(19,40,74,.04)}.emmamed-stat-grid strong{font-size:32px;color:var(--em-teal);display:block}.emmamed-stat-grid span{color:var(--em-muted)}
.emmamed-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.emmamed-action-card{background:#fff;border:1px solid var(--em-border);border-radius:14px;padding:18px;text-decoration:none;color:var(--em-navy);font-weight:700;display:flex;justify-content:space-between}.emmamed-action-card span{color:var(--em-teal)}
.emmamed-primary,.emmamed-secondary{border:0;border-radius:9px;padding:11px 17px;text-decoration:none;font-weight:700;display:inline-block;cursor:pointer}.emmamed-primary{background:var(--em-teal);color:#fff}.emmamed-primary:hover{background:var(--em-teal-dark);color:#fff}.emmamed-secondary{background:#fff;border:1px solid var(--em-border);color:var(--em-navy)}
.emmamed-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.emmamed-doctor-card{background:#fff;border:1px solid var(--em-border);border-radius:16px;overflow:hidden}.emmamed-doctor-card img,.emmamed-photo-placeholder{width:100%;height:210px;object-fit:cover;background:#e9f2f3;display:flex;align-items:center;justify-content:center;color:#8ba1a5}.emmamed-doctor-card>div{padding:16px}.emmamed-doctor-card h3{margin:0 0 7px;font-size:17px}.emmamed-doctor-card p{margin:0 0 5px;color:#43546b}.emmamed-doctor-card small{display:block;color:var(--em-muted);margin-bottom:12px}.emmamed-doctor-card a{color:var(--em-teal-dark);font-weight:700;text-decoration:none}
.emmamed-form{max-width:900px;background:#fff;border:1px solid var(--em-border);border-radius:16px;padding:24px}.emmamed-field{display:block;margin-bottom:17px}.emmamed-field>span{display:block;font-weight:700;font-size:13px;margin-bottom:7px}.emmamed-field input,.emmamed-field textarea,.emmamed-field select,.emmamed-search input{width:100%;box-sizing:border-box;border:1px solid #cedcdf;border-radius:9px;padding:11px 12px;background:#fff;color:#20324c;font:inherit}.emmamed-field textarea{resize:vertical}.emmamed-field select[multiple]{min-height:150px}.emmamed-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.emmamed-check{display:flex;gap:9px;align-items:center;margin:12px 0}.emmamed-form-actions{display:flex;gap:10px;margin-top:24px}.emmamed-preview{display:block;max-width:180px;max-height:180px;object-fit:cover;margin-top:12px;border-radius:12px}
.emmamed-search{display:flex;gap:8px;margin:0 0 15px}.emmamed-search button{background:var(--em-teal);color:#fff;border:0;border-radius:9px;padding:0 18px}.emmamed-table-wrap{overflow:auto;background:#fff;border:1px solid var(--em-border);border-radius:14px}.emmamed-table{width:100%;border-collapse:collapse}.emmamed-table th,.emmamed-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #edf2f3}.emmamed-table th{font-size:12px;text-transform:uppercase;color:var(--em-muted)}.emmamed-table a{color:var(--em-teal-dark);font-weight:700;text-decoration:none}
.emmamed-list{display:grid;gap:10px}.emmamed-list article{background:#fff;border:1px solid var(--em-border);border-radius:13px;padding:16px;display:flex;justify-content:space-between;gap:20px}.emmamed-list p{margin:6px 0 0;color:var(--em-muted)}.emmamed-list a{color:var(--em-teal-dark);font-weight:700;text-decoration:none}
.emmamed-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.emmamed-photo-grid a{text-decoration:none;color:var(--em-navy);background:#fff;border:1px solid var(--em-border);border-radius:13px;overflow:hidden}.emmamed-photo-grid img{width:100%;height:170px;object-fit:cover}.emmamed-photo-grid span{display:block;padding:10px 12px;font-weight:600}.emmamed-empty{background:#fff;border:1px dashed #cbdadc;padding:28px;border-radius:14px;color:var(--em-muted)}
.emmamed-notice{background:#e7f7ef;color:#177146;border:1px solid #bfe7d2;border-radius:10px;padding:12px 15px;margin-bottom:18px}.emmamed-manager-login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#eef6f7;padding:20px}.emmamed-login-card{width:min(420px,100%);background:#fff;border:1px solid var(--em-border);border-radius:18px;padding:32px;box-shadow:0 12px 40px rgba(19,40,74,.08)}.emmamed-login-card h1{color:var(--em-teal);margin:0}.emmamed-login-card p{color:var(--em-muted)}.emmamed-login-card input[type=text],.emmamed-login-card input[type=password]{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ccdadd;border-radius:8px}.emmamed-login-card input[type=submit]{background:var(--em-teal);color:#fff;border:0;border-radius:8px;padding:11px 18px;width:100%;font-weight:700}
@media(max-width:1000px){.emmamed-manager-shell{grid-template-columns:82px 1fr}.emmamed-manager-sidebar{padding:20px 10px}.emmamed-manager-logo span,.emmamed-manager-sidebar nav a span,.emmamed-manager-sidebar-bottom{display:none}.emmamed-manager-logo strong{font-size:13px}.emmamed-manager-sidebar nav a{justify-content:center}.emmamed-stat-grid{grid-template-columns:repeat(2,1fr)}.emmamed-card-grid{grid-template-columns:repeat(2,1fr)}.emmamed-photo-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.emmamed-manager-shell{display:block}.emmamed-manager-sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--em-border)}.emmamed-manager-logo{padding:2px 8px 12px}.emmamed-manager-logo strong{font-size:18px}.emmamed-manager-sidebar nav{display:flex;flex-direction:row;overflow:auto}.emmamed-manager-sidebar nav a{white-space:nowrap}.emmamed-manager-sidebar nav a span{display:inline}.emmamed-manager-main{padding:20px 14px 40px}.emmamed-manager-top{display:none}.emmamed-flex{align-items:flex-start;flex-direction:column}.emmamed-stat-grid,.emmamed-action-grid,.emmamed-card-grid,.emmamed-photo-grid{grid-template-columns:1fr}.emmamed-row{grid-template-columns:1fr}.emmamed-table{min-width:650px}}
.emmamed-doctor-card-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.emmamed-doctor-card-actions a{font-size:13px}.emmamed-auto-page{margin-top:18px;padding:15px 16px;border:1px solid var(--em-border);border-radius:11px;background:#f7fbfb;display:grid;gap:6px}.emmamed-auto-page a{color:var(--em-teal-dark);text-decoration:none;overflow-wrap:anywhere}.emmamed-auto-page small{color:var(--em-muted);line-height:1.5}
.emmamed-relation-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.emmamed-relation-box{min-width:0;margin:0;padding:14px;border:1px solid var(--em-border);border-radius:12px;background:#f9fcfc}.emmamed-relation-box legend{padding:0 6px;color:var(--em-navy);font-size:13px;font-weight:800}.emmamed-relation-box>p{margin:0 0 10px;color:var(--em-muted);font-size:12px;line-height:1.45}.emmamed-relation-list{max-height:280px;overflow:auto;display:grid;gap:7px;padding-right:4px}.emmamed-relation-list--services{max-height:360px}.emmamed-relation-list label{display:flex;align-items:flex-start;gap:8px;padding:8px 9px;border:1px solid #e5edef;border-radius:8px;background:#fff;color:#314159;font-size:12.5px;line-height:1.35;cursor:pointer}.emmamed-relation-list label:hover{border-color:#bcdadd;background:#f4fbfb}.emmamed-relation-list input{margin-top:2px;accent-color:var(--em-teal)}
@media(max-width:800px){.emmamed-relation-grid{grid-template-columns:1fr}}


/* EMMA•MED Core 1.7.0 — doctor editor */
.emmamed-field-hint{margin:-10px 0 17px;color:var(--em-muted);font-size:12px;line-height:1.5}
.emmamed-doctor-photo-field{margin-top:4px}
.emmamed-current-photo{margin:8px 0 12px;padding:12px;width:max-content;max-width:100%;border:1px solid var(--em-border);border-radius:12px;background:#f7fbfb}
.emmamed-current-photo small{display:block;margin-bottom:8px;color:var(--em-muted);font-size:12px}
.emmamed-current-photo .emmamed-preview{margin-top:0;max-width:220px;max-height:240px}
.emmamed-upload-help{display:block;margin-top:8px;color:var(--em-muted);font-size:12px;line-height:1.5}


/* EMMA•MED Core 1.7.1 — doctor picker/edit UX */
.emmamed-doctor-picker{margin:0 0 22px;padding:16px;background:#fff;border:1px solid var(--em-border);border-radius:14px;display:flex;align-items:end;gap:12px}
.emmamed-doctor-picker label{flex:1;min-width:0}
.emmamed-doctor-picker label>span{display:block;margin-bottom:7px;color:var(--em-navy);font-size:13px;font-weight:800}
.emmamed-doctor-picker select{width:100%;min-height:44px;padding:9px 12px;border:1px solid #cedcdf;border-radius:9px;background:#fff;color:#20324c;font:inherit}
.emmamed-edit-doctor-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:8px;background:var(--em-teal)!important;color:#fff!important;text-decoration:none!important}
.emmamed-edit-doctor-button:hover{background:var(--em-teal-dark)!important;color:#fff!important}
@media(max-width:700px){.emmamed-doctor-picker{align-items:stretch;flex-direction:column}.emmamed-doctor-picker .emmamed-primary{width:100%}}


/* EMMA•MED Core 1.7.2 — doctor editing is visible directly on cards */
.emmamed-doctor-card{position:relative}
.emmamed-doctor-card__image-link{display:block;position:relative;text-decoration:none}
.emmamed-doctor-card__image-link img{width:100%;height:280px;object-fit:cover;display:block}
.emmamed-doctor-card__edit-overlay{position:absolute;left:14px;bottom:14px;z-index:4;display:inline-flex;align-items:center;min-height:42px;padding:0 15px;border-radius:9px;background:var(--em-teal);color:#fff!important;font-size:14px;font-weight:800;box-shadow:0 5px 18px rgba(0,0,0,.16)}
.emmamed-doctor-card__image-link:hover .emmamed-doctor-card__edit-overlay{background:var(--em-teal-dark)}
.emmamed-manager-version{display:inline-flex;margin:0 0 18px;padding:7px 10px;border-radius:999px;background:#eaf7f7;color:var(--em-teal-dark);font-size:12px;font-weight:800}


/* =========================================================
   EMMA•MED Core 1.7.3 — visual editor for doctor description
   ========================================================= */

.emmamed-rich-editor-field{
    display:block;
}

.emmamed-rich-editor-field > span{
    display:block;
    margin-bottom:8px;
    color:var(--em-text);
    font-weight:700;
}

.emmamed-field-hint--editor{
    margin:0 0 12px;
}

.emmamed-rich-editor-field .wp-editor-wrap{
    overflow:hidden;
    border:1px solid var(--em-border);
    border-radius:12px;
    background:#fff;
}

.emmamed-rich-editor-field .wp-editor-tools{
    padding:8px 10px 0;
    background:#f7fbfb;
}

.emmamed-rich-editor-field .wp-editor-tabs button{
    min-height:34px;
    padding:0 12px;
    border-radius:7px 7px 0 0;
    font-size:12px;
    font-weight:700;
}

.emmamed-rich-editor-field .wp-editor-container{
    border:0!important;
}

.emmamed-rich-editor-field .mce-toolbar-grp{
    border-bottom:1px solid var(--em-border)!important;
    background:#fff!important;
}

.emmamed-rich-editor-field .mce-btn{
    border-radius:5px!important;
}

.emmamed-rich-editor-field .mce-btn:hover,
.emmamed-rich-editor-field .mce-btn:focus,
.emmamed-rich-editor-field .mce-btn.mce-active{
    background:#eaf7f7!important;
    border-color:#b9dddd!important;
}

.emmamed-rich-editor-field textarea.wp-editor-area{
    min-height:300px;
    padding:16px!important;
    font-size:15px!important;
    line-height:1.65!important;
}

@media(max-width:700px){
    .emmamed-rich-editor-field .wp-editor-wrap{
        border-radius:10px;
    }

    .emmamed-rich-editor-field textarea.wp-editor-area{
        min-height:260px;
        font-size:14px!important;
    }
}


/* EMMA•MED Core 1.7.9 — direction content editor */
.emmamed-subsection{
    margin:18px 0 24px;
    padding:18px;
    border:1px solid var(--em-border);
    border-radius:14px;
    background:#f7fbfb;
}

.emmamed-subsection > h3{
    margin:0 0 5px;
    color:var(--em-text);
    font-size:17px;
}

.emmamed-subsection > p{
    margin:0 0 16px;
    color:var(--em-muted);
    font-size:12.5px;
    line-height:1.55;
}

.emmamed-highlight-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.emmamed-highlight-grid .emmamed-field{
    margin:0;
}

.emmamed-faq-editor{
    margin-top:12px;
    padding:14px;
    background:#fff;
    border:1px solid var(--em-border);
    border-radius:11px;
}

.emmamed-faq-editor .emmamed-field:last-child{
    margin-bottom:0;
}

@media(max-width:700px){
    .emmamed-highlight-grid{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   EMMA•MED Core 1.9.3 — direction image editor
   ========================================================= */

.emmamed-direction-images__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.emmamed-direction-image-field{
    min-width:0;
    padding:15px;
    border:1px solid var(--em-border);
    border-radius:12px;
    background:#fff;
}
.emmamed-direction-image-field > strong{
    display:block;
    margin:0 0 11px;
    color:var(--em-navy);
    font-size:14px;
}
.emmamed-direction-image-preview,
.emmamed-direction-image-empty{
    width:100%;
    aspect-ratio:16 / 10;
    margin:0 0 12px;
    overflow:hidden;
    border-radius:10px;
    background:#eef6f7;
    border:1px solid #dce9ea;
}
.emmamed-direction-image-preview img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}
.emmamed-direction-image-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    color:var(--em-muted);
    font-size:12px;
    text-align:center;
}
.emmamed-direction-file{margin-bottom:12px!important}
.emmamed-direction-file input[type=file]{
    width:100%;
    padding:10px;
    border:1px dashed #bfd6d8;
    border-radius:9px;
    background:#f8fbfb;
}
.emmamed-direction-remove{
    display:flex!important;
    align-items:center;
    gap:8px;
    margin-top:8px;
    color:#5b6877;
    font-size:12px;
}
.emmamed-direction-remove input{accent-color:var(--em-teal)}
@media(max-width:800px){
    .emmamed-direction-images__grid{grid-template-columns:1fr}
}

/* EMMA•MED 1.9.9 — price Excel import */
.emmamed-price-import{margin:0 0 24px;padding:20px;background:#f7fbfb;border:1px solid #dce8ea;border-radius:16px}
.emmamed-price-import__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.emmamed-price-import__head h3{margin:0 0 6px;color:#102a4c;font-size:20px}
.emmamed-price-import__head p{margin:0;color:#718190;font-size:13px;line-height:1.55}
.emmamed-price-import__form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:16px;background:#fff;border:1px solid #e2ecee;border-radius:12px}
.emmamed-price-import__file{display:grid;gap:7px;color:#102a4c;font-weight:700;font-size:13px}
.emmamed-price-import__file input{width:100%;padding:11px;background:#fff;border:1px solid #d5e2e4;border-radius:8px}
.emmamed-price-import__file small{color:#718190;font-weight:400;line-height:1.45}
.emmamed-price-import__preview{margin-top:16px;padding:16px;background:#fff;border:1px solid #dce8ea;border-radius:12px}
.emmamed-price-import__summary{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px;color:#102a4c}
.emmamed-price-import__summary span{color:#718190;font-size:12px}
.emmamed-price-import__confirm{margin-top:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#eef8f8;border-radius:10px}
.emmamed-price-import__confirm strong{color:#102a4c}
.emmamed-price-import__confirm p{margin:5px 0 0;color:#607487;font-size:12px;line-height:1.5}
.emmamed-notice--error{background:#fff7f7;border-color:#eccaca;color:#7d2d2d}
@media(max-width:760px){.emmamed-price-import__head,.emmamed-price-import__summary,.emmamed-price-import__confirm{align-items:stretch;flex-direction:column}.emmamed-price-import__form{grid-template-columns:1fr}.emmamed-price-import__form .emmamed-primary,.emmamed-price-import__confirm .emmamed-primary{width:100%}}

/* =========================================================
   EMMA•MED Core 2.0.5 — direction icon library / picker
   ========================================================= */
.emmamed-icon-library{
    overflow:hidden;
}
.emmamed-icon-picker{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
}
.emmamed-icon-option{
    position:relative;
    min-width:0;
    margin:0;
    cursor:pointer;
}
.emmamed-icon-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.emmamed-icon-option__card{
    min-height:112px;
    padding:12px 8px 10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#fff;
    border:1px solid var(--em-border);
    border-radius:11px;
    color:var(--em-navy);
    text-align:center;
    transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.emmamed-icon-option:hover .emmamed-icon-option__card{
    border-color:#afd7da;
    background:#f8fcfc;
    transform:translateY(-1px);
}
.emmamed-icon-option input:focus-visible + .emmamed-icon-option__card{
    outline:3px solid rgba(0,143,149,.18);
    outline-offset:2px;
}
.emmamed-icon-option input:checked + .emmamed-icon-option__card{
    border:2px solid var(--em-teal);
    background:#eef9f9;
    box-shadow:0 7px 18px rgba(0,143,149,.10);
}
.emmamed-icon-option__visual{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--em-teal);
    background:#f7fbfb;
    border:1px solid #dce9ea;
    border-radius:12px;
}
.emmamed-icon-option input:checked + .emmamed-icon-option__card .emmamed-icon-option__visual{
    color:#fff;
    background:var(--em-teal);
    border-color:var(--em-teal);
}
.emmamed-icon-option__visual svg{
    width:32px;
    height:32px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.emmamed-icon-option__label{
    display:block;
    color:var(--em-navy);
    font-size:11.5px;
    line-height:1.25;
    font-weight:750;
}
@media(max-width:1200px){
    .emmamed-icon-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:850px){
    .emmamed-icon-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:560px){
    .emmamed-icon-picker{grid-template-columns:repeat(2,minmax(0,1fr))}
    .emmamed-icon-option__card{min-height:104px}
}
