/* =========================================
   ICD-10-GM SUCHE
========================================= */

.icd-main {
    background: #f5f7fa;
    color: #333333;
}

.icd-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--pf-border);
    padding: 38px 0 32px;
}

.icd-kicker {
    margin: 0 0 10px;
    color: #1f5f9f;
    font-size: 14px;
    font-weight: 600;
}

.icd-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #333333;
    font-weight: 600;
}

.icd-hero p {
    margin: 0;
    max-width: 920px;
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
}

.icd-search-section {
    padding: 28px 0 18px;
}

.icd-search-wrap {
    position: relative;
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 4px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 35, 55, .05);
}

.icd-search-wrap label {
    display: block;
    margin-bottom: 12px;
    color: #333333;
    font-size: 17px;
    font-weight: 600;
}

.icd-search-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.icd-search-box input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cfd9e5;
    border-radius: 4px;
    padding: 0 44px 0 15px;
    color: #333333;
    font-size: 18px;
    background: #ffffff;
}

.icd-search-box input:focus {
    outline: 2px solid rgba(31, 95, 159, .14);
    border-color: #1f5f9f;
}

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

.icd-clear-input {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icd-clear-input:hover {
    background: #eef4fb;
    border-radius: 4px;
    color: #1f5f9f;
}

.icd-reset-button {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    border: 1px solid #cfd9e5;
    border-radius: 4px;
    background: #ffffff;
    color: #667085;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .15s ease;
}

.icd-reset-button:hover {
    background: #f3f8fd;
    border-color: #bdd2e8;
    color: #1f5f9f;
}

.icd-search-box button:hover {
    background: ##f3f8fd;
}

.icd-search-status {
    margin-top: 12px;
    color: #667085;
    font-size: 14px;
}

.icd-live-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #dfe6ee;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    max-height: 430px;
    overflow: auto;
}

.icd-live-empty {
    padding: 14px 16px;
    color: #667085;
    line-height: 1.5;
}

.icd-live-item {
    width: 100%;
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 12px;
    align-items: start;
    border: 0;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #eef2f6;
    background: #ffffff;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
}

.icd-live-item:hover,
.icd-live-item.is-active {
    background: #f8fbff;
    border-left-color: #7eaedb;
}

.icd-live-code {
    color: #1f5f9f;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.icd-live-title {
    color: #333333;
    line-height: 1.45;
}

.icd-live-kind {
    color: #667085;
    font-size: 12px;
    white-space: nowrap;
    padding-top: 2px;
}

.icd-help-box {
    margin-top: 14px;
    background: #eef4fb;
    border: 1px solid #d4e2f1;
    border-radius: 4px;
    padding: 14px 16px;
    color: #344054;
    line-height: 1.6;
}

.icd-help-box strong {
    color: #1f5f9f;
    margin-right: 6px;
}

.icd-content-section {
    padding: 18px 0 42px;
}

.icd-detail {
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 35, 55, .05);
}

.icd-detail-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #667085;
    text-align: center;
}

.icd-detail-placeholder i {
    margin-bottom: 14px;
    color: #b7c6d8;
    font-size: 42px;
}

.icd-detail-placeholder h2 {
    margin: 0 0 8px;
    color: #333333;
    font-weight: 700;
}

.icd-detail-placeholder p {
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

.icd-detail-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #dfe6ee;
    margin-bottom: 20px;
}

.icd-detail-code {
    color: #1f5f9f;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 10px;
}

.icd-detail-title {
    margin: 0 0 12px;
    color: #333333;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.icd-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icd-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    background: #eef4fb;
    color: #1f5f9f;
    font-size: 13px;
    font-weight: 600;
}

.icd-section {
    margin-top: 22px;
}

.icd-section h3 {
    margin: 0 0 10px;
    color: #333333;
    font-size: 18px;
    font-weight: 700;
}

.icd-section-help {
    margin: -4px 0 10px;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.icd-list {
    display: grid;
    gap: 8px;
}

.icd-list-item {
    border-left: 3px solid #d8e5f2;
    background: #f8fafc;
    padding: 10px 12px;
    line-height: 1.55;
}

.icd-list-item--inclusion {
    border-left-color: #2f7d32;
    background: #f4fbf5;
}

.icd-list-item--exclusion {
    border-left-color: #c0392b;
    background: #fff7f6;
}

.icd-inline-code {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 6px;
    background: #eef4fb;
    color: #1f5f9f;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.icd-children {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.icd-child {
    border: 1px solid #dfe6ee;
    background: #ffffff;
    padding: 11px 12px;
    cursor: pointer;
    text-align: left;
}

.icd-child:hover {
    background: #f2f6fb;
    border-color: #bdd2e8;
}

.icd-child-code {
    color: #1f5f9f;
    font-weight: 700;
    margin-bottom: 4px;
}

.icd-child-title {
    color: #555555;
    line-height: 1.45;
}

.icd-footer-info {
    padding: 18px 0 28px;
    color: #667085;
    font-size: 14px;
}

#icd-search-input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.icd-code-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfe6ee;
}

.icd-code-back {
    min-height: 34px;
    border: 1px solid #cfd9e5;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    padding: 0 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
}

.icd-code-back:hover {
    background: #f3f8fd;
    border-color: #bdd2e8;
    color: #1f5f9f;
}

.icd-code-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 14px;
}

.icd-code-crumb {
    border: 0;
    background: transparent;
    color: #1f5f9f;
    padding: 2px 4px;
    cursor: pointer;
    font-weight: 600;
}

.icd-code-crumb:hover {
    text-decoration: underline;
}

.icd-code-separator {
    color: #98a2b3;
}

.icd-code-current {
    color: #333333;
    font-weight: 700;
}

@media (max-width: 760px) {
    .icd-search-box {
        grid-template-columns: 1fr;
    }

    .icd-search-box button {
        justify-content: center;
    }

    .icd-live-results {
        top: calc(100% + 4px);
    }

    .icd-live-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .icd-detail {
        padding: 18px;
    }

    .icd-detail-code {
        font-size: 28px;
    }

    .icd-detail-title {
        font-size: 21px;
    }
}