/* PAN CRM v334 — customer identity two-row layout + clickable status toggle */

.pc-record-status-fact{min-width:92px!important}
.pc-record-status-fact>span:first-child{display:block;margin-bottom:4px}
.pc-status-toggle{
    appearance:none;
    border:1px solid #e3a36e;
    border-radius:999px;
    min-width:74px;
    height:27px;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    background:#f47b20;
    color:#fff;
    font:600 11px/1 "Segoe UI",Arial,sans-serif;
    cursor:pointer;
    box-shadow:0 1px 2px rgba(0,0,0,.08);
    transition:background .15s ease,border-color .15s ease,opacity .15s ease;
}
.pc-status-toggle:hover{background:#df6816;border-color:#d45f10}
.pc-status-toggle:disabled{opacity:.65;cursor:wait}
.pc-status-toggle.is-passive{background:#7d8b94;border-color:#718089;color:#fff}
.pc-status-toggle.is-passive:hover{background:#697881;border-color:#5f6e77}
.pc-status-toggle.is-readonly{cursor:default}
.pc-status-toggle-dot{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.22)}

/* v334 view-only identity grid: exactly two rows on laptop/desktop. */
@media (min-width:1200px){
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-title{
        grid-column:span 6 / span 6 !important;
    }
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-customer_code{
        grid-column:span 2 / span 2 !important;
    }
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-short_name{
        grid-column:span 4 / span 4 !important;
    }
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-owner_user_id,
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-related_manager_user_id{
        grid-column:span 3 / span 3 !important;
    }
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-customer_group{
        grid-column:span 4 / span 4 !important;
    }
    body:has(.pc-customer-summary-view) .pc-form-card-identity .pc-customer-field-customer_type{
        grid-column:span 2 / span 2 !important;
    }
}
