/* Option C   Create service provider (global; matches OptionC.dc.html) */
/* Break out of MudContainer on create page */
article.content:has(.csp-page) .mud-main-content,
article.content:has(.csp-page) .mud-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

article.content:has(.csp-page) .mud-container {
    container-type: inline-size;
    container-name: csp;
}

.csp-page {
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    color: #1d252c;
    background: #f0fcff;
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.csp-page * {
    box-sizing: border-box;
}

.csp-page a {
    color: #00708c;
    text-decoration: none;
}

.csp-page a:hover {
    color: #005468;
}

.csp-page a.csp-back {
    font-size: 12.5px;
    color: #00708c;
    text-decoration: none;
}

.csp-page a.csp-back:hover {
    color: #005468;
}

.csp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #dfe7ec;
}

.csp-toolbar-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.csp-crumb {
    color: #b6c2ca;
}

.csp-toolbar-title h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.csp-quick {
    flex: 1 1 280px;
    display: flex;
    gap: 6px;
    max-width: 620px;
    margin-left: auto;
}

.csp-quick-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.csp-quick-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #00708c;
    pointer-events: none;
}

.csp-page input.csp-in,
.csp-page select.csp-sel,
.csp-page textarea.csp-in,
.csp-page .csp-in,
.csp-page .csp-sel {
    height: 32px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #cfd8de !important;
    border-radius: 6px !important;
    padding: 0 10px !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 13px !important;
    color: #1d252c !important;
    background: #fff !important;
    box-shadow: none !important;
    line-height: normal;
}

.csp-in.s,
.csp-sel.s {
    height: 30px;
    font-size: 12.5px;
}

.csp-in::placeholder {
    color: #6b7680;
}

.csp-in:focus,
.csp-sel:focus {
    outline: none;
    border-color: #07aed3;
    box-shadow: 0 0 0 3px rgba(7, 174, 211, 0.2);
}

.csp-in.quick {
    padding-left: 30px;
    background: #f7fcfe;
    border-color: #b9e3ee;
}

.csp-page button.csp-btn,
.csp-page .csp-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #cfd8de !important;
    background: #fff !important;
    color: #1d252c !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none !important;
}

.csp-btn.s {
    height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
}

.csp-btn.p {
    background: #007a99;
    border-color: #007a99;
    color: #fff;
}

.csp-btn.p:hover:not(:disabled) {
    background: #006680;
}

.csp-btn.p:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.csp-btn.g {
    border-color: transparent;
    background: transparent;
    color: #00708c;
}

.csp-btn.g:hover {
    background: #eef7fa;
}

.csp-form-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.csp-form-shell .mud-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.csp-main {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 12px 20px;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

.csp-card {
    background: #fff;
    border: 1px solid #dfe7ec;
    border-radius: 10px;
}

.csp-card-details {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 16px;
    align-self: start;
    max-height: 100%;
    overflow: auto;
}

.csp-card-coverage {
    flex: 0 0 440px;
    width: 440px;
    max-width: 440px;
    height: 100%;
    max-height: 100%;
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.csp-blk {
    padding: 12px 0;
    border-bottom: 1px solid #e9eef1;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
}

.csp-blk:last-child {
    border-bottom: 0;
}

.csp-bh {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #00708c;
}

.csp-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

.csp-r {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.csp-rl {
    font-size: 12px;
    color: #4a5560;
    text-align: right;
    white-space: nowrap;
}

.csp-rl b {
    color: #b42318;
    font-weight: 600;
}

.csp-seg {
    display: flex;
    border: 1px solid #cfd8de;
    border-radius: 6px;
    overflow: hidden;
    height: 30px;
    background: #fff;
}

.csp-seg button {
    flex: 1;
    border: 0;
    background: #fff;
    padding: 0 10px;
    font: inherit;
    font-size: 12.5px;
    color: #3c4750;
    cursor: pointer;
    border-right: 1px solid #e3e9ed;
}

.csp-seg button:last-child {
    border-right: 0;
}

.csp-seg button.on {
    background: #e1f5fa;
    color: #00607a;
    font-weight: 600;
}

.csp-inline-chk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #3c4750;
    cursor: pointer;
    margin: 0;
}

.csp-page input[type="checkbox"] {
    accent-color: #007a99;
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
}

.csp-pw-ok {
    font-size: 12px;
    color: #067647;
    display: flex;
    align-items: center;
    gap: 6px;
}

.csp-auto-note {
    font-size: 12.5px;
    color: #4a5560;
    padding: 8px 12px;
    background: #f4f7f9;
    border-radius: 6px;
    border: 1px solid #e3e9ed;
}

.csp-cov-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px 10px;
}

.csp-sh {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #00708c;
}

.csp-cov-meta {
    font-size: 12px;
    color: #5b6670;
}

.csp-cov-meta strong {
    color: #00607a;
}

.csp-cov-title {
    display: none;
}

.csp-cov-tabs {
    display: flex;
    border: 1px solid #cfd8de;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    background: #fff;
}

.csp-cov-tabs button {
    border: 0;
    background: #fff;
    padding: 0 14px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a5560;
    cursor: pointer;
    border-right: 1px solid #e3e9ed;
}

.csp-cov-tabs button:last-child {
    border-right: 0;
}

.csp-cov-tabs button.on {
    background: #e1f5fa;
    color: #00607a;
}

.csp-cov-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid #e3e9ed;
    min-height: 0;
}

.csp-cov-col {
    display: none;
    flex-direction: column;
    min-width: 0;
    border-right: 0;
}

.csp-cov-col.is-active {
    display: flex;
}

.csp-cov-col:last-child {
    border-right: 0;
}

.csp-cov-col-head {
    padding: 8px 8px 6px;
}

.csp-cov-list {
    padding: 0 4px 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    max-height: none;
}

.csp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
}

.csp-row.c {
    height: 28px;
    font-size: 12.5px;
}

.csp-row:hover {
    background: #f2fafc;
}

.csp-row.sel {
    background: #e1f5fa;
}

.csp-row.sel span {
    font-weight: 600;
    color: #00566d;
}

.csp-row.child {
    padding-left: 30px;
}

.csp-row span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csp-count {
    font-size: 11px;
    color: #00566d;
    flex: none !important;
}

.csp-expand {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 22px;
    height: 22px;
    padding: 0;
    color: #4a5560;
    font-size: 14px;
    flex-shrink: 0;
}

.csp-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 10px 20px;
    background: #fff;
    border-top: 1px solid #dfe7ec;
    z-index: 10;
    margin-top: auto;
    width: 100%;
}

.csp-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.csp-kbd {
    font-size: 10.5px;
    color: #4a5560;
    border: 1px solid #cfd8de;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0 4px;
    background: #fff;
}

.csp-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5b6670;
}

.csp-progress-bar {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #e3ebef;
    overflow: hidden;
}

.csp-progress-fill {
    height: 100%;
    background: #07aed3;
    transition: width 0.2s ease;
}

@container csp (max-width: 1180px) {
    .csp-page {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .csp-form-shell,
    .csp-form-shell .mud-form {
        flex: none;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .csp-main {
        flex: none;
        flex-direction: column;
        overflow: visible;
    }

    .csp-card-details,
    .csp-card-coverage {
        flex: none;
        width: 100%;
        max-width: none;
        max-height: none;
        height: auto;
        overflow: visible;
        align-self: stretch;
    }

    .csp-cov-title {
        display: block;
    }

    .csp-cov-tabs {
        display: none;
    }

    .csp-cov-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .csp-cov-col,
    .csp-cov-col.is-active {
        display: flex;
    }

    .csp-cov-col {
        border-right: 1px solid #e3e9ed;
    }

    .csp-cov-col:last-child {
        border-right: 0;
    }

    .csp-cov-list {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        flex: none;
    }

    .csp-footer {
        position: static;
    }
}

@media (max-width: 768px) {
    .csp-page {
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
    }

    .csp-blk {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .csp-bh {
        margin: 0 0 4px;
    }

    .csp-cols {
        grid-template-columns: 1fr;
    }

    .csp-r {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .csp-rl {
        text-align: left;
    }

    .csp-cov-grid {
        grid-template-columns: 1fr;
    }

    .csp-cov-col {
        border-right: 0;
        border-bottom: 1px solid #e3e9ed;
    }

    .csp-cov-col:last-child {
        border-bottom: 0;
    }

    .csp-cov-list {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .csp-quick {
        margin-left: 0;
        max-width: none;
        width: 100%;
    }

    .csp-footer-hint {
        display: none;
    }

    .csp-toolbar {
        padding: 10px 14px;
    }

    .csp-main {
        padding: 12px 14px 80px;
    }

    .csp-footer {
        padding: 10px 14px;
    }
}