body {
    margin:0;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    background:#f7f7f7;
}

/* HEADER */

.v2-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    height:70px;
    padding:0 5px;

    background:white;
    border-bottom:1px solid #eee;
}

.v2-header-left {
    display:flex;
    align-items:center;
    gap:16px;   /* space between logo and company name */
}

/* ---------- LOGO AREA ---------- */

.sc-logo {
    display: flex;
    align-items: center;
}

/* uploaded logo */

.sc-logo-badge {

    width:35px;
    height:35px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;

    border-radius:10px;

    background:#E8F5E9;
}

/* uploaded logos */

.sc-logo-img{
    height:42px;
    width:auto;
}

/* company name */

.v2-company-name{
    font-weight:600;
    font-size:19px;
    letter-spacing:.2px;
}

.v2-call-btn{
    background:#4CAF50;
    color:white;
    border:none;
    padding:8px 16px;
    border-radius:8px;
    text-decoration: none;
    cursor:pointer;
}





/* HERO */

.v2-hero-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .v2-hero-image {
        height: 260px;
    }
}

.v2-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v2-hero-words{
    padding:20px;
    background:white;
}

/* TITLE */
.v2-hero-title {
    margin: 0;

    font-size: 30px;        /* tuned for S24 */
    font-weight: 600;

    line-height: 1.15;      /* key fix */

    color: #000;
}

/* SUBTITLE */
.v2-hero-subtitle {
    margin-top: 6px;

    font-size: 16px;
    color: #555;

    line-height: 1.3;
}

.v2-tagline{
    margin:0;
    font-size:22px;
}

.v2-subtagline{
    margin-top:6px;
    color:#666;
    font-size:14px;
}

/* CTA */

.v2-cta-row{
    margin-top:18px;
    display:flex;
    gap:12px;
}

.v2-btn-message{
    flex:1;
    background:#4CAF50;
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    text-decoration: none;
    font-size:14px;
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
}
.v2-btn-request{
    flex:1;
    background:#2e7d32;
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    text-decoration: none;
    font-size:14px;
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
}

.v2-services,
.v2-gallery,
.v2-about,
.v2-contact {
    padding:20px;
    background:white;
    margin-top:10px;
}

.v2-service{
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;

    border: 1px solid #E6EAF2;
}

.v2-service-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.v2-service-title{
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.v2-service-price {
    font-size: 14px;
    font-weight: 600;
    color: #4A7C59; /* slight brand tint instead of gray */
}
.v2-service-desc {
    margin-top: 4px;
    margin-left: 12px;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.35;
}
.v2-photo-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.v2-photo-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.v2-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-photo-caption{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    background:rgba(0,0,0,.5);
    color:white;
    font-size:12px;
    padding:4px;
}

.v2-contact-card{
    background:#f3f3f3;
    padding:15px;
    border-radius:10px;
}


.v2-contact-row {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.v2-contact-row:last-child {
    margin-bottom:0;
}
.v2-contact-icon-img {
    width:16px;
    height:16px;
    margin-right:6px;
    object-fit:contain;

    opacity:0.6;

    display:inline-block;
}
.v2-contact-icon {
    font-size:14px;
    opacity:0.6;
    width:18px;
    text-align:center;
}

.v2-footer{
    text-align:center;
    padding:30px;
    color:#777;
    font-size:12px;
}

.business-summary-wrap {
    max-width:720px;
    margin-left:auto;
    margin-right:auto;
}

.business-summary-wrap.large {
    margin-top:55px;
    margin-bottom:55px;
}

.business-summary-wrap.small {
    margin-top:5px;
    margin-bottom:15px;
}

.v2-business-summary {
    width:100%;
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
    display:block;
    padding:0;
    overflow:hidden;
}
/* hero sliver */
.v2-summary-image{
    width:100%;
    height:70px;
    overflow:hidden;
}

.v2-summary-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* content area */
.v2-summary-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 18px;
}
.v2-summary-left{
    display:flex;
    gap:14px;
    align-items:center;
}

.v2-summary-name{
    font-weight:600;
    font-size:18px;
}

.v2-summary-tagline{
    font-size:14px;
    color:#444;
}

.v2-summary-tagline2{
    font-size:13px;
    color:#777;
}

.v2-summary-link{
    font-weight:600;
    text-decoration:none;
}

.v2-message-card{

    max-width:700px;
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
    padding:28px;

    background:#fff;
    border-radius:12px;

    box-shadow:0 4px 18px rgba(0,0,0,.08);

    text-align:center;
}
.v2-msg-title {
    margin-bottom: 10px;
}

.v2-msg-body {
    margin-bottom: 6px;
}

/* ✨ the magic line */
.v2-msg-status {
    font-size: 12px;
    color: #555;

    text-align: center;

    margin-top: 6px;
    opacity: 0.9;
}

.v2-actions{

    text-align:center;
    margin-bottom:40px;
}

.v2-primary-btn{

    background:#4CAF50;
    color:white;

    border:none;
    border-radius:8px;

    padding:14px 26px;
    font-size:16px;
    text-decoration: none;

    cursor:pointer;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */

}




.v2-secondary-actions{

    margin-top:35px;
}

.v2-secondary-btn{

    margin:6px;
    padding:13px 18px;
    text-decoration: none;

    border-radius:8px;
    border:1px solid #ccc;

    background:#fff;
    justify-content: center;   /* horizontal center */
}

.v2-context-line{
    text-align:center;
    margin-top:30px;
    margin-bottom:12px;

    font-size:14px;
    color:#555;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    font-weight:500;
}

.v2-context-line .icon {
    font-size:16px;
}



.v2-form-card div.cardBackgroundColor {

    background: transparent; !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.v2-form-card div.cardBackgroundColor[style] {

    box-shadow: none !important;
}

.v2-disabled-option {
    opacity: .45;
    pointer-events: none;
}

.v2-form-card span[style] {

    position: relative !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #eeeeee;

    font-size: 12px;
    font-weight: 200;

    margin-right: 8px;
}

.v2-form-card .cardsHighlightTextColor {

    font-weight:600;
    font-size:14px;

    margin-bottom:6px;
}

/* normalize field title text */

.v2-field-title label,
.v2-field-title span {

    font-weight: 600;
    font-size: 14px;

    display: flex;
    align-items: center;
}

.v2-form-card input,
.v2-form-card textarea,
.v2-form-card select {

    background:#f5f5f5;
    border:none;

    border-radius:8px;

    padding:12px 14px;

    margin-bottom:18px;
}

.v2-form-card  {
    background:#ffffff;

    border-radius:16px;

    padding:22px;

    margin-top:20px;

    box-shadow:0 8px 28px rgba(0,0,0,.12);
    margin-bottom:5px;
}
/* step number badge */

/* individual field card */

.v2-field-card {

    background: #ffffff;
    border-radius: 12px;

    padding: 18px;

    box-shadow: 0 4px 18px rgba(0,0,0,.08);

    margin-bottom: 20px;
}

/* title row */

.v2-field-title {

    display: flex;
    align-items: center;

    margin-bottom: 10px;
}

/* step badge */

.v2-step-badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #eeeeee;

    font-size: 12px;
    font-weight: 600;

    margin-right: 8px;
}
.v2-action-page {

    min-height:100vh;
}

/* responsive container */

.v2-action-container {

    max-width:560px;
    margin:0 auto;
    padding:20px 16px 60px;
}

.v2-action-title {

    text-align:center;
    margin-bottom:24px;
}

.v2-action-title h1{

    color:white;
    margin-bottom:18px;
    font-size:36px;
}

.v2-action-icon {

    width:64px;
    height:64px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 auto 14px;

    font-size:28px;
}

.v2-action-instructions{

    color:white;
    font-size:14px;

    opacity:.9;

    margin-top:8px;
}
.v2-action-footer-card {

    background: #ffffff;

    border-radius: 16px;

    padding: 14px;

    margin: 12px auto 0;

    max-width: 560px;

    display: flex;
    gap: 12px;

    box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.v2-confirm-footer-card {
    position: sticky;
    bottom: 12px;


    background: #ffffff;

    border-radius: 16px;

    padding: 14px;

    margin: 12px auto 0;

    max-width: 500px;

    display: flex;
    gap: 12px;

    box-shadow: 0 6px 20px rgba(0,0,0,.10);
}

.v2-btn-cancel {

    flex: 1;

    background: #eeeeee;
    color: #222;

    border: none;

    padding: 14px;

    border-radius: 12px;

    font-weight: 600;

    text-align: center;

    text-decoration: none;

    display: block;
}

.v2-btn-next {

    flex: 1;

    background: var(--secondaryColor, #2e7d32);
    color: white;

    border: none;

    padding: 14px;

    border-radius: 12px;

    font-weight: 600;

    text-align: center;

    text-decoration: none;

    display: block;
}


.v2-btn-next:hover { filter:brightness(1.05); }

.v2-confirm-header {

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:14px;
}

.v2-confirm-title {

    font-weight:600;
}

/* EDIT action */

.v2-confirm-edit {

    background:none;
    border:none;

    padding:0;

    font-size:14px;
    font-weight:600;

    color:var(--secondaryColor,#2e7d32);

    cursor:pointer;
}

.v2-tertiary-action-when-above {
    text-align:center;

    margin-top:30px;
    margin-bottom:8px;

    padding-top:1px;

}
.v2-tertiary-action {
    text-align:center;

    margin-top:24px;
    margin-bottom:16px;

    padding-top:16px;

    border-top:1px solid #eee;   /* ← gives it structure */
}

/* looks like a soft action, not a button */
.v2-tertiary-link {
    font-size:14px;
    font-weight:500;

    color:#2e7d32; /* your secondaryColor */

    text-decoration:none;
}

.v2-tertiary-link:hover {
    text-decoration:underline;
}

/* helper text */
.v2-tertiary-helper {
    margin-top:6px;

    font-size:12px;
    color:#888;

    line-height:1.4;
}

.v2-appt-card {
    text-align:center;
}

/* Title */
.v2-appt-title {
    font-size:22px;
    font-weight:600;
    margin-bottom:12px;
}

/* Date */
.v2-appt-date {
    font-size:18px;
    font-weight:500;
    margin-bottom:4px;
}

/* Time */
.v2-appt-time {
    font-size:16px;
    color:#555;
    margin-bottom:18px;
}

/* Details container */
.v2-appt-details {
    text-align:left;
    margin-top:10px;
}

/* Each row */
.v2-appt-row {
    margin-bottom:14px;
}

/* Label */
.v2-appt-label {
    font-size:12px;
    color:#888;
    margin-bottom:2px;
}

.v2-s-m {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size:14px;
    color:#888;
}

/* Value */
.v2-appt-value {
    font-size:15px;
    color:#222;
}

/* Make service pop */
.v2-appt-primary {
    font-weight:600;
}

/* NEW utility row */
.v2-actions-utility {
    display:flex;
    gap:12px;
    padding-left: 20px;
    padding-right: 20px;

    margin-top:20px;
    margin-bottom:16px;
}

.v2-btn-utility {

    margin:6px;
    padding:13px 18px;
    text-decoration: none;

    border-radius:8px;
    border:1px solid #ccc;

    background:#f5f5f5;
    justify-content: center;   /* horizontal center */

}


.v2-datetime-block {
    text-align:center;
    margin-top:10px;
    margin-bottom:16px;
}

/* date */
.v2-datetime-date {
    font-size:16px;
    font-weight:500;
    color:#ffffff;   /* assuming on green bg */
    margin-bottom:2px;
}

/* time */
.v2-datetime-time {
    font-size:14px;
    color:rgba(255,255,255,0.85);
}









.v2-page {
    padding: 20px;
    background: #f6f8fb;
    font-family: Arial, sans-serif;
}

.v2-header h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.v2-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.v2-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.v2-card {
    width: calc(50% - 6px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.v2-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.v2-card-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.v2-logo {
    position: absolute;
    top: 8px;
    left: 8px;
}

.v2-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    padding: 2px;
}

.v2-card-body {
    padding: 8px 10px;
}

.v2-card-name {
    font-size: 14px;
    font-weight: bold;
    color: #1f2937;
}

.v2-card-tagline {
    font-size: 12px;
    color: #4b5563;
    margin-top: 2px;
}

.v2-card-location {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.v2-card-added {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 3px;
}

.v2-visually-hidden {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* --- Business Card Stats --- */

.business-card-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin-top: 14px;
}

.business-card-stat {
    background: rgba(255,255,255,0.92);

    border-radius: 14px;

    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.04);

    border: 1px solid rgba(0,0,0,0.04);

    min-width: 0;
}

.business-card-stat-value {
    font-size: 20px;
    font-weight: 700;

    line-height: 1.05;

    color: #111827;

    letter-spacing: -0.03em;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.business-card-stat-title {
    margin-top: 4px;

    font-size: 11px;

    color: #6B7280;

    line-height: 1.3;

    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}



/* Mobile */
@media (max-width: 700px) {

    .business-card-stats-grid {
        grid-template-columns: 1fr;
    }

    .business-card-stat-value {
        font-size: 18px;
    }

}

/* --- Toolbar --- */

.business-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;

    gap: 14px;

    flex-wrap: wrap;
}

.business-toolbar-selectall {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 15px;
    font-weight: 600;

    color: #374151;
}

.business-export-btn {
    border: none;

    background: #111827;
    color: white;

    padding: 12px 18px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.18s ease;
}

.business-export-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* --- Per Card Select --- */

.business-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.business-select-label {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #4B5563;
}

.business-select-checkbox {
    width: 18px;
    height: 18px;

    cursor: pointer;
}


.business-version {
    display: inline-block;
    min-width: 70px;
    padding: 6px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #4B5563;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

/**/


/* stats_dashboard_compact.css */

.compact-stats-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    row-gap:-2px;
    column-gap:8px;
    margin-top:14px;
}

.compact-stat-cell{
    background:#fafafa;
    border:1px solid #ececec;
    border-radius:12px;
    padding:5px 10px 4px 10px;
    min-height:50px;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;

    overflow:hidden;
}

.compact-stat-title{
    font-size:11px;
    font-weight:600;
    color:#7a7a7a;
    line-height:1.2;
    margin-bottom:4px;

    white-space:normal;
    word-break:break-word;
}

.compact-stat-value{
    font-size:13px;
    font-weight:700;
    color:#1d1d1d;
    line-height:1.0;

    white-space:normal;
    word-break:break-word;
}

/* Slightly smaller on tighter widths */
@media (max-width: 1200px){

    .compact-stats-grid{
        grid-template-columns:repeat(3, 1fr);
    }

}

/* Tablet */
@media (max-width: 850px){

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

}

/* Mobile */
@media (max-width: 520px){

    .compact-stats-grid{
        grid-template-columns:1fr;
    }

}




/* =========================================================
   SMALL OPERATIONAL BUSINESS CARD
   Used by element_business_card_smaller.ctp
   ========================================================= */

.v2-card-smaller {
    width: calc(25% - 9px);
    position: relative;
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 12px;

    padding: 10px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    min-width: 0;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.v2-card-smaller:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.11);
}


/* clickable top portion */

.v2-card-smaller-link {
    display: block;

    text-decoration: none;
    color: inherit;
}

.v2-card-smaller-link-icon {
    position: absolute;
    top: 5px;
    right: 8px;

    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: #9ca3af;

    pointer-events: none;
    z-index: 2;
}

.v2-card-smaller-business-link {

    display: block;

    position: relative;

    text-decoration: none;

    color: inherit;

}

.v2-card-smaller-business-link:link,

.v2-card-smaller-business-link:visited,

.v2-card-smaller-business-link:hover,

.v2-card-smaller-business-link:active {

    text-decoration: none;

    color: inherit;

}



/* thumbnail + identity */

.v2-card-smaller-header {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    min-width: 0;
}


.v2-card-smaller-thumb {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    border-radius: 8px;

    background-size: cover;
    background-position: center;

    border: 1px solid #e5e7eb;
}


.v2-card-smaller-thumb-empty {
    background: #f3f4f6;
}


.v2-card-smaller-heading {
    flex: 1;
    min-width: 0;
}



.v2-card-smaller-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;

    white-space: normal;
    overflow-wrap: anywhere;
}

.v2-card-smaller-tagline {
    margin-top: 2px;

    font-size: 11px;
    color: #4b5563;

    line-height: 1.2;

    white-space: normal;
    overflow-wrap: anywhere;
}


.v2-card-smaller-location {
    margin-top: 2px;

    font-size: 10px;
    color: #8a8f98;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* select/version */

.v2-card-smaller-select-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 8px;
    margin-bottom: 5px;

    gap: 6px;
}


.v2-card-smaller-version {
    font-size: 10px;
    font-weight: 600;

    color: #4b5563;

    background: #f3f4f6;

    border: 1px solid #e1e4e8;
    border-radius: 5px;

    padding: 3px 6px;

    white-space: nowrap;
}


.v2-card-smaller-added {
    font-size: 9px;
    color: #9ca3af;

    margin-bottom: 5px;
}


/* stats matrix */

.v2-card-smaller-stats {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 5px;

    margin-top: 5px;
}


.v2-card-smaller-stat {
    min-width: 0;

    background: #fafafa;

    border: 1px solid #ececec;
    border-radius: 7px;

    padding: 5px 6px;

    min-height: 39px;
}



.v2-card-smaller-stat-title {
    font-size: 9px;
    font-weight: 600;
    color: #7a7a7a;
    line-height: 1.1;
    margin-bottom: 3px;

    white-space: normal;
    overflow-wrap: anywhere;
}

.v2-card-smaller-stat-value {
    font-size: 11px;
    font-weight: 700;

    color: #1d1d1d;

    line-height: 1.1;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1350px) {

    .v2-card-smaller {
        width: calc(33.333% - 8px);
    }

}


@media (max-width: 950px) {

    .v2-card-smaller {
        width: calc(50% - 6px);
    }

}


@media (max-width: 600px) {

    .v2-card-smaller {
        width: 100%;
    }

}

.v2-card-smaller .v2-card-smaller-stat-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.v2-card-smaller-right-badges {
    display: flex;
    align-items: center;
    gap: 5px;
}

.v2-onboard-badge {
    display: inline-block;

    padding: 3px 7px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;

    border: 1px solid transparent;
}


/* muted green */
.v2-onboard-ready {
    background: #e8f3eb;
    color: #426b4b;
    border-color: #c9dfcf;
}


/* muted yellow */
.v2-onboard-started {
    background: #f6f0dc;
    color: #77642c;
    border-color: #e5d9ad;
}


/* muted red */
.v2-onboard-new {
    background: #f5e6e6;
    color: #825151;
    border-color: #e3c8c8;
}

.v2-onboard-inactive {
    background: #ffe0e0;
    color: #b00000;
    border-color: #ff4d4d;
}

/* =========================================================
   SMALL CARD EXPAND / COLLAPSE
   ========================================================= */

.v2-card-smaller-expandable {
    display: none;
}

.v2-card-smaller-expandable.v2-card-smaller-expanded {
    display: block;
}


/* center More/Less control in select row */

.v2-card-smaller-more {
    margin-left: auto;
    margin-right: auto;

    padding: 2px 5px;

    border: none;
    background: transparent;

    color: #6b7280;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;
}

.v2-card-smaller-more:hover {
    color: #111827;
}


/*
 * Prevent the badge group from being pushed oddly
 * by the centered More/Less control.
 */
.v2-card-smaller-right-badges {
    display: flex;
    align-items: center;
    gap: 5px;
}



/* ============================================================
   SMALL BUSINESS CARD - NEW ANALYSIS VERSION
   ============================================================ */


/* ------------------------------------------------------------
   COLLAPSED CARD / IDENTITY AREA
   ------------------------------------------------------------ */

.v2-card-smaller {
    background: #ffffff;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}


/* Clickable business identity area */





/* Main top portion */

.v2-card-smaller-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px 6px 10px;
}


/* Theme image */

.v2-card-smaller-image {
    width: 72px;
    height: 58px;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 7px;
    background: #f3f4f6;
}


/* Company identity */

.v2-card-smaller-identity {
    flex: 1;
    min-width: 0;
}

.v2-card-smaller-name {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;

    white-space: normal;
    overflow-wrap: anywhere;
}

.v2-card-smaller-installed {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
    color: #6b7280;
}


/* ------------------------------------------------------------
   TOP STATUS BADGES
   ------------------------------------------------------------ */

/*.v2-card-smaller-status-row {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    align-items: center;*/
/*    gap: 5px;*/

/*    padding: 2px 10px 8px 92px;*/
/*}*/
.v2-card-smaller-status-row {
    padding: 6px 0 0 0;
}


/*
 * Generic badge.
 * ViewStrings supplies one of the state classes below.
 */

.v2-card-state-badge {
    display: inline-block;
    padding: 3px 7px;

    border: 1px solid;
    border-radius: 999px;

    font-size: 10px;
    line-height: 1.15;
    font-weight: 700;

    white-space: nowrap;
}


/* GOOD / GREEN */

.v2-detail-good,
.v2-state-good {
    background: #e6f6eb;
    color: #176b35;
    border-color: #9bd3aa;
}


/* WARNING / YELLOW */

.v2-detail-warn,
.v2-state-warn {
    background: #fff5cc;
    color: #775900;
    border-color: #e7cc66;
}


/* BAD / RED */

.v2-detail-bad,
.v2-state-bad {
    background: #ffe0e0;
    color: #b00000;
    border-color: #ff4d4d;
}


/* NEUTRAL / GRAY */

.v2-detail-neutral,
.v2-state-neutral {
    background: #f1f3f5;
    color: #5f6368;
    border-color: #cfd4da;
}


/*
 * Optional special inactive class.
 * Useful if installStateToView() returns this instead of v2-state-bad.
 */

.v2-onboard-inactive,
.v2-state-inactive {
    background: #ffe0e0;
    color: #b00000;
    border-color: #ff4d4d;
}


/* ------------------------------------------------------------
   SELECT / MORE ROW
   ------------------------------------------------------------ */

.v2-card-smaller-controls {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 28px;
    padding: 4px 10px;

    border-top: 1px solid #eef0f2;
}

.v2-card-smaller-select {
    display: flex;
    align-items: center;
    gap: 4px;

    font-size: 11px;
    color: #4b5563;
}

.v2-card-smaller-select input {
    margin: 0;
}


/* More / Less */

.v2-card-smaller-more {
    margin-left: auto;

    padding: 3px 5px;
    border: none;
    background: transparent;

    color: #6b7280;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}

.v2-card-smaller-more:hover {
    color: #111827;
}


/* ------------------------------------------------------------
   EXPAND / COLLAPSE
   ------------------------------------------------------------ */

.v2-card-smaller-expandable {
    display: none;

    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}

.v2-card-smaller-expandable.v2-card-smaller-expanded {
    display: block;
}


/* ------------------------------------------------------------
   SIX ANALYSIS CELLS
   2 columns x 3 rows
   ------------------------------------------------------------ */

.v2-card-smaller-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-bottom: 1px solid #e5e7eb;
}


/* Individual smart cell */

.v2-detail-cell {
    min-width: 0;
    padding: 9px 8px 10px 8px;

    border-bottom: 1px solid #e8eaed;
}


/* vertical divider between columns */

.v2-detail-cell:nth-child(odd) {
    border-right: 1px solid #e8eaed;
}


/* Don't need bottom border on final row */

.v2-detail-cell:nth-last-child(-n+2) {
    border-bottom: none;
}


/* APP STATUS / PHONE USE / etc */

.v2-detail-title {
    margin-bottom: 5px;

    color: #6b7280;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.35px;
}


/* Badge within analysis cell */

.v2-detail-badge {
    display: inline-block;

    margin-bottom: 6px;
    padding: 3px 6px;

    border: 1px solid;
    border-radius: 999px;

    font-size: 9px;
    line-height: 1.15;
    font-weight: 700;

    white-space: nowrap;
}


/* Supporting analysis strings */

.v2-detail-string {
    margin-top: 2px;

    color: #4b5563;
    font-size: 10px;
    line-height: 1.3;

    white-space: normal;
    overflow-wrap: anywhere;
}


/* ------------------------------------------------------------
   CUSTOMER / DEBUG METADATA
   ------------------------------------------------------------ */

.v2-card-smaller-metadata {
    padding: 9px 10px 10px 10px;

    background: #f6f7f8;

    font-size: 10px;
    line-height: 1.35;
    color: #6b7280;
}

.v2-card-smaller-metadata-title {
    margin-bottom: 5px;

    color: #6b7280;
    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.v2-card-smaller-metadata-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;

    margin-top: 2px;
}

.v2-card-smaller-metadata-label {
    flex: 0 0 auto;
    font-weight: 600;
    color: #6b7280;
}

.v2-card-smaller-metadata-value {
    min-width: 0;
    color: #4b5563;

    white-space: normal;
    overflow-wrap: anywhere;
}


/* ------------------------------------------------------------
   SMALL SCREEN SAFETY

   If these cards themselves get narrow enough that two analysis
   columns become ridiculous, fall back to one column.
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    .v2-card-smaller-detail-grid {
        grid-template-columns: 1fr;
    }

    .v2-detail-cell:nth-child(odd) {
        border-right: none;
    }

    .v2-detail-cell:nth-last-child(-n+2) {
        border-bottom: 1px solid #e8eaed;
    }

    .v2-detail-cell:last-child {
        border-bottom: none;
    }

    .v2-card-smaller-status-row {
        padding-left: 10px;
    }
}


/* ============================================================
   BUSINESS SUMMARY - NEW VERSION
   ============================================================ */


/* ------------------------------------------------------------
   SUMMARY WRAPPER
   ------------------------------------------------------------ */

.v2-business-summary {
    margin: 18px 0 24px 0;
    padding: 18px;

    background: #f7f8fa;
    border: 1px solid #d9dee5;
    border-radius: 10px;

    box-sizing: border-box;
}


.v2-business-summary-header {
    margin-bottom: 18px;
}


.v2-business-summary-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
}


.v2-business-summary-subtitle {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}



/* ------------------------------------------------------------
   MAJOR SUMMARY SECTIONS
   ------------------------------------------------------------ */

.v2-summary-section {
    margin-top: 20px;
}


.v2-summary-section:first-of-type {
    margin-top: 0;
}


.v2-summary-section-title {
    margin-bottom: 8px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    color: #4b5563;

    text-transform: uppercase;
    letter-spacing: 0.45px;
}



/* ============================================================
   FUNNEL AREA
   ============================================================ */

.v2-summary-funnel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;

    align-items: start;
}


.v2-summary-funnel-card {
    min-width: 0;
    padding: 12px;

    background: #ffffff;
    border: 1px solid #dce1e7;
    border-radius: 8px;

    box-sizing: border-box;
}


.v2-summary-card-title {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    color: #1f2937;
}


.v2-summary-card-subtitle {
    margin-top: 2px;
    margin-bottom: 10px;

    font-size: 10px;
    line-height: 1.3;
    color: #6b7280;
}


.v2-summary-funnel-stats {
    margin-top: 8px;
}


.v2-summary-funnel-stat {
    padding: 7px 0;

    border-top: 1px solid #edf0f2;
}


.v2-summary-funnel-stat:first-child {
    border-top: none;
}


.v2-summary-funnel-stat-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 8px;
}


.v2-summary-funnel-stat-label {
    min-width: 0;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    color: #374151;
}


.v2-summary-funnel-stat-value {
    flex: 0 0 auto;

    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: #111827;
}


.v2-summary-funnel-stat-support {
    margin-top: 2px;

    font-size: 9px;
    line-height: 1.3;
    color: #7b818a;

    white-space: normal;
    overflow-wrap: anywhere;
}



/* ============================================================
   SECONDARY / PRODUCT USAGE AREA
   ============================================================ */

.v2-summary-secondary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;

    align-items: start;
}


.v2-summary-secondary-card {
    min-width: 0;
    padding: 12px;

    background: #ffffff;
    border: 1px solid #dce1e7;
    border-radius: 8px;

    box-sizing: border-box;
}


.v2-summary-secondary-header {
    display: flex;
    align-items: center;

    gap: 5px;
}


.v2-summary-secondary-icon {
    flex: 0 0 auto;

    font-size: 16px;
    line-height: 1;
}


/* ------------------------------------------------------------
   BIG HEADLINE NUMBER
   ------------------------------------------------------------ */

.v2-summary-secondary-headline {
    margin-top: 10px;

    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    color: #111827;
}


.v2-summary-secondary-headline-label {
    margin-top: 3px;
    min-height: 26px;

    font-size: 10px;
    line-height: 1.3;
    color: #6b7280;
}



/* ------------------------------------------------------------
   SECONDARY BREAKDOWN ROWS
   ------------------------------------------------------------ */

.v2-summary-secondary-stats {
    margin-top: 10px;
}


.v2-summary-secondary-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;

    align-items: center;

    gap: 5px;

    margin-top: 4px;
    padding: 4px 5px;

    border: 1px solid transparent;
    border-radius: 5px;

    box-sizing: border-box;
}


.v2-summary-secondary-stat-label {
    min-width: 0;

    font-size: 9px;
    line-height: 1.2;
    font-weight: 600;

    white-space: normal;
    overflow-wrap: anywhere;
}


.v2-summary-secondary-stat-value {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}


.v2-summary-secondary-stat-percent {
    min-width: 28px;

    font-size: 9px;
    line-height: 1.2;
    text-align: right;
}



/* GOOD */

.v2-secondary-good {
    background: #e6f6eb;
    color: #176b35;
    border-color: #b4dbbe;
}


/* WARNING / PARTIAL */

.v2-secondary-warn {
    background: #fff5cc;
    color: #775900;
    border-color: #ead783;
}


/* BAD */

.v2-secondary-bad {
    background: #ffe5e5;
    color: #a80000;
    border-color: #f0aaaa;
}


/* NEUTRAL */

.v2-secondary-neutral {
    background: #f1f3f5;
    color: #5f6368;
    border-color: #d9dde1;
}



/* ------------------------------------------------------------
   SECONDARY SUPPORTING STRINGS
   ------------------------------------------------------------ */

.v2-summary-secondary-support {
    margin-top: 10px;
    padding-top: 7px;

    border-top: 1px solid #edf0f2;
}


.v2-summary-secondary-support-line {
    margin-top: 2px;

    font-size: 9px;
    line-height: 1.3;
    color: #737982;

    white-space: normal;
    overflow-wrap: anywhere;
}


.v2-summary-secondary-support-line:first-child {
    margin-top: 0;
}



/* ============================================================
   RESPONSIVE FALLBACKS
   ============================================================ */

@media (max-width: 1100px) {

    .v2-summary-funnel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-summary-secondary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .v2-business-summary {
        padding: 12px;
    }

    .v2-summary-funnel-grid {
        grid-template-columns: 1fr;
    }

    .v2-summary-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 460px) {

    .v2-summary-secondary-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   EARLY ONBOARDING SMALL CARD
   ============================================================ */

.v2-card-smaller-early-onboard {
    background: #f8f9fb;
    border-color: #d8dde5;
}


/*
 * No image column for EARLY_ONBOARD.
 * Keep the same normal card padding and width.
 */

.v2-card-smaller-top-early {
    display: block;
}


/*
 * Slightly distinguish the "New install" identity without
 * making it look like an error.
 */

.v2-card-smaller-early-onboard .v2-card-smaller-name {
    color: #374151;
}


/*
 * Small explanation below the badges.
 */

.v2-card-smaller-early-note {
    margin-top: 6px;

    font-size: 10px;
    line-height: 1.3;

    color: #7b818a;

    white-space: normal;
    overflow-wrap: anywhere;
}


/*
 * Give the top area a very slight tint so these records
 * visually form their own cohort when scanning the grid.
 */

.v2-card-smaller-early-onboard .v2-card-smaller-top {
    background: #f6f7f9;
}


/*
 * Keep the controls visually attached to the card but
 * slightly cleaner against the alternate background.
 */

.v2-card-smaller-early-onboard .v2-card-smaller-controls {
    background: #ffffff;
}


.v2-card-smaller-early-inline-note {
    margin-left: 5px;

    font-size: 9px;
    line-height: 1.2;
    font-weight: 400;

    color: #9aa0a8;
}

