/* Company Search Plugin Styles */

.cs-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.cs-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cs-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.cs-search-input-new {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.cs-search-button {
    padding: 12px 24px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.cs-search-button:hover {
    background-color: #005a87;
}

.cs-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-results-list li {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cs-view-details {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

.cs-view-details:hover {
    color: #007cba;
}

.cs-results-list li div {
    color: #666;
    margin-top: 8px;
    font-size: 0.9em;
}


.cs-pagination {
    margin-top: 30px;
    text-align: center;
}

.cs-pagination a {
    margin: 0 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #007cba;
    border: 1px solid #007cba;
    border-radius: 4px;
}

.cs-pagination a.active {
    font-weight: bold;
    background-color: #007cba;
    color: white;
}

.cs-detail-view {
    margin-top: 20px;
}

.cs-back-to-results {
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cs-back-to-results:hover {
    background-color: #e1e1e1;
}

.cs-detail-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

.cs-detail-table th,
.cs-detail-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.cs-detail-table th {
    background: #f9f9f9;
    font-weight: bold;
    width: 30%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cs-search-wrapper {
        padding: 10px;
    }

    .cs-search-form {
        flex-direction: column;
    }

    .cs-search-input {
        width: 100%;
        min-width: auto;
    }

    .cs-search-button {
        width: 100%;
        padding: 14px;
    }

    .cs-results-list li {
        padding: 15px;
    }

    .cs-view-details {
        font-size: 1.1em;
    }

    .cs-detail-table {
        font-size: 14px;
    }

    .cs-detail-table th,
    .cs-detail-table td {
        padding: 8px;
    }

    .cs-detail-table th {
        width: 40%;
    }

    /* Make table scrollable on mobile */
    .cs-detail-view {
        overflow-x: auto;
    }

    .cs-detail-table {
        min-width: 600px;
        /* Ensure table doesn't shrink too much */
    }
}

@media (max-width: 480px) {
    .cs-search-wrapper {
        padding: 5px;
    }

    .cs-results-list li {
        padding: 10px;
        margin-bottom: 10px;
    }

    .cs-view-details {
        font-size: 1em;
    }

    .cs-pagination a {
        margin: 0 4px;
        padding: 6px 10px;
        font-size: 14px;
    }

    .cs-detail-table {
        font-size: 12px;
    }

    .cs-detail-table th,
    .cs-detail-table td {
        padding: 6px;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cs-loader {
    text-align: center;
    padding: 20px;
}

/* Scoped styles using unique namespace prefix: cprof-unique- */
#cprof-container-82x.cprof-unique-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 850px;
    margin: 20px auto;
    color: #2c3338;
    line-height: 1.5;
}

.cprof-unique-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.cprof-unique-title {
    margin: 0 !important;
    /* !important ensures theme h2 margins don't take over */
    font-size: 2rem !important;
    color: #1d2327 !important;
    font-weight: 700;
}

.cprof-unique-number {
    color: #646970;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Card Layout */
.cprof-unique-card {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.cprof-unique-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #50575e;
    margin-bottom: 12px;
}

/* List styling */
.cprof-unique-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cprof-unique-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.cprof-unique-item:last-child {
    border-bottom: none;
}

.cprof-unique-muted {
    color: #646970;
    font-size: 0.85rem;
    margin-top: 8px;
}


/* Container Spacing */
.custom-company-profile {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

/* The "Card" Look from your image */
.company-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    /* Light gray border */
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
}

/* Labels */
.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* List Rows with lines between them */
.row-list {
    margin-top: 10px;
}

.row-item {
    padding: 4px 0;
    border-top: 1px solid #edf2f7;
    font-size: 1rem;
    /* color: #2d3748; */
}

.row-item:first-child {
    border-top: none;
    padding-top: 0;
}

/* Matching the "!" prefix style */
.wp-block-post-title-company {
    font-family: inherit;
    color: #1a202c;
}

.company-card {
    background: #fff;
    border: 1px solid #ddd;
    /* Visible light gray border */
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
}

.row-item:first-child {
    border-top: none !important;
    /* Removes top line from the first industry/person */
    padding-top: 0 !important;
}

/* Ensure font weight isn't too heavy from theme defaults */
.custom-company-profile p,
.custom-company-profile div {
    font-weight: 400;
}


.custom-company-profile {
    font-family: Arial, sans-serif;
    max-width: 800px;
}

.company-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.card-label {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-row {
    display: flex;
    align-items: flex-start;
    /* gap: 12px; */
}

.row-item {
    padding: 12px 0;
    border-top: 1px solid #eee;
    color: #000;
}

.person-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

/* SVG Icon Controls */
.wp-svg-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 10px;
}

.icon-red {
    fill: #dc3545;
}

.icon-green {
    fill: #198754;
}

.icon-yellow {
    fill: #ffc107;
}

.icon-blue {
    fill: #0d6efd;
}

.icon-grey {
    fill: #6c757d;
}


.info-row-children {

    margin-left: 5%;
    font-weight: 400;
    font-size: 1.05rem;

}

.wp-block-post-title-company {
    font-size: 2rem;
}

/* Container Namespace */
.c-ctrl-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0;
}

/* Header Section */
.c-ctrl-header {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    gap: 8px;
}

.c-ctrl-header__text {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.c-ctrl-icon--header {
    width: 18px;
    height: 18px;
    fill: #666;
}

/* List Items */
.c-ctrl-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #ebebeb;
    gap: 12px;
}

.c-ctrl-item__name {
    color: #0066cc;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.c-ctrl-item__name:hover {
    text-decoration: underline;
}

/* Metadata (The "Also controls" part) */
.c-ctrl-item__meta {
    color: #757575;
    font-size: 14px;
}

/* Icon Variations */
.c-ctrl-icon--person {
    width: 14px;
    fill: #0066cc;
}

.c-ctrl-icon--building {
    width: 14px;
    fill: #2e7d32;
    /* Greenish for companies like in your image */
}



/* Unique Base Class for Layout */
.cmp-alert-base {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    border: 1px solid transparent;
}

.cmp-alert-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cmp-alert-text {
    margin: 0;
    line-height: 1;
}

/* Unique ID for Active Styling */
#cmp-alert-active {
    background-color: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

/* Unique ID for Inactive Styling */
#cmp-alert-inactive {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}


.c-ctrl-item__name_new {
    color: #04070a;
    font-size: 15px;
    font-weight: 400;
    cursor: none;
    pointer-events: none;

}

.csp-profile-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: sans-serif;
    color: #2d3748;
}

.csp-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #1a202c;
}

.csp-title-sub {
    color: #718096;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Grid Layout */
.csp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.csp-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.csp-icon-box {
    background: #0066ff;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.csp-info-text label {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.csp-info-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Card Styles */
.csp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.csp-card-header {
    background: #f8fafc;
    padding: 12px 20px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csp-card-body {
    padding: 20px;
}

/* List Styles */
.csp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
}

.csp-row:last-child {
    border-bottom: none;
}

.csp-row-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.csp-row-icon {
    color: #0066ff;
    font-size: 18px;
}

.csp-link-bold {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.csp-link-bold:hover {
    text-decoration: underline;
}

.csp-no-text {
    margin: 2px 0 0;
    color: #718096;
    font-size: 0.85rem;
}

.csp-row-meta {
    color: #a0aec0;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .csp-info-grid {
        grid-template-columns: 1fr;
    }

    .csp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.cs-view-details:hover,
.cs-result-item:hover,
.cs-result-item:hover button,
.cs-result-item:hover div {
    color: #007cba;
    background-color: #f4f8fc;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-underline-offset: 4px;
    text-decoration: underline;
}

/* Tab Styles */
.cs-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    gap: 15px;
}

.cs-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #0066ff;
    transition: all 0.3s ease;
}

.cs-tab-btn:hover {
    color: #0044cc;
}

.cs-tab-btn.active {
    color: #2d3748;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid #fff;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
}

.cs-tab-pane {
    display: none;
}

.cs-tab-pane.active {
    display: block;
}


#SR_DASHBOARD_ROOT {
    max-width: 1045px;
    width: 100%;
    margin: 0 auto !important;
    float: none !important;
}