:root {
    --cept-navy: #123250;
    --cept-blue: #1f5f8b;
    --cept-blue-2: #0e7698;
    --cept-accent: #dfcf39;
    --cept-accent-dark: #b9aa24;
    --cept-bg: #f5f7fb;
    --cept-soft: #eef5fa;
    --cept-text: #172331;
    --cept-muted: #687789;
    --cept-border: #e2e8f0;
    --cept-radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--cept-text);
    background: #fff;
}

a {
    text-decoration: none;
}

.top-shell .navbar {
    backdrop-filter: blur(14px);
}

.navbar-brand .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cept-navy), var(--cept-blue));
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 10px 22px rgba(18, 50, 80, .18);
}

.brand-text {
    line-height: 1;
    letter-spacing: .04em;
}

    .brand-text small {
        display: block;
        font-size: .62rem;
        color: var(--cept-muted);
        letter-spacing: .2em;
        margin-top: 3px;
    }

.navbar .nav-link {
    font-weight: 650;
    color: #6c7480;
    margin: 0 .35rem;
}

    .navbar .nav-link:hover {
        color: var(--cept-navy);
    }

.btn-primary {
    background: var(--cept-navy);
    border-color: var(--cept-navy);
}

    .btn-primary:hover {
        background: #0d263e;
        border-color: #0d263e;
    }

.btn-outline-primary {
    color: var(--cept-navy);
    border-color: #b7c5d4;
}

    .btn-outline-primary:hover {
        background: var(--cept-navy);
        border-color: var(--cept-navy);
    }

.btn-primary-soft {
    background: #eaf3f9;
    color: var(--cept-navy);
    border: 1px solid #d7e5ef;
}

.btn-accent {
    background: var(--cept-accent);
    border-color: var(--cept-accent);
    color: #1e2630;
    font-weight: 800;
}

    .btn-accent:hover {
        background: var(--cept-accent-dark);
        border-color: var(--cept-accent-dark);
        color: #101820;
    }

.nav-login {
    color: var(--cept-navy);
    font-weight: 700;
}

.hero-section {
    padding: 92px 0 76px;
    background: radial-gradient(circle at 15% 10%, rgba(223, 207, 57, .22), transparent 28%), radial-gradient(circle at 90% 8%, rgba(31, 95, 139, .13), transparent 35%), linear-gradient(180deg, #ffffff, #f6f9fc);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--cept-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .78rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

    .hero-trust span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 56px;
        height: 34px;
        border: 1px solid var(--cept-border);
        border-radius: 999px;
        background: #fff;
        font-weight: 800;
        color: var(--cept-navy);
    }

.hero-panel {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 32px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

    .hero-panel::before {
        content: '';
        position: absolute;
        inset: -80px -70px auto auto;
        width: 230px;
        height: 230px;
        background: rgba(223,207,57,.18);
        border-radius: 50%;
    }

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.satco-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #b3132b;
    letter-spacing: -.04em;
}

.cert-body-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    position: relative;
}

.cert-logo-card {
    min-height: 112px;
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo-circle, .logo-square {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 4px solid #111;
    font-weight: 900;
    color: #111;
    background: #fff;
}

.logo-circle {
    border-radius: 50%;
}

.logo-square {
    border-radius: 14px;
    border-color: #729ab7;
    color: #1674a9;
}

.cert-logo-card small {
    font-weight: 800;
    color: #333;
}

.dashboard-mini-table {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #fff;
    position: relative;
}

.mini-row {
    display: grid;
    grid-template-columns: 1.1fr repeat(5, 1fr);
    background: #f2f4f7;
}

    .mini-row.header {
        background: #e9edf2;
        font-size: .78rem;
        color: var(--cept-muted);
        font-weight: 800;
    }

    .mini-row span, .mini-row strong {
        padding: 14px 10px;
        border: 1px solid #fff;
        text-align: center;
    }

    .mini-row strong {
        text-align: left;
    }

    .mini-row:not(.header) span {
        font-size: 1.65rem;
        font-weight: 900;
    }

    .mini-row.muted span {
        color: #8a919b;
    }

.page-section {
    padding: 72px 0;
}

.bg-soft {
    background: linear-gradient(180deg, #fff, #f5f7fb);
}

.bg-page {
    background: var(--cept-bg);
}

.narrow {
    max-width: 980px;
}

.section-title h2 {
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 3rem);
}

.section-title p {
    color: var(--cept-muted);
    max-width: 720px;
    margin: 0 auto;
}

.flow-card {
    border: 1px solid var(--cept-border);
    border-radius: var(--cept-radius);
    padding: 26px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(18, 50, 80, .06);
}

    .flow-card.premium {
        border-color: rgba(223,207,57,.65);
        background: linear-gradient(180deg, #fff, #fffdf0);
    }

.flow-number {
    color: var(--cept-blue);
    font-weight: 900;
    letter-spacing: .12em;
}

.flow-card h3 {
    font-weight: 850;
    margin-top: 12px;
}

.flow-card p, .flow-card li {
    color: var(--cept-muted);
}

.flow-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.lab-preview {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--cept-border);
    background: #fff;
}

    .lab-preview aside {
        padding: 24px;
        background: #fbfaf0;
        border-right: 1px solid #ece6b5;
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

        .lab-preview aside a {
            padding: 9px 12px;
            border-radius: 6px;
            color: #333;
        }

            .lab-preview aside a.active {
                background: var(--cept-accent);
                font-weight: 800;
            }

.lab-list-preview {
    padding: 22px;
    display: grid;
    gap: 16px;
}

.lab-card-preview {
    border: 1px solid var(--cept-border);
    border-radius: 16px;
    padding: 20px;
}

    .lab-card-preview span {
        background: #e8e8df;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: .7rem;
        font-weight: 800;
    }

    .lab-card-preview h4 {
        margin-top: 10px;
    }

.page-hero.compact, .search-hero, .lab-hero, .auth-section, .dashboard-header {
    background: linear-gradient(135deg, #ffffff, #f1f6fa 65%, #fffbea);
}

.page-hero.compact {
    padding: 72px 0 46px;
    text-align: center;
}

.page-hero h1 {
    font-weight: 900;
}

.page-hero p {
    color: var(--cept-muted);
    max-width: 680px;
    margin: 10px auto 0;
}

.auth-section {
    padding: 78px 0;
    min-height: calc(100vh - 78px);
}

.auth-card, .contact-card, .detail-card, .dashboard-card {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 28px;
    padding: 30px;
}

    .auth-card h2, .dashboard-card h2 {
        font-weight: 900;
    }

.demo-login-box, .process-steps {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 20px;
    padding: 18px;
    margin-top: 24px;
    box-shadow: 0 16px 40px rgba(18, 50, 80, .06);
}

    .process-steps div {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 0;
        color: var(--cept-muted);
    }

    .process-steps span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--cept-navy);
        color: #fff;
        font-weight: 800;
    }

.body-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.body-check input {
    display: none;
}

.body-check span {
    display: inline-flex;
    padding: 10px 15px;
    border: 1px solid var(--cept-border);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.body-check input:checked + span {
    background: var(--cept-navy);
    color: #fff;
    border-color: var(--cept-navy);
}

.auth-section-register {
    background: linear-gradient(180deg, #f5f8fb 0%, #edf2f7 100%);
}

.register-intro {
    max-width: 500px;
}

    .register-intro h1 {
        line-height: 1.08;
        margin-bottom: 16px;
    }

    .register-intro .lead {
        font-size: 1.28rem;
        color: #5f6e7e !important;
    }

.register-card {
    padding: 34px 34px 28px;
    position: relative;
    overflow: hidden;
}

    .register-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: linear-gradient(90deg, var(--cept-navy), #3f89b7, #d9c874);
    }

    .register-card h2 {
        margin-bottom: 8px;
    }

.register-subtitle {
    color: var(--cept-muted);
    margin-bottom: 0;
}

.register-form .form-label {
    font-weight: 750;
}

.register-form .form-control {
    border-radius: 14px;
}

    .register-form .form-control:focus {
        box-shadow: 0 0 0 .18rem rgba(31,95,139,.12);
    }

.body-selector-panel {
    background: #fbfcfe;
    border: 1px solid #dde7f0;
    border-radius: 20px;
    padding: 18px;
}

.body-checkbox-grid {
    gap: 12px;
}

.body-check span {
    min-width: 62px;
    justify-content: center;
    background: #fff;
    color: var(--cept-text);
    transition: .18s ease;
}

    .body-check span:hover {
        border-color: #9db7cf;
        transform: translateY(-1px);
    }

.static-body-list-wrap {
    padding-top: 4px;
}

.static-body-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.static-body-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 9px 14px;
    border: 1px solid #d9e3ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #24384a;
    font-weight: 800;
    line-height: 1;
    cursor: default;
    user-select: none;
}

.register-submit-wrap {
    display: flex;
    justify-content: flex-end;
}

.register-submit-btn {
    min-width: 240px;
    padding-left: 26px;
    padding-right: 26px;
    font-weight: 850;
    box-shadow: 0 14px 32px rgba(18, 50, 80, .16);
}

.search-hero {
    padding: 58px 0;
}

    .search-hero h1, .lab-hero h1 {
        font-weight: 900;
        font-size: clamp(2rem, 4vw, 3.6rem);
    }

    .search-hero p, .lab-hero p {
        color: var(--cept-muted);
    }

.hero-search-card {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 24px;
    padding: 18px;
}

.saved-search-scope-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saved-search-scope-chip {
    appearance: none;
    border: 1px solid #d5dee8;
    background: #fff;
    color: var(--cept-navy);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 850;
    font-size: .94rem;
    line-height: 1.1;
    transition: .18s ease;
}

    .saved-search-scope-chip:hover {
        border-color: #aac0d4;
        transform: translateY(-1px);
    }

    .saved-search-scope-chip.is-active {
        background: var(--cept-navy);
        border-color: var(--cept-navy);
        color: #fff;
    }

    .saved-search-scope-chip:focus-visible {
        outline: none;
        border-color: #2a6ea0;
        box-shadow: 0 0 0 .18rem rgba(31,95,139,.14);
    }

.result-list {
    display: grid;
    gap: 18px;
}

.result-card {
    display: block;
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 22px;
    padding: 24px;
    color: var(--cept-text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .result-card:hover {
        transform: translateY(-2px);
        border-color: #b9c8d9;
        box-shadow: 0 22px 50px rgba(18,50,80,.12) !important;
    }

.cert-badge, .small-cert-badge {
    background: #eaf0f6;
    color: var(--cept-navy);
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: .82rem;
}

    .cert-badge.large {
        display: inline-flex;
        font-size: 1rem;
    }

.cert-number {
    color: #6c7887;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .82rem;
}

.status-success {
    background: #e7f8ee;
    color: #15803d;
}

.status-warning {
    background: #fff7de;
    color: #996200;
}

.status-secondary {
    background: #eceff4;
    color: #526070;
}

.result-main h3 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 5px;
}

.result-main p {
    color: var(--cept-muted);
    margin-bottom: 12px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #536272;
    font-size: .93rem;
}

.result-arrow {
    font-size: 1.6rem;
    color: #a5afba;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: start;
}

    .detail-header h1 {
        font-weight: 900;
        margin-top: 12px;
    }

    .detail-header p {
        color: var(--cept-muted);
    }

.info-tile {
    background: #f8fafc;
    border: 1px solid var(--cept-border);
    border-radius: 16px;
    padding: 16px;
}

    .info-tile span {
        color: var(--cept-muted);
        display: block;
        font-size: .86rem;
    }

    .info-tile strong {
        display: block;
        margin-top: 5px;
    }

.dashboard-header {
    padding: 48px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--cept-navy), #1c5c81 70%, #274e68);
}

    .dashboard-header .eyebrow, .dashboard-header p {
        color: rgba(255,255,255,.78);
    }

    .dashboard-header h1 {
        font-weight: 900;
    }

.stat-card {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 22px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(18, 50, 80, .06);
}

    .stat-card span {
        color: var(--cept-muted);
        font-weight: 700;
    }

    .stat-card strong {
        display: block;
        font-size: 2.2rem;
        font-weight: 900;
        margin-top: 4px;
    }

    .stat-card i {
        position: absolute;
        right: 18px;
        top: 18px;
        color: rgba(31,95,139,.17);
        font-size: 2.6rem;
    }

    .stat-card.danger i {
        color: rgba(180,33,54,.17);
    }

.dashboard-card p {
    color: var(--cept-muted);
    margin-bottom: 0;
}

.body-count-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.body-count-card {
    border: 1px solid var(--cept-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fbfdff;
}

.body-logo {
    height: 78px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    background: var(--body-color);
}

.count-row {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--cept-border);
}

    .count-row span {
        color: var(--cept-muted);
        font-size: .78rem;
        font-weight: 700;
    }

    .count-row strong {
        font-size: 1.15rem;
    }

    .count-row.muted strong {
        color: #8b96a4;
    }

.function-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

    .function-list div {
        padding: 13px 14px;
        border-radius: 14px;
        border: 1px solid var(--cept-border);
        font-weight: 750;
    }

    .function-list .ok {
        background: #f0fbf4;
        color: #166534;
    }

    .function-list .locked {
        background: #f3f5f7;
        color: #7a8490;
    }

.chart-lock-wrap {
    position: relative;
    min-height: 280px;
}

    .chart-lock-wrap.locked canvas {
        filter: blur(2px);
        opacity: .55;
    }

.chart-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    background: rgba(255,255,255,.66);
    border-radius: 18px;
}

    .chart-overlay i {
        font-size: 2rem;
    }

.notification-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.notification-item {
    display: flex;
    gap: 12px;
}

    .notification-item .dot {
        width: 11px;
        height: 11px;
        background: var(--cept-accent);
        border-radius: 50%;
        margin-top: 7px;
        flex: 0 0 auto;
    }

    .notification-item p {
        margin: 3px 0;
        font-size: .92rem;
    }

    .notification-item small {
        color: var(--cept-muted);
    }

.lab-hero {
    padding: 0 0 50px;
}

.confidential-bar {
    background: var(--cept-accent);
    color: #3b3921;
    font-weight: 850;
    letter-spacing: .14em;
    font-size: .78rem;
    padding: 12px 18px;
    border-radius: 0 0 14px 14px;
    display: inline-flex;
    gap: 8px;
}

.bg-lab {
    background: #fbfaf3;
}

.lab-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 34px;
}

.lab-filter {
    background: #fffdf1;
    border: 1px solid #ece6b5;
    border-radius: 20px;
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 95px;
}

.filter-title {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 900;
    color: #4f4b2b;
}

.filter-subtitle {
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #8a844d;
    font-size: .74rem;
    font-weight: 800;
    margin: 24px 0 10px;
}

.lab-filter a {
    display: block;
    padding: 11px 14px;
    margin: 5px 0;
    border-radius: 6px;
    color: #333;
    font-weight: 750;
}

    .lab-filter a.active, .lab-filter a:hover {
        background: var(--cept-accent);
        color: #111;
    }

.lab-results h2 {
    font-weight: 900;
}

.lab-result-card {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
}

.private-badge {
    background: #e7e5da;
    color: #57523b;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.lab-result-card h3 {
    font-weight: 900;
    margin-bottom: 6px;
}

.lab-result-card p {
    color: var(--cept-muted);
    margin-bottom: 12px;
}

.lab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #6c7480;
}

.standard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .standard-tags span {
        padding: 7px 10px;
        border-radius: 8px;
        border: 1px solid var(--cept-border);
        background: #fafafa;
        font-weight: 750;
        font-size: .82rem;
    }

.favorite-btn {
    border: 0;
    background: transparent;
    color: #d6c331;
    font-size: 1.35rem;
}

    .favorite-btn:not(.active) {
        color: #d9dce0;
    }

.pricing-card {
    border: 1px solid var(--cept-border);
    border-radius: 28px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(18,50,80,.06);
}

    .pricing-card.featured {
        border-color: var(--cept-navy);
        box-shadow: 0 24px 70px rgba(18,50,80,.16);
        transform: translateY(-10px);
    }

    .pricing-card h3 {
        font-weight: 900;
    }

.price {
    font-weight: 900;
    font-size: 3rem;
}

    .price small {
        font-size: 1rem;
        color: var(--cept-muted);
    }

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .feature-list li {
        display: flex;
        gap: 9px;
        color: #4e5a67;
    }

    .feature-list i.bi-check2 {
        color: #15803d;
        font-weight: 900;
    }

    .feature-list i.bi-lock {
        color: #94a3b8;
    }

.contact-line {
    padding: 10px 0;
    color: #536272;
}

    .contact-line i {
        color: var(--cept-blue);
        margin-right: 9px;
    }

.fancy-accordion .accordion-item {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--cept-border);
    margin-bottom: 12px;
}

.fancy-accordion .accordion-button {
    font-weight: 800;
}

.site-footer {
    background: #fff;
}

    .site-footer a {
        color: var(--cept-muted);
        font-weight: 700;
    }

@media (max-width: 992px) {
    .cert-body-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .body-count-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lab-layout {
        grid-template-columns: 1fr;
    }

    .lab-filter {
        position: static;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero-section, .page-section, .auth-section {
        padding: 48px 0;
    }

    .register-card {
        padding: 24px 22px;
    }

    .register-submit-wrap {
        justify-content: stretch;
    }

    .register-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .hero-panel, .auth-card, .dashboard-card, .detail-card {
        padding: 20px;
        border-radius: 20px;
    }

    .cert-body-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-mini-table {
        font-size: .8rem;
    }

    .mini-row:not(.header) span {
        font-size: 1.1rem;
    }

    .body-count-grid {
        grid-template-columns: 1fr;
    }

    .lab-preview {
        grid-template-columns: 1fr;
    }
}

/* Guest home banner */
.guest-hero-panel {
    background: linear-gradient(145deg, rgba(255,255,255,.96), #f7fbff);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 32px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.guest-hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    right: -85px;
    top: -85px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223,207,57,.35), rgba(31,95,139,.08), transparent 70%);
}

.guest-kicker {
    color: var(--cept-blue);
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-size: .72rem;
}

.guest-hero-panel h2 {
    font-weight: 900;
    margin: 10px 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.guest-hero-panel p {
    color: var(--cept-muted);
    margin-bottom: 0;
}

.guest-lock {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--cept-navy);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 18px 35px rgba(18, 50, 80, .22);
}

.guest-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    position: relative;
}

    .guest-step-grid div {
        background: #fff;
        border: 1px solid var(--cept-border);
        border-radius: 18px;
        padding: 16px;
        display: grid;
        gap: 6px;
    }

    .guest-step-grid i {
        color: var(--cept-blue);
        font-size: 1.35rem;
    }

    .guest-step-grid strong {
        font-weight: 900;
    }

    .guest-step-grid span {
        color: var(--cept-muted);
        font-size: .9rem;
    }

.guest-preview-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
}

    .guest-preview-strip span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fffdf0;
        border: 1px solid #eee6a8;
        color: #4b461e;
        border-radius: 999px;
        padding: 8px 12px;
        font-weight: 750;
        font-size: .9rem;
    }

.pricing-home-section {
    background: #fff;
}

.home-plan-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cept-border);
    border-radius: 26px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(18,50,80,.06);
}

    .home-plan-card.featured {
        border-color: rgba(18,50,80,.32);
        box-shadow: 0 28px 70px rgba(18,50,80,.12);
    }

    .home-plan-card.premium {
        border-color: rgba(223,207,57,.72);
        background: linear-gradient(180deg, #fff, #fffdf0);
    }

    .home-plan-card .plan-tag {
        width: fit-content;
        background: #eaf0f6;
        color: var(--cept-navy);
        border-radius: 999px;
        padding: 6px 12px;
        font-weight: 900;
        font-size: .78rem;
        margin-bottom: 18px;
    }

    .home-plan-card h3 {
        font-weight: 900;
    }

    .home-plan-card p {
        color: var(--cept-muted);
    }

    .home-plan-card ul {
        list-style: none;
        padding: 0;
        display: grid;
        gap: 11px;
        margin: 8px 0 24px;
    }

    .home-plan-card li {
        display: flex;
        gap: 9px;
        color: #536272;
    }

        .home-plan-card li i {
            color: #15803d;
            font-weight: 900;
        }

@media (max-width: 576px) {
    .guest-step-grid {
        grid-template-columns: 1fr;
    }

    .guest-lock {
        display: none;
    }
}

/* certificateproject merged module */
.live-search-hero {
    background: radial-gradient(circle at 18% 20%, rgba(223,207,57,.20), transparent 30%), linear-gradient(135deg, #ffffff, #f2f7fb 70%, #fffbea);
}

.history-sidebar {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 22px;
    padding: 18px;
    position: sticky;
    top: 95px;
}

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

.history-item {
    display: block;
    border: 1px solid var(--cept-border);
    border-radius: 14px;
    padding: 12px;
    color: var(--cept-text);
    background: #fbfdff;
}

    .history-item:hover, .history-item.active {
        border-color: #b9c8d9;
        background: #f5f9fd;
    }

    .history-item strong {
        display: block;
        font-size: .95rem;
    }

    .history-item span, .history-item small {
        display: block;
        color: var(--cept-muted);
        font-size: .78rem;
        margin-top: 2px;
    }

.empty-state {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 24px;
    padding: 46px;
    text-align: center;
}

    .empty-state i {
        font-size: 2.5rem;
        color: var(--cept-blue);
    }

    .empty-state h3 {
        margin-top: 14px;
        font-weight: 900;
    }

    .empty-state p {
        color: var(--cept-muted);
        max-width: 560px;
        margin: 8px auto 0;
    }

.team-table th {
    color: #5f6f81;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #f8fafc;
}

.team-table td, .team-table th {
    padding: 16px 18px;
}

/* certificateproject merged live-search module */
.cp-shell-section {
    background: linear-gradient(135deg, #f8fbff, #fffdf2 58%, #f3f7fb);
    padding: 46px 0 64px;
    min-height: calc(100vh - 170px);
}

.cp-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px;
}

    .cp-page-header h1 {
        font-weight: 900;
        font-size: clamp(2rem, 4vw, 3.4rem);
        letter-spacing: -.04em;
        max-width: 780px;
        margin: 8px 0;
    }

    .cp-page-header p {
        color: var(--cept-muted);
        max-width: 820px;
        margin: 0;
    }

.cp-search-card, .cp-results-card, .cp-history-card, .cp-note-card {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 24px;
    overflow: hidden;
}

.cp-card-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--cept-navy), #1f5f8b);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

    .cp-card-header h2 {
        font-weight: 900;
        margin: 0;
    }

    .cp-card-header span {
        color: rgba(255,255,255,.72);
    }

.cp-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.14);
    color: #fff !important;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 800;
}

.cp-search-form {
    padding: 28px;
}

.cp-source-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-source-chip {
    appearance: none;
    border: 1px solid #d5dee8;
    background: #fff;
    color: var(--cept-navy);
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 850;
    font-size: .95rem;
    line-height: 1.1;
    transition: .18s ease;
    box-shadow: none;
}

    .cp-source-chip:hover {
        border-color: #aac0d4;
        transform: translateY(-1px);
    }

    .cp-source-chip.is-active {
        background: var(--cept-navy);
        border-color: var(--cept-navy);
        color: #fff;
    }

    .cp-source-chip:focus-visible {
        outline: none;
        border-color: #2a6ea0;
        box-shadow: 0 0 0 .18rem rgba(31,95,139,.14);
    }

.cp-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cp-source-option {
    display: flex;
    gap: 11px;
    align-items: stretch;
    border: 1px solid var(--cept-border);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: .18s ease;
}

    .cp-source-option:hover {
        border-color: #b9c8d9;
        transform: translateY(-1px);
    }

    .cp-source-option input {
        margin-top: 5px;
    }

    .cp-source-option span {
        display: grid;
        gap: 2px;
    }

    .cp-source-option strong {
        color: var(--cept-text);
    }

    .cp-source-option small {
        color: var(--cept-muted);
    }

.cp-note-card {
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: start;
}

    .cp-note-card > div:first-child {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: #fff6cf;
        color: #7a6400;
        font-size: 1.25rem;
        flex: 0 0 auto;
    }

    .cp-note-card h3 {
        margin: 0 0 5px;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .cp-note-card p {
        margin: 0;
        color: var(--cept-muted);
    }

.cp-history-card {
    padding: 14px;
    position: sticky;
    top: 92px;
}

.cp-history-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 8px 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    color: #526070;
}

.cp-history-accordion .accordion-item {
    border: 1px solid var(--cept-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cp-history-accordion .accordion-button {
    padding: 12px 14px;
    font-size: .92rem;
    box-shadow: none;
}

    .cp-history-accordion .accordion-button:not(.collapsed) {
        background: #fff8cf;
        color: #121820;
    }

.cp-history-item {
    padding: 12px 14px;
}

.cp-results-header {
    background: linear-gradient(135deg, #1769ff, #0b5ed7);
    color: #fff;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

    .cp-results-header.bg-success {
        background: linear-gradient(135deg, #168a4f, #096c3a) !important;
    }

    .cp-results-header h1 {
        margin: 0;
        font-weight: 900;
        font-size: 1.6rem;
    }

    .cp-results-header span:not(.badge) {
        color: rgba(255,255,255,.78);
    }

.cp-table-wrap {
    border: 1px solid var(--cept-border);
    border-radius: 18px;
    overflow: auto;
}

.cp-result-table thead th {
    background: #1d2329;
    color: #fff;
    font-weight: 850;
    border: 0;
    white-space: nowrap;
}

.cp-result-table tbody tr:nth-child(odd) td {
    background: #f4f6f8;
}

.cp-result-table td {
    vertical-align: middle;
    color: #303942;
}

.cp-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 7px;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
}

.cp-model-cell {
    min-width: 260px;
    font-size: .92rem;
    color: #4b5563;
}

.cp-card-footer {
    padding: 18px 24px;
    background: #fbfcfd;
    border-top: 1px solid var(--cept-border);
}

@media (max-width: 992px) {
    .cp-page-header {
        align-items: start;
        flex-direction: column;
    }

    .cp-history-card {
        position: static;
    }

    .cp-source-grid {
        grid-template-columns: 1fr;
    }
}

/* dashboard certification-summary card - uniform CEPT/Lab theme */
.dashboard-hero-soft {
    background: radial-gradient(circle at 16% 10%, rgba(223, 207, 57, .18), transparent 28%), linear-gradient(135deg, #f9fbfd, #eef5fa 70%, #fffbea);
}

.dashboard-modern-section {
    background: linear-gradient(180deg, #f5f7fb, #f8fbff 55%, #fffdf2);
}

.cert-dashboard-panel {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 30px;
    padding: 28px;
    overflow: hidden;
    position: relative;
}

    .cert-dashboard-panel::before {
        content: '';
        position: absolute;
        right: -56px;
        top: -78px;
        width: 235px;
        height: 235px;
        border-radius: 50%;
        background: rgba(223, 207, 57, .22);
    }

.cert-dashboard-section-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 18px;
}

    .cert-dashboard-section-title strong {
        color: #071629;
        font-size: 1.08rem;
        font-weight: 950;
    }

    .cert-dashboard-section-title span {
        color: #687789;
        font-size: .84rem;
    }

.cert-dashboard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

    .cert-dashboard-top span {
        display: block;
        font-size: .82rem;
        color: #536272;
        margin-bottom: 2px;
    }

    .cert-dashboard-top strong {
        display: block;
        font-size: 1.05rem;
        color: #06182a;
        font-weight: 900;
    }

.cert-company-logo {
    color: #b3132b;
    font-weight: 950;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -.06em;
    text-transform: uppercase;
    max-width: 230px;
    line-height: .95;
    text-align: right;
}

.cert-logo-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.cert-logo-tile {
    min-height: 116px;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(18, 50, 80, .04);
}

    .cert-logo-tile strong {
        font-size: .86rem;
        color: #111827;
        font-weight: 900;
        text-align: center;
    }

.cert-logo-mark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #050505;
    border: 4px solid #050505;
    font-size: .95rem;
    font-weight: 950;
    letter-spacing: -.03em;
}

    .cert-logo-mark.tuvr {
        border-radius: 14px;
        border-color: #729ab7;
        color: #0e7698;
    }

.cert-dashboard-table-wrap {
    border-radius: 20px;
    overflow: auto;
    border: 1px solid #fff;
    position: relative;
    z-index: 1;
}

.cert-dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 620px;
}

    .cert-dashboard-table th,
    .cert-dashboard-table td {
        text-align: center;
        padding: 18px 14px;
        border: 1px solid #fff;
        background: #f0f3f7;
    }

    .cert-dashboard-table thead th {
        background: #e8edf3;
        color: #607186;
        font-size: .78rem;
        font-weight: 900;
    }

    .cert-dashboard-table tbody th {
        width: 120px;
        text-align: left;
        color: #071629;
        font-size: 1rem;
        font-weight: 950;
    }

    .cert-dashboard-table tbody td {
        color: #071629;
        font-size: clamp(1.45rem, 2.4vw, 2.35rem);
        font-weight: 950;
        letter-spacing: -.04em;
    }

    .cert-dashboard-table .muted-row td {
        color: #8b949f;
    }

.cert-dashboard-footnote {
    text-align: right;
    color: #687789;
    font-size: .84rem;
    margin-top: 12px;
}

.plan-card-modern {
    background: linear-gradient(180deg, #fff, #fffdf2);
    border-color: rgba(223, 207, 57, .35);
}

.plan-mini-label {
    display: inline-flex;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff8cf;
    color: #6b5b00;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.empty-mini-state {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 22px;
    background: #fbfdff;
    display: grid;
    gap: 5px;
    color: #687789;
}

    .empty-mini-state i {
        color: var(--cept-blue);
        font-size: 1.35rem;
    }

    .empty-mini-state strong {
        color: #172331;
    }

@media (max-width: 768px) {
    .cert-logo-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cert-dashboard-top {
        flex-direction: column;
    }

    .cert-company-logo {
        text-align: left;
    }
}

/* make live-search results follow the same CEPT navy/yellow theme */
.cp-results-header,
.cp-results-header.bg-success {
    background: linear-gradient(135deg, var(--cept-navy), #1f5f8b) !important;
}

.cp-result-table thead th {
    background: #172331;
}

.cp-history-accordion .accordion-button:not(.collapsed),
.cp-history-item.active {
    background: #fff8cf;
}

/* 2026-07 professional CEPT refinements: one uniform dashboard/search theme */
.dashboard-workspace-hero {
    padding: 58px 0 62px;
    background: radial-gradient(circle at 18% 12%, rgba(223, 207, 57, .16), transparent 30%), linear-gradient(135deg, var(--cept-navy), #1f5f8b 72%, #355d77);
    color: #fff;
}

    .dashboard-workspace-hero h1 {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 950;
        letter-spacing: -.045em;
        margin: 8px 0;
    }

    .dashboard-workspace-hero p {
        color: rgba(255,255,255,.78);
        max-width: 780px;
        margin: 0;
    }

.dashboard-action-panel {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 26px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    backdrop-filter: blur(14px);
}

    .dashboard-action-panel span {
        display: block;
        color: rgba(255,255,255,.72);
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-weight: 800;
    }

    .dashboard-action-panel strong {
        font-size: 1.2rem;
        font-weight: 900;
    }

.cert-dashboard-panel-large {
    min-height: 100%;
}

    .cert-dashboard-panel-large .cert-dashboard-top {
        margin-bottom: 26px;
    }

    .cert-dashboard-panel-large .cert-logo-tile {
        min-height: 128px;
    }

    .cert-dashboard-panel-large .cert-dashboard-table tbody th {
        width: 150px;
    }

    .cert-dashboard-panel-large .cert-dashboard-table tbody td {
        font-size: clamp(1.8rem, 3vw, 2.8rem);
    }

.cp-shell-section {
    background: radial-gradient(circle at 16% 10%, rgba(223, 207, 57, .16), transparent 26%), linear-gradient(180deg, #f6f9fc, #fffef3 62%, #f8fbff);
}

.cp-page-header h1 {
    max-width: 920px;
}

.cp-search-card, .cp-results-card, .cp-history-card, .cp-note-card, .cp-side-help, .cp-value-grid > div {
    box-shadow: 0 18px 48px rgba(18, 50, 80, .06);
}

.cp-card-header, .cp-results-header {
    background: linear-gradient(135deg, var(--cept-navy), #1f5f8b) !important;
}

.cp-search-input {
    border-radius: 14px;
}

.cp-source-option {
    background: #fff;
    min-height: 76px;
}

    .cp-source-option:has(input:checked) {
        border-color: rgba(223,207,57,.95);
        background: #fffdf0;
        box-shadow: inset 4px 0 0 var(--cept-accent);
    }

.cp-side-help {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 18px;
    color: var(--cept-muted);
    font-size: .86rem;
}

    .cp-side-help i {
        color: var(--cept-blue);
        font-size: 1.05rem;
    }

.cp-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

    .cp-value-grid > div {
        background: #fff;
        border: 1px solid var(--cept-border);
        border-radius: 20px;
        padding: 18px;
        display: grid;
        gap: 6px;
    }

    .cp-value-grid i {
        color: var(--cept-blue);
        font-size: 1.35rem;
    }

    .cp-value-grid strong {
        font-weight: 900;
        color: var(--cept-text);
    }

    .cp-value-grid span {
        color: var(--cept-muted);
        font-size: .9rem;
    }

.cp-table-wrap {
    max-height: none;
    background: #fff;
}

.cp-result-table {
    font-size: .91rem;
    min-width: 1040px;
}

    .cp-result-table thead th {
        background: #172331 !important;
        font-size: .84rem;
        padding: 13px 12px;
    }

    .cp-result-table td {
        padding: 13px 12px;
        line-height: 1.35;
    }

    .cp-result-table tbody tr:nth-child(odd) td {
        background: #f6f8fb;
    }

.cp-company-cell {
    font-weight: 800;
    min-width: 210px;
    color: #172331;
}

.cp-model-cell {
    display: block;
    max-width: 430px;
    max-height: 5.6em;
    overflow: auto;
    word-break: break-word;
    white-space: normal;
    font-size: .82rem;
    color: #4b5563;
    padding-right: 4px;
}

.cp-source-badge {
    border-radius: 8px;
    background: var(--cept-blue);
    color: #fff;
    white-space: nowrap;
}

    .cp-source-badge.certipedia {
        background: #0e7698;
    }

    .cp-source-badge.intertek {
        background: #1f5f8b;
    }

    .cp-source-badge.ul {
        background: #101820;
    }

    .cp-source-badge.csa {
        background: #334155;
    }

    .cp-source-badge.dlc {
        background: #6b5b00;
    }

.cp-history-card {
    background: rgba(255,255,255,.92);
}

.cp-history-accordion .accordion-button {
    border-radius: 14px;
    font-weight: 850;
}

    .cp-history-accordion .accordion-button:not(.collapsed) {
        background: #fff8cf !important;
        color: #121820;
    }

.home-purpose-panel {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 22px 58px rgba(18, 50, 80, .08);
}

    .home-purpose-panel h3 {
        font-weight: 900;
    }

.home-purpose-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

    .home-purpose-list div {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .home-purpose-list i {
        color: var(--cept-blue);
        font-size: 1.15rem;
        margin-top: 2px;
    }

.stakeholder-card {
    background: #fff;
    border: 1px solid var(--cept-border);
    border-radius: 22px;
    padding: 22px;
    height: 100%;
}

    .stakeholder-card h3 {
        font-size: 1.15rem;
        font-weight: 900;
        margin-bottom: 8px;
    }

    .stakeholder-card p {
        color: var(--cept-muted);
        margin: 0;
    }

@media (max-width: 992px) {
    .dashboard-action-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-value-grid {
        grid-template-columns: 1fr;
    }
}


/* Dashboard drill-down links and result page */
.cert-dashboard-table a.dashboard-count-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    text-decoration: none;
    color: #071b33;
    font-weight: 900;
    border-radius: 18px;
    padding: .15rem .5rem;
    transition: all .18s ease
}

    .cert-dashboard-table a.dashboard-count-link:hover {
        background: #fff4a3;
        color: #062947;
        box-shadow: 0 8px 20px rgba(7,27,51,.12);
        transform: translateY(-1px)
    }

    .cert-dashboard-table a.dashboard-count-link.muted {
        color: #8b97a6
    }

.results-card-header.navy {
    background: linear-gradient(135deg,#123e5d,#226d99);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.results-card-header h2 {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 800
}

.results-card-header span {
    opacity: .88
}

.cept-result-table thead th {
    background: #1f2429;
    color: #fff;
    font-size: .86rem;
    text-transform: none;
    white-space: nowrap
}

.cept-result-table td {
    vertical-align: top;
    font-size: .92rem
}

.source-pill {
    display: inline-flex;
    align-items: center;
    border-radius: .45rem;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
    font-size: .75rem;
    padding: .25rem .5rem
}

.model-cell {
    max-width: 440px;
    white-space: normal;
    word-break: break-word
}

.empty-state i {
    font-size: 2.2rem;
    color: #6b7f93
}


/* 2026-07-06 uniform light results tables - full width and no heavy black badges */
.cp-shell-section,
.dashboard-results-page {
    background: linear-gradient(180deg, #f6f9fc 0%, #fffef5 58%, #f7fafc 100%);
}

.cp-results-card,
.dashboard-card {
    border-radius: 26px;
    border-color: #dce6f0;
    box-shadow: 0 18px 48px rgba(18, 50, 80, .07) !important;
}

.cp-results-header,
.cp-results-header.bg-success,
.results-card-header.navy {
    background: linear-gradient(135deg, #164866, #226d93) !important;
    color: #fff;
}

.cp-table-wrap,
.dashboard-drill-table-wrap {
    border: 1px solid #dce6f0;
    border-radius: 18px;
    overflow-x: auto;
    background: #fff;
}

.cp-result-table,
.cept-result-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .90rem;
}

    .cp-result-table thead th,
    .cept-result-table thead th {
        background: #eaf1f7 !important;
        color: #17324a !important;
        border-bottom: 1px solid #d4e0eb !important;
        font-weight: 900;
        white-space: normal;
        padding: 12px 10px;
    }

    .cp-result-table tbody tr:nth-child(odd) td,
    .cept-result-table tbody tr:nth-child(odd) td {
        background: #fbfdff !important;
    }

    .cp-result-table tbody tr:nth-child(even) td,
    .cept-result-table tbody tr:nth-child(even) td {
        background: #f4f7fa !important;
    }

    .cp-result-table td,
    .cept-result-table td {
        border-color: #dce6f0 !important;
        color: #273443;
        vertical-align: top;
        padding: 12px 10px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .cp-result-table th:nth-child(1), .cept-result-table th:nth-child(1) {
        width: 76px;
    }

    .cp-result-table th:nth-child(2), .cept-result-table th:nth-child(2) {
        width: 210px;
    }

    .cp-result-table th:nth-child(3), .cept-result-table th:nth-child(3) {
        width: 230px;
    }

    .cp-result-table th:nth-child(4), .cept-result-table th:nth-child(4) {
        width: 160px;
    }

    .cp-result-table th:nth-child(5), .cept-result-table th:nth-child(5) {
        width: 290px;
    }

    .cp-result-table th:nth-child(6), .cept-result-table th:nth-child(6) {
        width: 150px;
    }

    .cp-result-table th:nth-child(7), .cept-result-table th:nth-child(7) {
        width: 125px;
    }

.cp-company-cell {
    min-width: 0 !important;
    font-weight: 850;
    color: #172331;
}

.cp-model-cell,
.model-cell {
    display: block;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    color: #566477;
    font-size: .86rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cp-source-badge,
.source-pill {
    border-radius: 999px !important;
    padding: .34rem .62rem !important;
    font-weight: 900;
    font-size: .74rem;
    background: #eef6ff !important;
    color: #174a73 !important;
    border: 1px solid #cfe2f3;
    box-shadow: none !important;
}

    .cp-source-badge.certipedia,
    .source-pill.certipedia {
        background: #e7f7fb !important;
        color: #0e637c !important;
        border-color: #bee6ef;
    }

    .cp-source-badge.intertek,
    .source-pill.intertek {
        background: #eaf3ff !important;
        color: #185a8d !important;
        border-color: #c8def5;
    }

    .cp-source-badge.ul,
    .source-pill.ul {
        background: #eef2f7 !important;
        color: #25364a !important;
        border-color: #d5dde7;
    }

    .cp-source-badge.csa,
    .source-pill.csa {
        background: #edf8f3 !important;
        color: #136542 !important;
        border-color: #c7ead9;
    }

    .cp-source-badge.dlc,
    .source-pill.dlc {
        background: #fff8d7 !important;
        color: #6d5d00 !important;
        border-color: #efe38d;
    }

.status-badge.status-success {
    background: #e9f8ef;
    color: #157344;
    border: 1px solid #c9ead8;
}

.results-card-header .badge,
.cp-results-header .badge {
    color: #17324a !important;
    border: 1px solid #d4e0eb;
}

@media (min-width: 1400px) {
    .cp-result-table,
    .cept-result-table {
        font-size: .92rem;
    }
}

@media (max-width: 1199px) {
    .cp-result-table,
    .cept-result-table {
        min-width: 980px !important;
        table-layout: auto;
    }
}

/* Subscription company-user module - same CEPT light/yellow style as Find Lab */
.subscription-users-section {
    padding: 58px 0 76px;
    min-height: calc(100vh - 170px);
    background: radial-gradient(circle at 16% 10%, rgba(223, 207, 57, .16), transparent 28%), linear-gradient(180deg, #f6f9fc 0%, #fffef5 60%, #f8fbff 100%);
}

.subscription-page-heading h1,
.subscription-form-header h1 {
    font-weight: 950;
    color: #0f1d2e;
    letter-spacing: -.04em;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 8px 0 6px;
}

.subscription-page-heading p,
.subscription-form-header p {
    color: var(--cept-muted);
    max-width: 780px;
    margin: 0;
}

.subscription-users-card,
.subscription-form-card {
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(18, 50, 80, .07) !important;
}

.subscription-users-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fffdf2, #f5fbff);
    border-bottom: 1px solid #dce6f0;
}

    .subscription-users-card-header h2 {
        margin: 0 0 4px;
        font-weight: 950;
        color: var(--cept-navy);
    }

    .subscription-users-card-header span:not(.soft-count) {
        color: var(--cept-muted);
    }

.soft-count {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 900;
    background: #fff8cf;
    color: #6b5b00;
    border: 1px solid #efe38d;
}

.subscription-users-table thead th {
    background: #eaf1f7;
    color: #17324a;
    border-bottom: 1px solid #d4e0eb;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
    padding: 14px 18px;
}

.subscription-users-table td {
    padding: 17px 18px;
    border-color: #e1e8f0;
    color: #273443;
}

.subscription-users-table tbody tr:nth-child(odd) td {
    background: #fbfdff;
}

.subscription-users-table tbody tr:nth-child(even) td {
    background: #f6f9fc;
}

.user-avatar-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .user-avatar-line span {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: inline-grid;
        place-items: center;
        background: #eaf3f9;
        color: var(--cept-navy);
        font-weight: 950;
        border: 1px solid #d7e5ef;
    }

    .user-avatar-line strong {
        color: #0f1d2e;
    }

.role-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 850;
    background: #f2f6fa;
    color: #3a4b5f;
    border: 1px solid #dce6f0;
}

.subscription-users-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--cept-muted);
    padding: 18px 28px;
    background: #fbfcfd;
    border-top: 1px solid #dce6f0;
}

    .subscription-users-footer i {
        color: var(--cept-blue);
    }

.subscription-form-card {
    padding: 30px;
}

.subscription-form-header {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 20px;
}

.subscription-form-card .form-control,
.subscription-form-card .form-select {
    border-radius: 14px;
    border-color: #d4e0eb;
}

    .subscription-form-card .form-control:focus,
    .subscription-form-card .form-select:focus {
        border-color: #88b7d8;
        box-shadow: 0 0 0 .25rem rgba(31, 95, 139, .12);
    }

.dropdown-menu .dropdown-item {
    font-weight: 650;
    color: #273443;
}

    .dropdown-menu .dropdown-item:hover {
        background: #fff8cf;
        color: #0f1d2e;
    }

@media (max-width: 768px) {
    .subscription-users-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-users-table {
        min-width: 760px;
    }
}

/* Keep footer visible at bottom on short pages such as Login/Register */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main[role="main"] {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.auth-section {
    min-height: auto;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding: 48px 0;
}

@media (max-height: 760px) {
    .auth-section {
        align-items: flex-start;
        padding: 32px 0;
    }
}

/* 2026-07-06 polish: compact live-search headline, softer lab theme, cleaner pricing */
.cp-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

    .cp-page-header h1 {
        font-size: clamp(2rem, 3.15vw, 3.15rem) !important;
        line-height: 1.08;
        max-width: 760px !important;
        letter-spacing: -.035em;
    }

    .cp-page-header p {
        max-width: 760px;
        line-height: 1.55;
    }

.cp-shell-section {
    padding-top: 42px;
}

.pricing-card .feature-list {
    gap: 12px;
}

    .pricing-card .feature-list li {
        align-items: flex-start;
        font-size: .97rem;
    }

        .pricing-card .feature-list li.feature-muted {
            color: #7a8490;
        }

            .pricing-card .feature-list li.feature-muted i {
                color: #8ca0b5;
                margin-top: .15rem;
            }

.lab-hero {
    padding: 48px 0 56px;
}

.lab-hero,
.bg-lab {
    background: linear-gradient(180deg, #f6f9fc 0%, #fffdf4 62%, #f8fbff 100%) !important;
}

.hero-search-card .btn-accent,
.lab-filter a.active,
.lab-filter a:hover {
    background: #fff6bf !important;
    border-color: #eadf8a !important;
    color: #123250 !important;
}

.lab-filter {
    background: rgba(255,255,255,.88) !important;
    border-color: #dce6f0 !important;
    box-shadow: 0 18px 48px rgba(18,50,80,.06) !important;
}

.filter-title {
    color: #17324a !important;
}

.filter-subtitle {
    color: #64748b !important;
}

.lab-filter a {
    border: 1px solid transparent;
    border-radius: 12px !important;
}

    .lab-filter a.active {
        box-shadow: inset 4px 0 0 #dfcf39;
    }

.hero-search-card .btn-accent {
    font-weight: 900;
    border-radius: 0 16px 16px 0 !important;
}

.cp-result-table thead th,
.cept-result-table thead th {
    background: #edf5fb !important;
    color: #123250 !important;
}

.cp-source-badge.dlc,
.source-pill.dlc {
    background: #fff7c9 !important;
    color: #5f5200 !important;
}

.cp-model-cell,
.model-cell {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    display: inline !important;
    color: #516173 !important;
}

@media (max-width: 992px) {
    .cp-page-header {
        grid-template-columns: 1fr;
    }

        .cp-page-header h1 {
            max-width: 100% !important;
        }
}

/* 2026-07-06 compact headings and live-search processing UX */
.search-hero h1,
.lab-hero h1 {
    font-size: clamp(1.9rem, 3vw, 3rem) !important;
    line-height: 1.12;
    letter-spacing: -.035em;
    max-width: 720px;
}

.search-hero {
    padding: 42px 0 48px;
}

.lab-hero {
    padding: 40px 0 48px !important;
}

.cp-page-header h1 {
    font-size: clamp(1.75rem, 2.65vw, 2.7rem) !important;
    line-height: 1.13 !important;
    max-width: 680px !important;
    letter-spacing: -.03em !important;
}

.cp-page-header p {
    max-width: 680px !important;
    font-size: .96rem;
}

.cp-card-header h2 {
    font-size: 1.55rem;
}

.cp-card-header {
    padding: 18px 24px;
}

.cp-search-form {
    padding: 24px;
}

.cp-search-actions .btn {
    font-size: .95rem;
    font-weight: 800;
    min-height: 42px;
}

.cp-search-actions .btn-outline-primary {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.cp-source-chip {
    min-height: 42px;
}

.cp-source-option {
    min-height: 66px;
    padding: 12px 14px;
}

    .cp-source-option strong {
        font-size: .95rem;
    }

    .cp-source-option small {
        font-size: .82rem;
    }

.live-search-processing {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    background: rgba(246, 249, 252, .72);
    backdrop-filter: blur(5px);
}

.live-search-processing-card {
    width: min(420px, calc(100vw - 36px));
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 24px;
    padding: 28px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

    .live-search-processing-card strong {
        color: var(--cept-navy);
        font-weight: 900;
        font-size: 1.1rem;
    }

    .live-search-processing-card span {
        color: var(--cept-muted);
        font-size: .92rem;
    }

    .live-search-processing-card .spinner-border {
        width: 2.4rem;
        height: 2.4rem;
        color: var(--cept-navy) !important;
    }

@media (max-width: 992px) {
    .search-hero h1,
    .lab-hero h1,
    .cp-page-header h1 {
        max-width: 100% !important;
    }
}

/* 2026-07-06 final drill-down/result table polish: remove Bootstrap cell washout and keep row colors uniform */
.cp-table-wrap,
.dashboard-drill-table-wrap {
    overflow-x: visible !important;
    border: 1px solid #d8e4ef !important;
    border-radius: 20px !important;
    background: #ffffff !important;
}

.cp-result-table,
.cept-result-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: #eef6ff;
    border-collapse: collapse !important;
}

    .cp-result-table thead th,
    .cept-result-table thead th {
        background: #edf5fb !important;
        color: #123250 !important;
        border-bottom: 1px solid #d7e3ee !important;
        box-shadow: none !important;
        font-size: .84rem !important;
        line-height: 1.25 !important;
    }

    .cp-result-table tbody tr:nth-child(odd),
    .cept-result-table tbody tr:nth-child(odd) {
        --bs-table-bg: #fbfdff !important;
        --bs-table-accent-bg: #fbfdff !important;
        background: #fbfdff !important;
    }

    .cp-result-table tbody tr:nth-child(even),
    .cept-result-table tbody tr:nth-child(even) {
        --bs-table-bg: #f3f7fb !important;
        --bs-table-accent-bg: #f3f7fb !important;
        background: #f3f7fb !important;
    }

    .cp-result-table tbody tr:hover,
    .cept-result-table tbody tr:hover {
        --bs-table-bg: #eef6ff !important;
        --bs-table-accent-bg: #eef6ff !important;
        background: #eef6ff !important;
    }

    .cp-result-table tbody td,
    .cept-result-table tbody td {
        background: inherit !important;
        background-color: inherit !important;
        box-shadow: none !important;
        border-color: #d8e4ef !important;
        color: #223044 !important;
        vertical-align: middle !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .cp-result-table .cp-model-cell,
    .cept-result-table .model-cell {
        display: inline !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #566477 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .cp-result-table a,
    .cept-result-table a {
        background: transparent !important;
        box-shadow: none !important;
    }

.source-pill,
.cp-source-badge {
    background: #eef6ff !important;
    border: 1px solid #cfe2f3 !important;
    color: #174a73 !important;
}

    .source-pill.ul, .cp-source-badge.ul {
        background: #f2f6fb !important;
        color: #20364f !important;
        border-color: #d6e0eb !important;
    }

    .source-pill.etl, .cp-source-badge.etl,
    .source-pill.intertek, .cp-source-badge.intertek {
        background: #eaf3ff !important;
        color: #185a8d !important;
        border-color: #c8def5 !important;
    }

    .source-pill.csa, .cp-source-badge.csa {
        background: #edf8f3 !important;
        color: #136542 !important;
        border-color: #c7ead9 !important;
    }

    .source-pill.dlc, .cp-source-badge.dlc {
        background: #fff7cf !important;
        color: #6a5b00 !important;
        border-color: #eee18b !important;
    }

    .source-pill.certipedia, .cp-source-badge.certipedia {
        background: #e7f7fb !important;
        color: #0e637c !important;
        border-color: #bee6ef !important;
    }

@media (min-width: 1200px) {
    .cept-result-table th:nth-child(1), .cept-result-table td:nth-child(1) {
        width: 6%;
    }

    .cept-result-table th:nth-child(2), .cept-result-table td:nth-child(2) {
        width: 17%;
    }

    .cept-result-table th:nth-child(3), .cept-result-table td:nth-child(3) {
        width: 23%;
    }

    .cept-result-table th:nth-child(4), .cept-result-table td:nth-child(4) {
        width: 13%;
    }

    .cept-result-table th:nth-child(5), .cept-result-table td:nth-child(5) {
        width: 23%;
    }

    .cept-result-table th:nth-child(6), .cept-result-table td:nth-child(6) {
        width: 11%;
    }

    .cept-result-table th:nth-child(7), .cept-result-table td:nth-child(7) {
        width: 13%;
    }
}

@media (max-width: 1199px) {
    .cp-table-wrap,
    .dashboard-drill-table-wrap {
        overflow-x: auto !important;
    }

    .cp-result-table,
    .cept-result-table {
        min-width: 980px !important;
        table-layout: fixed !important;
    }
}


/* 2026-07-06 final user polish: table model/file columns must remain real table cells + compact home headline */
.hero-section h1.display-4 {
    font-size: clamp(2.2rem, 4vw, 4rem) !important;
    line-height: 1.12 !important;
    max-width: 740px;
}

.hero-section .lead {
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.55;
}

.cept-result-table td.model-cell,
.cept-result-table td.file-cell,
.cp-result-table td.cp-model-cell,
.cp-result-table td.cp-file-cell {
    display: table-cell !important;
    background: inherit !important;
    background-color: inherit !important;
    border-top: 1px solid #d8e4ef !important;
    border-bottom: 1px solid #d8e4ef !important;
    padding: .9rem 1rem !important;
    color: #223044 !important;
    vertical-align: middle !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

    .cept-result-table td.model-cell::before,
    .cept-result-table td.file-cell::before,
    .cp-result-table td.cp-model-cell::before,
    .cp-result-table td.cp-file-cell::before {
        display: none !important;
    }

.cept-result-table tbody tr:nth-child(odd) td.model-cell,
.cept-result-table tbody tr:nth-child(odd) td.file-cell,
.cp-result-table tbody tr:nth-child(odd) td.cp-model-cell,
.cp-result-table tbody tr:nth-child(odd) td.cp-file-cell {
    background-color: #fbfdff !important;
}

.cept-result-table tbody tr:nth-child(even) td.model-cell,
.cept-result-table tbody tr:nth-child(even) td.file-cell,
.cp-result-table tbody tr:nth-child(even) td.cp-model-cell,
.cp-result-table tbody tr:nth-child(even) td.cp-file-cell {
    background-color: #f3f7fb !important;
}

.cept-result-table tbody tr:hover td.model-cell,
.cept-result-table tbody tr:hover td.file-cell,
.cp-result-table tbody tr:hover td.cp-model-cell,
.cp-result-table tbody tr:hover td.cp-file-cell {
    background-color: #eef6ff !important;
}

/* Selected-company filtering and final saved-company list */
.cp-company-toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) minmax(280px, .85fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbfe, #fffdf0);
}

.cp-company-filter-box .form-label {
    margin-bottom: 7px;
    color: #17324a;
    font-weight: 900;
}

.cp-company-filter-box .form-select {
    min-height: 48px;
    border-radius: 13px;
    border-color: #cddbe7;
    font-weight: 750;
    color: #172331;
    background-color: #fff;
}

    .cp-company-filter-box .form-select:focus {
        border-color: #1f5f8b;
        box-shadow: 0 0 0 .2rem rgba(31,95,139,.12);
    }

.cp-company-save-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px solid #d8e4ef;
}

    .cp-company-save-box small,
    .cp-company-filter-box .form-text {
        color: #69798a;
        line-height: 1.4;
    }

.cp-result-count-line {
    color: #526577;
    font-size: .88rem;
}

    .cp-result-count-line strong {
        color: #17324a;
    }

#btnSaveSelectedCompany:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cp-saved-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 24px 12px;
    text-align: center;
    color: #607386;
}

    .cp-saved-empty i {
        font-size: 1.65rem;
        color: #1f5f8b;
    }

    .cp-saved-empty span {
        color: #17324a;
        font-weight: 850;
    }

    .cp-saved-empty small {
        font-size: .78rem;
    }

.cp-saved-company-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.cp-saved-company-name {
    color: #172331;
    font-weight: 850;
    font-size: .86rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cp-history-item:hover .cp-saved-company-name {
    color: #164866;
}

.cp-history-item .badge {
    flex: 0 0 auto;
}

.cp-history-card .accordion-button::after {
    margin-left: auto;
}

@media (max-width: 991px) {
    .cp-company-toolbar {
        grid-template-columns: 1fr;
    }

    .cp-company-save-box {
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid #d8e4ef;
    }
}

@media (min-width: 992px) {
    .cp-history-card {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

/* 2026-07-12 multi-company selection, fuzzy company lookup and per-column result filters */
.cp-company-multiselect {
    position: relative;
    z-index: 30;
}

.cp-company-multiselect-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #b9ccdc;
    border-radius: 13px;
    background: #fff;
    color: #172331;
    font-weight: 800;
    text-align: left;
}

    .cp-company-multiselect-button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cp-company-multiselect-button i {
        flex: 0 0 auto;
        transition: transform .18s ease;
    }

.cp-company-multiselect.is-open .cp-company-multiselect-button {
    border-color: #1f5f8b;
    box-shadow: 0 0 0 .2rem rgba(31,95,139,.12);
}

    .cp-company-multiselect.is-open .cp-company-multiselect-button i {
        transform: rotate(180deg);
    }

.cp-company-multiselect-menu {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: min(680px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid #cbd9e6;
    border-radius: 16px;
    background: #fff;
}

.cp-company-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid #cbd9e6;
    border-radius: 11px;
    background: #f9fbfd;
}

    .cp-company-search-wrap i {
        color: #557086;
    }

    .cp-company-search-wrap input {
        width: 100%;
        min-height: 42px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #172331;
        font-weight: 650;
    }

.cp-company-option-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 2px 7px;
    border-bottom: 1px solid #e3ebf2;
}

    .cp-company-option-actions button {
        border: 0;
        background: transparent;
        color: #1f5f8b;
        font-size: .8rem;
        font-weight: 850;
        padding: 4px 6px;
    }

        .cp-company-option-actions button:hover {
            color: #123250;
            text-decoration: underline;
        }

.cp-company-options {
    max-height: 315px;
    overflow-y: auto;
    padding: 7px 2px 2px;
    scrollbar-width: thin;
}

.cp-company-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
    padding: 9px 8px;
    border-radius: 10px;
    cursor: pointer;
    color: #223044;
}

    .cp-company-option:hover {
        background: #eef6ff;
    }

    .cp-company-option:has(input:checked) {
        background: #fff9d8;
    }

    .cp-company-option input {
        margin-top: 3px;
        width: 16px;
        height: 16px;
        accent-color: #164866;
    }

.cp-company-option-name {
    font-size: .88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cp-company-option-count {
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8f2fa;
    color: #174a73;
    font-size: .74rem;
    font-weight: 900;
    text-align: center;
}

.cp-company-option:has(input:checked) .cp-company-option-count {
    background: #164866;
    color: #fff;
}

.cp-company-no-match {
    padding: 20px 8px 10px;
    text-align: center;
    color: #6b7a89;
    font-size: .86rem;
}

.cp-company-selection-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px 14px;
    margin-top: 8px;
    color: #69798a;
    font-size: .79rem;
}

    .cp-company-selection-meta strong {
        color: #17324a;
    }

.cp-selected-company-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cp-selected-company-chip {
    max-width: min(100%, 330px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px 5px 10px;
    border: 1px solid #cfe0ee;
    border-radius: 999px;
    background: #eef6ff;
    color: #174a73;
    font-size: .75rem;
    font-weight: 750;
}

    .cp-selected-company-chip span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cp-selected-company-chip:hover {
        background: #dfefff;
    }

.cp-selected-company-more {
    align-self: center;
    color: #526577;
    font-size: .76rem;
    font-weight: 800;
}

.cp-column-filter-row th {
    padding: 7px 6px !important;
    background: #f7fbfe !important;
    border-bottom: 1px solid #cfdde9 !important;
}

.cp-column-filter-row .form-control {
    min-width: 0;
    height: 34px;
    border: 1px solid #cbd9e6;
    border-radius: 9px;
    background: #fff;
    color: #223044;
    font-size: .75rem;
    font-weight: 650;
}

    .cp-column-filter-row .form-control:focus {
        border-color: #1f5f8b;
        box-shadow: 0 0 0 .15rem rgba(31,95,139,.10);
    }

    .cp-column-filter-row .form-control::placeholder {
        color: #8493a2;
    }

.cp-clear-column-filters {
    width: 34px;
    height: 34px;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .cp-company-multiselect-menu {
        position: fixed;
        top: 90px;
        left: 16px;
        right: 16px;
        min-width: 0;
        max-height: calc(100vh - 120px);
        overflow: auto;
    }

    .cp-company-options {
        max-height: calc(100vh - 290px);
    }
}


/* 2026-07-12 saved-company delete controls and saved-result column filters */
.cp-history-website-header {
    position: relative;
}

    .cp-history-website-header .accordion-button {
        padding-right: 72px;
    }

        .cp-history-website-header .accordion-button::after {
            position: absolute;
            right: 38px;
            margin-left: 0;
        }

.cp-delete-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #efc1c1;
    border-radius: 5px;
    background: #fff;
    color: #d34b4b;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

    .cp-delete-icon i {
        font-size: .57rem;
        line-height: 1;
    }

    .cp-delete-icon:hover {
        border-color: #d34b4b;
        background: #fff5f5;
        color: #b53b3b;
        transform: translateY(-1px);
    }

    .cp-delete-icon:disabled {
        opacity: .45;
        cursor: wait;
        transform: none;
    }

.cp-delete-website {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    border-color: #f2c689;
    background: #fff2dc;
    color: #b96a00;
}

    .cp-delete-website:hover {
        border-color: #e09a38;
        background: #ffe7bf;
        color: #975300;
        transform: translateY(calc(-50% - 1px));
    }

.cp-history-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 31px;
    align-items: stretch;
    border-top: 1px solid rgba(0,0,0,.125);
    background: #fff;
}

    .cp-history-item-row:first-child {
        border-top: 0;
    }

    .cp-history-item-row .cp-history-item {
        min-width: 0;
        border: 0;
    }

    .cp-history-item-row:hover {
        background: #f7fbff;
    }

        .cp-history-item-row:hover .cp-history-item {
            background: transparent;
        }

.cp-delete-company {
    width: 21px;
    height: 21px;
    align-self: start;
    margin: 10px 6px 0 0;
}

    .cp-delete-company i {
        font-size: .61rem;
    }

.cp-history-item-row .cp-saved-company-row {
    margin-right: 0;
}

@media (max-width: 575px) {
    .cp-history-item-row {
        grid-template-columns: minmax(0, 1fr) 29px;
    }

    .cp-delete-company {
        margin-right: 4px;
    }
}

/* Compact CEPT styling for SweetAlert2 delete confirmations */
.cept-swal-popup {
    border-radius: 18px !important;
    padding: 1.35rem 1.35rem 1.15rem !important;
}

    .cept-swal-popup .swal2-title {
        color: #102a43;
        font-size: 1.35rem;
    }

    .cept-swal-popup .swal2-html-container {
        color: #526579;
        font-size: .95rem;
    }

    .cept-swal-popup .swal2-actions button {
        border-radius: 999px !important;
        padding: .58rem 1.15rem !important;
        font-weight: 700 !important;
    }

/* Saved-company sidebar filter */
.cp-history-filter-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 10px;
}

    .cp-history-filter-wrap > i {
        position: absolute;
        left: 11px;
        color: #6f7f8f;
        font-size: .78rem;
        pointer-events: none;
    }

.cp-history-filter-input {
    width: 100%;
    height: 34px;
    border: 1px solid #cfdbe6;
    border-radius: 10px;
    background: #fff;
    color: #233143;
    padding: 6px 34px 6px 31px;
    font-size: .78rem;
    font-weight: 650;
    outline: none;
}

    .cp-history-filter-input::placeholder {
        color: #8795a3;
        font-weight: 550;
    }

    .cp-history-filter-input:focus {
        border-color: #2a6e9d;
        box-shadow: 0 0 0 .15rem rgba(31,95,139,.10);
    }

    .cp-history-filter-input::-webkit-search-cancel-button {
        appearance: none;
    }

.cp-history-filter-clear {
    position: absolute;
    right: 6px;
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 50%;
    background: #eef3f7;
    color: #526373;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .cp-history-filter-clear:hover {
        background: #dfe8ef;
        color: #233143;
    }

    .cp-history-filter-clear i {
        font-size: .65rem;
        line-height: 1;
    }

.cp-history-filter-empty {
    margin: 0 2px 10px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f3f7fa;
    color: #617180;
    font-size: .75rem;
    line-height: 1.35;
}

/* 2026-07-17 saved search keyword groups, editable group name and remark */
.cp-search-group-list {
    display: grid;
    gap: 12px;
}

.cp-search-group {
    border: 1px solid #cbd9e6;
    border-radius: 15px;
    background: #f8fbfd;
    padding: 9px;
    box-shadow: 0 7px 18px rgba(23, 50, 74, .055);
}

.cp-search-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 2px 8px;
}

.cp-search-group-heading-text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.cp-search-group-name-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

    .cp-search-group-name-row strong {
        min-width: 0;
        color: #143a56;
        font-size: .84rem;
        font-weight: 900;
        line-height: 1.28;
        overflow-wrap: anywhere;
    }

    .cp-search-group-name-row .badge {
        flex: 0 0 auto;
        margin-top: 1px;
        font-size: .66rem;
    }

.cp-search-group-heading-text small {
    color: #687b8d;
    font-size: .7rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cp-search-group-actions {
    display: inline-flex;
    gap: 5px;
    flex: 0 0 auto;
}

.cp-group-action-btn {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #bfd1df;
    border-radius: 7px;
    background: #fff;
    color: #2c668e;
    transition: .15s ease;
}

    .cp-group-action-btn i {
        font-size: .66rem;
        line-height: 1;
    }

    .cp-group-action-btn:hover {
        background: #edf6fc;
        border-color: #7eabc8;
        transform: translateY(-1px);
    }

.cp-group-delete-btn {
    border-color: #efc1c1;
    color: #c84646;
}

    .cp-group-delete-btn:hover {
        border-color: #dc8585;
        background: #fff3f3;
    }

.cp-group-action-btn:disabled {
    opacity: .5;
    cursor: wait;
    transform: none;
}

.cp-search-group-remark {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 1px 8px;
    padding: 7px 8px;
    border: 1px solid #e1d8a5;
    border-radius: 9px;
    background: #fffceb;
    color: #625a2f;
    font-size: .72rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

    .cp-search-group-remark i {
        margin-top: 1px;
        color: #927d17;
        flex: 0 0 auto;
    }

.cp-search-group-editor {
    margin: 0 1px 9px;
    padding: 9px;
    border: 1px solid #bcd0df;
    border-radius: 10px;
    background: #fff;
}

    .cp-search-group-editor label {
        display: grid;
        gap: 4px;
        margin-bottom: 8px;
    }

        .cp-search-group-editor label > span {
            color: #40566a;
            font-size: .7rem;
            font-weight: 800;
        }

    .cp-search-group-editor input,
    .cp-search-group-editor textarea {
        width: 100%;
        border: 1px solid #cbd8e3;
        border-radius: 8px;
        background: #fff;
        color: #203142;
        padding: 7px 8px;
        font-size: .76rem;
        outline: none;
    }

    .cp-search-group-editor textarea {
        resize: vertical;
        min-height: 68px;
    }

        .cp-search-group-editor input:focus,
        .cp-search-group-editor textarea:focus {
            border-color: #2a6e9d;
            box-shadow: 0 0 0 .14rem rgba(31,95,139,.10);
        }

.cp-search-group-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

    .cp-search-group-editor-actions .btn {
        border-radius: 8px;
        font-size: .72rem;
        font-weight: 750;
        padding: .34rem .62rem;
    }

.cp-group-websites .accordion-item {
    background: #fff;
    margin-bottom: 6px;
}

    .cp-group-websites .accordion-item:last-child {
        margin-bottom: 0;
    }

.cp-group-websites .accordion-button {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: .8rem;
}

.cp-group-websites .cp-history-item {
    padding-top: 9px;
    padding-bottom: 9px;
}

.cp-group-websites .cp-saved-company-name {
    font-size: .8rem;
}

.cp-group-websites .cp-history-item small {
    font-size: .68rem;
}

/* 2026-07-17 simplified saved-search groups: one collapsible group, flat company list */
.cp-search-group-header {
    align-items: center;
    padding: 0 0 7px;
}

.cp-search-group-toggle {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .cp-search-group-toggle:hover,
    .cp-search-group-toggle:focus-visible {
        background: #edf5fa;
        outline: none;
    }

    .cp-search-group-toggle .cp-search-group-name-row {
        min-width: 0;
        flex: 1 1 auto;
        align-items: center;
    }

.cp-search-group-toggle-icon {
    flex: 0 0 auto;
    color: #28658d;
    font-size: .82rem;
    transition: transform .18s ease;
}

.cp-search-group-toggle[aria-expanded="false"] .cp-search-group-toggle-icon {
    transform: rotate(180deg);
}

.cp-search-group-body {
    min-width: 0;
}

.cp-group-company-list {
    overflow: hidden;
    border: 1px solid #d3dfe9;
    border-radius: 11px;
    background: #fff;
}

    .cp-group-company-list .cp-history-item {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .cp-group-company-list .cp-saved-company-name {
        font-size: .78rem;
        line-height: 1.32;
    }

    .cp-group-company-list .cp-history-item small {
        font-size: .67rem;
    }

.cp-saved-company-source {
    color: #2b668e;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

/* Dashboard saved-search group selector */
.dashboard-group-filter {
    background: #ffffff;
    border: 1px solid #dce6f0;
    border-radius: 22px;
    padding: 16px;
}

.dashboard-group-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

    .dashboard-group-filter-head strong {
        display: block;
        color: #071629;
        font-weight: 900;
    }

    .dashboard-group-filter-head span {
        display: block;
        color: #687789;
        font-size: .84rem;
    }

.dashboard-active-group-label {
    background: #edf5fb;
    border: 1px solid #cfe0ef;
    border-radius: 999px;
    color: #174d70 !important;
    font-weight: 800;
    padding: 7px 12px;
    white-space: nowrap;
}

.dashboard-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.dashboard-group-option {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #d7e3ee;
    border-radius: 14px;
    background: #f8fbfd;
    color: #123250;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .dashboard-group-option:hover {
        border-color: #9cbdd4;
        background: #f1f7fb;
        color: #123250;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(18, 50, 80, .08);
    }

    .dashboard-group-option.active {
        border-color: #1f5f8b;
        background: #eaf4fb;
        box-shadow: inset 0 0 0 1px rgba(31, 95, 139, .12);
    }

.dashboard-group-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.dashboard-group-count {
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1976b9;
    color: #ffffff;
    font-size: .76rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.dashboard-group-option.active .dashboard-group-count {
    background: #123250;
}

@media (max-width: 767.98px) {
    .dashboard-group-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-active-group-label {
        white-space: normal;
    }
}


/* 2026-07-18 keep saved-search sidebar and result area permanently full width.
   Expanding/collapsing a group may change only its height, never either column width. */
.cp-saved-results-layout {
    --cp-saved-sidebar-width: 280px;
    display: flex !important;
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 24px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.cp-saved-results-sidebar {
    flex: 0 0 var(--cp-saved-sidebar-width) !important;
    width: var(--cp-saved-sidebar-width) !important;
    min-width: var(--cp-saved-sidebar-width) !important;
    max-width: var(--cp-saved-sidebar-width) !important;
    box-sizing: border-box;
}

.cp-saved-results-main {
    flex: 1 1 0 !important;
    width: calc(100% - var(--cp-saved-sidebar-width) - 24px) !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
}

    .cp-saved-results-sidebar .cp-history-card,
    .cp-saved-results-main .cp-results-card,
    .cp-saved-results-main .cp-table-wrap {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        box-sizing: border-box;
    }

.cp-search-group,
.cp-search-group-header,
.cp-search-group-body,
.cp-group-company-list,
.cp-search-group-toggle,
.cp-history-item-row,
.cp-history-item,
.cp-saved-company-row {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

    .cp-search-group-body.collapsing,
    .cp-search-group-body.collapse,
    .cp-search-group-body.collapse.show {
        width: 100% !important;
    }

@media (min-width: 1400px) {
    .cp-saved-results-layout {
        --cp-saved-sidebar-width: 300px;
    }
}

@media (max-width: 991.98px) {
    .cp-saved-results-layout {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    .cp-saved-results-sidebar,
    .cp-saved-results-main {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* Saved company add/edit controls */
.cp-company-list-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 7px;
}

    .cp-company-list-toolbar .btn {
        font-size: .7rem;
        font-weight: 700;
        padding: .24rem .55rem;
    }

.cp-history-item-row {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.cp-company-row-actions {
    display: flex;
    gap: 3px;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 5px 0 0;
}

    .cp-company-row-actions .cp-delete-company,
    .cp-company-row-actions .cp-edit-company {
        margin: 0;
    }

.cp-edit-company {
    width: 21px;
    height: 21px;
    border-color: #b8d2e5;
    color: #24658f;
}

    .cp-edit-company:hover {
        border-color: #24658f;
        background: #eef7fc;
        color: #174d70;
    }

@media (max-width: 575px) {
    .cp-history-item-row {
        grid-template-columns: minmax(0, 1fr) 46px;
    }
}

/* Saved-company search shortcut and modern add/edit company dialog */
.cp-history-item-row {
    grid-template-columns: minmax(0, 1fr) 74px;
}

.cp-company-row-actions {
    gap: 4px;
    padding-right: 6px;
}

    .cp-company-row-actions .cp-delete-icon {
        flex: 0 0 21px;
    }

.cp-use-company {
    width: 21px;
    height: 21px;
    border-color: #a9d2e4;
    background: #f1f9fc;
    color: #12658a;
}

    .cp-use-company:hover,
    .cp-use-company:focus-visible {
        border-color: #12658a;
        background: #12658a;
        color: #fff;
        box-shadow: 0 0 0 3px rgba(18, 101, 138, .13);
    }

.cp-company-swal.swal2-popup {
    width: min(520px, calc(100vw - 28px)) !important;
    padding: 0 0 24px !important;
    border: 1px solid rgba(36, 100, 139, .18);
    border-radius: 22px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 59, 91, .24) !important;
}

.cp-company-swal::before {
    content: "";
    display: block;
    height: 7px;
    background: linear-gradient(90deg, #0f3b5b 0%, #1d7198 55%, #5aa8c8 100%);
}

.cp-company-swal .swal2-close {
    color: #6b7f8f;
}

.cp-company-swal-html {
    margin: 0 !important;
    padding: 0 !important;
}

.cp-company-modal-shell {
    padding: 30px 38px 8px;
    text-align: left;
}

.cp-company-modal-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border: 1px solid #b9d8e8;
    border-radius: 17px;
    background: linear-gradient(145deg, #eff9fd, #dceef7);
    color: #155b7d;
    font-size: 1.45rem;
    box-shadow: 0 10px 24px rgba(21, 91, 125, .12);
}

.cp-company-modal-title {
    margin: 0;
    color: #102f49;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -.025em;
}

.cp-company-modal-subtitle {
    max-width: 390px;
    margin: 8px auto 24px;
    color: #667b8c;
    font-size: .94rem;
    line-height: 1.5;
    text-align: center;
}

.cp-company-modal-label {
    display: block;
    margin-bottom: 8px;
    color: #18374f;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.cp-company-modal-input-wrap {
    position: relative;
}

    .cp-company-modal-input-wrap > i {
        position: absolute;
        top: 50%;
        left: 15px;
        z-index: 1;
        color: #5c7c91;
        font-size: 1rem;
        transform: translateY(-50%);
        pointer-events: none;
    }

.cp-company-modal-input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px 12px 44px;
    border: 1px solid #b9ccd9;
    border-radius: 12px;
    outline: 0;
    background: #fbfdff;
    color: #102f49;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .cp-company-modal-input::placeholder {
        color: #96a6b2;
        font-weight: 500;
    }

    .cp-company-modal-input:hover {
        border-color: #86b1ca;
    }

    .cp-company-modal-input:focus {
        border-color: #2b83ad;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(43, 131, 173, .14);
    }

.cp-company-modal-help {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 10px;
    color: #6d8190;
    font-size: .78rem;
    line-height: 1.45;
}

    .cp-company-modal-help i {
        margin-top: 2px;
        color: #2e7ca3;
    }

.cp-company-swal-actions {
    width: 100%;
    gap: 10px;
    margin: 18px 0 0 !important;
    padding: 0 38px;
}

.cp-company-swal-confirm,
.cp-company-swal-cancel {
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.cp-company-swal-confirm {
    min-width: 148px;
    background: #0f3b5b;
    color: #fff;
    box-shadow: 0 9px 20px rgba(15, 59, 91, .20);
}

    .cp-company-swal-confirm:hover,
    .cp-company-swal-confirm:focus-visible {
        background: #155779;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(15, 59, 91, .25);
    }

.cp-company-swal-cancel {
    min-width: 104px;
    border-color: #cad6df;
    background: #f5f8fa;
    color: #4e6475;
}

    .cp-company-swal-cancel:hover,
    .cp-company-swal-cancel:focus-visible {
        border-color: #aebfcb;
        background: #eaf0f4;
        color: #243f54;
    }

.cp-company-swal-validation.swal2-validation-message {
    margin: 12px 38px 0;
    border-radius: 10px;
    background: #fff1f1;
    color: #a62626;
    font-size: .82rem;
}

@keyframes cpCompanyModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cpCompanyModalOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }
}

.cp-company-modal-show {
    animation: cpCompanyModalIn .22s ease-out both !important;
}

.cp-company-modal-hide {
    animation: cpCompanyModalOut .16s ease-in both !important;
}

@media (max-width: 575px) {
    .cp-history-item-row {
        grid-template-columns: minmax(0, 1fr) 72px;
    }

    .cp-company-modal-shell {
        padding: 25px 22px 6px;
    }

    .cp-company-swal-actions {
        flex-direction: column;
        padding: 0 22px;
    }

    .cp-company-swal-confirm,
    .cp-company-swal-cancel {
        width: 100%;
    }

    .cp-company-swal-validation.swal2-validation-message {
        margin-right: 22px;
        margin-left: 22px;
    }
}

/* 2026-07-22: keep all saved-company action icons fully visible */
.cp-history-item-row {
    grid-template-columns: minmax(0, 1fr) 84px;
}

.cp-company-row-actions {
    width: 84px;
    box-sizing: border-box;
    gap: 4px;
    padding: 10px 6px 0 6px;
    overflow: visible;
}

    .cp-company-row-actions .cp-delete-icon {
        flex: 0 0 21px;
        min-width: 21px;
    }

@media (max-width: 575px) {
    .cp-history-item-row {
        grid-template-columns: minmax(0, 1fr) 84px;
    }
}
