
/* Medibox v380 — Crown services UX + EUR pricing settings */

/* Service picker: 3 clear tabs */
body.app-body .clinical-service-picker-tabs {
    flex-wrap: wrap;
}

body.app-body .clinical-service-picker-tabs [data-service-picker-tab="crown"] {
    color: #8b3c71;
}

body.app-body .clinical-service-picker-tabs [data-service-picker-tab="crown"].is-active {
    color: #7d2f64;
    background: #fbf0f7;
    box-shadow: inset 0 0 0 1px #ead5e3;
}

body.app-body .clinical-service-choice.is-crown-service .clinical-service-choice-code {
    color: #8a376a;
}

body.app-body .clinical-crown-service-panel-v380 {
    padding: 10px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.app-body .clinical-crown-service-summary-v380 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.app-body .clinical-crown-service-summary-v380 > span {
    min-height: 56px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 9px 11px;
    border: 1px solid #e3e7ee;
    border-radius: 11px;
    background: #fafbfd;
}

body.app-body .clinical-crown-service-summary-v380 small {
    color: #8490a3;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.app-body .clinical-crown-service-summary-v380 strong {
    color: #314157;
    font-size: 12px;
    font-weight: 900;
}


/* Medibox v381 — global EUR/MKD rate + Crown tooth information */

body.app-body .settings-module-card.module-exchange-rate .settings-module-icon {
    color: #3f56a6;
    background: #eef2ff;
}

body.app-body .exchange-rate-settings-modal form {
    width: min(560px, calc(100vw - 28px));
}

body.app-body .exchange-rate-field {
    width: min(280px, 100%);
}

body.app-body .crown-tooth-info-dialog .modal-card {
    width: min(560px, calc(100vw - 24px));
}

body.app-body .crown-tooth-info-lead {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #eadde7;
    border-radius: 13px;
    background: #fff8fc;
}

body.app-body .crown-tooth-info-lead > .ui-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #8b376c;
}

body.app-body .crown-tooth-info-lead > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body.app-body .crown-tooth-info-lead strong {
    color: #2d3c51;
    font-size: 13px;
    font-weight: 900;
}

body.app-body .crown-tooth-info-lead span {
    color: #738095;
    font-size: 9px;
    line-height: 1.45;
}

body.app-body .crown-tooth-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

body.app-body .crown-tooth-info-grid > div {
    min-height: 58px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 10px 11px;
    border: 1px solid #e4e8ee;
    border-radius: 11px;
    background: #fafbfd;
}

body.app-body .crown-tooth-info-grid > div.is-wide {
    grid-column: 1 / -1;
}

body.app-body .crown-tooth-info-grid small {
    color: #8994a5;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.app-body .crown-tooth-info-grid strong {
    color: #34445a;
    font-size: 11px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    body.app-body .exchange-rate-settings-modal form,
    body.app-body .crown-tooth-info-dialog .modal-card {
        width: calc(100vw - 12px);
    }

    body.app-body .crown-tooth-info-grid {
        grid-template-columns: 1fr;
    }

    body.app-body .crown-tooth-info-grid > div.is-wide {
        grid-column: auto;
    }
}


/* =========================================================
   Settings v3 — Sectioned Modal design
   ========================================================= */
body.app-body .settings-detail-modal{
    width:min(900px,calc(100vw - 36px));
    max-width:900px;
    border:0;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 28px 80px rgba(15,23,42,.22);
}
body.app-body .settings-detail-modal > form,
body.app-body .exchange-rate-settings-modal > form{
    width:100% !important;
    max-width:none !important;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    background:#fff;
}
body.app-body .settings-detail-modal .modal-header{
    min-height:78px;
    padding:18px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border-bottom:1px solid #e6eaf0;
    background:#fff;
}
body.app-body .settings-detail-modal .modal-header .eyebrow{
    margin:0 0 3px;
    color:#64748b;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
body.app-body .settings-detail-modal .modal-header h2{
    margin:0;
    color:#172033;
    font-size:20px;
    line-height:1.2;
    font-weight:750;
}
body.app-body .settings-detail-modal .modal-header .icon-button{
    width:36px;
    height:36px;
    flex:0 0 36px;
    border-radius:10px;
    border:1px solid #e1e6ed;
    background:#fff;
    color:#64748b;
    box-shadow:none;
}
body.app-body .settings-detail-modal .modal-header .icon-button:hover{
    background:#f7f9fc;
    color:#172033;
    border-color:#cfd6e1;
}
body.app-body .settings-detail-modal .modal-body.stack-form{
    min-height:270px;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:220px minmax(0,1fr);
    grid-auto-rows:auto;
    gap:0 !important;
    align-items:start;
    background:#fff;
}
body.app-body .settings-detail-modal .settings-modal-lead{
    grid-column:1;
    grid-row:1 / span 30;
    align-self:stretch;
    min-height:100%;
    margin:0;
    padding:24px 20px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:12px;
    border:0;
    border-right:1px solid #e6eaf0;
    border-radius:0;
    background:#f8fafc;
    box-shadow:none;
}
body.app-body .settings-detail-modal .settings-modal-lead > .ui-icon{
    width:38px;
    height:38px;
    padding:9px;
    border-radius:11px;
    color:#1769e0;
    background:#eaf3ff;
}
body.app-body .settings-detail-modal .settings-modal-lead > div{
    display:grid;
    gap:6px;
}
body.app-body .settings-detail-modal .settings-modal-lead strong{
    color:#243047;
    font-size:13px;
    line-height:1.35;
    font-weight:750;
}
body.app-body .settings-detail-modal .settings-modal-lead span{
    color:#6b778c;
    font-size:11px;
    line-height:1.55;
}
body.app-body .settings-detail-modal .modal-body.stack-form > *:not(.settings-modal-lead){
    grid-column:2;
    min-width:0;
    margin:0 !important;
    padding:22px 24px 0;
}
body.app-body .settings-detail-modal .modal-body.stack-form > *:not(.settings-modal-lead):last-child{
    padding-bottom:24px;
}
body.app-body .settings-detail-modal .modal-body .field{
    gap:7px;
}
body.app-body .settings-detail-modal .modal-body .field > span,
body.app-body .settings-detail-modal .modal-body legend{
    color:#344054;
    font-size:11px;
    font-weight:750;
}
body.app-body .settings-detail-modal .modal-body input,
body.app-body .settings-detail-modal .modal-body select,
body.app-body .settings-detail-modal .modal-body textarea{
    min-height:42px;
    border:1px solid #d8dee8;
    border-radius:9px;
    background:#fff;
    color:#1f2937;
    box-shadow:none;
}
body.app-body .settings-detail-modal .modal-body input:focus,
body.app-body .settings-detail-modal .modal-body select:focus,
body.app-body .settings-detail-modal .modal-body textarea:focus{
    border-color:#8bb9ef;
    box-shadow:0 0 0 3px rgba(37,99,235,.09);
    outline:0;
}
body.app-body .settings-detail-modal .calendar-rule-note{
    border:1px solid #e3e8ef;
    border-radius:10px;
    background:#fafbfc;
    box-shadow:none;
}
body.app-body .settings-detail-modal .modal-footer{
    min-height:70px;
    padding:14px 22px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    border-top:1px solid #e6eaf0;
    background:#fff;
}
body.app-body .settings-detail-modal .modal-footer .btn{
    min-width:118px;
    min-height:40px;
    border-radius:9px;
    box-shadow:none;
}
body.app-body .settings-detail-modal .modal-footer .btn-primary{
    background:#1769e0;
}
body.app-body .settings-detail-modal .modal-footer .btn-primary:hover{
    background:#1459bd;
}

/* Exchange-rate modal: balanced right-hand content */
body.app-body .exchange-rate-settings-modal .exchange-rate-field{
    width:100%;
}
body.app-body .exchange-rate-settings-modal .exchange-rate-field input{
    max-width:100%;
    font-size:17px;
    font-weight:750;
}
body.app-body .exchange-rate-settings-modal .calendar-rule-note strong{
    color:#243047;
}

/* Section cards stay visually light inside the new modal shell */
body.app-body .settings-detail-modal .language-option-card,
body.app-body .settings-detail-modal .visit-display-option-card,
body.app-body .settings-detail-modal .settings-subsection{
    box-shadow:none !important;
}

/* Mobile: section rail becomes a compact top information block */
@media(max-width:720px){
    body.app-body .settings-detail-modal{
        width:calc(100vw - 12px);
        max-width:none;
        max-height:calc(100vh - 12px);
        border-radius:15px;
    }
    body.app-body .settings-detail-modal .modal-header{
        min-height:66px;
        padding:14px 16px;
    }
    body.app-body .settings-detail-modal .modal-header h2{
        font-size:17px;
    }
    body.app-body .settings-detail-modal .modal-body.stack-form{
        grid-template-columns:1fr;
        overflow:auto;
    }
    body.app-body .settings-detail-modal .settings-modal-lead{
        grid-column:1;
        grid-row:auto;
        min-height:0;
        padding:15px 16px;
        display:grid;
        grid-template-columns:34px minmax(0,1fr);
        gap:10px;
        border-right:0;
        border-bottom:1px solid #e6eaf0;
        background:#f8fafc;
    }
    body.app-body .settings-detail-modal .settings-modal-lead > .ui-icon{
        width:34px;
        height:34px;
        padding:8px;
    }
    body.app-body .settings-detail-modal .settings-modal-lead strong{
        font-size:12px;
    }
    body.app-body .settings-detail-modal .settings-modal-lead span{
        font-size:10.5px;
    }
    body.app-body .settings-detail-modal .modal-body.stack-form > *:not(.settings-modal-lead){
        grid-column:1;
        padding:16px 16px 0;
    }
    body.app-body .settings-detail-modal .modal-body.stack-form > *:not(.settings-modal-lead):last-child{
        padding-bottom:18px;
    }
    body.app-body .settings-detail-modal .modal-footer{
        min-height:64px;
        padding:11px 14px;
    }
    body.app-body .settings-detail-modal .modal-footer .btn{
        flex:1 1 0;
        min-width:0;
    }
}
